1 2002-12-04 Kevin Buettner <kevinb@redhat.com>
3 * Makefile.in (mips_tdep_h): Define.
4 (mips-tdep.o): Add mips_tdep_h to dependency list.
5 * mips-tdep.h: New file.
6 * mips-tdep.c (mips-tdep.h): Include.
7 (enum mips_abi): Move to mips-tdep.h.
8 (mips_abi): New function.
10 2002-12-04 David Carlton <carlton@math.stanford.edu>
12 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
14 2002-12-04 David Carlton <carlton@math.stanford.edu>
16 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
18 (lookup_symbol_aux_minsyms): New function.
20 2002-12-04 J. Brobecker <brobecker@gnat.com>
22 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
24 2002-12-04 J. Brobecker <brobecker@gnat.com>
26 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
27 which is an obsolete macro name.
29 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
31 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
32 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
34 2002-12-03 H.J. Lu (hjl@gnu.org)
36 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
37 (create_breakpoints): Make sure the addr_string field is not
40 2002-12-03 Andrew Cagney <ac131313@redhat.com>
42 * sparc-nat.c (fetch_inferior_registers)
43 (store_inferior_registers): Add comment on problem of LWP vs
46 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
47 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
48 (lin_lwp_store_registers): Remove.
49 (init_lin_lwp_ops): Use fetch_inferior_registers
50 and store_inferior_registers directly.
51 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
52 (store_inferior_registers): Likewise.
55 2002-12-03 Andrew Cagney <ac131313@redhat.com>
57 * frame.h (get_frame_id): Convert to a function.
58 (null_frame_id, frame_id_p): Declare.
59 (frame_id_eq, frame_id_inner): Declare.
60 (frame_id_build): New function.
61 * frame.c (get_frame_id): Update. Use null_frame_id.
62 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
64 (null_frame_id, frame_id_p): Define.
65 (frame_id_eq, frame_id_inner): Define.
66 (frame_id_build): New function.
67 * varobj.c (varobj_create): Update.
68 (varobj_update): Update.
69 * valops.c (value_assign): Update.
70 (new_root_variable): Update.
71 * infrun.c (save_inferior_status): Update.
72 * breakpoint.c (watch_command_1): Update.
74 2002-12-03 J. Brobecker <brobecker@gnat.com>
76 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
79 2002-12-03 Andrew Cagney <cagney@redhat.com>
81 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
84 * PROBLEMS: Mention PR gdb/725.
86 2002-12-03 Andreas Schwab <schwab@suse.de>
88 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
90 2002-12-02 Adam Fedor <fedor@gnu.org>
91 Klee Dienes <kdienes@apple.com>
93 * objc-lang.c (objc_printstr): Add width arg to match
95 (compare_selectors): Add 'const' to arg types.
96 (compare_classes): Likewise.
97 (find_imps): Cast msym pointer to avoid compiler warning.
98 (print_object_command): Validate the address before
99 passing it to the print routine.
100 (find_objc_msgcall_submethod): Change function argument to
102 * objc-lang.h: Add 'extern' to all function declarations.
103 (value_nsstring): Add declaration.
105 2002-12-02 J. Brobecker <brobecker@gnat.com>
107 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
108 Fixes a build failure on HP/UX.
110 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
112 (hpread_has_name): Advance declaration to avoid a compilation warning.
113 (pst_syms_count): Add missing variable type. By change, the compiler
114 was defaulting to int, which seems a good choice. Fixes a compilation
116 (pst_syms_size): Likewise.
118 2002-12-02 J. Brobecker <brobecker@gnat.com>
120 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
121 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
122 later to set the proper gdbarch methods depending on the osabi.
123 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
125 2002-12-02 J. Brobecker <brobecker@gnat.com>
127 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
128 * osabi.c (gdb_osabi_name): Add strings images for the two new
130 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
132 2002-12-02 Andrew Cagney <ac131313@redhat.com>
134 * MAINTAINERS (Java): Global maintainers are responible for Java.
135 (Past Maintainers): Mention both Anthony Green and Per Bothner as
136 part Java maintainers.
138 2002-12-02 J. Brobecker <brobecker@gnat.com>
140 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
141 Fixes a compilation failure on AiX.
143 2002-12-02 J. Brobecker <brobecker@gnat.com>
145 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
146 why aix-thread.o is not listed.
148 2002-12-01 Andrew Cagney <ac131313@redhat.com>
150 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
151 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
152 * gdbarch.h, gdbarch.c: Re-generate.
153 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
154 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
155 * config/pa/tm-hppa.h, frame.h: Update.
156 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
157 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
158 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
159 * cris-tdep.c, alpha-tdep.c: Update.
160 * frame.c (set_unwind_by_pc, create_new_frame): Use either
161 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
162 (get_prev_frame): Ditto.
164 2002-11-30 Andrew Cagney <cagney@redhat.com>
166 * exec.c (xfer_memory): Replace boolean with int.
167 * p-exp.y: Use 0 instead of false.
168 * corelow.c (gdb_check_format): Change return type to int from
170 * utils.c: Don't include <curses.h> or <term.h> first.
172 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
174 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
175 (m68hc11_register_byte): Remove.
176 (m68hc11_gdbarch_init): Don't set the above.
178 2002-11-29 Andrew Cagney <cagney@redhat.com>
180 * remote-mips.c (mips_initialize): Force a selected frame rebuild
181 by calling get_selected_frame.
182 * ocd.c (ocd_start_remote): Use get_selected frame instead of
183 set_current_frame, create_new_frame, select_frame and
185 * remote-e7000.c (e7000_start_remote): Ditto.
186 * remote-mips.c (common_open): Ditto
187 * remote-rdp.c (remote_rdp_open): Ditto.
189 2002-11-29 Andreas Schwab <schwab@suse.de>
191 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
192 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
193 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
194 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
195 read_memory_unsigned_integer instead of read_memory_integer when
196 dealing with addresses and instruction opcodes.
197 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
198 (m68k_linux_frame_saved_pc): Likewise.
200 2002-11-29 Andrew Cagney <ac131313@redhat.com>
202 * stack.c (selected_frame, select_frame): Move from here ...
203 * frame.c (selected_frame, select_frame): ... to here. Include
205 * Makefile.in (frame.o): Update dependencies.
206 * frame.c (get_selected_frame): New function.
207 * frame.h (get_selected_frame): Declare.
208 (deprecated_selected_frame): Rename selected_frame.
209 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
210 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
211 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
212 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
213 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
214 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
215 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
216 * z8k-tdep.c, cli/cli-cmds.c: Update.
218 2002-11-29 Andrew Cagney <ac131313@redhat.com>
220 * frame.h (get_selected_block): Add comments.
222 2002-11-28 Andrew Cagney <ac131313@redhat.com>
224 * frame.c (pc_notcurrent): New function.
225 (find_frame_sal): New function.
226 * frame.h (find_frame_sal): Declare.
227 (struct symtab_and_line): Add opaque declaration.
228 * stack.c (print_frame_info_base): Use find_frame_sal instead of
231 * ada-lang.c (find_printable_frame): Ditto.
233 2002-11-28 J. Brobecker <brobecker@gnat.com>
235 * configure.in: Check that the pthdebug library is recent enough
236 before enabling thread support on native AiX.
237 * configure: Regenerate.
239 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
240 from the list of object files as it is now appended by configure
241 if thread support is enabled.
242 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
243 if thread support is enabled.
245 2002-11-28 Andrew Cagney <cagney@redhat.com>
247 * stack.c (get_selected_block): In-line get_current_block.
248 * frame.h (get_current_block): Delete declaration.
249 * blockframe.c (get_current_block): Delete function.
251 2002-11-28 Andrew Cagney <ac131313@redhat.com>
253 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
254 USE_GENERIC_DUMMY_FRAMES.
255 * gdbarch.h, gdbarch.c: Regenerate.
256 * valops.c, frame.c: Update.
257 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
258 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
259 * config/pa/tm-hppa.h, blockframe.c: Update.
260 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
261 * m68k-tdep.c, alpha-tdep.c: Ditto.
263 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
264 * mips-tdep.c: Ditto.
266 2002-11-27 Andrew Cagney <ac131313@redhat.com>
268 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
269 (USE_GENERIC_DUMMY_FRAMES): Default to true.
270 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
271 * gdbarch.c, gdbarch.h: Re-generate.
272 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
273 (CALL_DUMMY_LOCATION): Delete macro definition.
274 (PC_IN_CALL_DUMMY): Delete macro definitions.
276 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
277 default is already generic_pc_in_call_dummy.
278 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
279 * v850-tdep.c (v850_gdbarch_init): Ditto.
280 * sh-tdep.c (sh_gdbarch_init): Ditto.
281 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
282 * mips-tdep.c (mips_gdbarch_init): Ditto.
283 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
284 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
285 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
286 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
287 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
288 * avr-tdep.c (avr_gdbarch_init): Ditto.
290 * arm-tdep.c (arm_gdbarch_init): Do not set
291 use_generic_dummy_frames, default is already 1.
292 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
293 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
294 * v850-tdep.c (v850_gdbarch_init): Ditto.
295 * sh-tdep.c (sh_gdbarch_init): Ditto.
296 * s390-tdep.c (s390_gdbarch_init): Ditto.
297 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
298 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
299 * mips-tdep.c (mips_gdbarch_init): Ditto.
300 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
301 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
302 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
303 * i386-tdep.c (i386_gdbarch_init): Ditto.
304 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
305 * frv-tdep.c (frv_gdbarch_init): Ditto.
306 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
307 * cris-tdep.c (cris_gdbarch_init): Ditto.
308 * avr-tdep.c (avr_gdbarch_init): Ditto.
310 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
311 call_dummy_location, default is already AT_ENTRY_POINT.
312 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
313 * v850-tdep.c (v850_gdbarch_init): Ditto.
314 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
315 * sh-tdep.c (sh_gdbarch_init): Ditto.
316 * s390-tdep.c (s390_gdbarch_init): Ditto.
317 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
318 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
319 * mips-tdep.c (mips_gdbarch_init): Ditto.
320 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
321 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
322 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
323 * i386-tdep.c (i386_gdbarch_init): Ditto.
324 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
325 * frv-tdep.c (frv_gdbarch_init): Ditto.
326 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
327 * cris-tdep.c (cris_gdbarch_init): Ditto.
328 * avr-tdep.c (avr_gdbarch_init): Ditto.
329 * arm-tdep.c (arm_gdbarch_init): Ditto.
330 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
332 2002-11-28 Andrew Cagney <cagney@redhat.com>
334 * frame.h: Update comments on set_current_frame, create_new_frame,
335 flush_cached_frames, reinit_frame_cache, select_frame and
338 2002-11-27 Andrew Cagney <cagney@redhat.com>
340 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
341 deprecated pc_in_call_dummy function.
342 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
343 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
344 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
345 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
346 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
348 2002-11-26 Martin M. Hunt <hunt@redhat.com>
350 * Makefile.in: Remove Tix dependencies.
351 * acinclude.m4: Ditto.
353 * configure.in: Ditto.
354 * configure: Regenerated.
356 2002-11-26 Andrew Cagney <ac131313@redhat.com>
358 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
359 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
360 * gdbarch.c: Re-generate.
362 2002-11-26 Andrew Cagney <ac131313@redhat.com>
364 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
365 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
366 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
367 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
368 pc_in_call_dummy_at_entry_point.
369 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
370 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
371 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
372 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
373 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
374 pc_in_call_dummy_on_stack.
375 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
376 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
377 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
378 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
379 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
381 2002-11-26 Andrew Cagney <ac131313@redhat.com>
383 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
384 pc_in_call_dummy_before_text_end
385 (deprecated_pc_in_call_dummy_after_text_end): Rename
386 pc_in_call_dummy_after_text_end.
387 (deprecated_pc_in_call_dummy_on_stack): Rename
388 pc_in_call_dummy_on_stack.
389 (deprecated_pc_in_call_dummy_at_entry_point): Rename
390 pc_in_call_dummy_at_entry_point.
391 * m68k-tdep.c (m68k_gdbarch_init): Update.
392 * s390-tdep.c (s390_gdbarch_init): Update.
393 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
394 * vax-tdep.c (vax_gdbarch_init): Update.
395 * sparc-tdep.c (sparc_gdbarch_init): Update.
396 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
397 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
398 * i386-tdep.c (i386_gdbarch_init): Update.
399 * frv-tdep.c (frv_gdbarch_init): Update.
400 * cris-tdep.c (cris_gdbarch_init): Update.
401 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
402 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
403 (deprecated_pc_in_call_dummy_after_text_end)
404 (deprecated_pc_in_call_dummy_on_stack)
405 (deprecated_pc_in_call_dummy_at_entry_point): Update.
406 * alpha-tdep.c (alpha_gdbarch_init): Update.
408 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
410 * acconfig.h (HAVE_PREAD64): Add.
411 * configure.in: Check for pread64.
412 * config.in: Regenerated.
413 * configure: Regenerated.
414 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
415 * linux-proc.c (linux_proc_xfer_memory): New function.
416 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
418 2002-11-25 David Carlton <carlton@math.stanford.edu>
420 * dwarf2read.c (scan_partial_symbols): Descend into namespace
423 2002-11-25 Andrew Cagney <ac131313@redhat.com>
425 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
426 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
428 2002-11-25 Jim Blandy <jimb@redhat.com>
430 * symfile.c (init_objfile_sect_indices): New function.
431 (default_symfile_offsets): Move the section-index-initializing
432 stuff into init_objfile_sect_indices, and call that.
434 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
435 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
437 * symfile.c (syms_from_objfile): Adjust indentation.
439 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
440 || info_verbose isn't true.
442 2002-11-24 Andrew Cagney <ac131313@redhat.com>
444 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
445 default to get_frame_base.
446 * gdbarch.h, gdbarch.c: Regenerate.
447 * arch-utils.c (default_frame_address): Delete function.
448 * arch-utils.h (default_frame_address): Delete declaration
450 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
452 * varobj.c (find_frame_addr_in_frame_chain):
453 Use get_frame_base instead of FRAME_FP,
456 2002-11-19 Andrew Cagney <ac131313@redhat.com>
458 * frame.h (FRAME_FP): Delete macro.
459 (get_frame_base): New function declaration.
460 * frame.c (get_frame_base): New function.
461 (get_frame_id): Use ->frame.
462 (frame_find_by_id): Rewrite to use get_frame_id.
463 * blockframe.c: Use get_frame_base instead of FRAME_FP.
464 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
465 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
466 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
467 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
468 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
469 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
471 2002-11-24 Andrew Cagney <ac131313@redhat.com>
473 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
475 2002-11-24 Andrew Cagney <ac131313@redhat.com>
477 * frame.c (set_unwind_by_pc): Revert change below, use
479 (get_prev_frame): Ditto.
481 2002-11-24 Andrew Cagney <ac131313@redhat.com>
483 * dummy-frame.c (pc_in_dummy_frame): New function.
484 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
485 (find_dummy_frame): Update comment.
486 (generic_pop_current_frame): Use get_frame_type.
487 * dummy-frame.h (pc_in_dummy_frame): Declare.
488 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
489 (create_new_frame): Use pc_in_dummy_frame.
490 (get_prev_frame): Use pc_in_dummy_frame.
491 (frame_saved_regs_register_unwind): Use get_prev_frame.
492 (deprecated_generic_get_saved_register): Use get_prev_frame.
494 2002-11-23 Andrew Cagney <ac131313@redhat.com>
496 * blockframe.c (find_frame_addr_in_frame_chain): Move function
498 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
499 (varobj_create): Note that frame ID should be used.
500 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
502 2002-11-23 Andrew Cagney <ac131313@redhat.com>
504 * breakpoint.c: Include "gdb_assert.h".
505 (deprecated_frame_in_dummy): Assert that generic dummy frames are
507 * Makefile.in (breakpoint.o): Update dependencies.
508 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
509 deprecated_frame_in_dummy.
510 * stack.c (print_frame_info_base): Ditto.
512 (print_frame_info_base): Ditto. Delete dead code.
514 2002-11-23 Andreas Schwab <schwab@suse.de>
516 * Makefile.in (m68k_tdep_h): Define.
517 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
518 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
519 * m68k-tdep.c: Move register number enum ...
520 * m68k-tdep.h: ... to this new file and rename the constants from
521 E_* to M68K_*. All uses changed.
522 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
523 * abug-rom.c: Include "m68k-tdep.h". Use
524 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
525 * cpu32bug-rom.c: Likewise.
526 * dbug-rom.c: Likewise.
527 * m68k-tdep.c: Likewise.
528 * m68klinux-nat.c: Likewise.
529 * remote-est.c: Likewise.
530 * rom68k-rom.c: Likewise.
531 * config/m68k/tm-linux.h: Likewise.
533 2002-11-23 Andrew Cagney <ac131313@redhat.com>
535 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
536 dummy frame initialization code.
537 * mips-tdep.c (mips_gdbarch_init): Ditto.
539 2002-11-22 Christopher Faylor <cgf@redhat.com>
541 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
544 2002-11-22 Andrew Cagney <ac131313@redhat.com>
546 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
547 to default_frame_address.
548 * gdbarch.h, gdbarch.c: Re-generate.
550 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
551 or frame_locals_address to default_frame_address.
552 * m68k-tdep.c (m68k_gdbarch_init): Update.
553 * i386-tdep.c (i386_gdbarch_init): Update.
554 * frv-tdep.c (frv_gdbarch_init): Update.
555 * sh-tdep.c (sh_gdbarch_init): Update.
556 * v850-tdep.c (v850_gdbarch_init): Update.
557 * sparc-tdep.c (sparc_gdbarch_init): Update.
558 * mips-tdep.c (mips_gdbarch_init): Update.
559 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
560 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
561 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
563 * cris-tdep.c (cris_frame_args_address): Delete function.
564 (cris_frame_locals_address): Delete function.
565 (cris_gdbarch_init): Do not set frame_args_address or
566 frame_locals_address.
568 2002-11-22 Michael Snyder <msnyder@redhat.com>
570 * thread-db.c (thread_db_load): Tell the user what's going on
571 if dlopen fails on libthread_db.
573 2002-11-23 Andreas Schwab <schwab@suse.de>
575 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
576 invariant return values.
578 2002-11-22 Andreas Schwab <schwab@suse.de>
580 * valops.c (value_slice): Move declaration of `offset' to avoid
583 2002-11-22 Christopher Faylor <cgf@redhat.com>
585 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
586 (struct so_stuff): Add end_addr field.
587 (register_loaded_dll): Calculate and store end address of loaded dll.
588 (solib_address): New function.
589 (child_solib_loaded_library_pathname): Pass carefully constructed
590 section info to safe_symbol_file_add rather than ignoring it.
591 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
593 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
594 (child_create_inferior): Fix a compiler warning.
595 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
596 (solib_address): Declare new function.
598 2002-11-22 Andreas Schwab <schwab@suse.de>
600 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
603 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
605 * maint.c (_initialize_maint_cmds): Fix typo. From
606 Francesco Potorti` <pot@gnu.org>.
608 2002-11-21 Andrew Cagney <cagney@redhat.com>
610 * mips-tdep.c (mips_dump_tdep): Delete references to
611 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
612 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
613 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
614 * printcmd.c (build_address_symbolic): Delete calls to
615 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
616 (address_info): Ditto.
619 2002-11-19 Klee Dienes <kdienes@apple.com>
620 Adam Fedor <fedor@gnu.org>
622 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
623 the ability to explicitly specify the quote characters and word
624 break characters; if NULL is specified for either, use the old
625 behavior of using the characters used by the completer.
626 (skip_chars): New function. Convenience wrapper around
627 skip_quoted_chars to provide the original skip_chars behavior.
628 * completer.h (skip_quoted_chars): Add prototype.
630 2002-11-19 Andrew Cagney <ac131313@redhat.com>
632 Problems reported by Paul Eggert.
633 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
635 2002-11-19 Andreas Schwab <schwab@suse.de>
637 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
638 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
639 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
640 (m68k_linux_frame_saved_pc): Move to ...
641 * m68klinux-tdep.c: ... here. New file.
642 * Makefile.in (m68klinux-tdep.o): Add dependencies.
643 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
645 2002-11-19 Adam Fedor <fedor@gnu.org>
647 * objc-exp.y: Revert to old skip_quoted usage.
649 2002-11-19 Adam Fedor <fedor@gnu.org>
651 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
652 (objc_lang_h): Define.
653 (YYFILES): Add objc-exp.tab.c.
654 (local-maintainer-clean): Remove objc-exp.tab.c.
655 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
657 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
659 * p-exp.y (typecast rule): Add automatic dereference of
660 pascal classes if needed.
661 (THIS): Set current_type.
662 Automatically dereference pascal classes.
663 (typebase rule): Add ^typebase recognition.
665 2002-11-18 Adam Fedor <fedor@gnu.org>
667 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
668 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
669 (op_name): Handle OP_OBJC_SELF.
670 * Makefile.in (expprint.o): Add additional depends.
672 2002-11-18 Adam Fedor <fedor@gnu.org>
674 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
675 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
676 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
677 * objc-exp.y: Likewise.
679 2002-11-18 Adam Fedor <fedor@gnu.org>
681 * gdb/parser-defs.h: (struct objc_class_str): New structure
682 for parsing ObjC classes.
684 2002-11-18 Andrew Cagney <ac131313@redhat.com>
686 * stack.c (frame_relative_level): Copy function from here ...
687 * frame.c (frame_relative_level): ...to here.
689 2002-11-18 Andrew Cagney <ac131313@redhat.com>
691 * frame.h (enum frame_type): Define.
692 (get_frame_type): Declare.
693 (struct frame_info): Add field `type'. Delete field
694 signal_handler_caller.
695 (deprecated_set_frame_signal_handler_caller): Declare.
696 * frame.c (get_frame_type): New function.
697 (deprecated_set_frame_type): New function.
698 (create_new_frame): Set the frame's type.
699 (get_prev_frame): Similar.
700 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
701 * s390-tdep.c: Ditto.
702 * m68klinux-nat.c: Ditto.
703 * ns32k-tdep.c: Ditto.
704 * x86-64-linux-tdep.c: Ditto.
706 * rs6000-tdep.c: Ditto.
707 * ppc-linux-tdep.c: Ditto.
708 * i386-interix-tdep.c: Ditto.
709 * mips-tdep.c: Ditto.
710 * m68k-tdep.c: Ditto.
711 * hppa-tdep.c: Ditto.
712 * ia64-tdep.c: Ditto.
713 * cris-tdep.c: Ditto.
715 * alpha-tdep.c: Ditto.
716 * i386-tdep.c: Ditto.
719 * blockframe.c: Update.
720 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
721 deprecated_set_frame_type instead of signal_handler_caller.
722 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
723 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
724 * breakpoint.h: Delete FIXME suggesting get_frame_type.
726 2002-11-18 Klee Dienes <kdienes@apple.com>
728 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
730 2002-11-18 Klee Dienes <kdienes@apple.com>
732 * buildsym.c (pop_context): Add comment.
734 2002-11-18 Klee Dienes <kdienes@apple.com>
736 * buildsym.h (pop_context): Convert to function, defined in
738 * buildsym.c: Include gdb_assert.h.
739 (pop_context): Implement as C function. Add check for stack
741 * dbxread.c (process_one_symbol): Complain and stop processing
742 that symbol if we are already at the top of the context stack for
743 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
744 when processing N_RBRAC.
746 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
748 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
750 (struct target_waitstatus): Add opaque definition.
751 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
752 * exec.c (init_exec_ops): Likewise.
753 * fork-child.c (clone_and_follow_inferior): Remove.
754 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
755 * inferior.h (clone_and_follow_inferior): Remove prototype.
756 * infrun.c (follow_fork_mode_both): Remove.
757 (follow_fork_mode_kind_names): Remove commented out "both".
758 (follow_inferior_fork): Remove follow_fork_mode_both support.
759 * inftarg.c (child_clone_and_follow_inferior): Remove.
760 (child_post_follow_inferior_by_clone): Remove.
761 (init_child_ops): Don't set to_clone_and_follow_inferior
762 or to_post_follow_inferior_by_clone.
763 * target.c (default_clone_and_follow_inferior): Remove.
764 (cleanup_target): Don't set to_clone_and_follow_inferior
765 or to_post_follow_inferior_by_clone.
766 (find_default_clone_and_follow_inferior): Remove.
767 (init_dummy_target): Don't set to_clone_and_follow_inferior.
768 (debug_to_clone_and_follow_inferior): Remove.
769 (debug_to_post_follow_inferior_by_clone): Remove.
770 (setup_target_debug): Don't set to_clone_and_follow_inferior
771 or to_post_follow_inferior_by_clone.
772 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
773 and to_post_follow_inferior_by_clone.
774 (child_clone_and_follow_inferior): Remove prototype.
775 (child_post_follow_inferior_by_clone): Remove prototype.
776 (target_clone_and_follow_inferior): Remove macro.
777 (target_post_follow_inferior_by_clone): Remove macro.
778 (find_default_clone_and_follow_inferior): Remove prototype.
780 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
782 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
783 inferior_has_vforked, and inferior_has_execd instead of
784 target_has_forked, target_has_vforked, and target_has_execd.
785 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
786 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
787 (CHILD_WAIT): Define.
788 (child_wait): Add prototype.
789 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
791 (hpux_has_vforked): Likewise, from child_has_vforked.
792 (hpux_has_execd): Likewise, from child_has_execd.
793 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
794 (not_same_real_pid, child_wait): New, copied from inftarg.c.
795 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
796 and hpux_has_syscall_event instead of the target hooks.
797 * infrun.c (inferior_has_forked, inferior_has_vforked)
798 (inferior_has_execd): New functions.
799 * inftarg.c (not_same_real_pid): Remove.
800 (child_wait): Remove references to not_same_real_pid,
801 target_has_forked, target_has_vforked, target_has_execd,
802 and target_has_syscall_event.
803 (child_has_forked, child_has_vforked, child_has_execd)
804 (child_has_syscall_event): Remove.
805 (init_child_ops): Remove references to child_has_forked,
806 child_has_vforked, child_has_execd, and child_has_syscall_event.
807 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
808 (hpux_has_vforked): Likewise, from child_has_vforked.
809 (hpux_has_execd): Likewise, from child_has_execd.
810 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
811 * target.c (cleanup_target): Remove references to
812 to_has_forked, to_has_vforked, to_has_execd, and
813 to_has_syscall_event.
814 (update_current_target): Likewise.
815 (setup_target_debug): Likewise.
816 (debug_to_has_forked): Remove.
817 (debug_to_has_vforked): Remove.
818 (debug_to_has_execd): Remove.
819 (debug_to_has_syscall_event): Remove.
820 * target.h (struct target_ops): Remove to_has_forked.
821 to_has_vforked, to_has_execd, and to_has_syscall_event.
822 (child_has_forked, child_has_vforked, child_has_execd)
823 (child_has_syscall_event): Remove prototypes.
824 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
826 (target_has_forked, target_has_vforked, target_has_execd)
827 (target_has_syscall_event): Remove macros.
829 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
831 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
832 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
833 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
834 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
835 * target.c (cleanup_target): Remove reference to
836 to_can_follow_vfork_prior_to_exec.
837 (update_current_target): Likewise.
838 (debug_to_can_follow_vfork_prior_to_exec): Remove.
839 (setup_target_debug): Remove reference to
840 to_can_follow_vfork_prior_to_exec.
841 * target.h (struct target_ops): Remove
842 to_can_follow_vfork_prior_to_exec.
843 (child_can_follow_vfork_prior_to_exec): Remove prototype.
844 (target_can_follow_vfork_prior_to_exec): Remove definition.
845 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
847 * infrun.c (follow_vfork_when_exec): Remove.
848 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
849 (follow_exec): Likewise.
850 (handle_inferior_event): Likewise.
851 (keep_going): Likewise.
853 2002-11-15 Andrew Cagney <cagney@redhat.com>
855 * frame.c (generic_unwind_get_saved_register): Make static.
856 * frame.h (generic_unwind_get_saved_register): Delete declaration.
857 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
858 defaults to generic_unwind_get_saved_register.
859 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
860 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
861 * frv-tdep.c (frv_gdbarch_init): Ditto.
862 * i386-tdep.c (i386_gdbarch_init): Ditto.
863 * s390-tdep.c (s390_gdbarch_init): Ditto.
864 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
865 * v850-tdep.c (v850_gdbarch_init): Ditto.
866 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
867 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
868 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
870 2002-11-15 Andrew Cagney <cagney@redhat.com>
872 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
875 2002-11-15 Andrew Cagney <cagney@redhat.com>
877 * frame.h (sigtramp_saved_pc): Delete declaration.
878 * blockframe.c (sigtramp_saved_pc): Delete function.
879 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
880 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
881 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
882 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
884 2002-11-15 Andrew Cagney <ac131313@redhat.com>
886 * frame.c (frame_pc_unwind): New function.
887 (frame_saved_regs_pc_unwind): New function.
888 (frame_register_unwind): Pass unwind_cache instead of
889 register_unwind_cache.
890 (set_unwind_by_pc): Add unwind_pc parameter, set.
891 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
892 (get_prev_frame): Ditto.
893 * frame.h (frame_pc_unwind_ftype): Declare.
894 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
895 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
896 (frame_pc_unwind): Declare.
897 * dummy-frame.c (dummy_frame_pc_unwind): New function.
898 (struct dummy_frame): Add comment mentioning that values are for
900 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
901 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
902 (generic_file_frame_chain_valid): Ditto.
903 * stack.c (frame_info): Ditto.
905 2002-11-15 David Carlton <carlton@math.stanford.edu>
907 * linespec.c (locate_first_half): New function.
908 (decode_line_1): Move code into locate_first_half.
910 2002-11-15 Andrew Cagney <ac131313@redhat.com>
912 * complaints.h: Add comment explaining how to eliminate a
913 deprecated_complain call.
914 * complaints.h: Fix spelling errors.
916 2002-11-15 David Carlton <carlton@math.stanford.edu>
918 * printcmd.c: Remove #include "disasm.h".
920 2002-11-14 Andrew Cagney <ac131313@redhat.com>
922 * frame.h: Move the most relevant interface functions to the start
925 2002-11-14 Andrew Cagney <ac131313@redhat.com>
927 * regcache.h (deprecated_registers): Rename registers.
928 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
929 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
930 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
931 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
932 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
933 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
934 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
935 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
936 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
937 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
938 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
941 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
943 * utils.c (gdb_realpath): Add comment mentioning realpath with a
946 2002-11-13 Andrew Cagney <cagney@redhat.com>
948 * regcache.h (deprecated_read_register_bytes): Rename
950 (deprecated_write_register_bytes): Rename write_register_bytes.
951 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
952 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
953 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
954 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
955 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
956 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
957 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
958 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
959 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
960 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
961 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
962 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
963 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
964 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
966 2002-11-13 Jim Blandy <jimb@redhat.com>
968 * findvar.c (read_var_value): Doc fix.
970 2002-11-13 Andrew Cagney <cagney@redhat.com>
972 * regcache.c (struct regcache): Replace passthough_p with
974 (regcache_xmalloc): Initialize readonly_p.
975 (build_regcache): Initialize readonly_p.
976 (regcache_save): New function.
977 (regcache_restore): New function.
978 (regcache_cpy): Re-implement using regcache_save and
980 (regcache_raw_read): Update.
981 (regcache_cooked_read): When a read-only cache, checked for cached
982 pseudo register values.
983 (regcache_raw_write): Assert that the cache is not read-only.
984 Remove code handling a non-passthrough cache.
985 * regcache.h (regcache_save): Declare.
986 (regcache_restore): Declare.
988 2002-11-13 Andrew Cagney <cagney@redhat.com>
990 * regcache.c (struct regcache_descr): Add fields
991 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
992 (init_legacy_regcache_descr): Compute the size of a cooked
993 register cache and then assign that to sizeof_raw_registers. Set
994 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
995 (init_legacy_regcache_descr): Ditto.
997 2002-11-13 Andrew Cagney <cagney@redhat.com>
999 * regcache.c (register_buffer): Move to near start of file, update
1001 (regcache_raw_read): Use.
1002 (regcache_raw_write): Use.
1003 (struct regcache): Rename raw_registers to registers and
1004 raw_register_valid_p to register_valid_p.
1005 (regcache_xmalloc): Update.
1006 (regcache_xfree): Update.
1007 (register_buffer): Update.
1008 (regcache_cpy): Update.
1009 (regcache_cpy_no_passthrough): Update.
1010 (regcache_valid_p): Update.
1011 (deprecated_grub_regcache_for_registers): Update.
1012 (deprecated_grub_regcache_for_register_valid): Update.
1013 (set_register_cached): Update.
1014 (regcache_raw_write): Update.
1016 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1018 * p-exp.y (name_not_typename): Use copy_name to
1019 set current_type variable for fields of THIS.
1021 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1023 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1024 * monitor.c (init_base_monitor_ops): Likewise.
1025 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1026 * remote-array.c (init_array_ops): Likewise.
1027 * remote-e7000.c (init_e7000_ops): Likewise.
1028 * remote-es.c (init_es1800_ops): Likewise.
1029 (init_es1800_child_ops): Likewise.
1030 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1031 * remote-sim.c (init_gdbsim_ops): Likewise.
1032 * remote-st.c (init_st2000_ops): Likewise.
1033 * sol-thread.c (init_sol_core_ops): Likewise.
1034 (init_sol_thread_ops): Likewise.
1035 * v850ice.c (init_850ice_ops): Likewise.
1036 * win32-nat.c (init_child_ops): Likewise.
1037 * wince.c (init_child_ops): Likewise.
1039 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1041 * utils.c (gdb_realpath): Make rp a constant pointer.
1043 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1045 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1046 a constant buffer; cannonicalize_file_name(); realpath() with a
1047 pathconf() defined buffer, xstrdup().
1049 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1051 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1052 to hang2.C; hang3.c to hang3.C.
1054 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1056 * findvar.c (read_var_value): Reenable TLS code.
1058 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1059 Jim Blandy <jimb@redhat.com>
1061 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1062 * target.c (update_current_target): Add
1063 to_get_thread_local_address.
1064 * target.h (to_get_thread_local_address): Export.
1065 (target_get_thread_local_address): Define.
1066 (target_get_thread_local_address_p): Define.
1067 * thread-db.c: Include solib-svr4.h.
1068 (td_thr_tls_get_addr_p): Define.
1069 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1070 (thread_db_get_thread_local_address): New function.
1071 (init_thread_db_ops): Initialize to_get_thread_local_address.
1072 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1073 * configure: Regenerate.
1074 * config.in: Regenerate.
1076 2002-11-11 David Carlton <carlton@math.stanford.edu>
1078 * linespec.c (set_flags): New function.
1079 (decode_line_1): Move code into set_flags.
1081 2002-11-11 David Carlton <carlton@math.stanford.edu>
1083 * linespec.c (decode_line_1): Move chunks of code to separate
1085 (initialize_defaults): New function.
1086 (decode_indirect): New function.
1088 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1090 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1091 instead of void_code_ptr.
1092 (sigtramp_saved_pc): Ditto.
1094 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1097 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1099 * gdbtypes.h (struct main_type): Move artificial flag out of
1100 loc. New member of ``struct field'' named static_kind. Reduce
1101 overloaded meaning of bitsize.
1102 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1103 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1104 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1106 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1108 (template_to_fixed_record_type, template_to_static_fixed_type)
1109 (to_record_with_fixed_variant_part): Likewise.
1110 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1111 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1112 * dwarfread.c (struct_type, enum_type): Likewise.
1113 * hpread.c (hpread_read_enum_type)
1114 (hpread_read_function_type, hpread_read_doc_function_type)
1115 (hpread_read_struct_type): Likewise.
1116 * mdebugread.c (parse_symbol): Likewise.
1118 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1120 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1121 * stack.c (print_frame_info_base): Update.
1122 (print_frame_info_base, frame_info): Update.
1123 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1124 (sparc_frame_saved_pc): Update.
1125 * ada-lang.c (find_printable_frame): Update.
1126 * breakpoint.c (deprecated_frame_in_dummy): Update.
1128 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1130 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1132 (regmap): Extend to cover all registers.
1133 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1134 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1136 (fetch_register, sore_register): Simplify.
1137 (old_fetch_inferior_registers, old_store_inferior_registers):
1139 (cannot_fetch_register, cannot_store_register): Change
1140 implementation to use regmap array to decide which registers
1141 cannot be fetched/stored. This removes $orig_eax from the
1142 registers that cannot be fetched/stored.
1143 (fetch_inferior_registers): Call fetch_register directly instead
1144 of calling old_fetch_inferior_registers.
1145 (store_inferior_registers): Call store_register directly instead
1146 of calling old_store_inferior_registers.
1147 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1148 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1149 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1151 2002-11-09 Klee Dienes <kdienes@apple.com>
1153 * i387-tdep.c (i387_supply_register): When called with NULL as a
1154 buffer, mark the register as not provided (to mirror the behavior
1155 of supply_register).
1156 (i387_supply_fxsave): Ditto.
1157 (i387_supply_fsave): Ditto (inherits the behavior from
1158 i387_supply_register).
1160 2002-11-09 Klee Dienes <kdienes@apple.com>
1162 * blockframe.c (sigtramp_saved_pc): Use
1163 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1164 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1165 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1167 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1169 * frame.c (get_prev_frame): Test prev_p to identify a previously
1170 unwound frame. Initialize prev_p.
1171 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1174 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1176 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1177 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1178 more comments. Zap dead code.
1180 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1182 * infcmd.c (print_vector_info, print_float_info): Move code that
1183 checks whether the target has any registers and whether there is a
1184 selected frame up, such that it is also used if a target provides
1185 multi-arch definitions of these functions.
1187 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1189 * Makefile.in (DESTDIR): Define.
1190 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1193 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1194 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1196 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1198 * i386-linux-tdep.c: Include "reggroups.h".
1199 (i386_linux_register_reggroup_p): New function.
1200 (i386_linux_init_abi): Set register_reggroup_p to
1201 i386_linux_register_reggroup_p.
1202 * i386-tdep.h (i386_register_reggroup_p): Declare.
1203 * i386-tdep.c: Include "reggroups.h".
1204 (i386_init_reggroups): New function.
1205 (i386_add_reggroups): New function.
1206 (i386_register_reggroup_p): New function.
1207 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1208 (_initialize_i386_tdep): Call i386_init_reggroups.
1209 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1212 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1214 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1215 request that's available in *BSD.
1217 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1219 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1222 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1224 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1225 * dummy-frame.c (find_dummy_frame): Rename
1226 generic_find_dummy_frame, make static. Return the dummy frame
1227 instead of the regcache.
1228 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1229 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1230 (dummy_frame_register_unwind): Rename
1231 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1232 * dummy-frame.h (dummy_frame_register_unwind): Rename
1233 generic_call_dummy_register_unwind.
1235 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1237 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1238 except the inclusion of "i386/tm-i386.h", to...
1239 * config/i386/nm-i386v42mp.h: ...here.
1240 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1242 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1244 * Makefile.in (frame.o): Update dependencies.
1245 * blockframe.c (current_frame, frame_obstack_alloc)
1246 (frame_saved_regs_zalloc, get_current_frame)
1247 (set_current_frame, create_new_frame)
1248 (set_unwind_by_pc, get_next_frame)
1249 (flush_cached_frames, reinit_frame_cache)
1250 (frame_saved_regs_register_unwind)
1251 (deprecated_generic_get_saved_register)
1252 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1253 (_initialize_blockframe): Move frame code from here...
1254 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1255 "annotate.h" and "dummy-frame.h".
1256 (_initialize_frame): New function.
1258 2002-11-08 Jim Blandy <jimb@redhat.com>
1260 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1261 when we finish a function a context.
1262 * buildsym.h (outermost_context_p): New macro.
1263 (Bug analyzed by David Edelsohn.)
1265 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1267 * blockframe.c: Include "dummy-frame.h".
1268 (struct dummy_frame, dummy_frame_stack)
1269 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1270 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1271 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1272 (generic_save_call_dummy_addr, generic_pop_current_frame)
1273 (generic_pop_dummy_frame, generic_fix_call_dummy)
1274 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1275 dummy frame code from here...
1276 * dummy-frame.c: ...to here. New file.
1277 * dummy-frame.h: New file.
1278 (generic_call_dummy_register_unwind): Declare.
1279 (generic_find_dummy_frame): Declare.
1280 * Makefile.in (SFILES): Add dummy-frame.c.
1281 (dummy-frame.o): Specify dependencies.
1282 (dummy_frame_h): Define.
1283 (COMMON_OBS): Add dummy-frame.o.
1284 (blockframe.o): Update dependencies.
1286 2002-11-08 Jim Blandy <jimb@redhat.com>
1288 * dwarf2read.c (read_func_scope): Restore local_symbols and
1289 param_symbols after we finish the function context. (Based on a
1290 patch from David Edelsohn.)
1292 2002-11-08 David Carlton <carlton@math.stanford.edu>
1294 * linespec.c (symbol_found): New function.
1295 (minsym_found): New function.
1296 (decode_line_1): Separate out some code into separate functions.
1298 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1300 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1301 the benefit of the interix target.
1302 * i386-tdep.h (i386_frameless_signal_p): Declare.
1304 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1306 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1307 declaration that snuck in from change below.
1309 2002-11-06 Andrew Cagney <cagney@redhat.com>
1311 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1313 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1314 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1315 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1316 (i386_mxcsr_regnum_p): new function. Use instead of
1318 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1319 (i386_sse_regnum_p): Declare.
1320 (i386_mxcsr_regnum_p): Declare.
1321 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1322 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1323 (IS_FP_REGNUM): Update definition.
1324 (IS_FPU_CTRL_REGNUM): Update definition..
1325 (IS_SSE_REGNUM): Update definition..
1326 * i386v-nat.c (register_u_addr): Update.
1327 * go32-nat.c (fetch_register): Update.
1328 (store_register): Update.
1330 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1332 Preparation work to convert the hppa targets to multiarch partial.
1334 * hppa-tdep.c: Add new functions replacing macro bodies from
1335 config/pa/tm-hppa.h. These function will be used to initialize
1336 the gdbarch structure. Import some comments from tm-hppa.h,
1337 and place them where appropriate, to avoid loosing them when
1338 we cleanup this file.
1339 (hppa_reg_struct_has_addr): New function.
1340 (hppa_inner_than): New function.
1341 (hppa_stack_align): New function.
1342 (hppa_pc_requires_run_before_use): New function.
1343 (hppa_instruction_nullified): New function.
1344 (hppa_register_byte): New function.
1345 (hppa_register_virtual_type): New function.
1346 (hppa_store_struct_return): New function.
1347 (hppa_cannot_store_register): New function.
1348 (hppa_frame_args_address): New function.
1349 (hppa_frame_locals_address): New function.
1350 (hppa_smash_text_address): New function.
1351 (hppa_coerce_float_to_double): New function. Requires the inclusion
1354 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1356 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1357 gdbarch-eligible macro to a call to the new associated function
1358 created in hppa-tdep.c.
1359 (INNER_THAN): Likewise.
1360 (STACK_ALIGN): Likewise.
1361 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1362 (INSTRUCTION_NULLIFIED): Likewise.
1363 (REGISTER_BYTE): Likewise.
1364 (REGISTER_VIRTUAL_TYPE): Likewise.
1365 (STORE_STRUCT_RETURN): Likewise.
1366 (CANNOT_STORE_REGISTER): Likewise.
1367 (FRAME_ARGS_ADDRESS): Likewise.
1368 (FRAME_LOCALS_ADDRESS): Likewise.
1369 (SMASH_TEXT_ADDRESS): Likewise.
1370 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1371 (ABOUT_TO_RETURN): Delete, as no longer used.
1373 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1375 * printcmd.c (disassemble_command): Remove obsolete function.
1376 (_initialize_printcmd): Do not create disassemble command here.
1377 * cli/cli-cmds.c (disassemble_command): New function. Implements
1378 disassemble command.
1379 (init_cli_cmds): Create disassemble command here instead.
1381 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1383 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1385 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1387 * regcache.h (regcache_cooked_read_using_offset_hack)
1388 (regcache_cooked_write_using_offset_hack): Delete declarations.
1389 (register_changed): Delete declaration.
1390 * regcache.c (regcache_cooked_read_using_offset_hack)
1391 (regcache_cooked_write_using_offset_hack): Delete functions.
1392 (cooked_xfer_using_offset_hack): Delete function.
1393 (register_changed): Delete function.
1395 2002-11-07 Jim Blandy <jimb@redhat.com>
1397 * macroscope.c: #include "complaints.h".
1398 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1399 but not in the macro table.
1400 * Makefile.in (macroscope.o): Record dependency.
1402 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1404 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1406 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1408 * regcache.c (deprecated_registers_fetched): Update.
1409 * regcache.h (deprecated_registers_fetched): Rename
1411 * remote-vxsparc.c (vx_read_register): Update.
1412 * remote-vxmips.c (vx_read_register): Update.
1413 * remote-vx68.c (vx_read_register): Update.
1414 * irix5-nat.c (fetch_core_registers): Update.
1415 * mipsm3-nat.c (fetch_inferior_registers): Update.
1416 * sun3-nat.c (fetch_inferior_registers): Update.
1417 * symm-nat.c (fetch_inferior_registers): Update.
1418 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1419 (fetch_core_registers): Update.
1420 (fetch_kcore_registers): Update.
1421 * mips-nat.c (fetch_inferior_registers): Update.
1422 * corelow.c (get_core_registers): Update.
1423 * a68v-nat.c (fetch_inferior_registers): Update.
1425 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1427 Put in place the framework necessary for multiarching the hppa targets.
1428 * hppa-tdep.c (hppa_gdbarch_init): New function.
1429 (hppa_dump_tdep): New function.
1430 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1431 tdep structure dumper.
1432 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1433 until the multi-arching conversion has partially been completed.
1435 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1437 * valops.c (value_assign): Merge lval_register case into
1438 lval_reg_frame_relative. Use frame_register and
1439 regcache_cooked_write instead of get_saved_register and
1440 write_register_bytes. After flushing the register cache, try to
1441 re-select the selected frame.
1443 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1445 * regcache.h (deprecated_register_valid): Rename register_valid.
1446 * regcache.c: Update.
1447 * ia64-aix-nat.c: Update.
1448 * i386gnu-nat.c: Update.
1449 * alpha-nat.c: Update.
1450 * sparc-nat.c: Update.
1451 * lynx-nat.c: Update.
1452 * remote-mips.c: Update.
1454 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1456 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1457 to end of file, to be more consistent with the pratice followed
1460 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1462 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1463 (print_float_info): Print registers in float_reggroup.
1464 (print_vector_info): Print registers in vector_reggroup.
1465 (default_print_registers_info): When all, print registers in
1466 all_reggroup. Otherwize, print registers in general_reggroup.
1467 (registers_info): Rewrite. Add support for register groups.
1470 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1472 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1474 (symtab_symbol_info): Remove eons old ifdeffed out code.
1475 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1478 2002-11-06 Theodore A. Roth <troth@openavr.org>
1480 * c-exp.y: Add missing semi-colons.
1481 * f-exp.y: Add missing semi-colons.
1482 * m2-exp.y: Add missing semi-colons.
1483 * p-exp.y: Add missing semi-colons.
1484 Add empty action to start rule to avoid a type clash error when
1485 building with bison >= 1.50.
1487 2002-11-06 Jim Blandy <jimb@redhat.com>
1489 * macrotab.h (struct macro_source_file): Doc fix.
1491 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1493 * varobj.c (child_exists, cplus_number_of_children): Change
1494 STREQ macro references to strcmp.
1495 (cplus_name_of_child): Change code to handle the fact that
1496 fields are not necessarily contiguous with regards to their
1497 access control. This is a fix for PR gdb/792.
1499 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1501 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1502 * gdbarch.h, gdbarch.c: Regnerate.
1503 * frame.h (frame_register): Declare.
1504 * frame.c (frame_register): New function.
1505 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1506 GET_SAVED_REGISTER, otherwize call
1507 generic_unwind_get_saved_register.
1508 (frame_register_read): Use frame_register instead of
1511 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1513 From Jim Ingham <jingham@apple.com>:
1514 * event-top.c (gdb_disable_readline): New function.
1515 (_initialize_event_loop): Move comment.
1517 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1519 * event-loop.c (start_event_loop): Add comment.
1522 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1524 * infcmd.c (default_print_registers_info): Do not call
1525 PRINT_REGISTER_HOOK.
1527 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1529 * sparc-tdep.c (sparc_print_register_hook): Make static.
1530 (sparc_print_registers_info): New function.
1531 (sparc_do_registers_info): New function.
1532 (sparclet_print_registers_info): New function.
1533 (sparclet_do_registers_info): New function.
1534 (do_sparc_print_registers_info): New function.
1535 (sparc_print_registers): New static function, clone of infcmd.c's
1536 default_print_registers_info.
1537 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1538 (sparclet_do_registers_info): Declare.
1539 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1540 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1542 (sparc_do_registers_info): Declare.
1543 (PRINT_REGISTER_HOOK): Delete macro.
1544 (sparc_print_register_hook): Delete declaration.
1546 2002-11-05 David Carlton <carlton@math.stanford.edu>
1548 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1550 (lookup_symbol_aux_local): New function.
1551 (lookup_symbol_aux_symtabs): New function.
1552 (lookup_symbol_aux_psymtabs): New function.
1554 2002-11-05 David Carlton <carlton@math.stanford.edu>
1556 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1557 previous values of 'objfile' and 'block'.
1559 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1561 * values.c (value_change_enclosing_type): Set
1562 enclosing_type field correctly also for the case where
1563 more memory needs to be allocated.
1565 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1567 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1570 * i387-tdep.c (i387_print_float_info): Replace calls to
1571 register_read and deprecated_read_register_gen with calls to
1572 frame_register_read, and make the necessary adjustments to the
1575 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1577 * gdbarch.sh (register_reggroup_p): Allow default value.
1578 * gdbarch.h, gdbarch.c: Regenerate.
1580 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1582 * regcache.h: Add coment indicating replacements for deprecated
1585 2002-11-02 Andrew Cagney <cagney@redhat.com>
1587 * reggroups.h, reggroups.c: New files.
1588 * regcache.c: Include "reggroups.h".
1589 (enum regcache_dump_what): Add `regcache_dump_groups'.
1590 (regcache_dump): Contract size of the "Type" column. When
1591 specified, dump the register's groups.
1592 (maintenance_print_register_groups): New function.
1593 (_initialize_regcache): Add command `maint print register-groups'.
1594 * Makefile.in (COMMON_OBS): Add reggroups.o
1595 (SFILES): Add reggroups.c.
1596 (reggroups_h): Define.
1597 (regcache.o, gdbarch.o): Update dependencies.
1598 (reggroups.o): Specify dependencies.
1599 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1600 Add opaque declaration for `struct reggroup' in generated .h file.
1601 Include "reggroups.h" in generated .c file.
1602 gdbarch.h, gdbarch.c: Re-generate.
1604 2002-11-02 Andrew Cagney <cagney@redhat.com>
1606 * regcache.h (deprecated_read_register_gen): Rename
1608 (deprecated_write_register_gen): Rename write_register_gen.
1609 * i387-tdep.c: Update.
1610 * x86-64-linux-nat.c: Update
1612 * thread-db.c: Update.
1613 * win32-nat.c: Update.
1614 * mips-tdep.c: Update.
1615 * d10v-tdep.c: Update.
1616 * cris-tdep.c: Update.
1617 * remote-sim.c: Update.
1618 * remote-rdi.c: Update.
1619 * remote-rdp.c: Update.
1622 * blockframe.c: Update.
1623 * x86-64-tdep.c: Update.
1624 * xstormy16-tdep.c: Update.
1625 * sh-tdep.c: Update.
1626 * s390-tdep.c: Update.
1627 * rs6000-tdep.c: Update.
1628 * sparc-tdep.c: Update.
1629 * i386-tdep.c: Update.
1630 * dwarf2cfi.c: Update.
1631 * regcache.c: Update.
1633 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1635 New interix-specific files:
1636 * config/i386/nm-interix.h: New file.
1637 * config/i386/interix.mh: New file.
1638 * config/i386/interix.mt: New file.
1639 * i386-interix-nat.c: New file.
1640 * i386-interix-tdep.c: New file.
1642 2002-11-01 Andrew Cagney <cagney@redhat.com>
1644 * frame.h (deprecated_generic_get_saved_register): Rename
1645 generic_get_saved_register.
1646 * blockframe.c (deprecated_generic_get_saved_register): Update.
1647 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1648 (xstormy16_frame_saved_register): Update.
1649 * sh-tdep.c (sh_gdbarch_init): Update.
1650 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1651 * ia64-tdep.c (ia64_get_saved_register): Update.
1652 * cris-tdep.c (cris_gdbarch_init): Update.
1653 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1654 * arm-tdep.c (arm_gdbarch_init): Update.
1656 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1658 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1660 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1662 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1663 trampolines in sigaction.
1665 2002-10-31 Andrew Cagney <cagney@redhat.com>
1667 * h8300-tdep.c: Include "gdb_assert.h".
1668 (h8300_print_register): Add gdbarch, file and frame parameters.
1669 Use frame_read_unsigned_register to read the register's value.
1670 Use fprintf_filtered to display output.
1671 (h8300_print_registers_info): Replace h8300_do_registers_info.
1672 (h8300_gdbarch_init): Set print_registers_info.
1674 2002-10-31 Andrew Cagney <cagney@redhat.com>
1676 * frame.c (frame_read_unsigned_register): New function.
1677 (frame_read_signed_register): New function.
1678 * frame.h (frame_read_unsigned_register): Declare.
1679 (frame_read_signed_register): Declare.
1681 2002-10-31 Andrew Cagney <cagney@redhat.com>
1683 * h8500-tdep.c (h8500_print_registers_info): New static function,
1684 clone of infcmd.c's default_print_registers_info.
1685 (h8500_do_registers_info): New funtion.
1686 (h8500_print_register_hook): Rename print_register_hook, make
1689 * config/h8500/tm-h8500.h: Update copyright.
1690 (DEPRECATED_DO_REGISTERS_INFO): Define.
1691 (h8500_do_registers_info: Declare.
1692 (PRINT_REGISTER_HOOK): Delete macro.
1693 (print_register_hook): Delete function.
1695 2002-10-31 Andrew Cagney <cagney@redhat.com>
1697 * z8k-tdep.c (z8k_print_register_hook): Make static.
1698 (z8k_print_registers_info): New static function, clone of
1699 infcmd.c's default_print_registers_info.
1700 (z8k_do_registers_info): New function. Wrap
1701 z8k_print_registers_info.
1702 * config/z8k/tm-z8k.h: Update copyright.
1703 (PRINT_REGISTER_HOOK): Delete macro.
1704 (z8k_print_register_hook): Delete declaration.
1705 (DEPRECATED_DO_REGISTERS_INFO): Define.
1706 (z8k_do_registers_info): Declare.
1708 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1710 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1711 as this is already provided by value.h, and was actually causing
1712 a compilation error because of a conflict in parameter type
1713 declaration due to a missing const keyword.
1714 (low_text_segment_addres): Fix a compilation warning.
1716 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1718 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1719 registers without a name.
1720 (mips_linux_cannot_store_register): Don't store registers without
1723 2002-10-28 David Carlton <carlton@math.stanford.edu>
1725 * symtab.c (find_addr_symbol): Delete. (It was already commented
1727 * symtab.h: Delete prototype for find_addr_symbol.
1729 2002-10-26 Andrew Cagney <cagney@redhat.com>
1731 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1733 gdbarch.h, gdbarch.c: Re-generate.
1734 * infcmd.c (default_print_registers_info): Update reference.
1735 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1736 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1737 * sh-tdep.c (sh_gdbarch_init): Ditto.
1738 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1739 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1741 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1743 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1744 cfi_init_extra_frame_info.
1745 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1746 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1748 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1749 target where necessary. Add more comments and remove the ones
1750 that don't provide any useful information.
1752 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1753 deprecated_read_register_dummy with
1754 frame_unwind_unsigned_register.
1756 * i386-tdep.c (i386_extract_struct_value_address): Use
1757 regcache_raw_read_unsigned instead of
1758 regcache_cooked_read_unsigned since we know that the register
1759 we're reading isn't a pseudo register. Rename variable 'val' into
1760 the more descriptive 'addr'.
1762 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1763 (x86_64_push_return_address): Add comment.
1764 (x86_64_pop_frame): Make static.
1765 (examine_argument): Clarify comment.
1766 (x86_64_skip_prologue): Make prolog_expact variable static.
1768 * dwarf2cfi.c: Fix some formatting problems.
1769 (context_cpy, read_encoded_pointer): Clarify comments.
1771 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1772 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1773 i386 target back into x86_64_gdbarch_init. Add some comments and
1774 remove meaningless ones.
1776 2002-10-25 Andrew Cagney <cagney@redhat.com>
1778 * complaints.h (struct deprecated_complaint): Rename `struct
1780 * complaints.c (complain): Update.
1781 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1782 incorrect comment indicating that "symfile.h" was being included
1783 for the `struct complaint' definition.
1784 * remote-vx.c: Update.
1785 * objc-lang.c: Update.
1786 * xcoffread.c: Update.
1788 * mdebugread.c: Update.
1789 * stabsread.c: Update.
1790 * dwarf2read.c: Update.
1791 * dwarfread.c: Update.
1792 * elfread.c: Update.
1793 * coffread.c: Update.
1794 * stabsread.h: Update.
1795 * dbxread.c: Update.
1796 * buildsym.c: Update.
1797 * gdbtypes.c: Update.
1798 * macrotab.c: Update.
1800 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1802 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1803 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1804 (x86_64_init_abi): ...new function.
1806 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1807 * i386v-nat.c: Include "i386-tdep.h".
1809 2002-10-25 Andrew Cagney <cagney@redhat.com>
1811 * gdbtypes.c (address_space_name_to_int): Update.
1812 (address_space_int_to_name): Update.
1813 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1814 multi-arch predicate.
1815 (address_class_name_to_type_flags): Ditto.
1816 * gdbarch.h, gdbarch.c: Re-generate.
1818 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1820 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1822 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1824 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1826 * symtab.h (INIT_SAL): Delete macro.
1828 * symtab.c (init_sal): New function.
1830 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1831 to init_sal function call.
1832 (find_sal_from_funcs_and_line): Ditto.
1833 (all_sals_for_line): Ditto.
1834 * breakpoint.c (create_internal_breakpoint): Ditto.
1835 (create_fork_vfork_event_catchpoint): Ditto.
1836 (create_exec_event_catchpoint): Ditto.
1837 (parse_breakpoint_sals): Ditto.
1838 (watch_command_1): Ditto.
1839 (handle_gnu_4_16_catch_command): Ditto.
1840 (clear_command): Ditto.
1841 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1842 * infcmd.c (run_stack_dummy): Ditto.
1843 * infrun.c (process_event_stop_test): Ditto.
1844 (check_sigtramp2): Ditto.
1845 (step_over_function): Ditto.
1846 * linespec.c (decode_line_2): Ditto.
1847 (decode_line_1): Ditto.
1848 * source.c (line_info): Ditto.
1849 * symtab.c (find_pc_sect_line): Ditto.
1851 2002-10-24 Michal Ludvig <mludvig@suse.cz>
1853 * dwarf2cfi.c (struct context)
1854 (struct context_reg): Moved to dwarf2cfi.h
1855 (context_alloc, frame_state_alloc, context_cpy):
1856 Made extern instead of static, removed prototypes.
1857 * dwarf2cfi.h (struct context)
1858 (struct context_reg): New, moved from dwarf2cfi.c
1859 (context_alloc, frame_state_alloc, context_cpy):
1861 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1862 Changed from static to extern.
1863 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1864 (LINUX_SIGCONTEXT_FP_OFFSET)
1865 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1866 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1867 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1868 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1869 set_gdbarch_*() calls now use x86-64 specific functions
1870 instead of DWARF2 CFI ones.
1871 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1872 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1873 (x86_64_init_extra_frame_info): New prototypes.
1875 2002-10-23 David Carlton <carlton@math.stanford.edu>
1877 * linespec.c: #include "parser-defs.h".
1878 Delete prototype for find_template_name_end.
1879 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1881 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1883 * NEWS: add recent mi fixes.
1884 * varobj.c (struct varobj): Add new "updated" flag.
1885 (new_variable): Default "updated" flag to 0.
1886 (varobj_set_value): Set "updated" flag to 1 if value
1888 (varobj_update): Check varobj "updated" flag before
1889 comparing old and refreshed values. Fix for
1892 2002-10-23 David Carlton <carlton@math.stanford.edu>
1894 * parse.c (parse_exp_1): Use BLOCK_START.
1895 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1897 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1899 2002-10-23 David Carlton <carlton@math.stanford.edu>
1901 * symtab.c: Delete cplusplus_hint.
1902 Delete prototype for find_template_name_end.
1904 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1906 * symtab.h: Update comment.
1908 2002-10-23 Michael Snyder <msnyder@redhat.com>
1910 * printcmd.c (address_info): Restore quotes in output.
1911 * valops.c (value_of_local): Restore quotes in error message.
1913 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1915 * symtab.c (symbol_demangled_name): New function.
1916 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1917 turning most of it into a function.
1918 (symbol_demangled_name): Export.
1920 2002-10-23 Michael Snyder <msnyder@redhat.com>
1922 * valops.c (value_of_local): Restore quotes in error message.
1924 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1926 * symtab.c (symbol_init_language_specific): New function.
1927 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1928 turning most of it into a function.
1929 (symbol_init_language_specific): Export.
1931 2002-10-23 David Carlton <carlton@math.stanford.edu>
1933 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1934 (dwarf_attr_name): Ditto.
1935 (dwarf_type_encoding_name): Ditto.
1936 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1937 (process_die): Handle DW_TAG_namespace,
1938 DW_TAG_imported_declaration, DW_TAG_imported_module.
1939 (read_namespace): New function.
1941 2002-10-22 Joel Brobecker <brobecker@gnat.com>
1943 * configure.in: Define NEW_PROC_API on Interix too.
1944 * configure: Regenerate.
1946 2002-10-21 Joel Brobecker <brobecker@gnat.com>
1948 * configure: Regenerate using the proper version of autoconf.
1950 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1952 * findvar.c (read_var_value): Temporarily disable TLS code, until
1953 complete TLS support is added.
1955 2002-10-21 Jim Blandy <jimb@redhat.com>
1956 Elena Zannoni <ezannoni@redhat.com>
1958 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1959 for thread local storage locations.
1960 (struct symbol): Add objfile field.
1961 (SYMBOL_OBJFILE): Define.
1962 * dwarf2read.c (is_thread_local): New static variable.
1963 (new_symbol): If variable is in thread local fill in address class
1964 and objfile appropriately.
1965 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1967 * printcmd.c (address_info): Print the information for thread
1968 local storage variable.
1969 * findvar.c (read_var_value): In case of thread local variable,
1970 defer to the target vector code to compute address.
1972 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1974 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1975 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1977 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1979 * symtab.h (address_class): Rename
1980 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1981 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1982 * printcmd.c (address_info): Ditto.
1983 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1985 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1987 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1988 DBREG_DRX macro to acces debug registers.
1990 * Makefile.in (i386obsd-tdep.o): New target.
1992 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1993 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1995 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1996 * config/i386/obsd.mt: New file.
1997 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1998 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1999 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2000 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2001 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2002 * i386obsd-tdep.c: New file.
2004 2002-10-19 Adam Fedor <fedor@gnu.org>
2006 * objc-exp.y (name_not_typename): Fix invalid comment.
2008 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2010 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2011 to allocate partial syms and macro byte caches.
2013 2002-10-18 David Carlton <carlton@math.stanford.edu>
2015 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2017 2002-10-18 Adam Fedor <fedor@gnu.org>
2019 * stabsread.c (find_name_end): New function.
2020 (define_symbol): Use it.
2022 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2024 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2025 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2026 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2027 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2029 2002-10-17 David Carlton <carlton@math.stanford.edu>
2031 * symfile.h: Add opaque declaration for struct obstack.
2032 Declare obsavestring to take a const char *.
2033 * symfile.c (obsavestring): Make first argument a const char *.
2035 2002-10-16 Adam Fedor <fedor@gnu.org>
2037 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2038 names when matching breakpoints in current file.
2040 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2042 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2043 (read_tag_pointer_type): Add address class support.
2044 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2045 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2047 * gdbarch.h, gdbarch.c: Regenerate.
2048 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2049 (make_type_with_address_space, recursive_type_dump): Add address
2051 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2052 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2053 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2055 2002-10-16 Klee Dienes <kdienes@apple.com>
2057 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2058 to get the last character of a char[] buffer, not
2059 name[sizeof(vptr_name)-1].
2061 2002-10-14 Adam Fedor <fedor@gnu.org>
2063 * symtab.h: New objc_specific struct.
2064 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2065 (SYMBOL_DEMANGLED_NAME): Likewise.
2067 2002-10-14 Adam Fedor <fedor@gnu.org>
2069 * symfile.c (init_filename_language_table): Add ObjC file extension.
2071 2002-10-14 Adam Fedor <fedor@gnu.org>
2073 * utils.c (puts_filtered_tabular): New function.
2074 (fprintf_symbol_filtered): Get ObjC demangled name.
2075 * defs.h (puts_filtered_tabular): Declared.
2077 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2079 * c-lang.h (c_type_print_varspec_prefix): Delete.
2080 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2081 ``need_post_space'' parameter. Adjust all callers.
2083 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2085 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2086 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2087 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2088 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2090 2002-10-13 Adam Fedor <fedor@gnu.org>
2092 * source.c (print_source_lines): Update comments.
2094 2002-10-13 Adam Fedor <fedor@gnu.org>
2096 * valops.c (value_of_local): New function.
2097 (value_of_this): Use it.
2098 * value.h (value_of_local): Declared.
2100 2002-10-13 Adam Fedor <fedor@gnu.org>
2102 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2103 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2105 2002-10-12 Adam Fedor <fedor@gnu.org>
2107 * language.c (binop_result_type): Add language_objc to case.
2108 (integral_type): Likewise.
2109 (character_type): Likewise.
2110 (string_type): Likewise.
2111 (boolean_type): Likewise.
2112 (structured_type): Likewise.
2113 (binop_type_check): Likewise.
2115 2002-10-11 Adam Fedor <fedor@gnu.org>
2117 * printcmd.c (address_info): Print 'self' for ObjC.
2119 2002-10-11 Adam Fedor <fedor@gnu.org>
2121 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2124 2002-10-11 Adam Fedor <fedor@gnu.org>
2126 * language.h (CAST_IS_CONVERSION): Add language_objc.
2128 2002-10-11 Adam Fedor <fedor@gnu.org>
2130 * defs.h (enum language): Add language_objc.
2132 2002-10-11 Klee Dienes <kdienes@apple.com>
2134 * corefile.c (read_memory_typed_address): New function.
2135 * gdbcore.h (read_memory_typed_address): Add prototype.
2136 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2137 to read a value destined for a CORE_ADDR, not read_memory_integer.
2138 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2139 (f77_get_dynamic_lowerbound): Ditto.
2141 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2143 * utils.c (string_to_core_addr): After turning string into
2144 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2145 which will do necessary sign-extension, etc.
2147 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2149 * c-exp.y (THIS): Delete token and grammar rule.
2150 (yylex): Don't return THIS.
2151 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2152 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2153 * demangle.c (cplus_markers): Update comment. Put '$'
2154 first. Remove CPLUS_MARKER.
2155 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2156 * jv-exp.y (THIS): Delete token and grammar rule.
2157 (yylex): Don't return THIS.
2158 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2159 * objc-exp.y (THIS): Delete token and grammar rule.
2160 (yylex): Don't return THIS.
2161 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2162 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2163 (read_member_functions): Likewise for opname.
2164 (read_tilde_fields): Use is_cplus_marker.
2166 * defs.h (CPLUS_MARKER): Don't define.
2167 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2168 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2169 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2170 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2171 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2173 * config/i386/tm-i386v4.h: Delete file.
2174 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2175 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2176 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2177 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2178 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2179 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2180 * config/i386/i386v4.mt (TM_FILE): Likewise.
2181 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2183 2002-10-10 Marko Mlinar <markom@opencores.org>
2185 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2186 accidentially not commited 2002-10-09
2187 * gdbarch.h, gdbarch.c: Re-generate.
2189 2002-10-09 Marko Mlinar <markom@opencores.org>
2191 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2192 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2193 * gdbarch.h, gdbarch.c: Re-generate.
2195 2002-10-08 Petr Sorfa <petrs@caldera.com>
2197 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2199 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2200 so we can work on more than one compilation unit at a time. This
2201 helps prepare GDB to handle inter-CU die references.
2202 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2203 the code to be defined before struct comp_unit_head.
2204 (comp_unit_head): Added new members - offset, cu_head,
2205 begin_die, next and dwarf2_abbrevs.
2206 (dwarf2_abbrevs): Removed single static var; now member of
2207 struct comp_unit_head.
2208 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2210 (psymtab_to_symtab_1): Changed to work with the new
2211 struct comp_unit_head.
2212 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2213 constructs the dwarf2_abbrevs[] inside the cu_header.
2214 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2215 dwarf2_abbrev table to clean up.
2216 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2217 handling of dwarf2_abbrevs inside the cu_header.
2218 (read_partial_die): Now supports the call to the new
2219 dwarf2_lookup_abbrev.
2220 (read_full_die): Now supports the call to the new
2221 dwarf2_lookup_abbrev.
2223 2002-10-06 Christopher Faylor <cgf@redhat.com>
2225 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2226 insure that shell variables, such as "transformed_name" are propagated
2227 to later shell statements in rule.
2229 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2231 * config/i386/nm-i386sco.h: Add protection against
2232 multiple-inclusion. Include "i386/nm-i386v.h".
2233 (REGISTER_U_ADDR): Remove define.
2234 (i386_register_u_addr): Remove prototype.
2236 2002-10-04 Michael Snyder <msnyder@redhat.com>
2238 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2239 before treating it as a single-step event.
2241 2002-10-03 Adam Fedor <fedor@gnu.org>
2243 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2244 (objc_demangle): Remove assignment in if statements, Replace
2246 (add_msglist): Likewise.
2247 (end_msglist): Likewise.
2248 (complare_selectors): Likewise.
2249 (selectors_info): Likewise.
2250 (compare_classes): Likewise.
2251 (classes_info): Likewise.
2252 (print_object_command): Likewise.
2253 (find_objc_msgcall_submethod): Replace PTR with void *.
2254 * objc-lang.h: Remove check for __STDC__.
2256 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2258 * ui-out.h (ui_out_field_fmt_int): New prototype.
2259 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2260 of field width and alignment.
2261 * stack.c (print_frame_info_base): When printing frame level, use
2262 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2265 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2267 * MAINTAINERS: Add self to Write After Approval list.
2269 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2271 * infcmd.c (interrupt_target_command_wrapper): Delete.
2272 (interrupt_target_command): Make non static.
2273 (nofp_registers_info): Make static.
2274 * stack.c (return_command_wrapper): Delete.
2275 (return_command): Make non static.
2277 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2279 * event-top.c (gdb_setup_readline): New function. Code moved from
2280 _initialize_event_loop().
2281 (_initialize_event_loop): Call gdb_setup_readline().
2283 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2285 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2286 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2287 * gdbarch.h, gdbarch.c: Re-generate.
2289 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2292 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2294 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2295 of fill_in_vptr_fieldno.
2297 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2299 * inferior.h (registers_info, stepi_command, nexti_command,
2300 continue_command, interrupt_target_command): Export from infcmd.c.
2301 * frame.h (args_info, selected_frame_level_changed_hook,
2302 return_command): Export from stack.c.
2303 * v850ice.c (stepi_command, nexti_command, continue_command): use
2304 prototypes from inferior.h.
2305 * tracepoint.c (registers_info, args_info, locals_info): Use
2306 prototypes from frame.h and inferior.h.
2307 * Makefile.in (mi-main.o): Add dependency on frame.h.
2309 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2311 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2312 value in register 3 adjusted by ppc_gp0_regnum.
2314 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2316 2002-10-02 Marko Mlinar <markom@opencores.org>
2318 * MAINTAINERS: Add myself to the Write After Approval list.
2320 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2322 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2323 of the section for the N64 ABI, fixed.
2325 * config/mips/tm-irix6.h: Include solib.h.
2327 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2329 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2332 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2334 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2335 and that "mi0" syntax has been removed.
2337 2002-09-30 David Carlton <carlton@math.stanford.edu>
2339 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2340 * ppc-sysv-tdep.c: #include "gdb_string.h".
2341 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2344 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2346 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2347 "vrsave"'s register number.
2349 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2351 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2352 use frame_unwind_signed_register to obtain the PC.
2353 (mips_frame_chain): Handle a generic dummy frame.
2354 (mips_init_extra_frame_info): When a generic dummy frame, don't
2355 re-compute the frame base.
2356 (mips_pop_frame): Handle generic dummy frames.
2357 (mips_gdbarch_init): When generic dummy frames, set
2358 use_generic_dummy_frames, push_dummy_frame to
2359 generic_push_dummy_frame, pc_in_call_dummy to
2360 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2361 generic_save_dummy_frame_tos.
2363 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2365 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2366 against TOP when TOP was explictly set.
2367 (generic_push_dummy_frame): Set TOP to zero.
2369 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2371 * event-loop.c (start_event_loop): Rename variable 'result' to
2372 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2374 2002-09-30 Keith Seitz <keiths@redhat.com>
2376 * gdb-events.sh (selected_thread_changed): New event.
2377 * gdb-events.c: Regenerated.
2378 * gdb-events.h: Regenerated.
2380 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2382 * MAINTAINERS: Add self to Write After Approval list.
2384 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2386 * disasm.c: New file.
2387 * disasm.h: New file.
2388 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2389 (compare_lines): Ditto.
2390 (dump_insns): Ditto.
2391 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2393 (do_assembly_only): Ditto.
2394 (do_disassembly): Renamed to gdb_disassembly and moved to
2395 disasm.c. Sdded uiout argument.
2396 * Makefile.in: Add new files. Reorder SFILES list. Update
2397 dependencies. Include libgdb.a later in the insight executable.
2399 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2401 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2402 bfd/elf64-alpha-fbsd.c.
2404 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2406 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2409 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2411 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2413 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2415 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2416 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2417 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2418 (S_msg_sig_post_reply): Ditto.
2420 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2422 * sh-tdep.c (sh_use_struct_convention): Use definition according
2424 (sh_push_arguments): Store in register with correct endianess.
2425 (sh_default_store_return_value): Ditto.
2426 (sh_gdbarch_init): Set sizeof long double to 8.
2428 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2430 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2431 Fix some whitespace problems.
2433 2002-09-27 David Carlton <carlton@math.stanford.edu>
2435 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2436 (mcore-tdep.o): Ditto.
2437 (ns32k-tdep.o): Ditto.
2438 (ns32knbsd-tdep.o): Ditto.
2440 (vax-tdep.o): Ditto.
2441 * cris-tdep.c: #include "gdb_string.h"
2442 * mcore-tdep.c: Ditto.
2443 * ns32k-tdep.c: Ditto.
2444 * ns32knbsd-tdep.c: Ditto.
2446 * vax-tdep.c: Ditto.
2448 2002-09-27 David Carlton <carlton@math.stanford.edu>
2450 * config/djgpp/fnchange.lst: Add entries for
2451 gdb/testsuite/gdb.c++/m-static files.
2453 2002-09-27 Jim Wilson <wilson@redhat.com>
2455 * MAINTAINERS: Add myself to the Write After Approval list.
2457 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2459 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2462 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2464 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2467 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2469 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2470 (rs6000_struct_return_address): Delete variable.
2471 (rs6000_store_struct_return): Update.
2472 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2473 deprecated_extract_struct_value_address.
2474 (rs6000_frame_align): New function.
2475 (rs6000_gdbarch_init): Set frame_align.
2477 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2479 From Grace Sainsbury <graces@redhat.com>:
2480 * Makefile.in (gdbtk-main.o): New target.
2481 (gdb.o): New target.
2483 (main.o): Update dependencies.
2484 (gdb$(EXEEXT)): Add gdb.o.
2485 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2486 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2487 (SUBDIR_GDBTK_CLEAN): Set.
2488 (install-gdbtk): Install the insight binary.
2489 (uninstall-gdbtk): New target.
2490 (all-gdbtk, clean-gdbtk): New rule.
2491 * top.c (use_windows): Default to zero.
2492 * main.c: Include "main.h".
2494 (struct captured_main_args): Delete.
2495 (gdb_main): New function.
2499 2002-09-25 Andrew Cagney <cagney@redhat.com>
2501 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2502 (frame_map_regnum_to_name): New function.
2503 (frame_map_name_to_regnum): New function.
2504 * frame.h (frame_map_name_to_regnum): Declare.
2505 (frame_map_regnum_to_name): Declare.
2506 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2507 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2508 * parse.c: Do not include "builtin-regs.h".
2509 (target_map_name_to_register): Delete function.
2510 (write_dollar_variable): Use frame_map_name_to_regnum.
2511 * parser-defs.h (target_map_name_to_register): Delete declaration.
2512 * expprint.c: Include "frame.h".
2513 (print_subexp): Use frame_map_regnum_to_name.
2514 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2515 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2517 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2519 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2520 wasn't saved, and the next innermost frame is a dummy, return the
2521 dummy frame's link register.
2523 2002-09-24 Jim Blandy <jimb@redhat.com>
2525 Fix from Paul Breed:
2526 * main.c (captured_main): Add a `break' after the case for 'b'.
2528 2002-09-24 Keith Seitz <keiths@redhat.com>
2530 * varobj.c (c_type_of_child): Use get_target_type instead
2531 of TYPE_TARGET_TYPE.
2533 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2535 * source.c (get_current_or_default_source_symtab_and_line): Remove
2537 (set_default_source_symtab_and_line): New function. Attempts to
2538 determine a source file to list lines from if one is not currently
2540 (get_current_source_symtab_and_line): Initialize sal.pc and
2542 (set_current_source_symtab_and_line): Mark argument as const.
2543 * source.h: Update declarations and comments.
2544 * linespec.c (decode_line_1): Replace call to removed routine above.
2545 * stack.c (print_frame_info_base): Ditto.
2546 * cli/cli-cmds.c (edit_command): Ditto.
2547 (list_command): Ditto.
2549 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2551 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2552 sal.pc and sal.end fields.
2553 (get_current_or_default_source_symtab_and_line): Ditto.
2554 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2555 so we do not cause a new source symtab to be searched for (reverting an
2556 unintentional change from the 2002-09-20 patch).
2557 * scm-lang.c (scm_unpac): Ditto.
2559 2002-09-21 Andrew Cagney <cagney@redhat.com>
2561 * complaints.c (symfile_explanations): Remove new-line from
2562 ``isolated_message''.
2563 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2564 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2566 2002-09-20 Nick Clifton <nickc@redhat.com>
2568 * NEWS: Announce that V850EA ISA is no longer supported.
2569 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2571 2002-09-20 David Carlton <carlton@math.stanford.edu>
2573 * Makefile.in (c-lang.o): Correct dependencies.
2574 (utils.o): Gather dependencies.
2576 * c-lang.c: #include "gdb_string.h"
2578 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2580 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2581 * cli/cli-cmds.c (list_command): New function. Implements the new
2583 (_init_cli_cmds): Add new command definition.
2584 * gdb.1: Document edit command.
2585 * doc/gdb.texinfo: Document edit command.
2587 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2589 * source.c: Make global variables current_source_symtab and
2590 current_source_line static.
2591 (list_command): Moved to cli/cli-cmds.c.
2592 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2593 (get_first_line_listed): New accessor function.
2594 (get_lines_to_list): New accessor function.
2595 (get_current_source_symtab_and_line): New function. Retrieves the
2596 position in the source code that we consider current.
2597 (get_current_or_default_source_symtab_and_line): New function.
2598 Like the above but attempts to determine a default position if one
2599 is not currently defined.
2600 (set_current_source_symtab_and_line): New function. Sets the source
2601 code position considered current and returns the previously set one.
2602 (clear_current_source_symtab_and_line): Reset stored information about
2603 a current source line.
2604 (_initialize_source): Remove registration for the "list" command and
2606 * source.h: Add declarations for the new functions above.
2607 * symtab.h: Remove declarations for the global variables mentioned
2609 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2610 obtain current source line.
2611 * linespec.c (decode_line_1): Ditto.
2612 * macroscope.c (default_macro_scope): Ditto.
2613 * scm-lang.c (scm_unpac): Ditto.
2614 * stack.c (print_frame_info_base): Ditto.
2615 * symfile.c (clear_symtab_users): Ditto.
2616 * symtab.c (decode_line_spec): Ditto.
2617 * cli/cli-cmds.c (list_command): Moved here from source.c.
2618 (ambiguous_line_spec): Moved here from source.c.
2619 (_init_cli_cmds): Add definition for "list" and its alias.
2620 * Makefile.in: Update dependencies.
2622 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2624 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2625 with what gcc thinks is correct.
2627 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2629 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2630 multiple register push instruction.
2632 2002-09-19 Jim Blandy <jimb@redhat.com>
2634 Add support for distinct host and target character sets.
2635 * charset.c, charset.h: New files.
2636 * c-exp.y: #include "charset.h".
2637 (yylex): Convert character and string literals to the target
2638 character set, before returning them as the semantic value of the
2640 * c-lang.c: #include "charset.h".
2641 (c_emit_char): Use charset-specific methods to recognize
2642 characters with backslash escape forms, to decide which characters
2643 to print literally and which to print using numeric escape
2644 sequences, and to convert target characters to host characters
2646 * utils.c: #include "charset.h".
2647 (no_control_char_error): New function.
2648 (parse_escape): Use charset-specific methods to recognize
2649 backslash escapes, parse `control character' notation, and convert
2650 characters from the host character set to the target character set.
2651 * configure.in: Set the default host character set.
2652 Check where to find iconv, and what its argument types might be.
2653 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2654 * Makefile.in (SFILES): List charset.c.
2655 (COMMON_OBS): List charset.o.
2656 (charset.o): New rule.
2657 (charset_h): New header dependency variable.
2658 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2659 (LIBICONV): New variable, set by configure.
2660 (CLIBS): Include $(LIBICONV) here.
2661 * aclocal.m4, config.in, configure: Regenerated.
2663 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2665 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2668 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2670 * gdb_mbuild.sh: New file.
2672 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2674 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2676 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2678 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2679 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2680 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2681 valops.c, value.h: Revert previous change.
2683 2002-09-18 Michael Snyder <msnyder@redhat.com>
2685 Preliminary support for Objective-C:
2686 * defs.h (language_objc): New enum value.
2687 (puts_filtered_tabular): Declaration only, exported from utils.c.
2688 (skip_quoted): Delete, declared in completer.h.
2689 * c-exp.y: Include completer.h.
2692 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2693 New operator enum values.
2694 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2695 * language.c (binop_result_type): Handle language_objc case.
2696 (integral_type, character_type, string_type, boolean_type,
2697 structured_type, binop_type_check): Ditto.
2698 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2699 (struct objc_specific): Add to general_symbol_info.
2700 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2701 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2702 * parser-defs.h (struct objc_class_str): New struct type.
2703 (start_msglist, end_msglist, add_msglist): Declaration only,
2704 exported from objc-lang.c.
2705 * value.h (value_of_local, value_nsstring,
2706 call_function_by_hand_expecting_type): Exported from valops.c.
2707 * valops.c (find_function_addr): Export.
2708 (call_function_by_hand_expecting_type): New function.
2709 (value_of_local): New function.
2710 * symfile.c (init_filename_language_table): Add ".m" extension
2712 * utils.c (puts_filtered_tabular): New function.
2713 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2714 (set/show demangle): Extend help-string to refer to ObjC.
2715 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2716 * stabsread.c (symbol_reference_defined): Objective-C symbols
2717 may contain colons: make allowances when scanning stabs strings
2719 (objc_find_colon): New function.
2720 * printcmd.c (address_info): If language == objc then print
2721 "self" instead of "this".
2722 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2723 OP_NSSTRING, and OP_SELF.
2724 (prefixify_subexp): Ditto.
2725 * source.c (print_source_lines): Mention objc in comment.
2726 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2729 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2731 * complaints.h: Update copyright.
2732 (struct complaints): Declare.
2733 (struct complaint): Make `message' constant.
2734 (internal_complaint): Declare.
2735 (complaint): Declare.
2736 (complaint_root): Delete declaration.
2737 (symfile_complaints): Delete declaration.
2738 (struct complaints): Add opaque declaration.
2739 (clear_complaints): Add a complaints parameter.
2740 * complaints.c: Update copyright.
2741 (enum complaint_series): Define.
2742 (complaint_root): Delete.
2743 (struct complaints): Define.
2744 (complaint_sentinel, symfile_complaint_book): New variables.
2745 (symfile_explanations, symfile_complaints): New variables.
2747 (get_complaints): New function.
2748 (vcomplaint): New function.
2749 (complaint): New function.
2750 (internal_complaint): New function.
2751 (complain): Call vcomplain with symfile_complaint.
2752 (clear_complaints): Rewrite.
2753 (_initialize_complaints): Use add_setshow_command.
2754 * Makefile.in (complaints.o): Update dependencies.
2755 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2756 to call to clear_complaints.
2757 (new_symfile_objfile, reread_symbols): Ditto.
2758 (oldsyms_complaint): Delete.
2759 (empty_symtab_complaint, unknown_option_complaint): Delete.
2760 (free_named_symtabs): Use complaint instead of complain.
2762 2002-09-18 Michael Snyder <msnyder@redhat.com>
2764 Contributed by Apple Computer, Inc. Merged with current sources
2765 by Adam Fedor <fedor@doc.com> [cagney].
2767 * objc-lang.c: First clean-up round: comments, indentation.
2768 * objc-lang.h: Ditto.
2769 * objc-lang.y: Ditto.
2771 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2773 * maint.c (maintenance_internal_error): Print the parameter as the
2775 (maintenance_internal_warning): New function.
2776 (_initialize_maint_cmds): Add command `maint internal-warning'.
2778 * defs.h (internal_warning, internal_vwarning): Declare.
2779 * utils.c (struct internal_problem): Define.
2780 (internal_vproblem): New function.
2781 (internal_warning): New function.
2782 (internal_vwarning): New function.
2783 (internal_warning_problem, internal_error_problem): New variables.
2784 (internal_verror): Just call internal_vproblem.
2786 2002-09-18 Michael Snyder <msnyder@redhat.com>
2788 * objc-lang.c: New file, support for Objective-C.
2789 Preliminary check-in, not yet integrated into gdb.
2790 * objc-lang.h: New file.
2791 * objc-exp.y: New file.
2793 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2795 * infrun.c (signal_stop_update): Convert definition to ISO C.
2796 (signal_print_update): Ditto.
2797 (signal_pass_update): Ditto.
2798 * inflow.c (terminal_save_ours): Ditto.
2800 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2803 * config/djgpp/fnchange.lst: Handle name clashes between
2804 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2807 * i386-linux-tdep.h: Fix tipo.
2809 2002-09-18 Adam Fedor <fedor@gnu.org>
2811 * MAINTAINERS: Add myself to the Write After Approval list.
2813 2002-09-18 Jim Blandy <jimb@redhat.com>
2815 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2816 texthigh and textlow to reader-specific structs caused
2817 objfile_relocate to miss them. This is fixable, but the work that
2818 the change was supposed to prepare GDB for never got done anyway.
2820 2002-09-18 David Carlton <carlton@math.stanford.edu>
2822 * MAINTAINERS: Alphabetize Write After Approval list.
2824 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2827 * values.c (value_static_field): Call read_var_value.
2829 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2831 * valops.c (hand_function_call): Align the initial stack pointer
2832 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2833 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2835 * mips-tdep.c (mips_frame_align): New function.
2836 (mips_gdbarch_init): Set frame_align.
2837 * gdbarch.sh (FRAME_ALIGN): New method.
2838 * gdbarch.h, gdbarch.c: Re-generate.
2840 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2842 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2845 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2847 * NEWS: Mention that MIPS $fp behavior changed.
2848 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2849 reference to FP_REGNUM.
2850 (mipsnbsd_cannot_store_register): Ditto.
2851 * mips-linux-nat.c: Update copyright.
2852 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2853 (mips_linux_cannot_store_register): Ditto.
2854 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2855 * config/mips/tm-mips.h: Update copyright.
2856 (FP_REGNUM): Delete macro.
2857 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2858 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2859 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2860 (mips_r3041_reg_names, mips_r3051_reg_names)
2861 (mips_r3081_reg_names): Replace "fp" with "".
2864 2002-09-17 Theodore A. Roth <troth@verinet.com>
2866 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2867 generic_read_register_dummy() (PR gdb/703).
2868 (avr_push_return_address): #if 0 out unused vars.
2869 (avr_gdbarch_init): Enable use of avr_push_return_address().
2871 2002-09-17 Michael Snyder <msnyder@redhat.com>
2873 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2874 RTE will take care of it.
2876 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2878 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2879 invalid, return SP_REGNUM.
2881 2002-09-17 Michael Snyder <msnyder@redhat.com>
2883 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2884 point registers without sign extension.
2886 2002-09-17 Andrew Cagney <cagney@redhat.com>
2888 * blockframe.c (deprecated_read_register_dummy): Rename
2889 generic_read_register_dummy.
2890 * frame.c (frame_unwind_signed_register): New function.
2891 (frame_unwind_unsigned_register): New function.
2892 * frame.h (frame_unwind_signed_register): Declare.
2893 (frame_unwind_unsigned_register): Declare.
2894 (deprecated_read_register_dummy): Rename
2895 generic_read_register_dummy.
2897 * h8300-tdep.c (h8300_frame_chain): Update.
2898 (h8300_frame_saved_pc): Update.
2899 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2900 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2901 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2902 (s390_frame_chain): Update.
2903 * v850-tdep.c (v850_find_callers_reg): Update.
2904 (v850_frame_saved_pc): Update.
2905 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2906 (m32r_find_callers_reg): Update.
2907 (m32r_frame_saved_pc): Update.
2908 * sh-tdep.c (sh_find_callers_reg): Update.
2909 (sh64_get_saved_pr): Update.
2910 (sh_init_extra_frame_info): Update.
2911 (sh_init_extra_frame_info): Update.
2912 (sh64_init_extra_frame_info): Update.
2913 (sh64_init_extra_frame_info): Update.
2914 * mcore-tdep.c (mcore_find_callers_reg): Update.
2915 (mcore_frame_saved_pc): Update.
2916 (mcore_init_extra_frame_info): Update.
2917 * i386-tdep.c (i386_frame_saved_pc): Update.
2918 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2919 (ia64_init_extra_frame_info): Update.
2920 (ia64_init_extra_frame_info): Update.
2921 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2922 * cris-tdep.c (cris_init_extra_frame_info): Update.
2923 * avr-tdep.c (avr_frame_chain): Update.
2924 (avr_init_extra_frame_info): Update.
2925 (avr_frame_saved_pc): Update.
2926 * arm-tdep.c (arm_find_callers_reg): Update.
2927 (arm_init_extra_frame_info): Update.
2928 (arm_frame_saved_pc): Update.
2930 2002-09-17 Tom Tromey <tromey@redhat.com>
2932 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2935 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2937 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2938 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2940 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2943 2002-09-16 Joel Brobecker <brobecker@gnat.com>
2945 * osfsolib.c: Remove file, replaced by solib-osf.c.
2946 * Makefile.in: Remove compilation rules for osfsolib.c.
2948 2002-09-16 David Carlton <carlton@math.stanford.edu>
2950 * cp-valprint.c (cp_print_class_method): Correct args to
2951 check_stub_method_group.
2953 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
2955 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2956 `set architecture'. Unify naming convention of functions.
2957 (h8300_skip_prologue): Improve prologue analysis.
2958 (h8300_push_arguments): Rewritten to more closely match GCC's
2959 bizarre argument-passing behavior, along with the comment describing
2961 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2962 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2963 sim, remote-e7000.c, remote-hms.c and remote.c
2965 2002-09-15 Mark Kettenis <kettenis@gnu.org>
2967 * i386-tdep.c (gdb_print_insn_i386): Removed.
2968 (i386_print_insn): New function.
2969 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2970 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2973 2002-09-14 Mark Kettenis <kettenis@gnu.org>
2975 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2978 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
2980 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2981 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2982 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2984 2002-09-13 Christopher Faylor <cgf@redhat.com>
2986 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2988 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
2990 * gdbtypes.c (check_stub_method): Make static.
2991 (check_stub_method_group): New function.
2992 * gdbtypes.h: Update prototypes.
2993 * cp-support.c: New file.
2994 * cp-support.h: New file.
2996 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2997 (update_method_name_from_physname): New function.
2998 (read_member_functions): Correct method names for operators
2999 and v3 constructors/destructors. Separate v2 constructors and
3001 * Makefile.in (stabsread.o): Update dependencies.
3002 (SFILES): Add cp-support.c.
3003 (COMMON_OBS): Add cp-support.o.
3004 (cp_support_h, cp-support.o): Add.
3006 * cp-valprint.c (cp_print_class_method): Call
3007 check_stub_method_group instead of check_stub_method. Remove
3009 * p-valprint.c (pascal_object_print_class_method): Likewise.
3010 * valops.c (search_struct_method): Likewise.
3011 (find_method_list, value_struct_elt_for_reference): Likewise.
3013 2002-09-13 Andrew Cagney <cagney@redhat.com>
3015 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3016 * gdbarch.h, gdbarch.c: Regenerate.
3018 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3020 * frame.c (find_saved_register): Delete function.
3021 * frame.h (find_saved_register): Delete declaration.
3024 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3026 * mips-tdep.c (read_next_frame_reg): Re-hack using
3027 frame_register_unwind.
3029 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3031 * mips-tdep.c (mips_get_saved_register): Re-hack using
3032 frame_register_unwind.
3034 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3036 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3037 vector. Will be useful for Interix.
3038 * gdbarch.h, gdbarch.c: Regenerate.
3040 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3041 name of the malloc function by NAME_OF_MALLOC.
3043 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3045 * value.h (find_function_in_inferior): Add const keyword to
3046 one of the parameters. Allows us to invoke this function with
3048 * valops.c (find_function_in_inferior): Likewise.
3050 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3052 * exec.c (xfer_memory): Fix compilation warning with old versions
3054 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3056 2002-09-12 David Carlton <carlton@math.stanford.edu>
3058 * symtab.h: Run through gdb_indent.h.
3059 Add 2002 to Copyright year list.
3061 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3063 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3065 * MAINTAINERS: Add myself to write after approval list.
3067 2002-09-11 J. Brobecker <brobecker@gnat.com>
3069 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3071 2002-09-11 J. Brobecker <brobecker@gnat.com>
3073 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3076 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3078 * procfs.c (do_detach): Clear current signal, not just fault.
3079 Corrects problem with breakpoint trap signal leaking to detached
3082 2002-09-10 Michael Snyder <msnyder@redhat.com>
3084 * buildsym.c (finish_block): Protect against null pointer.
3086 2002-09-10 Andrew Cagney <cagney@redhat.com>
3088 * infcmd.c (default_print_registers_info): Send all output to
3089 ``file'' instead of ``gdb_stdout''.
3091 2002-09-10 Michael Snyder <msnyder@redhat.com>
3093 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3094 LONGEST, and use signed register read (addresses are sign-
3097 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3099 * event-loop.c (gdb_do_one_event): Make public.
3100 * event-loop.h (gdb_do_one_event): Declare.
3102 2002-09-10 Jeff Law <law@redhat.com>
3104 * infttrace.c (child_resume): Simplify and rework to avoid
3107 2002-09-09 Fred Fish <fnf@intrinsity.com>
3109 * printcmd.c (print_scalar_formatted): "len" is the number of
3110 target bytes, NOT the number of target bits.
3112 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3114 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3115 * top.c (init_main): Set rl_terminal_name.
3117 2002-09-08 Aidan Skinner <aidan@velvet.net>
3119 * ada-lang.c (ada_array_bound, ada_type_match,
3120 _initialize_ada_language): Fix K&R definitions.
3121 * ada-tasks.c (get_current_task): Fix K&R definitions.
3122 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3124 2002-09-07 Christopher Faylor <cgf@redhat.com>
3126 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3129 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3131 * i386-tdep.c (i386_register_virtual_type,
3132 i386_register_convertible, i386_register_convert_to_virtual,
3133 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3134 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3135 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3136 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3137 Don't set push_arguments twice.
3139 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3140 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3141 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3142 sigtramp_end to NULL.
3143 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3145 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3147 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3150 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3151 * gdbarch.h, gdbarch.c: Re-generate.
3152 * blockframe.c (find_pc_sect_partial_function): Convert to use
3153 SIGTRAMP_START_P predicate.
3155 2002-09-05 Michael Snyder <msnyder@redhat.com>
3157 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3158 generic_dummy_frame method and old method. Also distinguish
3159 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3160 (arm_extract_return_value): Use new regcache method.
3162 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3163 adjustment that doesn't conform to the ABI.
3164 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3165 saved regcache, not from current regcache.
3167 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3169 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3172 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3174 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3175 if arm_apcs_32 is false.
3177 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3179 GDB 5.3 branch created.
3181 2002-09-03 Theodore A. Roth <troth@verinet.com>
3183 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3184 generic_unwind_get_saved_register.
3186 2002-09-03 David Carlton <carlton@math.stanford.edu>
3188 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3189 argument (PR gdb/653). Update call to smash_to_method_type.
3190 (read_structure_scope): Update call to dwarf2_add_member_fn.
3192 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3194 * x86-64-linux-tdep.c: Include gdb_string.h
3195 * x86-64-linux-nat.c: Ditto.
3197 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3199 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3200 when YYDEBUG is set to 1.
3201 * c-exp.y: Likewise.
3202 * f-exp.y: Likewise.
3203 * jv-exp.y: Likewise.
3204 * m2-exp.y: Likewise.
3205 * p-exp.y: Likewise.
3207 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3209 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3211 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3212 solib_svr4_fetch_link_map_offsets to
3213 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3214 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3215 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3216 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3217 solib-svr4.o, and solib-legacy.o.
3218 * config/i386/tm-nbsd.h: Include solib.h.
3220 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3222 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3223 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3224 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3225 comment noting that this needs its own target configuration.
3226 * config/i386/nbsd.mt: New file.
3227 * config/i386/nbsdaout.mt: Remove.
3228 * config/i386/nbsdelf.mt: Ditto.
3229 * config/i386/tm-nbsdaout.h: Ditto.
3231 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3233 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3234 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3235 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3237 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3238 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3239 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3241 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3243 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3244 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3245 * i386-tdep.h (i386bsd_init_abi): New prototype.
3246 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3247 function declaration.
3248 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3249 for NetBSD-a.out or NetBSD-ELF.
3250 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3251 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3252 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3253 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3255 (i386nbsd_pc_in_sigtramp): New function.
3256 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3257 i386nbsd_pc_in_sigtramp.
3258 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3259 and i386nbsdelf_init_abi OS ABI handlers.
3260 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3261 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3263 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3265 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3266 registers if the target really has them.
3268 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3270 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3273 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3275 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3277 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3278 (alphanbsd_skip_sigtramp_frame): New functions.
3279 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3280 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3281 to alphanbsd_sigcontext_addr.
3283 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3285 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3287 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3288 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3289 nbsd_pc_in_sigtramp.
3290 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3291 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3292 * nbsd-tdep.c: Include gdb_string.h.
3293 (nbsd_pc_in_sigtramp): New function.
3294 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3295 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3296 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3297 ppcnbsd_pc_in_sigtramp.
3298 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3299 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3300 shnbsd_pc_in_sigtramp.
3301 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3302 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3303 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3305 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3307 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3308 watchpoints to NULL.
3309 (insert_breakpoints): set val field of watchpoints if NULL.
3312 2002-08-29 Jim Blandy <jimb@redhat.com>
3314 * symtab.c (lookup_symbol_aux): In the cases where we find a
3315 minimal symbol of an appropriate name and use its address to
3316 select a symtab to read and search, use `name' (as passed to us)
3317 as the demangled name when searching the symtab's global and
3318 static blocks, not the minsym's name.
3320 2002-08-29 Keith Seitz <keiths@redhat.com>
3322 * stack.c (print_frame_info_base): Always set current_source_symtab
3323 and current_source_line.
3325 2002-08-29 Donn Terry <donnte@microsoft.com>
3327 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3329 2002-08-28 Keith Seitz <keiths@redhat.com>
3331 * stack.c (select_frame): Add FIXME concerning selected-frame
3333 (select_frame_command): Send selected-frame-level-changed
3334 event notification, but only if the level actually changed.
3335 (up_silently_base): Add selected-frame-level-changed event
3337 (down_silently_base): Likewise.
3339 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3341 * Makefile.in: Update dependencies for all gdb/*.c files.
3343 2002-08-27 Tom Tromey <tromey@redhat.com>
3345 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3346 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3347 Update dependencies.
3348 * i387-tdep.c: Include gdb_string.h.
3349 * osabi.c: Likewise.
3350 * i386-linux-nat.c: Likewise.
3351 * lin-lwp.c: Likewise.
3352 * ax-gdb.c: Likewise.
3353 * signals/signals.c: Likewise.
3354 * jv-valprint.c: Likewise.
3355 * p-lang.c: Likewise.
3356 * c-valprint.c: Likewise.
3357 * cp-abi.c: Likewise.
3359 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3361 * cli/cli-script.h (copy_command_lines): Export.
3362 * breakpoint.c: Include cli/cli-script.h.
3363 * Makefile.in (breakpoint.o): Update dependencies.
3365 2002-08-26 Michael Snyder <msnyder@redhat.com>
3367 * breakpoint.c (insert_breakpoints): Protect all references
3368 to 'process_warning'. Shorten long lines.
3370 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3372 * cli/cli-script.c (copy_command_lines): New function.
3373 * defs.h (copy_command_lines): Export.
3374 * testsuite/gdb.base/commands.exp: New tests for commands
3375 attached to a temporary breakpoint, and for commands that
3376 delete the breakpoint they are attached to.
3378 2002-08-26 Michael Snyder <msnyder@redhat.com>
3380 * breakpoint.c (bpstat_stop_status): Instead of copying the
3381 pointer to the breakpoint commands struct, make a new copy
3382 of the struct and point to that.
3383 (bpstat_clear): Free the commands struct.
3384 (bpstat_clear_actions): Free the commands struct.
3385 (bpstat_do_actions): Free the command actions. Also execute
3386 the local cleanups, instead of deleting them.
3387 (delete_breakpoint): Leave the commands field of the bpstat
3388 chain alone -- it will be freed later.
3390 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3392 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3393 deleted in 2002-08-20 commit. This function is still used by
3396 2002-08-26 Keith Seitz <keiths@redhat.com>
3398 * gdb-events.sh: Add selected-frame-level-changed event.
3399 * gdb-events.c: Regenerated.
3400 * gdb-events.h: Regenerated.
3402 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3405 * inflow.c (terminal_save_ours): New function to save terminal
3407 * inferior.h (terminal_save_ours): Declare.
3408 * target.c (debug_to_terminal_save_ours): New function.
3409 (cleanup_target): Defaults to_terminal_save_ours.
3410 (update_current_target): Inherit to_terminal_save_ours.
3411 (setup_target_debug): Set to_terminal_save_ours.
3412 * target.h (target_terminal_save_ours): New to save terminal settings.
3413 (target_ops): New member to_terminal_save_ours.
3414 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3415 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3416 * inftarg.c (init_child_ops): Likewise.
3417 * m3-nat.c (init_m3_ops): Likewise.
3418 * procfs.c (init_procfs_ops): Likewise.
3419 * wince.c (init_child_ops): Likewise.
3420 * win32-nat.c (init_child_ops): Likewise.
3421 * sol-thread.c (init_sol_thread_ops): Likewise.
3423 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3425 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3426 use regcache_* functions.
3427 (i386_gdbarch_init): Set store_return_value instead of
3428 deprecated_store_return_value.
3430 * regcache.c (regcache_raw_write_signed,
3431 regcache_raw_write_unsigned): New functions.
3432 * regcache.h (regcache_raw_write_signed,
3433 regcache_raw_write_unsigned): New prototypes.
3435 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3437 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3438 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3439 source file dependencies. Cleanup corresponding generator rules.
3441 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3443 * regcache.h (register_offset_hack): Declare.
3444 (regcache_cooked_read_using_offset_hack): Declare.
3445 (regcache_cooked_write_using_offset_hack): Declare.
3447 * regcache.c (register_offset_hack): New function.
3448 (regcache_cooked_read_using_offset_hack): New function.
3449 (regcache_cooked_write_using_offset_hack): New function.
3450 (regcache_dump): Check that the registers, according to their
3451 offset, are packed hard against each other.
3452 (cooked_xfer_using_offset_hack): New function.
3454 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3456 * regcache.c (struct regcache_descr): Add field register_type.
3457 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3459 (init_regcache_descr): Initialize register_type. Pass the descr
3460 to init_legacy_regcache_descr. Use register_type instead of
3461 REGISTER_VIRTUAL_TYPE.
3462 (register_type): New function.
3463 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3464 * regcache.h (register_type): Declare.
3466 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3468 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3469 instead of deprecated_store_return_value. Fix fallout from
3470 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3472 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3474 * regcache.c (max_register_size): New function.
3475 (init_legacy_regcache_descr): Ensure that max_register_size is
3476 large enough for REGISTER_VIRTUAL_SIZE.
3477 * regcache.h (max_register_size): Declare.
3479 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3481 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3483 (e500_extract_return_value): Change type of valbuf pointer to
3486 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3488 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3491 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3492 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3493 long long) to prevent compiler warning on 64-bit systems.
3495 2002-08-23 Andrew Cagney <cagney@redhat.com>
3497 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3498 (DEPRECATED_STORE_RETURN_VALUE): New method.
3499 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3500 * gdbarch.h, gdbarch.c: Re-generate.
3502 * values.c (set_return_value): Pass current_regcache to
3504 * arch-utils.h (legacy_store_return_value): Declare.
3505 * arch-utils.c (legacy_store_return_value): New function.
3506 (legacy_extract_return_value): Update parameters.
3508 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3510 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3511 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3512 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3513 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3514 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3515 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3516 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3517 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3518 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3519 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3521 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3522 * i386-tdep.c (i386_extract_return_value): Update.
3523 * arch-utils.c (legacy_extract_return_value): Update.
3524 * frv-tdep.c (frv_gdbarch_init): Update.
3525 * cris-tdep.c (cris_gdbarch_init): Update.
3526 * d10v-tdep.c (d10v_gdbarch_init): Update.
3527 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3528 * m68k-tdep.c (m68k_gdbarch_init): Update.
3529 * mcore-tdep.c (mcore_gdbarch_init): Update.
3530 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3531 * s390-tdep.c (s390_gdbarch_init): Update.
3532 * sparc-tdep.c (sparc_gdbarch_init): Update.
3533 * sh-tdep.c (sh_gdbarch_init): Update.
3534 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3535 * v850-tdep.c (v850_gdbarch_init): Update.
3536 * avr-tdep.c (avr_gdbarch_init): Update.
3537 * ia64-tdep.c (ia64_gdbarch_init): Update.
3538 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3539 * vax-tdep.c (vax_gdbarch_init): Update.
3540 * alpha-tdep.c (alpha_gdbarch_init): Update.
3541 * arm-tdep.c (arm_gdbarch_init): Update.
3542 * mips-tdep.c (mips_gdbarch_init): Update.
3543 * i386-tdep.c (i386_gdbarch_init): Update.
3545 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3547 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3548 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3550 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3552 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3555 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3557 * infrun.c (handle_inferior_event): Move a comment outside of a
3558 function call, in order to avoid indent reformatting this part
3559 of the code in an unreadable way.
3561 2002-08-23 Grace Sainsbury <graces@redhat.com>
3563 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3564 when breakpoints fail. Move general breakpoint error messages to
3566 * breakpoint.c (insert_breakpoints): Change warnings when
3567 breakpoints are nto inserted to specify the type. Remove call to
3568 memory_error when hardware breakpoints can't be inserted. Remove
3569 multiple calls to warning so all messages are sent to the user at
3571 (delete_breakpoints): Make insert error messsages more explicit.
3573 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3575 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3576 gdbserver/ChangeLog.
3578 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3580 * i386-tdep.c: Include "objfiles.h".
3581 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3582 skip_trampoline_code.
3583 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3584 (CPLUS_MARKER): Define to '.'.
3586 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3588 (linux_corefile_thread_callback): Increase args->num_notes.
3589 (linux_make_note_section): Initialize thread_args.num_notes, and
3590 use it to determine whether notes for any threads were created.
3592 2002-08-23 Donn Terry <donnte@microsoft.com>
3594 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3595 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3597 (write_with_trace): Conditionalize out the switch branch handling
3598 PCSHOLD if the corresponding macro is not defined. Likewise for
3599 PRSABORT and PRSTOP.
3600 This change will be needed by the Interix port.
3602 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3604 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3605 write_register wherever possible instead of manipulating the
3606 register bytes directly.
3607 Assign VALUE_CONTENTS to a variable and use that.
3608 The GPR numbers are now dependent on the architecture.
3610 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3612 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3614 (skip_prologue): Add support for BookE/e500 instructions.
3615 (e500_extract_return_value): New function.
3616 (frame_get_saved_regs): Add support for saving ev registers and
3618 (e500_store_return_value): New function.
3619 (rs6000_gdbarch_init): Move up default intializations of
3620 deprecated_extract_return_value and store_return_value. Overwrite
3621 init of store_return_value with e500 specific version.
3622 Set extract_return_value for e500.
3624 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3626 * blockframe.c (generic_call_dummy_register_unwind): Use
3627 regcache_cooked_read to catch cases in which the variable is
3628 stored in a pseudo register.
3630 2002-08-22 Andrew Cagney <cagney@redhat.com>
3632 * NEWS: Mention that the i960 has been made obsolete.
3633 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3635 (remote-nrom.o): Obsolete target.
3636 (remote-nindy.o, i960-tdep.o): Ditto.
3637 * remote-nrom.c: Make file obsolete.
3638 * remote-nindy.c, remote-vx960.c: Ditto.
3639 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3640 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3641 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3642 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3643 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3644 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3645 i960-*-vxworks* obsolete.
3646 * MAINTAINERS: Note that the i960 is obsolete.
3648 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3650 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3651 detach to allow reinitialization.
3653 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3655 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3658 2002-08-22 Jim Blandy <jimb@redhat.com>
3660 * coffread.c (coff_symfile_read): Don't try to read the line
3661 number table from disk if the image file doesn't have a symbol
3662 table; we'll never actually look at the info anyway, and Windows
3663 ships DLL's with bogus file offsets for the line number data.
3665 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3667 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3670 2002-08-21 Michael Snyder <msnyder@redhat.com>
3672 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3673 (MSYMBOL_SIZE): Replace macro with function.
3674 (DEFAULT_MIPS_TYPE): Delete unused macro.
3675 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3676 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3678 2002-08-21 Jim Blandy <jimb@redhat.com>
3680 * valops.c (value_cast): Simplify and correct logic for doing a
3681 static cast from a pointer to a base class to a pointer to a
3684 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3686 * infcmd.c (default_print_registers_info): Replace
3688 (registers_info): Use gdbarch_print_registers_info instead of
3690 * inferior.h (default_print_registers_info): Replace
3692 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3693 (DO_REGISTERS_INFO): Change to a predicate function.
3694 * gdbarch.h, gdbarch.c: Regenerate.
3696 2002-08-21 Keith Seitz <keiths@redhat.com>
3698 * gdb-events.sh: Add target-changed event.
3699 * gdb-events.c: Regenerated.
3700 * gdb-events.c: Regenerated.
3701 * valops.c (value_assign): Add target-changed event notification
3702 to inlval_register, lval_memory, and lval_reg_frame_relative.
3704 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3706 * NEWS: Add an entry regarding the improvement of the next/step
3707 operation on Alpha Tru64 multi-processor machines.
3709 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3711 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3713 * Makefile.in: Update all _h macro definitions.
3714 * Makefile.in (install-gdbtk): Move to install section.
3715 (rdi-share/libangsd.a): Move to end of file.
3717 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3719 * frame.c (frame_register_unwind): When a register, set addrp to
3720 the register's byte.
3722 2002-08-20 Michael Snyder <msnyder@redhat.com>
3724 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3725 used locally, so move them from the target machine header to here.
3726 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3727 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3729 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3731 2002-08-20 Andrew Cagney <cagney@redhat.com>
3733 * NEWS: Mention that the Apollo line was made obsolete.
3734 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3735 m68*-hp-hpux* obsolete.
3736 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3737 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3738 * buildsym.c (make_blockvector): Make static.
3739 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3740 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3741 (ALLDEPFILES): Remove dstread.c.
3742 (dstread.o): Obsolete make rule.
3743 * dstread.c: Makefile obsolete.
3745 * config/m68k/hp300hpux.mt: Ditto.
3746 * config/m68k/hp300hpux.mh: Ditto.
3747 * config/m68k/hp300bsd.mt: Ditto.
3748 * config/m68k/hp300bsd.mh: Ditto.
3749 * config/m68k/apollo68b.mt: Ditto.
3750 * config/m68k/apollo68v.mh: Ditto.
3751 * config/m68k/apollo68b.mh: Ditto.
3753 2002-08-20 Michael Snyder <msnyder@redhat.com>
3755 * mips-tdep.c (mips_in_return_stub): Make static.
3756 (mips_gdbarch_init): Set in_solib_return_trampoline.
3757 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3759 2002-08-20 Michael Snyder <msnyder@redhat.com>
3761 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3762 * gdbarch.c, gdbarch.h: Regenerate.
3763 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3765 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3767 2002-08-20 Michael Snyder <msnyder@redhat.com>
3769 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3770 (mips_gdbarch_init): Set skip_trampoline_code,
3771 in_solib_call_trampoline.
3772 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3773 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3775 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3777 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3779 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3780 vector type for ev registers.
3781 (e500_pseudo_register_read): New function.
3782 (e500_pseudo_register_write): New function.
3783 (e500_dwarf2_reg_to_regnum): New function.
3784 (PPC_UISA_NOFP_SPRS): New macro.
3785 (PPC_EV_REGS): New macro.
3786 (PPC_GPRS_PSEUDO_REGS): New macro.
3787 (registers_e500): New register set for e500.
3788 (variants): Add e500 variant.
3789 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3790 before setting architectural dependent variations. Initialize ev
3791 registers numbers. Add case for e500 architecture. Set the
3792 number of pseudo registers.
3794 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3796 * rs6000-tdep.c: Clean up comments.
3798 2002-08-20 Andrew Cagney <cagney@redhat.com>
3800 * h8300-tdep.c: Re-indent file.
3802 2002-08-20 Jim Blandy <jimb@redhat.com>
3804 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3807 2002-08-20 Keith Seitz <keiths@redhat.com>
3809 * breakpoints.c (watch_command_1): Use internal breakpoint
3810 when setting a watchpoint_scope breakpoint.
3812 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3814 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3815 (build_builtin_type_vec64i): Ditto.
3816 (build_builtin_type_vec128): Ditto.
3817 (build_builtin_type_vec128i): Ditto.
3819 2002-08-19 Michael Snyder <msnyder@redhat.com>
3821 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3822 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3823 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3824 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3825 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3826 CALL_DUMMY_ADDRESS): Delete.
3827 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3828 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3829 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3830 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3831 push_return_address.
3832 (mips_register_raw_size, mips_eabi_use_struct_convention,
3833 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3834 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3835 mips_init_extra_frame_info, mips_eabi_push_arguments,
3836 mips_n32n64_push_arguments, mips_push_return_address,
3837 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3838 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3840 2002-08-19 Michael Snyder <msnyder@redhat.com>
3842 * mips-tdep.c (mips_frame_num_args): New function.
3843 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3844 frame_saved_pc, frame_args_address, frame_locals_address,
3845 frame_num_args, and frame_args_skip.
3846 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3847 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3848 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3849 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3851 2002-08-20 Michael Snyder <msnyder@redhat.com>
3853 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3854 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3855 * mips-tdep.c (mips_store_struct_return): New function.
3856 (mips_extract_struct_value_address): New function.
3857 (mips_gdbarch_init): Set store_struct_return and
3858 extract_struct_value_address.
3860 2002-08-20 David Carlton <carlton@math.stanford.edu>
3862 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3863 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3864 (read_file_scope): Check that line_header is nonzero before
3865 decoding macro information.
3867 2002-08-20 Mark Kettenis <kettenis@gnu.org>
3869 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3870 flag the general-purpose registers as floating-point on targets
3871 that don't support the floating-point registers.
3873 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3875 * rs6000-tdep.c (altivec_register_p): Delete.
3876 (rs6000_do_altivec_registers): Delete.
3877 (rs6000_altivec_registers_info): Delete.
3878 (rs6000_do_registers_info): Delete.
3879 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3880 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3882 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3884 * infcmd.c (do_registers_info): Print vector registers in hex
3886 (print_vector_info): Check that printing registers
3888 (print_float_info): Ditto.
3890 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3892 * mips-tdep.c (mips_gdbarch_init): Update.
3893 (mips_o32_extract_return_value): Rewrite.
3894 (mips_o32_store_return_value): Rewrite.
3895 (mips_o32_xfer_return_value): New function.
3896 (mips_xfer_register): Tweak debug print message. Allow for
3897 buf_offset when dumping the value transfered.
3899 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3901 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3902 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3903 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3904 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3905 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3907 2002-08-14 Michael Snyder <msnyder@redhat.com>
3909 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3911 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3913 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3915 (P): New macro to define a register as a pseudo register.
3916 (R, R4, R8, R16, FR32, R64, R0): Updated.
3917 (struct variant): Add new fields for number of pseudo registers
3918 and number of total registers.
3919 (tot_num_registers): New macro replacing....
3920 (num_registers): ...deleted macro.
3921 (num_registers): New function.
3922 (num_pseudo_registers): New function.
3923 (variants): Update all variants to intialize new fields correctly.
3924 Postpone initialization of number of pseudo regs and real regs.
3925 (init_variants): New function.
3926 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3929 2002-08-19 David Carlton <carlton@math.stanford.edu>
3931 * valops.c (search_struct_field): Change error message to treat
3932 return value of 0 from value_static_field as meaning that field is
3934 (value_struct_elt_for_reference): Ditto.
3935 * values.c (value_static_field): Treat an unresolved location the
3936 same as a nonexistent symbol. Fix PR gdb/635.
3937 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3938 enclosed. Fix PR gdb/574.
3939 * MAINTAINERS: Add self to Write After Approval list.
3941 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3943 * mips-tdep.c (mips_xfer_register): New function.
3944 (mips_n32n64_extract_return_value): Rewrite.
3945 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3946 instead of deprecated_extract_return_value.
3948 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3950 * rs6000-tdep.c (TDEP): Delete macro.
3951 (branch_dest): Replace use of TDEP macro with its body.
3952 (rs6000_pop_frame): Ditto.
3953 (rs6000_push_arguments): Ditto.
3954 (rs6000_skip_trampoline_code): Ditto.
3955 (rs6000_frame_saved_pc): Ditto.
3956 (rs6000_frame_chain): Ditto.
3957 (rs6000_register_name): Ditto.
3958 (rs6000_register_byte): Ditto.
3959 (rs6000_register_raw_size): Ditto.
3960 (rs6000_register_virtual_type): Ditto.
3961 (rs6000_register_convertible): Ditto.
3962 (rs6000_convert_from_func_ptr_addr): Ditto.
3964 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
3966 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3968 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3969 MIPS_LINUX_JB_ELEMENT_SIZE.
3970 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3971 for MAX_REGISTER_RAW_SIZE arrays.
3972 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3973 MIPS_LINUX_JB_ELEMENT_SIZE.
3975 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3977 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3979 2002-08-19 Aidan Skinner <aidan@velvet.net>
3981 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3982 ada-valprint.c ada-tasks.c.
3983 (YYFILES): Add ada-exp.y.
3984 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3985 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3986 (ada-exp.tab.o): New target.
3988 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3990 * regcache.c (regcache_xfer_part): New function.
3991 (regcache_raw_read_part): New function.
3992 (regcache_raw_write_part): New function.
3993 (regcache_cooked_read_part): New function.
3994 (regcache_cooked_write_part): New function.
3995 * regcache.h (regcache_raw_read_part): Declare.
3996 (regcache_raw_write_part): Declare.
3997 (regcache_cooked_read_part): Declare.
3998 (regcache_cooked_write_part): Declare.
4000 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4002 * remote.c (remote_open_1): Add async_p.
4003 (remote_async_open_1): Delete.
4004 (open_remote_target): Delete.
4005 (remote_open, extended_remote_open): Update calls to remote_open_1.
4006 (remote_async_open, extended_remote_async_open): Call
4007 remote_open_1 instead of remote_async_open_1.
4009 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4011 * blockframe.c: Fix a few coding standard violations.
4013 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4015 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4017 * config/i386/tm-i386sco5.h: ... here. File removed.
4018 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4020 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4021 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4022 (TM_FILE): Set to tm-i386.h.
4023 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4024 * config/i386/tm-i386v.h: Remove file.
4025 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4026 instead of "i386/tm-i386v.h".
4027 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4028 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4030 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4031 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4034 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4036 * config/i386/nm-i386v.h: Add protection against
4038 (i386_register_u_addr): Remove prototype.
4039 (register_u_addr): New prototype.
4040 (REGISTER_U_ADDR): Redefine accordingly.
4041 * i386v-nat.c: Improve several comments.
4042 (i386_register_u_addr): Change signature and rename to
4043 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4046 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4048 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4049 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4050 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4051 deprecated_extract_return_value.
4052 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4053 rename mips_o32o64_push_arguments.
4054 (mips_gdbarch_init): Update.
4055 (mips_extract_return_value): Delete.
4056 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4057 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4058 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4059 (mips_n32n64_extract_return_value): Clone
4060 mips_extract_return_value.
4061 (mips_store_return_value): Delete.
4062 (mips_o32_store_return_value): Clone mips_store_return_value.
4063 (mips_o64_store_return_value): Clone mips_store_return_value.
4064 (mips_eabi_store_return_value): Clone mips_store_return_value.
4065 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4067 2002-08-18 Aidan Skinner <aidan@velvet.net>
4069 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4070 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4072 2002-08-18 Aidan Skinner <aidan@velvet.net>
4074 * ada-lang.c: Run through gdb_indent.sh.
4075 * ada-lang.h: Run through gdb_indent.sh.
4076 * ada-tasks.c: Run through gdb_indent.sh.
4077 * ada-typeprint.c: Run through gdb_indent.sh.
4078 * ada-valprint.c: Run through gdb_indent.sh.
4080 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4082 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4085 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4087 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4089 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4090 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4092 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4093 write_register_gen instead of write_register_bytes.
4095 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4096 i[3456]-*-osf1mk* configurations have been made obsolete.
4097 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4098 i[3456]86-*-osf1mk* hosts obsolete.
4099 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4101 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4102 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4103 config/i386/i386m3.mt, config/i386/nm-m3.h,
4104 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4105 config/i386/i386mk.mh, config/i386/i386mk.mt,
4106 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4108 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4109 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4110 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4112 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4114 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4115 (hppa_value_returned_from_stack): Declare.
4116 (hppa_extract_return_value): Declare.
4117 * config/pa/hppa.mt: New file.
4118 * configure.tgt: Recognize hppa*-*-*.
4119 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4121 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4123 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4126 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4128 * top.c (gdb_rl_operate_and_get_next): Make sure
4129 operate-and-get-next functions correctly even when the history
4130 list is completely filled.
4132 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4134 * MAINTAINERS (Target Instruction Set Architectures): Rename
4135 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4136 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4137 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4138 already listed under Host/Native.
4140 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4141 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4144 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4146 * config/ia64/ia64.mt: New file.
4147 * config/alpha/alpha.mt: New file.
4148 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4149 ia64-linux-gnu. Mention that ia64-elf is broken.
4150 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4152 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4154 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4155 generic_func_frame_valid instead of func_frame_valid.
4157 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4159 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4160 procfs appears to be broken when debugging on multi-processor
4161 machines. So enable software single stepping in order to avoid
4162 using the procfs interface to do next/step operations, using
4163 internal breakpoints instead.
4165 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4166 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4167 make this pc address equal to the value it would have if the
4168 system stepping capability was used. Also set a new flag used
4169 to ensure that we don't readjust the PC one more time later.
4171 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4172 address by DECR_PC_AFTER_BREAK when software single step is
4173 in use for this architecture, as this has already been taken
4174 care of in handle_inferior_event().
4176 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4178 * infrun.c (handle_inferior_event): Minor reformatting, to make
4179 a rather long condition expression easier to read.
4181 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4183 * Makefile.in (gdbtk.o): Move to end of file.
4184 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4185 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4186 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4187 (gdbtk-wrapper.o, gdbres.o): Ditto.
4189 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4191 * Makefile.in (copying.o): Separate out compile rule.
4192 (hpux-thread.o, procfs.o, signals.o): Ditto.
4193 (v850ice.o, z8k-tdep.o): Ditto.
4194 (tui-file.o): Move to TUI section.
4195 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4196 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4198 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4200 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4201 skip_trampoline_code, for better namespace-proofing.
4203 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4205 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4207 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4209 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4211 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4212 signal, check whether we hit a breakpoint before checking for a
4213 single step breakpoint. Otherwise, GDB fails to notice that a
4214 breakpoint has been hit when stepping onto a breakpoint.
4216 2002-08-16 Keith Seitz <keiths@redhat.com>
4218 * gdb-events.sh (clear_gdb_event_hooks): New function.
4219 * gdb-events.c: Regenerate.
4220 * gdb-events.h: Regenerate.
4222 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4224 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4225 not_a_sw_breakpoint.
4226 * breakpoint.h (bpstat_stop_status): Add parameter names.
4228 2002-08-16 Grace Sainsbury <graces@redhat.com>
4230 * remote.c (remote_insert_hw_breakpoint)
4231 (remote_remove_hw_breakpoint): Fix calculation of length field
4234 2002-08-15 Michael Snyder <msnyder@redhat.com>
4236 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4237 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4238 (supply_fpregset): Ditto.
4240 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4241 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4242 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4243 (TARGET_READ_SP): Delete.
4244 (DO_REGISTERS_INFO): Delete.
4245 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4247 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4248 from macros to functions.
4250 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4251 (mips_register_convertible, mips_register_convert_to_virtual,
4252 mips_register_convert_to_raw): Make static.
4253 (mips_read_sp): New function.
4254 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4255 (mips_do_registers_info): Make static.
4256 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4257 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4258 (mips_register_convert_from_type, mips_register_convert_to_type):
4260 (mips_gdbarch_init): Set up function_start_offset,
4261 register_virtual_size, pc_in_sigtramp.
4263 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4265 * infcmd.c (vector_info): New function.
4266 (_initialize_infcmd): Add command "info vector".
4267 (print_vector_info): New function.
4269 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4270 * gdbarch.h, gdbarch.c: Regenerate.
4272 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4274 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4275 ``print_all''. Only print vector registers when ``print_all''.
4277 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4279 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4280 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4282 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4283 Add `args' parameter.
4284 * gdbarch.h, gdbarch.c: Regenerate.
4286 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4288 * infcmd.c (float_info): Call print_float_info.
4289 (print_float_info): New function. By default, print the
4290 floating-point registers.
4292 * arch-utils.h (default_print_float_info): Delete declaration.
4293 * arch-utils.c (default_print_float_info): Delete function.
4295 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4297 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4300 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4303 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4304 * configure.host: Make i[3456]86-*-aix host obsolete.
4305 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4306 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4307 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4308 config/i386/xm-i386aix.h: Make files obsolete.
4309 * i386aix-nat.c: Make file obsolete.
4310 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4311 (i386aix-nat.o): Make target obsolete.
4313 * config/i386/nm-gnu.h: Removed.
4314 * config/i386/nm-i386gnu.h: New file.
4315 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4316 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4318 * config/i386/tm-i386gnu.h: ... here. Removed.
4319 * config/i386/xm-i386gnu.h: Removed.
4320 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4321 (NAT_FILE): Set to nm-i386gnu.h.
4322 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4323 * i386-tdep.c: New file.
4324 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4325 (i386gnu-tdep.o): Specify dependencies.
4327 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4329 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4330 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4331 Adjust a few comments to reflect reality a bit closer.
4332 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4333 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4334 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4335 target_insert_watchpoint, target_remove_watchpoint):
4337 * config/i386/nm-i386sco5.h: ... here.
4338 (kernel_u_size): Add prototype. Improve a few comments and add
4339 protection against multiple inclusion.
4341 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4344 * uw-thread.c (SP_ARG0): Define if not already defined.
4345 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4347 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4349 * config/i386/tm-i386.h: Don't include "regcache.h".
4351 * i387-tdep.h (i387_print_float_info): New prototype.
4352 * i387-tdep.c (print_i387_value, print_i387_ext,
4353 print_i387_status_word, print_i387_control_word): Add `struct
4354 ui_file *' argument and use it for output.
4355 (i387_print_float_info): Renamed from i387_float_info. Add
4356 `struct gdbarch *' and `struct ui_file *' arguments and use the
4358 * i386-tdep.c: Include "i387-tdep.h".
4359 (i386_gdbarch_init): Set print_float_info.
4360 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4361 (FLOAT_INFO): Remove define.
4363 2002-08-13 Michael Snyder <msnyder@redhat.com>
4365 * mips-tdep.c (mips_push_arguments): Rename to
4366 mips_eabi_push_arguments, and tune for EABI.
4367 (MIPS_REGS_HAVE_HOME_P): Delete.
4368 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4369 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4370 Delete references to mips_regs_have_home_p.
4372 2002-08-14 Keith Seitz <keiths@redhat.com>
4374 * Makefile.in (install-gdbtk): Create insight plugin directory.
4375 Install plugins.tcl file.
4377 2002-08-14 Keith Seitz <keiths@redhat.com>
4379 * configure.in: Move SUBDIRS to near top of the file so that
4380 --enable options may add things to it.
4381 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4382 * configure: Regenerate.
4384 2002-08-13 Michael Snyder <msnyder@redhat.com>
4386 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4387 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4388 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4390 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4392 * vax-tdep.c (vax_get_saved_register): Delete function.
4393 (vax_gdbarch_init): Update.
4394 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4395 (ns32k_gdbarch_init): Update.
4396 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4397 (alpha_gdbarch_init): Update.
4399 2002-08-13 Andrew Cagney <cagney@redhat.com>
4401 * regcache.c (init_regcache_descr): Overallocate the
4402 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4403 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4405 (set_register_cached): Add range checking assertions. Use
4408 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4410 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4411 numbers for MMX registers.
4413 2002-08-13 Andrew Cagney <cagney@redhat.com>
4415 * i386-tdep.c (i386_gdbarch_init): Use
4416 generic_unwind_get_saved_register.
4418 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4420 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4421 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4423 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4424 Delete. Add comment regarding this now-deleted target method.
4426 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4428 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4429 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4430 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4431 real PC and the page number (if it's within the memory bank window).
4432 (m68hc11_pseudo_register_write): Likewise when saving.
4433 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4434 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4435 (m68hc11_register_raw_size): And use 32-bit for it.
4436 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4437 16K memory bank is used by the prog; also use the virtual pc.
4439 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4441 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4442 (m68hc11_gdbarch_init): Install it in gdbarch.
4443 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4444 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4445 (MSYMBOL_SIZE): New for documentation.
4446 (insn_return_kind): Enum to specify how a function returns.
4447 (frame_extra_info): Cleanup and record the return mode.
4448 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4449 register in address computation.
4450 (m68hc11_get_return_insn): New to obtain the return instruction used
4452 (m68hc11_frame_init_saved_regs): Take into account the return
4453 instruction used by the function for far and interrupt functions.
4454 (m68hc11_init_extra_frame_info): Take into account page register.
4455 (m68hc11_frame_args_address): Adjust according to the return mode.
4456 (show_regs): Print page register only when it's used.
4458 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4460 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4461 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4462 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4464 (m68hc11_register_raw_size): Likewise.
4466 2002-08-13 Andrew Cagney <cagney@redhat.com>
4468 * i386-tdep.c (i386_register_name): Handle mmx registers.
4469 (mmx_regnum_p): New function.
4470 (i386_mmx_names): New array.
4471 (mmx_num_regs): New variable.
4472 (i386_pseudo_register_read): New function.
4473 (i386_pseudo_register_write): New function.
4474 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4476 * regcache.c (regcache_raw_read_unsigned): New function.
4477 (regcache_raw_read_signed): New function.
4478 * regcache.h (regcache_raw_read_unsigned): Declare.
4479 (regcache_raw_read_signed): Declare.
4481 2002-08-13 Andrew Cagney <cagney@redhat.com>
4483 * regcache.c (regcache_raw_read_as_address): Delete function.
4484 (regcache_cooked_read_signed): New function.
4485 (regcache_cooked_read_unsigned): New function.
4486 * regcache.h (regcache_cooked_read_signed): Declare.
4487 (regcache_cooked_read_unsigned): Declare.
4488 (regcache_raw_read_as_address): Delete declaration.
4490 * blockframe.c (generic_read_register_dummy): Use
4491 regcache_cooked_read_unsigned.
4492 * i386-tdep.c (i386_extract_struct_value_address): Use
4493 regcache_cooked_read_unsigned.
4495 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4497 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4498 double sizes according to ELF ABI flags.
4499 (gdbarch_tdep): Record elf_flags.
4501 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4503 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4504 (m6812_prolog): They can appear in 68HC12 function prologue.
4505 (m68hc11_frame_chain): Cleanup.
4507 2002-08-12 Andrew Cagney <cagney@redhat.com>
4509 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4511 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4512 (i386_linux_register_raw_size): Delete function.
4513 (i386_linux_init_abi): Update.
4514 * i386-tdep.c (i386_register_raw_size): Delete function.
4515 (i386_register_byte): Delete function.
4516 (i386_gdbarch_init): Update.
4517 (i386_register_size): Delete array.
4518 (i386_register_offset): Delete array.
4520 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4521 (REGISTER_RAW_SIZE): Delete macro.
4522 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4523 (REGISTER_BYTE): Delete macro.
4525 2002-08-11 Aidan Skinner <aidan@velvet.net>
4527 * ada-lang.c (ada_lookup_partial_symbol)
4528 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4529 prototype names so that grep ^func works properly.
4531 * ada-lang.c (ada_array_element_type)
4532 (ada_lookup_partial_symbol): Fix typos in parameter list.
4534 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4535 Fix prototype names so that grep ^func works properly.
4537 2002-08-10 Andrew Cagney <cagney@redhat.com>
4538 Elena Zannoni <ezannoni@redhat.com>
4539 Martin M. Hunt <hunt@redhat.com>
4541 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4542 (build_builtin_type_vec128i): Set the vector bit.
4543 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4544 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4545 (build_builtin_type_vec64): New function.
4546 (build_builtin_type_vec64i): New function.
4547 (build_gdbtypes): Initialize builtin_type_vec64 and
4548 builtin_type_vec64i.
4550 2002-08-09 Andrew Cagney <cagney@redhat.com>
4552 * regcache.c (regcache_dump): Compare the register offset
4554 * arch-utils.c (generic_register_byte): New function.
4555 * arch-utils.h (generic_register_byte): Declare.
4556 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4557 * gdbarch.h, gdbarch.c: Regenerate.
4559 2002-08-09 Andrew Cagney <cagney@redhat.com>
4561 * regcache.c: Include "gdbcmd.h"
4562 (_initialize_regcache): Add commands "maintenance print
4563 registers", "maintenance print raw-registers" and "maintenance
4564 print cooked-registers".
4565 (enum regcache_dump_what): Define.
4566 (dump_endian_bytes): New function.
4567 (regcache_dump): New function.
4568 (regcache_print): New function.
4569 (maintenance_print_registers): New function.
4570 (maintenance_print_raw_registers): New function.
4571 (maintenance_print_cooked_registers): New function.
4572 * Makefile.in (regcache.o): Update dependencies.
4574 2002-08-09 Michael Snyder <msnyder@redhat.com>
4576 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4577 (mips_push_arguments): Correct some comments. Use paddr_nz
4578 for printing addresses in debug output. Replace static
4579 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4580 (mips_n32n64_push_arguments): New function, cloned from
4581 mips_push_arguments and tuned for the n32/n64 ABI.
4582 (mips_push_register): Buffer needs dynamic allocation.
4583 (mips_print_register): Ditto.
4584 (do_gp_register_row): Ditto.
4585 (mips_store_return_value): Ditto.
4586 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4588 2002-08-09 Don Howard <dhoward@redhat.com>
4590 * memattr.c (mem_info_command): Print special case of upper bound
4591 as max CORE_ADDR + 1.
4593 2002-08-08 Michael Snyder <msnyder@redhat.com>
4595 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4596 returns structs by ref if they're too big to fit in two registers.
4598 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4600 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4602 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4603 mips_find_saved_regs().
4604 (mips_pop_frame): Likewise.
4606 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4608 * blockframe.c (frame_saved_regs_register_unwind): Revise
4609 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4612 2002-08-09 Grace Sainsbury <graces@redhat.com>
4614 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4615 T-packets; the 'a' is not taken as a register number.
4616 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4617 (remote_stopped_data_address): New functions; add to target
4619 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4620 prototypes to match other implementations of this
4621 function. replace integer argument with pointer -- the length
4622 field in the Z-packet is the length of what is pointed to or 1 if
4623 pointer is null. Add to target vector.
4624 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4628 * remote.c (remote_wait): Add support to extract optional
4629 watchpoint information from T-packet. Ignore unrecognized
4630 optional info in T-packet.
4631 (remote_async_wait): Ditto.
4633 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4635 * cli/cli-dump.c: Change fopen modes to use binary open modes
4636 as defined in include/fopen-bin.h throughout.
4638 2002-08-08 Michael Snyder <msnyder@redhat.com>
4640 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4642 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4644 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4645 assertion failure by returning early after a warning.
4647 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4649 * mips-tdep.c (mips_find_saved_regs): Make static.
4650 (mips_frame_init_saved_regs): New function.
4651 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4652 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4653 (mips_find_saved_regs): Delete declaration.
4655 2002-08-08 Grace Sainsbury <graces@redhat.com>
4657 * remote.c (remote_wait, remote_async_wait): Change
4658 thread_num from int to ULONGEST.
4659 (unpack_varlen_hex): Change result parameter from
4660 int * to ULONGEST *.
4662 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4664 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4665 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4667 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4669 2002-08-08 Andrew Cagney <cagney@redhat.com>
4671 * gcore.c (override_derive_stack_segment): Delete variable.
4672 (preempt_derive_stack_segment): Delete function.
4673 (derive_stack_segment): Delete function.
4674 (default_derive_stack_segment): Renamed to derive_stack_segment.
4675 (override_derive_heap_segment): Delete variable.
4676 (preempt_derive_heap_segment): Delete function.
4677 (derive_heap_segment): Delete function.
4678 (default_derive_heap_segment): Rename to derive_heap_segment.
4680 2002-08-06 Michael Snyder <msnyder@redhat.com>
4682 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4683 * mips-tdep.c (mips_EABI_use_struct_convention,
4684 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4685 New functions. (mips_use_struct_convention): Delete.
4686 (mips_gdbarch_init): set use_gdbarch_convention.
4688 2002-08-06 Michael Snyder <msnyder@redhat.com>
4690 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4691 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4692 mips_o32_reg_struct_has_addr): New functions.
4693 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4695 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4697 * regcache.c (pseudo_register): Delete function.
4698 (fetch_register): Delete function.
4699 (store_register): Delete function.
4700 (regcache_raw_read, legacy_read_register_gen): Use
4701 target_fetch_registers instead of fetch_register.
4702 (legacy_write_register_gen, regcache_raw_write): Use
4703 target_store_register instead of store_register.
4704 (write_register_bytes): Ditto.
4706 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4707 (STORE_PSEUDO_REGISTER): Delete.
4708 * gdbarch.h, gdbarch.c: Regenerate.
4710 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4712 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4713 write dump file binary.
4715 2002-08-05 Michael Snyder <msnyder@redhat.com>
4717 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4718 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4719 (mips_gdbarch_init): Set N32 target to be mips64.
4721 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4723 * frame.c (find_saved_register): Break out of loop once saved
4724 register address is found. Don't mention sparc in loop comment
4727 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4729 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4730 mips_default_saved_regsize to 8.
4732 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4734 * gcore.c: Do not include <sys/procfs.h>.
4735 * Makefile.in (gcore.o): Update dependencies.
4737 2002-08-06 Andrew Cagney <cagney@redhat.com>
4739 * configure.tgt: Make arc-*-* obsolete.
4740 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4741 * MAINTAINERS: Make arc-elf obsolete.
4742 * arc-tdep.c: Make file obsolete.
4743 * config/arc/arc.mt: Ditto.
4744 * config/arc/tm-arc.h: Ditto.
4746 2002-08-05 Theodore A. Roth <troth@verinet.com>
4748 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4750 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4752 * mcore-tdep.c (mcore_gdbarch_init): Use
4753 generic_unwind_get_saved_register instead of
4754 generic_get_saved_register.
4755 * v850-tdep.c (v850_gdbarch_init): Ditto.
4756 * frv-tdep.c (frv_gdbarch_init): Ditto.
4757 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4758 * s390-tdep.c (s390_gdbarch_init): Ditto.
4759 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4760 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4761 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4763 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4765 * objfiles.h: Add missing #include "symfile.h"
4767 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4769 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4771 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4772 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4775 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4777 * NEWS: Cleanup and nitpick.
4779 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4781 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4783 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4785 * Makefile.in (gdbtk-bp.o): Update dependencies.
4786 (gdbtk-register.o): Ditto.
4787 (gdbtk-varobj.o): Ditto.
4789 2002-08-03 Andrew Cagney <cagney@redhat.com>
4791 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4792 m68hc11_fetch_pseudo_register.
4793 (m68hc11_pseudo_register_write): Replace
4794 m68hc11_store_pseudo_register.
4795 (m68hc11_gdbarch_init): Update.
4797 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4799 * gdbarch.sh: Include "gdb_string.h".
4800 * gdbarch.c: Regenerate.
4802 * regcache.c: Include "gdb_string.h".
4803 * ax-general.c: Ditto.
4805 * std-regs.c: Ditto.
4806 * fbsd-proc.c: Ditto.
4809 * Makefile.in (regcache.o): Update dependencies.
4810 (thread.o, gdbarch.o): Ditto.
4811 (ax-general.o, gdbarch.o): Ditto.
4812 (varobj.o, std-regs.o): Ditto.
4813 (fbsd-proc.o): Specify dependencies.
4815 2002-08-02 Andrew Cagney <cagney@redhat.com>
4817 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4819 (regcache_cooked_write): Ditto.
4821 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4823 * regcache.c (regcache_cooked_read): New function.
4824 (regcache_cooked_write): New function.
4825 (read_register_gen): Rewrite using regcache_cooked_read.
4826 (write_register_gen): Rewrite using regcache_cooked_write.
4828 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4831 2002-08-02 Andrew Cagney <cagney@redhat.com>
4833 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4834 Replace the architecture methods register_read and register_write.
4835 * gdbarch.h, gdbarch.c: Regenerate.
4836 * regcache.c (init_regcache_descr): Update.
4837 (read_register_gen): Update.
4838 (write_register_gen): Update.
4839 (supply_register): Update comment.
4841 * sh-tdep.c (sh_gdbarch_init): Update.
4842 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4843 `regcache' and `gdbarch' parameters. Make `buffer' a void
4844 pointer. Update code.
4845 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4846 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4847 void pointer. Update code.
4848 (sh64_register_write): Delete.
4849 (sh4_register_read): Delete.
4850 (sh64_register_read): Delete.
4851 (sh4_register_write): Delete.
4852 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4853 void pointer, `to' parameter a void pointer.
4854 (sh_sh64_register_convert_to_raw): Ditto.
4856 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4858 * mips-tdep.c (mips_register_virtual_type): Use architecture
4859 invariant return values.
4861 2002-08-01 Andrew Cagney <cagney@redhat.com>
4863 * linux-proc.c: Include "gdb_string.h".
4864 * Makefile.in (linux-proc.o): Update dependency list.
4866 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4868 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4871 2002-08-01 Grace Sainsbury <graces@redhat.com>
4873 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4874 to_insert_watchpoint, to_remove_watchpoint,
4875 to_stopped_by_watchpoint, to_stopped_data_address,
4876 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4877 target vecctor. Define their corresponding macros so they call
4880 * target.c: Add default and debug versions of for
4881 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4882 to_insert_watchpoint, to_remove_watchpoint,
4883 to_stopped_by_watchpoint, to_stopped_data_address,
4884 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4886 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4888 * mips-tdep.c (mips_register_virtual_type): New function.
4889 (mips_gdbarch_init): Register mips_register_virtual_type()
4890 with gdbarch machinery.
4891 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4892 this file instead of tm-bigmips.h.
4893 (MIPS_REGSIZE): Delete this macro.
4894 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4895 multiarch version in mips-tdep.c will be found.
4897 2002-08-01 Andrew Cagney <cagney@redhat.com>
4899 * NEWS: Menion that CHILL has been made obsolete.
4901 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4902 * stabsread.c (read_range_type): Ditto.
4903 * gdbtypes.h: Ditto.
4904 * language.c (binop_type_check): Ditto.
4905 (binop_result_type): Ditto.
4906 (integral_type): Ditto.
4907 (character_type): Ditto.
4908 (string_type): Ditto.
4909 (boolean_type): Ditto.
4910 (structured_type): Ditto.
4911 (lang_bool_type): Ditto.
4912 (binop_type_check): Ditto.
4913 * language.h (_LANG_chill): Ditto.
4914 * dwarfread.c (set_cu_language): Ditto.
4915 * dwarfread.c (CHILL_PRODUCER): Ditto.
4916 * dwarfread.c (handle_producer): Ditto.
4917 * expression.h (enum exp_opcode): Ditto.
4918 * eval.c: Ditto for comments.
4919 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4920 * expprint.c (print_subexp): Ditto.
4921 (print_subexp): Ditto.
4922 * valops.c (value_cast): Ditto.
4923 (search_struct_field): Ditto.
4924 * value.h (COERCE_VARYING_ARRAY): Ditto.
4925 * symfile.c (init_filename_language_table): Ditto.
4926 (add_psymbol_with_dem_name_to_list): Ditto.
4927 * valarith.c (value_binop): Ditto.
4929 * valops.c (value_slice): Ditto.
4930 * symtab.h (union language_specific): Ditto.
4931 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4932 (SYMBOL_DEMANGLED_NAME): Ditto.
4933 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4934 * defs.h (enum language): Ditto.
4935 * symtab.c (got_symtab): Ditto.
4936 * utils.c (fprintf_symbol_filtered): Ditto.
4938 * ch-typeprint.c: Make file obsolete.
4939 * ch-valprint.c: Make file obsolete.
4940 * ch-lang.h: Make file obsolete.
4941 * ch-exp.c: Make file obsolete.
4942 * ch-lang.c: Make file obsolete.
4944 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4946 (TARGET_FLAGS_TO_PASS): Ditto.
4947 (CHILLFLAGS): Obsolete.
4949 (CHILL_FOR_TARGET): Obsolete.
4950 (CHILL_LIB): Obsolete.
4951 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4953 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4954 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4956 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4959 2002-07-31 Joel Brobecker <brobecker@gnat.com>
4961 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4962 This does not change anything at the moment, but will be helpful
4963 later when full Ada support is integrated.
4965 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4967 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4970 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4972 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4973 and save it in a local variable. Use variable in later test.
4975 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4977 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4978 test. (Thanks to Daniel Jacobowitz.)
4980 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4982 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4983 (mips_abi_strings): Add "n64".
4984 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4986 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4988 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4989 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4991 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4993 * utils.c (host_pointer_to_address, address_to_host_pointer):
4994 Use gdb_assert() instead of explicit call to internal_error().
4996 2002-07-30 Kevin Buettner <kevinb@redhat.com>
4998 * Makefile.in (rs6000-nat.o): Update dependencies.
5000 From Nicholas Duffek:
5001 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5002 (aix-thread.o): New rule.
5003 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5004 * config/powerpc/aix432.mh: New file.
5006 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5008 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5009 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5010 (fetch_core_registers, ppc_linux_supply_gregset)
5011 (ppc_linux_supply_fpregset): New functions.
5012 (ppc_linux_regset_core_fns): New.
5013 (_initialize_ppc_linux_tdep): Call add_core_fns.
5014 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5015 and ppc_linux_supply_gregset.
5016 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5017 (supply_fpregset): Call ppc_linux_supply_fpregset.
5018 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5020 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5022 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5024 * symtab.c (lookup_symbol): Demangle before lowercasing.
5026 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5028 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5030 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5031 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5032 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5033 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5035 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5036 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5037 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5038 (avr-tdep.o, mon960-rom.o): Ditto.
5039 (aout_stabs_gnu_h): Define.
5040 (symtab_h): Remove $(gdb_obstack_h).
5042 2002-07-30 Jim Blandy <jimb@redhat.com>
5044 Patch from David Carlton <carlton@math.stanford.edu>:
5045 * gdbinit.in: Move the `dir' commands that add GDB's own source
5046 directory to the search path to the end, so that the `gdb' source
5047 directory will be searched first.
5049 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5051 * gdb_obstack.h: New file.
5052 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5053 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5054 * objfiles.h: Include "gdb_obstack.h".
5055 * Makefile.in (gdb_obstack_h): Define.
5056 (symtab_h): Add $(gdb_obstack_h).
5057 (objfiles_h): Add $(gdb_obstack_h).
5059 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5060 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5061 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5062 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5063 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5064 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5065 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5066 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5068 * Makefile.in (bcache.o): Update dependencies.
5069 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5070 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5071 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5072 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5073 (stabsread.o, symfile.o, symmisc.o): Ditto.
5074 (symtab.o, typeprint.o, macroexp.o): Ditto.
5075 (macrotab.o, mdebugread.o): Ditto.
5076 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5077 (coff_ecoff_h, aout_aout64_h): Define.
5078 (aout_stabs_gnu_h, libaout_h): Define.
5080 2002-07-29 Andrew Cagney <cagney@redhat.com>
5082 * regcache.c (struct regcache_descr): Rename nr_registers to
5083 nr_cooked_registers. Revise comments describing the structure
5085 (init_regcache_descr): Update.
5086 (init_legacy_regcache_descr): Update.
5087 (read_register_gen, write_register_gen): When a cooked register in
5088 the raw register range, directly access the value from the raw
5091 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5093 * z8k-tdep.c: Do not include "obstack.h".
5094 * h8300-tdep.c, h8500-tdep.c: Ditto.
5095 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5096 * valprint.c, v850-tdep.c: Ditto.
5097 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5098 * mn10200-tdep.c: Ditto.
5100 * Makefile.in (z8k-tdep.o): Update dependencies.
5101 (m68hc11-tdep.o, valprint.o): Ditto.
5102 (v850-tdep.o, d10v-tdep.o): Ditto.
5103 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5104 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5105 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5106 (sh_opc_h, gdb_sim_sh_h): Define.
5107 (elf_sh_h, elf_bfd_h): Define.
5108 (opcode_m68hc11_h): Define.
5109 (OPCODES_SRC, OPCODES_DIR): define.
5110 (OPCODES): Use $(OPCODES_DIR).
5111 (gdb_sim_d10v_h): Rename sim_d10v_h.
5112 (gdb_sim_arm_h): Rename sim_arm_h.
5114 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5116 * utils.c (host_pointer_to_address, address_to_host_pointer):
5117 Change internal_error() message to indicate function responsible
5120 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5122 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5123 calls to local_hex_string_custom().
5125 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5127 * irix5-nat.c: Move IRIX shared library support from here...
5128 * solib-irix.c: ...to here. Revised substantially to work with
5129 generic solib framework.
5131 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5132 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5133 * mips-irix-tdep.c: New file.
5135 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5136 (mips-irix-tdep.o, solib-irix.o): New rules.
5137 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5139 * config/mips/irix6.mt (TDEPFILES): Likewise.
5140 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5142 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5144 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5145 disabled (via ``#if 0'') includes.
5147 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5149 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5150 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5151 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5152 Add support for the fpscr register.
5153 * rs6000-nat.c (regmap, fetch_inferior_registers)
5154 (store_inferior_registers, fetch_core_registers): Likewise.
5156 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5158 * rs6000-nat.c (language.h): Include.
5159 (special_regs): Delete this array.
5160 (regmap): New function.
5161 (fetch_register, store_register): Use regmap() to map gdb
5162 register numbers to ptrace register numbers. Also, use
5163 outputs from regmap() to make decisions regarding type of
5164 ptrace() call to make. In particular, don't compare against
5165 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5166 (fetch_inferior_registers, store_inferior_registers): Where
5167 possible, obtain register numbers from tdep struct. Don't
5168 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5169 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5170 (LAST_UISA_SP_REGNUM): Delete.
5172 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5174 * rs6000-nat.c (ppc-tdep.h): Include.
5175 (fetch_registers, store_register, fetch_core_registers): Don't
5176 access registers[] directly. Instead, use supply_register() or
5177 regcache_collect() as appropriate.
5178 (find_toc_address): Format hex address with local_hex_string().
5180 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5182 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5185 2002-07-24 Tom Tromey <tromey@redhat.com>
5187 * jv-exp.y: Marked all strings with _().
5188 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5190 (MethodInvocation, CastExpression, parse_number, yyerror,
5191 java_type_from_name, push_expression_name, yylex): Typo fixes.
5193 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5195 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5196 (tee_file_flush, tee_file_write, tee_file_fputs)
5197 (tee_file_isatty): New.
5198 * ui-file.h (tee_file_new): Add prototype.
5200 2002-07-24 Aidan Skinner <aidan@velvet.net>
5202 * ada-lang.c: Change k&r style function definitions to prototyped
5204 * ada-typeprint.c: Change k&r style function definitions to prototyped
5206 * ada-valprint.c: Change k&r style function definitions to prototyped
5209 2002-07-24 Andrew Cagney <cagney@redhat.com>
5211 * README: Remove reference to remote-bug.
5212 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5214 (m88k-nat.o): Delete rule.
5215 (m88k-tdep.o): Delete rule.
5216 (remote-bug.o): Delete rule.
5217 * MAINTAINERS: Mark as obsolete.
5218 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5219 * m88k-tdep.c: Make file obsolete.
5220 * config/m88k/m88k.mh: Ditto.
5221 * config/m88k/delta88v4.mh: Ditto.
5222 * config/m88k/delta88v4.mt: Ditto.
5223 * config/m88k/delta88.mt: Ditto.
5224 * config/m88k/delta88.mh: Ditto.
5225 * remote-bug.c: Ditto.
5226 * config/m88k/tm-delta88.h: Ditto.
5227 * config/m88k/nm-delta88v4.h: Ditto.
5228 * config/m88k/xm-delta88.h: Ditto.
5229 * config/m88k/xm-dgux.h: Ditto.
5230 * config/m88k/tm-m88k.h: Ditto.
5231 * config/m88k/nm-m88k.h: Ditto.
5232 * config/m88k/tm-delta88v4.h: Ditto.
5233 * m88k-nat.c: Ditto.
5234 * cxux-nat.c: Ditto.
5235 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5236 and m88*-*-* obsolete.
5237 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5240 2002-07-24 Andrew Cagney <cagney@redhat.com>
5242 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5243 constant. Same for local pointer variables.
5244 (extract_signed_integer): Ditto.
5245 * defs.h (extract_unsigned_integer): Update.
5246 (extract_signed_integer): Update.
5248 2002-07-24 Andrew Cagney <cagney@redhat.com>
5250 * regcache.c (regcache_raw_write): Change buf parameter to a
5251 constant void pointer.
5252 (regcache_raw_read): Change buf parameter to a void pointer.
5253 (legacy_write_register_gen): Change myaddr parameter a constant
5255 (supply_register): Change val parameter to a const void pointer.
5256 * regcache.h (regcache_raw_write): Update declaration.
5257 (regcache_raw_read): Update declaration.
5258 (supply_register): Update declaration.
5260 2002-07-24 Tom Tromey <tromey@redhat.com>
5262 * defs.h (gdb_readline_wrapper): Declare.
5263 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5264 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5265 * top.c (gdb_readline_wrapper): New function.
5266 (command_line_input): Use it.
5268 2002-07-24 Andrew Cagney <cagney@redhat.com>
5270 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5271 regcache_read and regcache_write.
5272 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5273 * regcache.c: Update.
5274 * sh-tdep.c (sh64_push_arguments): Update comment.
5275 (sh_pseudo_register_read): Update.
5276 (sh_pseudo_register_write): Update.
5277 (sh4_register_read): Update.
5278 (sh4_register_write): Update.
5279 (sh64_pseudo_register_read): Update.
5280 (sh64_pseudo_register_write): Update.
5281 (sh64_register_read): Update.
5282 (sh64_register_write): Update.
5283 * i386-tdep.c (i386_extract_return_value): Update.
5284 (i386_extract_struct_value_address): Update.
5285 (i386_extract_return_value): Update.
5286 * blockframe.c (generic_read_register_dummy): Update.
5287 (generic_call_dummy_register_unwind): Update
5288 * infrun.c (write_inferior_status_register): Update.
5290 2002-07-23 Jim Blandy <jimb@redhat.com>
5292 * parser-defs.h (expression_context_pc): Make this extern.
5293 (Thanks to Michael Snyder.)
5295 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5297 GDB 5.2.1 released from 5.2 branch.
5298 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5299 * README: Update to mention 5.2.1.
5301 2002-07-23 Mark Salter <msalter@redhat.com>
5303 * remote.c (remote_read_bytes): Fix check for error.
5305 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5307 * aix-thread.c (language.h): Include.
5308 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5309 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5310 Print newlines at end of debug messages.
5311 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5312 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5314 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5316 * aix-thread.c (ppc-tdep.h): Include.
5317 (special_register_p): New function.
5318 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5319 (store_regs_user_thread): Use register number information from
5320 gdbarch_tdep struct instead of hardcoded offsets relative to
5321 FIRST_UISA_SP_REGNUM.
5322 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5323 special_register_p() instead of using FPLAST_REGNUM and
5324 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5325 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5326 will be MQ's register number.
5328 2002-07-22 Michael Snyder <msnyder@redhat.com>
5330 * aix-thread.c (ops): Rename to aix_thread_ops.
5331 (base_ops): Rename to base_target.
5332 (ops_attach): Rename to aix_thread_attach.
5333 (ops_detach): Rename to aix_thread_detach.
5334 (ops_resume): Rename to aix_thread_detach.
5335 (ops_wait): Rename to aix_thread_wait.
5336 (ops_kill): Rename to aix_thread_kill.
5337 (init_ops): Rename to init_aix_thread_ops.
5338 (ops_fetch_register): Rename to aix_thread_fetch_register.
5339 (ops_store_register): Rename to aix_thread_store_register.
5340 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5341 (ops_thread_alive): Rename to aix_thread_thread_alive.
5342 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5343 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5344 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5345 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5346 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5347 (store_regs_lib): Rename to store_regs_user_thread.
5348 (store_regs_kern): Rename to store_regs_kernel_thread.
5350 2002-07-22 Michael Snyder <msnyder@redhat.com>
5352 * aix-thread.c (ops_prepare_to_store): Eliminate.
5353 (init_ops): Don't initialize ops.prepare_to_store.
5354 (store_regs_kern): Pre-fetch register buffers from child,
5355 because some registers may not be in the cache. Copy
5356 regs from register cache only if they are cached.
5357 (store_regs_lib): Copy regs from register cache only
5359 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5360 fill_gprs64): Ditto.
5362 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5364 * aix-thread.c (gdb_assert.h): Include.
5365 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5366 register sizes (from register cache) match size of buffer holding
5368 (fill_sprs32): Change parameter types to match those in the ptrace()
5370 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5371 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5373 2002-07-22 Michael Snyder <msnyder@redhat.com>
5375 * aix-thread.c (supply_sprs64): Cosmetic change.
5376 (supply_sprs32): Cosmetic change.
5377 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5378 (fill_sprs64): Use regcache_collect instead of read_register.
5379 (store_regs_lib): Use regcache_collect instead of
5380 read_register. Use fill_sprs32 instead of fill_sprs64,
5381 if debugging a 32-bit architecture.
5382 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5383 out of the register cache, instead of passing a pointer into
5384 the register cache directly to ptrace. Use regcache_collect
5385 insteaad of read_register.
5386 (ops_prepare_to_store): Use target_read_registers instead
5387 of read_register_bytes.
5389 2002-07-20 Aidan Skinner <aidan@velvet.net>
5391 * MAINTAINERS: Add self under write after approval.
5393 2002-07-20 Aidan Skinner <aidan@velvet.net>
5395 * ada-tasks.c: Change k&r style function definitions to prototyped
5398 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5400 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5401 * x86-64-tdep.c: Include "objfiles.h".
5402 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5403 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5405 2002-07-17 Michal Ludvig <michal@suse.cz>
5407 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5408 (update_context): Initialise cfa variable.
5410 2002-07-17 Michael Snyder <msnyder@redhat.com>
5412 * aix-thread.c: Shorten some long lines.
5413 Bring comments into line with code spec.
5415 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5417 * infrun.c: Re-indent using gdb_indent.sh.
5419 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5421 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5422 Leave the indentation temporarily untouched, to minimize the diffs.
5424 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5426 * stabsread.c: Make os9k sections of the code obsolete,
5428 * stabsread.h: Make os9k sections of the code obsolete.
5430 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5432 * linux-low.c (regsets_store_inferior_registers): Add free()
5433 at the end of a loop to prevent memory leak.
5434 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5435 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5436 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5438 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5440 2002-07-17 Jim Blandy <jimb@redhat.com>
5442 * macrocmd.c (info_macro_command): Remove newline from error
5445 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5447 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5448 (sh_gdbarch_init): Use it for sh-dsp.
5450 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5452 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5453 64-bit DWARF2 format.
5455 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5457 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5458 <sys/proc.h> when not available.
5460 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5462 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5463 * stabsread.c: Make os9k sections of the code obsolete.
5464 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5465 * config/i386/i386os9k.mt: Make file obsolete.
5466 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5467 (COMMON_OBS): Remove os9kread.o
5468 (SFILES): Remove os9kread.c.
5469 (os9kread.o, remote-os9k.o): Make target obsolete.
5470 * remote-os9k.c: Make file obsolete.
5471 * os9kread.c: Make file obsolete.
5474 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5476 * NEWS: Mention that the FR30 has been made obsolete.
5477 * fr30-tdep.c: Make file obsolete.
5478 * config/fr30/tm-fr30.h: Ditto.
5479 * config/fr30/fr30.mt: Ditto.
5480 * configure.tgt: Make fr30-*-elf obsolete.
5481 * MAINTAINERS: Make fr30-elf obsolete.
5483 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5485 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5486 found is not inside a section.
5488 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5490 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5492 (pdc_realloc): Use xrealloc() instead of realloc().
5494 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5496 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5497 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5498 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5501 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5503 * aix-thread.c (ptrace_check): Eliminate goto.
5504 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5507 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5509 * aix-thread.c (gdbcmd.h): Include.
5510 (DEBUG, DBG, DBG2, dbg): Eliminate.
5511 (debug_aix_thread): New static global.
5512 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5513 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5514 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5515 invocations to DBG and DBG2 macros to test against
5516 ``debug_aix_thread'' and call fprintf_unfiltered().
5517 (_initialize_aix_thread): Add new command "set debug aix-thread".
5519 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5521 From Gerhard Tonn <TON@de.ibm.com>:
5522 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5523 instead of supply_register.
5525 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5527 * dwarf2cfi.c: Include "gdb_assert.h".
5528 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5530 (update_context): Do not use __func__. Add missing ``break''.
5531 (update_context): Do not use __func__.
5533 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5535 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5536 and its setting. Set gdbarch instruction printing functions
5537 directly. For non-rs6000 case use new function
5538 gdb_print_insn_powerpc.
5539 (gdb_print_insn_powerpc): New function.
5541 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5543 * NEWS: Mention that the d30v has been marked obsolete.
5544 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5545 * configure.tgt: Mark d30v-*-* as obsolete.
5546 * d30v-tdep.c: Mark file as obsolete.
5547 * config/d30v/d30v.mt: Ditto.
5548 * config/d30v/tm-d30v.h: Ditto.
5550 2002-07-13 Aidan Skinner <aidan@velvet.net>
5552 * ada-tasks.c (add_task_entry): replace calls to
5553 malloc() with xmalloc
5554 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5556 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5557 ada_finish_decode_line_1, all_sals_for_line
5558 ada_breakpoint_rewrite): replace calls to free() with xfree()
5560 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5562 From Nicholas Duffek (with minor changes by Martin Hunt,
5563 Louis Hamilton, and Kevin Buettner):
5564 * aix-thread.c: New file.
5566 2002-07-12 Petr Sorfa <petrs@caldera.com>
5568 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5569 complaint for invalid attribute class or form.
5570 (read_func_scope): DW_AT_frame_base
5571 better handling of DW_AT_block*.
5572 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5573 better handling of DW_AT_block*.
5574 (read_common_block): DW_AT_location
5575 better handling of DW_AT_block*.
5576 (read_partial_die): DW_AT_location better handling
5578 (new_symbol): DW_AT_external better handling of
5579 DW_AT_block*. Proper initialization of variable
5581 (attr_form_is_block): New function that returns true
5582 if the attribute's form is of DW_FORM_block*.
5584 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5586 * valops.c (find_method_list): Remove comment about
5587 removed STATIC_MEMFUNCP argument.
5588 (value_find_oload_method_list): Likewise.
5590 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5592 From Nicholas Duffek:
5593 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5594 target_new_objfile_hook.
5596 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5598 From Nicholas Duffek:
5599 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5602 2002-07-12 Andrew Cagney <cagney@redhat.com>
5604 * MAINTAINERS: Mention --enable-sim-build-warnings.
5605 (m68hc11-elf): Disable sim build warnings.
5606 (m32r-elf): Mark as broken obsolete candidate.
5607 (x86_64-linux-gnu): Mark as buildable with -Werror.
5608 (arm-elf): Change -w to ``,'' which enables warnings but not
5611 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5613 * bcache.h: Update copyright.
5614 (struct bstring, struct bcache): Move definition to "bcache.c".
5615 Replaced by opaque declaration.
5616 (bcache_xfree): Replace free_bcache.
5617 (bcache_xmalloc, bcache_memory_used): Declare.
5619 * bcache.c: Update copyright.
5620 (struct bstring, struct bcache): Moved to here from "bcache.h".
5622 (bcache_xmalloc, bcache_memory_used): New functions.
5623 (bcache_xfree): Replace function free_bcache.
5625 * Makefile.in (objfiles.o): Add $(bcache_h).
5626 (objfiles_h): Remove $(bcache_h).
5627 (symfile.o): Add $(bcache_h).
5629 * symmisc.c: Update copyright.
5630 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5631 (print_objfile_statistics): Use bcache_memory_used.
5633 * symfile.c: Include "bcache.h".
5634 (reread_symbols): Use bcache_xfree.
5635 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5636 (add_psymbol_to_list): Pass psymbol_cache by value.
5637 (add_psymbol_with_dem_name_to_list): Ditto.
5639 * objfiles.h: Update copyright.
5640 (struct bcache): Declare opaque. Do not include "bcache.h".
5641 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5643 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5645 * objfiles.c: Include "bcache.h". Update copyright.
5646 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5648 (free_objfile): Use bcache_xfree.
5650 2002-07-11 Grace Sainsbury <graces@redhat.com>
5652 * monitor.c (monitor_fetch_register): Make name a constant.
5653 (monitor_store_register): Same.
5655 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5657 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5658 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5659 (finish_block) For non-function blocks, hash the symbol table. For
5660 function blocks, mark the symbol table as unhashed.
5661 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5662 (msymbol_hash_iw): Likewise.
5663 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5665 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5666 (lookup_minimal_symbol): Likewise for both.
5667 * symtab.h (struct block): Add `hashtable' flag. Comment the
5669 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5670 (ALL_BLOCK_SYMBOLS): Update.
5671 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5672 (struct symbol): Add `hash_next' pointer.
5673 * symtab.c (lookup_block_symbol): Search using the hash table when
5675 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5676 (search_symbols, find_addr_symbol): Likewise.
5678 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5679 (read_dst_symtab): Likewise.
5680 * jv-lang.c (get_java_class_symtab): Likewise.
5681 * mdebugread.c: Include "gdb_assert.h".
5682 (shrink_block): Assert that the block being modified is not hashed.
5683 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5684 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5686 (dump_symtab): Recognize hashed blocks.
5687 * printcmd.c (print_frame_args): Assert that function blocks do not
5688 have hashed symbol tables.
5689 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5690 (fill_in_ada_prototype, debug_print_block): Likewise.
5691 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5693 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5695 * stack.c (print_frame): Use result of frame_address_in_block()
5696 instead of fi->pc when evaluating symbols.
5697 (backtrace_command_1): Ditto.
5699 2002-07-11 Andrew Cagney <cagney@redhat.com>
5701 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5704 * arm-tdep.c (arm_register_name): Make return type constant.
5706 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5708 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5710 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5711 * s390-tdep.c (s390_fp_regnum): Ditto.
5712 (s390_read_fp): Ditto.
5713 (s390_pop_frame): Ditto.
5714 (_initialize_s390_tdep): Ditto.
5715 * remote.c (get_remote_state): Ditto.
5716 * procfs.c (mappingflags): Ditto.
5717 * memattr.c (_initialize_mem): Ditto.
5718 * mcore-tdep.c (mcore_pop_frame): Ditto.
5719 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5720 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5721 * language.c (set_case_str): Ditto.
5722 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5723 * frv-tdep.c (new_variant): Ditto.
5724 (frv_stopped_data_address): Ditto.
5725 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5726 (context_alloc): Ditto.
5727 (frame_state_alloc): Ditto.
5728 (unwind_tmp_obstack_init): Ditto.
5729 (unwind_tmp_obstack_free): Ditto.
5730 (cfi_read_fp): Ditto.
5731 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5732 (cris_pop_frame): Ditto.
5733 * c-lang.c (scanning_macro_expansion): Ditto.
5734 (finished_macro_expansion): Ditto.
5735 (c_preprocess_and_parse): Ditto.
5736 * gdbarch.sh: Ditto.
5737 * gdbarch.h, gdbarch.c: Regenerate.
5738 * config/mn10200/tm-mn10200.h: Adjust indentation.
5739 * target.c: Adjust indentation.
5740 * symtab.h: Adjust indentation.
5741 * stabsread.h: Adjust indentation.
5742 * remote-es.c: Adjust indentation.
5743 * os9kread.c: Adjust indentation.
5745 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5747 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5748 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5750 2002-07-10 Grace Sainsbury <graces@redhat.com>
5752 * NEWS: Mention m68k, mcore multi-arching.
5753 * MAINTAINERS: Change status of m68k, mcore to reflect
5756 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5758 * valops.c (find_overload_match): Free oload_syms.
5760 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5762 Define HAVE_SYS_PROC_H if sys/proc.h exists
5763 * configure.in: Add check for sys/proc.h
5764 * config.in: Regenerate.
5765 * configure: Regenerate.
5767 2002-07-09 Grace Sainsbury <graces@redhat.com>
5769 * config/m68k/tm-m68k.h: Remove macros wrapped in
5770 #if !GDB_MULTI_ARCH.
5772 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5774 * config.in, configure: Regenerate.
5776 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5778 * dwarf2cfi.c: Include "gcore.h".
5779 (execute_stack_op): Fix implementation of the
5780 DW_OP_deref and DW_OP_deref_size operators by letting do their
5781 lookup in the target.
5783 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5785 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5786 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5789 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5791 Fix PR gdb/595, gdb/602
5792 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5793 Don't call value_cast, just read the vtable pointer; update comments
5796 2002-07-05 Grace Sainsbury <graces@redhat.com>
5798 * config/mcore/tm-mcore.h: Remove file.
5799 * config/mcore/mcore.mt: Remove definition of TM_FILE
5800 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5802 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5804 * i386bsd-tdep.c: Include "gdb_string.h".
5806 2002-07-04 Grace Sainsbury <graces@redhat.com>
5808 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5809 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5811 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5812 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5813 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5814 (RETVAL_REGNUM): Move macros from tm-mcore.h
5815 (mcore_reg_struct_has_addr): New function.
5816 (mcore_gdbarch_init): Added initializations for the macros removed
5819 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5821 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5822 traditonal string branding within the ELF header.
5824 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5826 * symtab.c (remove_params): New function.
5827 (make_symbol_overload_list): Use it instead of cplus_demangle.
5828 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5830 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5832 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5834 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5836 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5837 and tdep->sigtramp_end.
5838 * i386obsd-nat.c: New file.
5839 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5841 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5842 Don't call get_current_frame().
5844 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5846 * i386-nat.c (child_post_startup_inferior): New function
5847 calling i386_cleanup_dregs if
5848 I386_USE_GENERIC_WATCHPOINTS is defined.
5849 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5850 conditional to acknowledge that i386-nat.c has its
5851 own child_post_startup_inferior function.
5853 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5855 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5856 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5857 instead of MAX_REGISTER_RAW_SIZE.
5858 (i386_extract_return_value, i386_extract_struct_value_address):
5859 Convert to use regcache.
5860 (i386_gdbarch_init): Set max_register_raw_size and
5861 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5862 Set extract_return_value and extract_struct_value_address instead
5863 of their deprecated variants.
5865 Convert i386 target to generic dummy frames.
5866 * i386-tdep.c: Include "symfile.h".
5867 (i386_frameless_signal_p): Consider a function to be frameless if
5868 the pc points at the first instruction of the function.
5869 (i386_frame_chain): Handle (generic) call dummies.
5870 (i386_frame_saved_pc): Likewise.
5871 (i386_frame_init_saved_regs): Remove code dealing with call
5872 dummies on the stack.
5873 (i386_push_dummy_frame): Removed.
5874 (i386_call_dummy_words): Removed.
5875 (i386_fix_call_dummy): Removed.
5876 (i386_push_return_address): New function.
5877 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5878 parameter, and don't call get_current_frame.
5879 (i386_pop_frame): New function.
5880 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5881 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5882 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5883 call_dummy_length to 0, set call_dummy_words to NULL, set
5884 sizeof_call_dummy_words to 0, set fix_call_dummy to
5885 generic_fix_call_dummy, set pc_in_call_dummy to
5886 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5887 generic_push_dummy_frame, set push_return_address to
5888 i386_push_return_address and set frame_chain_valid to
5889 generic_file_frame_chain_valid.
5891 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5893 * gdbarch.sh (struct regcache): Add opaque declaration.
5894 (EXTRACT_RETURN_VALUE): New architecture method.
5895 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5896 * gdbarch.h, gdbarch.c: Regenerate.
5897 * arch-utils.c (legacy_extract_return_value): New function.
5898 * arch-utils.h (legacy_extract_return_value): Declare.
5899 * values.c (value_being_returned): Re-enable code handling
5900 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5901 deprecated_grub_regcache_for_registers call to block handling
5902 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5903 (EXTRACT_RETURN_VALUE): Do not define.
5905 2002-07-03 Grace Sainsbury <graces@redhat.com>
5907 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5908 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5909 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5910 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5911 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5912 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5913 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5914 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5915 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5916 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5917 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5918 argument so the function fits the prototype in the architecture
5920 (mcore_pop_frame): Remove argument so the function fits the
5921 prototype. Use get_current_frame instead of the argument.
5922 (mcore_push_arguments): Change type of struct_return so the
5923 function can be used in the architecture vector.
5924 (mcore_store_struct_return): Add.
5925 (mcore_frame_init_saved_regs): Add.
5926 (mcore_gdbarch_init): Add function calls to replace the macros
5927 removed from tm-mcore.h
5929 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5931 * infcmd.c (print_return_value): Remove compatibility code calling
5932 deprecated_grub_regcache_for_registers.
5934 * values.c: Include "regcache.h".
5935 (value_being_returned): Update. Use
5936 deprecated_grub_regcache_for_registers to extract the register
5938 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5939 ``struct regcache''.
5940 * Makefile.in (values.o): Add dependency on $(regcache_h).
5942 * inferior.h (run_stack_dummy): Change type of second parameter to
5943 a ``struct regcache''.
5944 * valops.c (hand_function_call): Change type of retbuf to ``struct
5945 regcache''. Allocate using regcache_xmalloc, clean using
5946 make_cleanup_regcache_xfree.
5947 * infcmd.c (run_stack_dummy): Update. Use
5948 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5950 * regcache.c (do_regcache_xfree): New function.
5951 (make_cleanup_regcache_xfree): New function.
5952 * regcache.h (make_cleanup_regcache_xfree): Declare.
5954 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5956 * event-top.c (command_line_handler): Don't read past
5957 beginning of buffer.
5959 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5961 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5963 (varobj_create): Store frame_id for root.
5964 (varobj_gen_name): Use xasprintf.
5965 (varobj_update): Save and restore frame using get_frame_id() and
5967 (create_child): Use xasprintf.
5968 (new_root_variable): Initialize frame_id.
5969 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5970 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5971 to prevent memory leak.
5973 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5975 * valops.c (hand_function_call): Move declaration of retbuf to
5976 start of function, allocate using malloc, add a cleanup but before
5977 the inf_status cleanup, cleanup the buffer. Rename local variable
5978 old_chain to inf_status_cleanup.
5980 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5982 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5984 * cli/cli-decode.c (cmd_func_p): New function.
5985 (cmd_func): New function.
5987 * command.h: Add cmd_func() and cmd_func_p().
5989 2002-07-03 Grace Sainsbury <graces@redhat.com>
5991 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5992 (REGISTER_SIZE): Remove.
5993 (MAX_REGISTER_RAW_SIZE): Remove.
5994 (REGISTER_VIRTUAL_TYPE): Remove.
5995 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5996 (REGISTER_NAME): Remove.
5997 (USE_GENERIC_DUMMY_FRAMES): Remove.
5998 (CALL_DUMMY): Remove.
5999 (CALL_DUMMY_START_OFFSET): Remove.
6000 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6001 (CALL_DUMMY_LOCATION): Remove.
6002 (FIX_CALL_DUMMY): Remove.
6003 (CALL_DUMMY_ADDRESS): Remove.
6004 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6005 (SAVE_DUMMY_FRAME_TOS): Remove.
6006 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6007 (mcore_register_virtual_type): New function.
6008 (mcore_register_byte): New function.
6009 (mcore_register_size): New function.
6010 (mcore_register_name): New function.
6011 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6012 macros removed from tm-mcore.h.
6013 (mcore_dump_tdep): Add.
6014 (_initialize_mcore_tdep): Add gdbarch_register call.
6016 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6018 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6019 frameless_look_for_prologue, such that we actually call this
6022 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6024 * frame.h (frame_address_in_block): New function.
6026 * blockframe.c (frame_address_in_block): New function extracted
6027 from get_frame_block().
6028 (get_frame_block): Use frame_address_in_block().
6029 (block_innermost_frame): Use frame_address_in_block() to match
6030 the frame pc address against the block boundaries rather than
6031 the frame pc directly. This prevents a failure when a frame pc
6032 is actually a return-address pointing immediately after the end
6035 2002-07-02 Grace Sainsbury <graces@redhat.com>
6037 * MAINTAINERS: Add self under write after approval.
6039 2002-07-02 Grace Sainsbury <graces@redhat.com>
6041 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6042 used in architecture vector. The default is
6043 m68k_local_breakpoint_from_pc.
6044 (m68k_local_breakpoint_from_pc): Add.
6045 (enum): Add register numbers from tm-m68k.h.
6046 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6048 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6049 GDB_MULTI_ARCH_PARTIAL.
6050 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6051 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6053 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6054 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6055 to enum in m68k-tdep.c
6057 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6059 * solib-osf.c (open_map): Compute the list of shared libraries
6060 loaded by the inferior, rather than the list of libraries loaded
6061 by GDB itself. Otherwise, GDB ends up reading the symbols from
6062 the wrong shared libraries...
6064 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6066 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6067 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6069 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6071 (FRAMELESS_SIGNAL): Remove function.
6072 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6073 i386_linux_saved_pc_after_call): Removed.
6074 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6075 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6076 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6078 * i386-tdep.c (i386_frameless_signal_p): New function.
6079 (i386_frame_chain): Deal with frameless signals.
6080 (i386_sigtramp_saved_sp): New function.
6081 (i386_frame_saved_pc): Deal with frameless signals.
6082 (i386_saved_pc_after_call): Make sure the correct value is
6083 returned just after entry into a sigtramp.
6084 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6085 i386fbsd4_sc_sp_offset): New variables.
6086 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6087 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6088 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6089 similiar to what we already did for sc_pc_offset.
6090 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6093 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6095 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6097 * config/i386/tm-x86-64linux.h: New.
6098 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6100 * config/i386/nm-x86-64.h: Rename to ...
6101 * config/i386/nm-x86-64linux.h: ... this one.
6102 * config/i386/x86-64linux.mh: Reflect the above change.
6104 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6106 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6107 with sigcontext_addr. Add sc_sp_offset.
6108 (i386bsd_sigtramp_saved_pc): Remove prototype.
6109 (i386bsd_sicontext_addr): Add prototype.
6110 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6111 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6112 (i386_svr4_sigtramp_saved_pc): Removed.
6113 (i386_svr4_sigcontext_addr): New function.
6114 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6115 Initialize tdep->sigcontext_addr instead. Initialize
6116 tdep->sc_pc_offset and tdep->sc_sp_offset.
6117 (i386_gdbarch_init): Likewise.
6118 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6120 (i386bsd_sigtramp_saved_pc): Remove function.
6121 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6122 Initialize tdep->sigcontext_addr instead. Initialize
6124 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6125 of tdep->sigtramp_saved_pc.
6126 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6127 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6130 * i386-tdep.c (i386_frameless_function_invocation,
6131 i386_frame_num_args, i386_frame_init_saved_regs,
6132 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6133 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6134 i386_extract_return_value, i386_store_return_value,
6135 i386_extract_struct_value_address, i386_register_virtual_type,
6136 i386_register_convertible, i386_register_convert_to_virtual,
6137 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6138 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6141 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6143 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6145 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6146 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6147 this macro. Include "value.h".
6149 2002-06-30 Aidan Skinner <aidan@velvet.net>
6151 * ada-exp.tab.c: remove as it's a generated file
6152 * ada-lex.c: remove as it's a generated file
6154 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6156 * config/i386/tm-i386.h (struct frame_info, struct
6157 frame_saved_regs, struct value, struct type): Remove forward
6160 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6161 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6162 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6163 (FILL_FPXREGSET): Define.
6165 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6167 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6168 i[3456]86-*-netbsd* case.
6169 * config/i386/tm-obsd.h: Removed.
6170 * config/i386/obsd.mt: Removed.
6171 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6173 (MH_CFLAGS): Add -DYYDEBUG=0.
6175 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6176 i386nbsd_sc_pc_offset on OpenBSD too.
6178 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6179 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6180 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6182 * i386bsd-tdep.c: Include "arch-utils.h".
6183 (i386bsd_aout_in_solib_call_trampoline): New function.
6184 (i386bsd_init_abi): Set in_solib_call_trampoline to
6185 i386bsd_aout_in_solib_call_trampoline.
6186 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6187 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6189 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6191 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6192 (struct obstack, struct bcache): Add opaque declarations.
6193 * Makefile.in (macrotab_h): Update
6195 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6197 * blockframe.c (generic_find_dummy_frame): Change return type to
6198 ``struct regcache''.
6199 (struct dummy_frame): Replace field ``registers'' with regcache, a
6200 struct regcache object.
6201 (generic_find_dummy_frame): Update.
6202 (generic_push_dummy_frame): Update. Use regcache_xfree,
6203 regcache_xmalloc and regcache_cpy.
6204 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6206 (deprecated_generic_find_dummy_frame): Update.
6207 (generic_read_register_dummy): Update. Use
6208 regcache_read_as_address.
6209 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6210 (generic_get_saved_register): Update. Use regcache_read.
6212 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6214 * Makefile.in (objfiles_h): Add $(bcache_h).
6215 * objfiles.h: Include "bcache.h".
6217 * Makefile.in (symtab_h): Remove $(bcache_h).
6218 * symtab.h: Do not include "bcache.h".
6220 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6222 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6223 generic_func_frame_chain_valid.
6225 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6227 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6228 * config/i386/tm-fbsd.h: Likewise.
6230 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6232 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6233 generic_unwind_get_saved_register.
6235 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6237 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6238 * regcache.c (supply_register): Add missing argument to
6239 register_buffer call.
6241 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6243 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6244 Solaris /bin/grep does not not like it. From Peter Schauer.
6246 2002-06-26 Tom Tromey <tromey@redhat.com>
6248 * command.h (add_setshow_cmd): Declare.
6249 (add_setshow_cmd_full): Declare.
6250 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6251 returns void. Use add_setshow_cmd_full.
6252 (add_setshow_cmd_full): New function.
6253 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6254 (add_setshow_boolean_cmd): Likewise.
6256 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6258 * config/vax/tm-vax.h: Protect from multiple inclusion.
6259 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6260 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6261 * config/vax/tm-vaxbsd.h: ...here. New file.
6262 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6264 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6266 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6267 (BELIEVE_PCC_PROMOTION): Remove.
6268 (AP_REGNUM): Move to...
6269 * config/vax/nm-vax.h: ...here.
6270 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6271 (vax_breakpoint_from_pc): New function.
6272 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6273 and gdbarch_believe_pcc_promotion.
6275 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6277 * Makefile.in (vax_tdep_h): Define.
6278 (vax-tdep.o): Use $(vax_tdep_h).
6279 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6280 (vax_dump_tdep): New function.
6281 (_initialize_vax_tdep): Register vax_dump_tdep.
6282 * vax-tdep.h: Include osabi.h.
6283 (struct gdbarch_tdep): New.
6285 2002-06-26 Andrew Cagney <cagney@redhat.com>
6287 * frame.h (deprecated_generic_find_dummy_frame): Rename
6288 generic_find_dummy_frame.
6289 * blockframe.c (generic_find_dummy_frame): Make static.
6290 (deprecated_generic_find_dummy_frame): New function.
6291 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6292 generic_find_dummy_frame with deprecated_find_dummy_frame.
6293 (sh64_nofp_frame_init_saved_regs): Ditto.
6294 (sh_fp_frame_init_saved_regs): Ditto.
6295 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6296 (s390_frame_chain): Ditto.
6297 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6299 2002-06-26 Grace Sainsbury <graces@redhat.com>
6301 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6302 gdbarch vector are at the top.
6304 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6305 (FRAME_ARGS_ADDRESS): Remove.
6306 (FRAME_LOCALS_ADDRESS): Remove.
6307 (FRAME_NUM_ARGS): Remove.
6308 (FRAME_ARGS_SKIP): Remove.
6309 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6310 (m68k_gdbarch_init): Add gdbarch initializations for macros
6311 undefined in tm-m68k.h
6313 2002-06-26 Grace Sainsbury <graces@redhat.com>
6315 * monitor.h: Add the function regname to monitor_ops
6316 structure. This way NUM_REGS does not have to be a constant.
6317 * monitor.c (monitor_fetch_register): Added support for regname
6318 function. The function is called if the array regnames is NULL.
6319 (monitor_store_register): Same.
6320 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6322 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6323 cpu32bug_cmds.regname to point to new function.
6324 * abug-rom.c (abug_regname): Same as above.
6325 (init_abug_cmds): Same.
6326 * dbug-rom.c (dbug_regname): Same as above.
6327 (init_dbug_cmds): Same.
6328 * remote-est.c (est_regname): Same.
6329 (init_est_cmds): Same.
6330 * rom68k-rom.c (rom68k_regname): Same.
6331 (init_rom68k_cmds): Same.
6333 2002-06-25 Tom Tromey <tromey@redhat.com>
6335 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6337 2002-06-25 Andrew Cagney <cagney@redhat.com>
6339 * infrun.c (stop_registers): Change variable's type to ``struct
6341 (xmalloc_inferior_status): Delete function.
6342 (free_inferior_status): Delete function.
6343 (normal_stop): Use regcache_cpy.
6344 (struct inferior_status): Change type of fields ``stop_registers''
6345 and ``registers'' to ``struct regcache''.
6346 (write_inferior_status_register): Use regcache_write.
6347 (save_inferior_status): Instead of calling
6348 xmalloc_inferior_status, allocate the inf_status buffer directly.
6349 Use regcache_dup_no_passthrough and regcache_dup to save the
6351 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6352 Replace the stop_registers regcache instead of overriding it. Use
6353 regcache_xfree. Instead of calling free_inferior_status, xfree
6354 the buffer directly.
6355 (discard_inferior_status): Use regcache_xfree. Instead of calling
6356 free_inferior_status, xfree the buffer directly.
6357 (build_infrun): Use regcache_xmalloc.
6358 (_initialize_infrun): Delete redundant call to build_infrun.
6360 * Makefile.in (infcmd.o): Add $(regcache_h).
6362 * infcmd.c: Include "regcache.h".
6363 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6364 obtain the address of `stop_registers' register buffer.
6365 (print_return_value): Ditto.
6367 * inferior.h (struct regcache): Add opaque declaration.
6368 (stop_registers): Change variable's declared type to ``struct
6371 2002-06-24 Tom Tromey <tromey@redhat.com>
6373 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6374 * target.c (initialize_targets): Fixed typo in
6375 trust-readonly-sections `show' documentation.
6377 * main.c: Marked all strings with _().
6379 2002-06-24 Don Howard <dhoward@redhat.com>
6381 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6382 that means max CORE_ADDR+1.
6383 (lookup_mem_region): Ditto.
6384 (mem_info_command): Ditto.
6386 2002-06-24 Grace Sainsbury <graces@redhat.com>
6388 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6389 (REGISTER_BYTES_OK): Remove.
6390 (REGISTER_BYTES): Remove.
6391 (STORE_STRUCT_RETURN): Remove.
6392 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6393 (STORE_RETURN_VALUE): Remove.
6394 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6395 (FRAME_CHAIN): Remove.
6396 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6397 (FRAME_SAVED_PC): Remove.
6398 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6399 (m68k_store_struct_return): Add.
6400 (m68k_deprecated_extract_return_value): Add.
6401 (m68k_deprecated_extract_struct_value_address): Add.
6402 (m68k_store_return_value): Add.
6403 (m68k_frame_chain): Add.
6404 (m68k_frameless_function_invocation): Add.
6405 (m68k_frame_saved_pc): Add.
6406 (m68k_gdbarch_init): added set_gdbarch calls for new
6407 functions and deleted macros.
6409 2002-06-23 Tom Tromey <tromey@redhat.com>
6411 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6412 (ALLDEPFILES): Likewise.
6413 (udiheaders): Removed.
6414 (udip2soc.o): Likewise.
6415 (udi2go32.o): Likewise.
6417 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6419 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6421 * infrun.c (_initialize_infrun): Delete unnecessary call to
6424 * regcache.h: Update comments describing the regcache_cpy family
6426 (regcache_save, regcache_restore): Delete declaration.
6427 (regcache_save_no_passthrough): Delete declaration.
6428 (regcache_restore_no_passthrough): Delete declaration.
6429 * regcache.c (regcache_save): Delete function.
6430 (regcache_save_no_passthrough): Delete function.
6431 (regcache_restore): Delete function.
6432 (regcache_restore_no_passthrough): Delete function.
6434 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6436 * config/m68k/tm-m68k.h: Fix typo.
6437 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6438 (m68k_frame_init_saved_regs): Declare.
6440 2002-06-21 Jim Blandy <jimb@redhat.com>
6442 Remove some vestiges of Harris 88k support.
6443 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6444 register numbering quirk.
6445 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6446 odd symbols occurring in Harris 88k ELF targets.
6448 2002-06-21 Tom Tromey <tromey@redhat.com>
6450 * gdb_locale.h: New file.
6451 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6452 (defs_h): Added gdb_locale.h.
6453 * configure, config.in: Rebuilt.
6454 * configure.in (PACKAGE): Define.
6455 * defs.h: Include gdb_locale.h.
6456 * main.c (captured_main): Call setlocale, bindtextdomain,
6459 2002-06-21 Dave Brolley <brolley@redhat.com>
6461 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6462 * config/frv/frv.mt: New file.
6463 * config/frv/tm-frv.h: New file.
6464 * configure.tgt: Support frv-*-*.
6465 * Makefile.in (frv-tdep.o): New target.
6466 * frv-tdep.c: New file.
6467 * NEWS: Mention frv.
6469 2002-06-21 Dave Brolley <brolley@redhat.com>
6471 * MAINTAINERS: Add self to "Write After Approval" list.
6473 2002-06-21 Grace Sainsbury <graces@redhat.com>
6475 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6476 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6477 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6478 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6479 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6481 * m68k-tdep.c: Include arch-utils.h
6482 (m68k_register_raw_size): Add.
6483 (m68k_register_virtual_size): Add.
6484 (m68k_register_virtual_type): Add.
6485 (m68k_register_name): Add.
6486 (m68k_stack_align): Add.
6487 (m68k_register_byte): Add.
6488 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6491 2002-06-21 Grace Sainsbury <graces@redhat.com>
6493 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6494 m68k_find_saved_regs.
6495 (m68k_pop_frame): Removed saved_regs structure, and replaced
6496 references to it with frame->saved_regs.
6497 (m68k_gdbarch_init): Added function calls to initialize the
6499 (m68k_fix_call_dummy): Add.
6500 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6501 (CALL_DUMMY): Remove.
6502 (CALL_DUMMY_LENGTH): Remove.
6503 (CALL_DUMMY_START_OFFSET): Remove.
6504 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6505 (FIX_CALL_DUMMY): Remove.
6506 (PUSH_DUMMY_FRAME): Remove.
6507 (POP_FRAME): Remove.
6509 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6511 * parse.c (parse_fprintf): New function used to avoid calls to
6512 fprintf in bison parser generated debug code.
6513 * parser-defs.h: Declaration of new parse_fprintf function.
6514 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6515 Set YYDEBUG to 1 by default.
6516 Set YYFPRINTF as parse_fprintf.
6518 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6520 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6522 (pointer_encoding, enum ptr_encoding): New.
6523 (execute_cfa_program): Take care about pointer encoding.
6524 (dwarf2_build_frame_info): Only call parse_frame_info for
6525 .debug_frame and .eh_frame.
6526 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6527 fixed augmentation handling, added relative addressing,
6528 ignore duplicate FDEs. Added comments.
6529 * dwarf2cfi.c: Reindented.
6531 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6533 * event-top.c (command_handler): Don't use space_at_cmd_start
6534 unless there is sbrk() on the host. Assign time and space data
6535 to union fields of the appropriate length.
6537 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6539 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6540 x86_64_register_name. Return type changed to 'const char *'.
6541 (x86_64_register_name2nr): Rename to x86_64_register_number.
6542 (x86_64_gdbarch_init): Update to reflect the change.
6543 * x86-64-tdep.h: Ditto.
6544 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6545 (supply_fpregset): Ditto.
6547 2002-06-19 Andrew Cagney <cagney@redhat.com>
6549 * regcache.h: Update copyright.
6550 (struct regcache, struct gdbarch): Add opaque declarations.
6551 (current_regcache): Declare global variable.
6552 (regcache_read, regcache_write): Add gdbarch parameter.
6553 (regcache_save, regcache_save_no_passthrough)
6554 (regcache_restore, regcache_restore_no_passthrough)
6555 (regcache_dup, regcache_dup_no_passthrough)
6556 (regcache_cpy, regcache_cpy_no_passthrough)
6557 (deprecated_grub_regcache_for_registers)
6558 (deprecated_grub_regcache_for_register_valid)
6559 (regcache_valid_p): Add function declarations.
6561 * regcache.c: Update copyright.
6562 (regcache_descr_handle): New global variable.
6563 (struct regcache_descr): Define.
6564 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6565 (regcache_descr, xfree_regcache_descr): New functions.
6566 (struct regcache): Define.
6567 (regcache_xmalloc, regcache_xfree): New functions.
6568 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6569 (regcache_dup, regcache_dup_no_passthrough): New functions.
6570 (regcache_valid_p, regcache_read_as_address): New functions.
6571 (deprecated_grub_regcache_for_registers): New function.
6572 (deprecated_grub_regcache_for_register_valid): New function.
6573 (current_regcache): New global variable.
6574 (register_buffer): Add regcache parameter. Update calls.
6575 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6576 (read_register_gen, write_register_gen): Update register_buffer
6577 call. Test for legacy_p instead of gdbarch_register_read_p or
6578 gdbarch_register_write_p.
6579 (regcache_collect): Update register_buffer call.
6580 (build_regcache): Rewrite. Use deprecated grub functions.
6581 (regcache_save, regcache_save_no_passthrough): New functions.
6582 (regcache_restore, regcache_restore_no_passthrough): New
6584 (_initialize_regcache): Create the regcache_data_handle. Swap
6585 current_regcache global variable.
6587 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6588 parameter to regcache_read and regcache_write calls.
6589 (sh4_register_read): Ditto.
6590 (sh64_pseudo_register_read): Ditto.
6591 (sh64_register_read): Ditto.
6592 (sh_pseudo_register_write): Ditto.
6593 (sh4_register_write): Ditto.
6594 (sh64_pseudo_register_write): Ditto.
6595 (sh64_register_write): Ditto.
6597 * defs.h (XCALLOC): Define.
6599 2002-06-19 Grace Sainsbury <graces@redhat.com>
6601 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6602 * m68k-tdep.c (m68k_gdbarch_init): Added.
6603 (m68k_dump_tdep): Added.
6605 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6607 * ada-lang.c (fill_in_ada_prototype): Update comment.
6609 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6611 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6613 (mips_abi_string, mips_abi_strings): New.
6614 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6615 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6616 tdep->mips_abi_string. Honor mips_abi_string. Default to
6617 O32 if no ABI is found.
6618 (mips_dump_tdep): Use mips_abi_strings.
6619 (mips_abi_update): New function.
6620 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6621 ``set mips abi'' and ``show mips abi''. Check the size of
6624 2002-06-19 Andrew Cagney <cagney@redhat.com>
6626 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6629 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6631 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6632 current frame using only the first stack size adjustment. All
6633 subsequent size adjustments are not considered to be part of
6634 the "static" part of the current frame.
6635 Compute the address of the saved registers relative to the
6636 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6637 in use in this frame.
6639 2002-06-18 Don Howard <dhoward@redhat.com>
6641 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6642 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6643 suggesting this solution.
6645 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6647 * config/romp/xm-rtbsd.h: Delete file.
6648 * config/romp/rtbsd.mh: Delete file.
6650 2002-06-18 Keith Seitz <keiths@redhat.com>
6652 * breakpoint.c (condition_command): Post breakpoint_modify
6653 when a condition is added to an existing breakpoint.
6654 (commands_command): Likewise for commands.
6655 (set_ignore_count): Likewise for ignore counts.
6656 If no tty, do not simply return, still need to send event
6658 (ignore_command): Only print a newline if the command came
6660 Don't call breakpoints_changed, since this is now properly
6661 handled by set_ignore_count.
6663 2002-06-18 Andrew Cagney <cagney@redhat.com>
6665 * MAINTAINERS: Note that cris-elf target can be compiled with
6667 * cris-tdep.c (cris_register_name): Make return type constant.
6668 (cris_breakpoint_from_pc): Ditto.
6670 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6672 * frame.h (struct frame_info): Change type of context to
6675 2002-06-17 Andrew Cagney <cagney@redhat.com>
6677 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6679 * gdbarch.h, gdbarch.c: Regenerate.
6680 * config/mips/tm-mips.h (mips_register_name): Update.
6681 * i386-tdep.h (i386_register_name): Update.
6682 * mips-tdep.c (mips_register_name): Update
6683 * alpha-tdep.c (alpha_register_name): Update.
6684 * arch-utils.c (legacy_register_name): Update.
6685 * arch-utils.h (legacy_register_name): Update.
6686 * avr-tdep.c (avr_register_name): Update.
6687 * ia64-tdep.c (ia64_register_name): Update.
6688 * i386-tdep.c (i386_register_name): Update.
6689 * sparc-tdep.c (sparc32_register_name): Update.
6690 (sparc64_register_name): Update.
6691 (sparclite_register_name): Update.
6692 (sparclet_register_name): Update.
6693 * sh-tdep.c (sh_generic_register_name): Update.
6694 (sh_sh_register_name): Update.
6695 (sh_sh3_register_name): Update.
6696 (sh_sh3e_register_name): Update.
6697 (sh_sh_dsp_register_name): Update.
6698 (sh_sh3_dsp_register_name): Update.
6699 (sh_sh4_register_name): Update.
6700 (sh_sh64_register_name): Update.
6701 * s390-tdep.c (s390_register_name): Update.
6702 * rs6000-tdep.c (rs6000_register_name): Update.
6703 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6704 (ns32k_register_name_32382): Update.
6705 * d10v-tdep.c (d10v_ts2_register_name): Update.
6706 (d10v_ts3_register_name): Update.
6707 * xstormy16-tdep.c (xstormy16_register_name): Update.
6708 * vax-tdep.c (vax_register_name): Update.
6709 * v850-tdep.c (v850_register_name): Update.
6710 * m68hc11-tdep.c (m68hc11_register_name): Update.
6711 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6712 (am33_register_name): Update.
6714 2002-06-17 Grace Sainsbury <graces@redhat.com>
6716 * m68k-tdep.c: Reindented.
6718 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6720 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6721 list of predefined types.
6723 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6725 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6726 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6727 REGISTER_CONVERT_TO_RAW): Remove defines.
6728 (i386_register_virtual_type, i386_register_convertible,
6729 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6731 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6732 macros mentioned above.
6734 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6735 (i386lynx_saved_pc_after_call): Remove prototype.
6736 * i386ly-tdep.c: Include "i386-tdep.h".
6737 (i386lynx_saved_pc_after_call): Make static. Use
6738 read_memory_nobpt instead of read_memory. Use
6739 read_memory_unsigned_integer instead of read_memory_integer.
6740 (i386lynx_init_abi): New function.
6741 (i386lynx_coff_osabi_sniffer): New function.
6742 (_initialize_i386bsd_tdep): New function.
6744 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6745 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6746 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6747 (i386_fix_call_dummy): Remove prototype.
6748 * i386-tdep.c (i386_call_dummy_words): New variable.
6749 (i386_gdbarch_init): Adjust for removal of the
6750 macros mentioned above.
6752 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6754 * command.h (add_setshow_auto_boolean_cmd): Replace
6755 add_set_auto_boolean_cmd.
6756 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6757 add_set_auto_boolean_cmd.
6758 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6759 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6760 mask-address'' command.
6761 (show_mask_address): Add cmd parameter.
6762 * remote.c (add_packet_config_cmd): Update. Change type of
6763 set_func and show_func to cmd_sfunc_ftype.
6764 (_initialize_remote): Update `set remote Z-packet'
6765 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6766 (show_remote_protocol_e_packet_cmd): Ditto.
6767 (show_remote_protocol_E_packet_cmd): Ditto.
6768 (show_remote_protocol_P_packet_cmd): Ditto.
6769 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6770 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6771 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6772 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6773 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6774 (show_remote_protocol_Z_packet_cmd): Ditto.
6775 (show_remote_protocol_binary_download_cmd): Ditto.
6776 (show_remote_cmd): Pass NULL to all of above.
6778 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6780 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6781 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6782 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6783 POP_FRAME): Remove defines.
6784 (i386_push_arguments, i386_store_struct_return,
6785 i386_extract_return_value, i386_store_return_value,
6786 i386_extract_struct_value_address, i386_push_dummy_frame,
6787 i386_pop_frame): Renove prototypes.
6788 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6789 macros mentioned above.
6791 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6793 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6794 add_set_boolean_cmd.
6795 (add_setshow_cmd): New function.
6796 * command.h (add_setshow_boolean_cmd): Replace
6797 add_set_boolean_cmd.
6798 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6799 and ``set rdiromatzero''.
6800 * maint.c (_initialize_maint_cmds): Update commented out code.
6801 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6802 * target.c (initialize_targets): Update `set
6803 trust-readonly-sections'.
6804 * remote.c (_initialize_remote): Update `set remotebreak'.
6806 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6808 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6809 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6810 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6811 fit into multi-arch framework.
6812 (i386_breakpoint_from_pc): New function.
6813 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6816 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6817 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6818 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6819 (i386_frameless_function_invocation, i386_frame_num_args,
6820 i386_frame_init_saved_regs): Remove prototypes.
6821 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6822 macros mentioned above.
6824 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6826 * cli/cli-decode.c (set_cmd_cfunc): Update.
6827 (set_cmd_sfunc): Update.
6828 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6829 (set_cmd_sfunc, set_cmd_cfunc): Update.
6830 * cli/cli-decode.h: Update.
6832 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6834 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6835 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6837 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6839 * defs.h (auto_boolean): Declare enum.
6840 * command.h (cmd_auto_boolean): Delete enum.
6841 * mips-tdep.c (mask_address_var): Update.
6842 (mips_mask_address_p): Update.
6843 (show_mask_address): Update.
6844 * remote.c (struct packet_config): Update.
6845 (update_packet_config): Update.
6846 (show_packet_config_cmd): Update.
6847 (packet_ok): Update.
6848 (add_packet_config_cmd): Update.
6849 (_initialize_remote):
6850 * command.h: Update.
6851 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6852 (do_setshow_command): Update.
6853 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6854 * cli/cli-decode.h: Update.
6856 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6858 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6859 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6860 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6861 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6862 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6863 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6865 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6866 list of DJGPP COFF targets.
6868 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6869 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6870 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6871 (FP0_REGNUM): Remove define.
6872 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6873 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6874 (i386_register_virtual_size): Remove protoype.
6875 * i386-tdep.c (i386_register_virtual_size): Removed.
6876 (i386_extract_return_value, i386_store_return_value): Use
6877 FP0_REGNUM instead of NUM_FREGS to determine whether the
6878 floating-point registers are available.
6879 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6880 Adjust for removal of macros mentioned above.
6882 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6884 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6886 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6888 (supply_gregset, fill_gregset): Remove use of register keyword and
6889 remove declaration for regmap. Use I386_NUM_GREGS instead of
6890 NUM_REGS and NUM_FREGS.
6891 (FPREGSET_FSAVE_OFFSET): Remove.
6892 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6893 NUM_FREGS to determine whether the floating-point registers are
6896 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6897 gnu_store_registers): Replace usage of NUM_GREGS with
6900 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6901 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6902 usage of NUM_GREGS with I386_NUM_GREGS.
6904 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6906 * i386bsd-nat.c: Include "i386-tdep.h".
6907 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6910 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6911 and associated comment. They no longer make any sense, since we
6912 don't use this file anymore on Linux.
6914 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6915 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6916 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6917 elements in these arrays.
6918 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6921 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6923 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6924 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6926 2002-06-14 Andrew Cagney <cagney@redhat.com>
6928 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6929 EXTRACT_RETURN_VALUE.
6930 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6931 EXTRACT_STRUCT_VALUE_ADDRESS.
6932 * gdbarch.h, gdbarch.c: Regenerate.
6934 * values.c (value_being_returned): Handle
6935 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6936 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6938 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6939 * arm-tdep.c (arm_gdbarch_init): Update.
6940 * avr-tdep.c (avr_gdbarch_init): Update.
6941 * cris-tdep.c (cris_gdbarch_init): Update.
6942 * d10v-tdep.c (d10v_gdbarch_init): Update.
6943 * ia64-tdep.c (ia64_gdbarch_init): Update.
6944 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6945 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6946 * s390-tdep.c (s390_gdbarch_init): Update.
6947 * sh-tdep.c (sh_gdbarch_init): Update.
6948 * s390-tdep.c (s390_gdbarch_init): Update.
6949 * sparc-tdep.c (sparc_gdbarch_init): Update.
6950 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6951 * v850-tdep.c (v850_gdbarch_init): Update.
6952 * vax-tdep.c (vax_gdbarch_init): Update.
6953 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6954 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6956 * config/arc/tm-arc.h: Update.
6957 * config/d30v/tm-d30v.h: Update.
6958 * config/fr30/tm-fr30.h: Update.
6959 * config/h8300/tm-h8300.h: Update.
6960 * config/h8500/tm-h8500.h: Update.
6961 * config/i386/tm-i386.h: Update.
6962 * config/i386/tm-ptx.h: Update.
6963 * config/i386/tm-symmetry.h: Update.
6964 * config/i960/tm-i960.h: Update.
6965 * config/m32r/tm-m32r.h: Update.
6966 * config/m68k/tm-delta68.h: Update.
6967 * config/m68k/tm-linux.h: Update.
6968 * config/m68k/tm-m68k.h: Update.
6969 * config/m88k/tm-m88k.h: Update.
6970 * config/mcore/tm-mcore.h: Update.
6971 * config/mips/tm-mips.h: Update.
6972 * config/mn10200/tm-mn10200.h: Update.
6973 * config/pa/tm-hppa.h: Update.
6974 * config/pa/tm-hppa64.h: Update.
6975 * config/sparc/tm-sp64.h: Update.
6976 * config/sparc/tm-sparc.h: Update.
6977 * config/sparc/tm-sparclet.h: Update.
6978 * config/z8k/tm-z8k.h: Update.
6980 2002-06-14 Andrew Cagney <cagney@redhat.com>
6982 * Makefile.in (i386_linux_tdep_h): Define.
6983 (i386_tdep_h, i387_tdep_h): Define.
6984 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6985 $(i386_tdep_h) and $(i387_tdep_h).
6986 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6988 2002-06-14 Mark Kettenis <kettenis@gnu.org>
6990 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6991 Already covered by the default.
6993 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6994 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6995 (i386_gdbarch_init): Initialize long_double_format and long_double
6998 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6999 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7001 * config/i386/i386sol2.mh: ... here.
7002 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7003 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7004 (SIGCONTEXT_PC_OFFSET): Remove define.
7005 (IN_SIGTRAMP): Remove define.
7006 * i386-sol2-tdep.c: New file.
7008 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7009 * config/i386/tm-i386nw.h: Removed.
7011 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7012 USE_STRUCT_CONVENTION): Remove defines.
7013 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7014 (get_longjmp_target): Remove prototype.
7015 (IN_SIGTRAMP): Remove define.
7016 (i386bsd_in_sigtramp): Remove prototype.
7017 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7018 function. Update comment accordingly
7019 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7020 (FRAME_SAVED_PC): Remove define.
7021 (i386bsd_frame_saved_pc): Remove prototype.
7022 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7023 GET_LONGJMP_TARGET): Remove defines.
7024 (get_longjmp_target): Remove prototype.
7025 (IN_SIGTRAMP): Remove define.
7026 (i386bsd_in_sigtramp): Remove prototype.
7027 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7028 function. Update comment accordingly
7029 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7030 (FRAME_SAVED_PC): Remove define.
7031 (i386bsd_frame_saved_pc): Remove prototype.
7032 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7034 (USE_STRUCT_CONVENTION): Remove prototype.
7035 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7037 (_initialize_i386bsd_nat): Revise logic to determine some
7038 constants at compile time when compiling a native GDB. Warn if
7039 things don't match up with what we expect.
7040 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7042 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7043 to use date stored in `struct gdbarch_tdep'.
7044 (i386bsd_sigcontext_offset): Remove varaible.
7045 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7046 stored in `struct gdbarch_tdep'.
7047 (i386bsd_frame_saved_pc): Make static.
7048 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7049 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7050 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7051 i386fbsd4_sc_pc_offset): New variables.
7052 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7053 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7055 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7057 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7058 Modify the value of i386fbsd_sigtramp_start and
7059 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7060 i386fbsd_sigtramp_end.
7061 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7064 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7065 define to i386-linux-tdep.h.
7066 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7067 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7069 (i386_linux_register_name, i386_linux_register_byte,
7070 i386_linux_register_raw_size): Remove prototypes.
7071 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7072 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7073 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7074 TARGET_WRITE_PC): Remove defines.
7075 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7076 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7077 i386_linux_write_pc): Remove prototypes.
7078 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7079 (get_longjmp_target): Remove prototype.
7080 * i386-linux-tdep.h: New file.
7081 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7082 * i386-linux-tdep.c: Include "i386-tdep.h" and
7083 "i386-linux-tdep.h".
7084 (i386_linux_register_name, i386_linux_register_byte,
7085 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7086 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7088 (i386_linux_init_abi): New function.
7089 (_initialize_i386_linux_tdep): New function.
7091 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7092 (i386_saved_pc_after_call): Remove prototype.
7093 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7094 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7095 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7096 (i386_register_name, i386_stab_reg_to_regnum,
7097 i386_dwarf_reg_to_regnum): Remove prototypes.
7098 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7099 SIZEOF_SSE_REGS): Remove defines.
7100 (REGISTER_BYTES): Remove define.
7101 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7102 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7103 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7104 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7105 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7106 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7107 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7108 (get_longjmp_target): Remove prototype.
7109 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7110 (sigtramp_saved_pc): Remove define.
7111 (i386v4_sigtramp_saved_pc): Remove prototype.
7112 * config/i386/tm-go32.h (FRAME_CHAIN,
7113 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7114 (i386go32_frame_saved_pc): Remove prototype.
7115 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7116 (get_longjmp_target): Remove prototype.
7117 * i386-tdep.h: Include "osabi.h".
7118 (enum i386_abi): Removed.
7119 (enum struct_return): New enum.
7120 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7121 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7122 sc_pc_offset members.
7123 (i386_gdbarch_register_os_abi): Remove prototype.
7124 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7125 I386_SSE_NUM_REGS): New defines.
7126 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7127 I386_SSE_SIZEOF_REGS): New defines.
7128 (i386_register_name, i386_register_byte, i386_register_raw_size):
7130 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7131 (i386bsd_sigtramp_saved_pc): New prototype.
7132 * i386-tdep.c: Don't include "elf-bfd.h".
7133 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7134 i386_frame_chain, i386_saved_pc_after_call): Make static.
7135 (i386_frame_saved_pc): Rewrite to call architecture dependent
7136 function to deal with signal handlers. Make static.
7137 (i386go32_frame_saved_pc): Removed.
7138 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7140 (i386_get_longjmp_target): New function.
7141 (default_struct_convention, pcc_struct_convention,
7142 reg_struct_convention, valid_conventions, struct_convention): New
7144 (i386_use_struct_convention): New function.
7145 (i386v4_sigtramp_saved_pc): Renamed to
7146 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7147 (i386_pc_in_sigtramp): New function.
7148 (i386_abi_names): Removed.
7149 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7150 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7152 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7153 i386_gdbarch_register_os_abi): Removed.
7154 (struct i386_abi_handler): Removed.
7155 (i386_abi_handler_list): Removed.
7156 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7158 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7159 i386_nw_init_abi): New functions.
7160 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7161 Use set_gdbarch_xxx() calls instead of relying on macros for a
7163 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7164 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7165 Register the various architecture variants defined in this file.
7167 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7169 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7170 (struct main_type): Remove arg_types member. Update comments for
7172 (TYPE_ARG_TYPES): Remove.
7173 (TYPE_FN_FIELD_ARGS): Update.
7174 (smash_to_method_type): Update prototype.
7176 * c-typeprint.c (cp_type_print_method_args): Take method type
7177 instead of argument list. Use new argument layout. Simplify.
7178 (c_type_print_args): Use new argument layout. Simplify.
7179 (c_type_print_base): Update call to cp_type_print_method_args.
7180 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7181 argument; use die->type instead. Update call to
7182 smash_to_method_type.
7183 (read_structure_scope): Update call to dwarf2_add_member_fn.
7184 * gdbtypes.c (allocate_stub_method): Update comment.
7185 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7186 Use new argument layout.
7187 (check_stub_method): Use new argument layout. Don't count
7188 void as an argument.
7189 (print_arg_types): Update comments. Use new argument layout.
7190 (recursive_dump_type): Don't print arg_types member.
7191 * hpread.c (hpread_read_struct_type): Use new argument layout.
7192 (fixup_class_method_type): Likewise.
7193 (hpread_type_lookup): Likewise.
7194 * stabsread.c (read_type): Update calls to read_args and
7195 smash_to_method_type.
7196 (read_args): Use new argument layout. Simplify.
7197 * valops.c (typecmp): Use new argument layout. Update parameters
7198 and comments. Simplify.
7199 (hand_function_call): Use new argument layout.
7200 (search_struct_method): Update call to typecmp.
7201 (find_overload_match): Use new argument layout.
7203 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7205 * NEWS: Mention multithreaded debug support for gdbserver.
7207 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7209 * MAINTAINERS: Mention NEWS.
7211 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7213 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7214 (struct mips_objfile_private, compare_pdr_entries): New.
7215 (non_heuristic_proc_desc): Read the ".pdr" section if it
7218 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7220 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7221 (arm_debug): New static variable.
7222 (_initialize_arm_tdep): Add ``set debug arm'' command.
7224 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7226 * Makefile.in (sim_arm_h): Define.
7227 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7228 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7229 (arm_register_sim_regno): New function, map an internal REGNUM
7230 onto a simulator register number.
7231 (arm_gdbarch_init): Set register_sim_regno.
7233 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7235 * MAINTAINERS: Add self.
7237 2002-06-11 Jim Blandy <jimb@redhat.com>
7239 * source.c (source_info): Mention whether the symtab has
7240 information about preprocessor macros.
7242 Call the command `info macro', not `show macro'.
7243 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7245 (_initialize_macrocmd): Register `info_macro_command' in
7246 `infolist', not `showlist'.
7248 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7250 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7251 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7252 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7253 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7254 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7256 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7257 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7258 (_initialize_mips_tdep): Remove dead code.
7259 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7260 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7261 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7262 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7263 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7264 MIPS_LAST_FP_ARG_REGNUM): Remove.
7266 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7268 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7269 (unwind_tmp_obstack_free, parse_frame_info)
7270 (update_context, cfi_read_fp, cfi_write_fp)
7271 (cfi_frame_chain, cfi_init_extra_frame_info)
7272 (cfi_virtual_frame_pointer): Use the above function.
7273 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7275 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7277 * v850-tdep.c (v850_type_is_scalar): New function.
7278 (v850_use_struct_convention): Match current gcc implementation
7279 as close as possible.
7280 (v850_push_arguments): Fix stack_offset handling. Don't write
7281 struct_addr into register. This is done by v850_store_struct_return.
7282 (v850_extract_return_value): Care for structs.
7283 (v850_store_return_value): Ditto.
7284 (v850_store_struct_return): Actually write address.
7286 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7288 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7289 without debug information too.
7291 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7293 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7294 Make multi-arch pure.
7295 * gdbarch.h, gdbarch.c: Re-generate.
7296 * arm-tdep.c (arm_print_float_info): Update.
7297 * arch-utils.h (default_print_float_info): Update.
7298 * arch-utils.c (default_print_float_info): Update.
7299 * infcmd.c (float_info): Update call.
7301 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7303 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7304 the front of the initialize list.
7306 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7308 * infrun.c (struct inferior_status): Replace fields
7309 selected_frame_address and selected_level with field
7311 (save_inferior_status): Update. Use get_frame_id.
7312 (struct restore_selected_frame_args): Delete.
7313 (restore_selected_frame): Update. Use frame_find_by_id.
7314 (restore_inferior_status): Update.
7316 * breakpoint.h (struct breakpoint): Change type of
7317 watchpoint_frame to frame_id.
7318 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7319 call to get_current_frame.
7320 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7322 (watchpoint_check): Use frame_find_by_id.
7324 * frame.h (record_selected_frame): Delete declaration.
7325 * stack.c (record_selected_frame): Delete function.
7327 * frame.h (struct frame_id): Define.
7328 (get_frame_id): Declare.
7329 (frame_find_by_id): Declare.
7330 * frame.c (frame_find_by_id): New function.
7331 (get_frame_id): New function.
7333 2002-06-10 Andrey Volkov <avolkov@transas.com>
7335 * ser-e7kpc.c: Fix duplicated define and call of
7336 _initialize_ser_e7000pc
7338 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7340 * signals/signals.c (target_signal_from_host): Fix #ifdef
7342 (do_target_signal_to_host): Likewise.
7344 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7346 * mips-tdep.c (mips_find_abi_section): New function.
7347 (mips_gdbarch_init): Call it.
7349 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7351 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7352 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7353 after Andrew's 2002-06-08 gdbarch change.
7355 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7357 * i386-linux-nat.c (suppy_gregset): Don't supply
7358 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7360 (fill_gregset): Don't fetch it under the same circumstances.
7362 2002-06-09 Andrew Cagney <cagney@redhat.com>
7364 * Makefile.in (callback_h): Define.
7365 (remote_sim_h): Update path to remote-sim.h.
7366 (remote-rdp.o): Add $(callback_h).
7367 (remote-sim.o): Use $(callback_h).
7368 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7369 * remote-rdp.c: Include "gdb/callback.h".
7371 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7373 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7374 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7376 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7378 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7379 * rdi-share/serpardr.c: Ditto.
7380 * rdi-share/unixcomm.c: Ditto.
7381 * rdi-share/serdrv.c: Ditto.
7382 * rdi-share/hostchan.h: Ditto.
7383 * rdi-share/hostchan.c: Ditto.
7384 * rdi-share/host.h: Ditto.
7385 * rdi-share/devsw.c: Ditto.
7387 * objfiles.h: Change type of obj_private to void pointer.
7388 * pa64solib.c: Update copyright. Don't include "assert.h", use
7389 strcmp instead of STREQ, use LONGEST, do not use PTR
7390 * somsolib.c: Ditto.
7392 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7393 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7394 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7396 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7398 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7399 (default_get_saved_register): Delete function.
7400 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7401 generic_unwind_get_saved_register.
7402 * gdbarch.h, gdbarch.c: Re-generate.
7404 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7406 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7407 generic_func_frame_chain_valid.
7408 * gdbarch.h, gdbarch.c: Re-generate.
7409 * blockframe.c (generic_func_frame_chain_valid): Only check
7410 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7411 passing FP to PC_IN_CALL_DUMMY.
7414 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7416 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7417 (register_gdbarch_data): Initialize init_p.
7418 (gdbarch_data): Initialize data pointer using the init function.
7419 (init_gdbarch_data): Delete function.
7420 (gdbarch_update_p): Update.
7421 (initialize_non_multiarch): Update.
7422 (struct gdbarch): Add field initialized_p.
7423 * gdbarch.h, gdbarch.c: Re-generate.
7425 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7427 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7428 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7429 better do the things actually here.
7430 * x86-64-tdep.c (x86_64_register_name2nr): New.
7431 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7432 (x86_64_gdbarch_init): Respect the above change.
7433 * x86-64-tdep.h (x86_64_register_name2nr)
7434 (x86_64_register_nr2name): Add prototypes.
7435 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7437 2002-06-06 Michael Snyder <msnyder@redhat.com>
7439 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7440 Delete extra braces and re-indent.
7441 (d10v_store_return_value): Char return values
7442 must be shifted over by one byte in R0.
7443 (d10v_extract_return_value): Delete extra braces, re-indent.
7445 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7447 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7448 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7449 (d10v_integer_to_address): Rewrite.
7450 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7451 the d10v specific functions which take care of converting to the
7454 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7456 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7457 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7459 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7461 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7463 * config/tm-linux.h: Ditto.
7464 * config/alpha/tm-alphalinux.h: Ditto.
7465 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7466 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7467 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7468 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7469 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7470 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7471 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7472 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7473 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7474 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7475 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7476 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7477 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7478 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7479 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7480 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7481 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7482 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7483 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7484 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7485 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7486 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7487 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7488 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7489 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7490 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7491 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7492 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7493 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7494 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7495 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7496 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7497 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7498 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7499 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7500 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7501 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7503 2002-05-04 Aidan Skinner <aidan@velvet.net>
7505 * ada-exp.tab.c: New file
7506 * ada-exp.y: New file
7507 * ada-lang.c: New file
7508 * ada-lang.h: New file
7509 * ada-lex.c: New file
7510 * ada-lex.l: New file
7511 * ada-tasks.c: New file
7512 * ada-typeprint.c: New file
7513 * ada-valprint.c: New file
7515 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7517 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7518 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7520 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7522 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7523 insetead of ppc-linux-tdep.o.
7524 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7525 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7527 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7529 2002-05-07 Christian Groessler <chris@groessler.org>
7530 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7531 bit register contents for little endian hosts.
7533 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7535 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7538 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7540 * gdbarch.h: Regenerate.
7542 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7544 * MAINTAINERS: Add everyone to write-after-approval list.
7546 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7548 * stack.c (frame_info): Use frame_register_unwind instead of
7549 saved_regs. Mention when the SP is on the stack or in a register.
7551 * frame.h (frame_register_unwind_ftype): Define. Document.
7552 (struct frame_info): Add field register_unwind and
7553 register_unwind_cache.
7554 (frame_register_unwind): Declare.
7555 (generic_unwind_get_saved_register): Declare.
7557 * frame.c (frame_register_unwind): New function.
7558 (generic_unwind_get_saved_register): New function.
7560 * blockframe.c (generic_call_dummy_register_unwind): New function.
7561 (frame_saved_regs_register_unwind): New function.
7562 (set_unwind_by_pc): New function.
7563 (create_new_frame): New function.
7564 (get_prev_frame): New function.
7566 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7568 * a29k-share/: Delete directory.
7569 * remote-vx29k.c: Delete file.
7571 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7573 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7574 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7576 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7578 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7579 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7582 (sparcnbsd-tdep.o): New dependency lists.
7583 * NEWS: Note new UltraSPARC NetBSD native configuration.
7584 * configure.host (sparc64-*-netbsd*): New host.
7585 * configure.tgt (sparc-*-netbsdelf*)
7586 (sparc-*-netbsd*): Set gdb_target to nbsd.
7587 (sparc64-*-netbsd*): New target.
7588 * sparc64nbsd-nat.c: New file.
7589 * sparcnbsd-nat.c: New file.
7590 * sparcnbsd-tdep.c: New file.
7591 * sparcnbsd-tdep.h: New file.
7592 * config/sparc/nbsd.mt: New file.
7593 * config/sparc/nbsd64.mh: New file.
7594 * config/sparc/nbsd64.mt: New file.
7595 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7596 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7598 * config/sparc/nbsdaout.mt: Remove.
7599 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7600 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7602 * config/sparc/nbsdelf.mt: Remove.
7603 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7604 sparc-nat.c compatiblity defines.
7605 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7606 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7607 * config/sparc/tm-nbsd64.h: New file.
7608 * config/sparc/tm-nbsdaout.h: Remove.
7609 * config/sparc/xm-nbsd.h: Remove.
7611 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7613 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7614 * sparc-tdep.c: Include osabi.h.
7615 (gdbarch_tdep): Add osabi member.
7616 (_initialize_sparc_tdep): Use gdbarch_register.
7617 (sparc_gdbarch_init): Use generic OS ABI framework.
7618 (sparc_dump_tdep): New function.
7620 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7622 * corefile.c (do_captured_read_memory_integer): Return non-zero
7624 (safe_read_memory_integer): Copy result of memory read when
7625 status is non-zero. Also, add comments.
7627 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7629 * Makefile.in (ppc_tdep_h): Define.
7632 (rs6000-tdep.o): Use $(ppc_tdep_h).
7635 (ppcnbsd-tdep.o): New dependency lists.
7636 * ppc-tdep.h: Use generic OS ABI framework.
7637 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7638 (ppc_linux_init_abi): New functions.
7639 (ppc_sysv_abi_broken_use_struct_convention)
7640 (ppc_sysv_abi_use_struct_convention)
7641 (ppc_sysv_abi_push_arguments): Move to...
7642 * ppc-sysv-tdep.c: ...here.
7643 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7644 * rs6000-tdep.c (process_note_abi_tag_sections)
7645 (get_elfosabi): Remove.
7646 (rs6000_gdbarch_init): Use generic OS ABI framework.
7647 (rs6000_dump_tdep): New function.
7648 (_initialize_rs6000_tdep): Use gdbarch_register.
7649 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7650 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7651 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7652 of ppc-linux-tdep.o.
7653 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7654 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7655 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7656 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7657 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7658 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7660 2002-05-29 Jim Blandy <jimb@redhat.com>
7662 * macroscope.c (default_macro_scope): Put `void' in empty argument
7665 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7667 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7668 * arch-utils.c: Include "sim-regno.h".
7669 * gdbarch.sh: Don't include "sim-regno.h".
7670 * gdbarch.h, gdbarch.c: Regenerate.
7671 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7673 * arch-utils.h (legacy_register_sim_regno): To here.
7674 * remote-sim.c (legacy_register_sim_regno): Move function from
7676 * arch-utils.c (legacy_register_sim_regno): To here.
7678 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7680 * sim-regno.h: New file.
7681 * Makefile.in (sim_regno_h): Define.
7682 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7683 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7684 (legacy_register_sim_regno): New function.
7685 (one2one_register_sim_regno): New function.
7686 (gdbsim_fetch_register): Rewrite.
7687 (gdbsim_store_register): Only store a register when
7688 REGISTER_SIM_REGNO is valid.
7689 * d10v-tdep.c: Include "sim-regno.h".
7690 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7691 (d10v_ts3_register_sim_regno): Ditto.
7692 * gdbarch.sh: Include "sim-regno.h".
7693 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7694 * gdbarch.h, gdbarch.c: Regenerate.
7695 * arch-utils.h (default_register_sim_regno): Delete declaration.
7696 * arch-utils.c (default_register_sim_regno): Delete function.
7698 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7700 * ppcnbsd-nat.c: Rewrite.
7701 * ppcnbsd-tdep.c: New file.
7702 * ppcnbsd-tdep.h: New file.
7703 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7704 solib.o, and solib-svr4.o.
7705 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7706 nbsd-tdep.o, and corelow.o.
7708 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7710 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7711 `tr' and `sed'. Mention that `broken' targets are not expected to
7714 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7716 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7717 Let PC point right after the prologue before looking up symbols.
7719 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7721 * i386-tdep.c (i386_register_virtual_type): Return
7722 builtin_type_vec128i for SSE registers.
7724 * gdbtypes.h (builtin_type_vec128i): Declare.
7726 * gdbtypes.c (build_builtin_type_vec128i): New function.
7727 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7728 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7729 (build_gdbtypes): Initialize new builtin vector types.
7730 (_initialize_gdbtypes): Register new vector types with gdbarch.
7732 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7734 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7735 since it has been multi-arch'd.
7736 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7737 Move Alpha and VAX multi-arch news entries to same section
7738 as other multi-arch news.
7740 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7742 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7743 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7744 static. Rename some register numbers to put them in ns32k-tdep
7746 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7747 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7749 (_initialize_ns32k_tdep): Use gdbarch_register.
7750 * ns32k-tdep.h: New file.
7751 * ns32knbsd-tdep.c: New file.
7752 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7753 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7754 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7755 REGISTER_BYTES, REGISTER_BYTE): Remove.
7756 * config/ns32k/tm-ns32k.h: New file.
7757 * config/ns32k/tm-umax.h: Remove.
7759 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7761 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7762 ns32k_store_struct_return, ns32k_extract_return_value,
7763 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7765 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7766 ns32k_saved_pc_after_call.
7767 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7768 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7769 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7770 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7771 ns32k_extract_struct_value_address.
7773 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7775 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7776 ns32k_fix_call_dummy): New.
7777 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7778 ns32k_call_dummy_words.
7779 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7780 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7781 CALL_DUMMY_NARGS): Remove.
7782 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7784 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7786 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7787 ns32k_frame_saved_pc, ns32k_frame_args_address,
7788 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7789 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7790 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7791 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7792 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7793 (BREAKPOINT): Remove..
7794 (FRAME_CHAIN): Define as ns32k_frame_chain.
7795 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7796 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7797 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7798 (FRAME_FIND_SAVED_REGS): Remove.
7799 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7800 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7801 (POP_FRAME): Define as ns32k_pop_frame.
7803 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7805 * ns32k-tdep.c (ns32k_register_byte_32082,
7806 ns32k_register_byte_32382, ns32k_register_raw_size,
7807 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7809 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7810 ns32k_register_byte_32382.
7811 * config/ns32k/tm-umax.h: Update copyright years.
7812 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7813 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7814 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7815 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7816 (ns32k_get_enter_addr): Fix prototype.
7818 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7820 * ns32k-tdep.c: Update copyright years.
7821 (ns32k_register_name_32082): New function.
7822 (ns32k_register_name_32382): Ditto.
7823 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7824 (REGISTER_NAME): Define as ns32k_register_name_32382.
7825 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7826 (REGISTER_NAME): Define as ns32k_register_name_32082.
7828 2002-05-24 Jim Blandy <jimb@redhat.com>
7830 * dwarf2read.c (free_line_header): Use xfree, not free.
7832 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7834 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7835 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7837 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7839 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7841 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7843 From Ross Alexander at NEC Europe:
7844 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7846 2002-05-23 Michael Snyder <msnyder@redhat.com>
7848 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7849 for input, rather than parse_and_eval_address.
7851 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7853 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7854 * Makefile.in (sim_d10v_h): Update definition.
7856 2002-05-24 Andrew Cagney <cagney@redhat.com>
7858 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7859 change `2002-05-22 Michael Snyder' below.
7860 (d10v_push_arguments): Ditto.
7861 (d10v_extract_return_value): Ditto.
7863 2002-05-23 Jim Blandy <jimb@redhat.com>
7865 * macrotab.c (check_for_redefinition): Don't complain if the new
7866 definition is the same as the previous one. Take more arguments
7867 to allow the comparison.
7868 (macro_define_object, macro_define_function): Pass more arguments
7869 to check_for_redefinition.
7871 2002-05-22 Michael Snyder <msnyder@redhat.com>
7873 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7874 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7875 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7876 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7877 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7878 Add a temp variable to save a call (and a memory read).
7879 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7880 if possible (so that PC_IN_CALL_DUMMY will work).
7882 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
7884 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7886 2002-05-22 Michal Ludvig <mludvig@suse.cz>
7888 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7890 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7891 (dwarf2_build_frame_info): Add offset to fde->initial_location
7892 so that frames of shared libraries are mapped correctly.
7893 (execute_stack_op): Change type of 'result' from ULONGEST to
7896 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7898 * config/alpha/tm-nbsd.h: Include solib.h.
7900 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7902 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7903 assumptions about the host's byte order.
7905 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7907 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7909 * alphanbsd-tdep.c: Include solib-svr4.h.
7910 * shnbsd-tdep.c: Ditto.
7912 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7914 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7915 nbsd-tdep.h to dependency list.
7916 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7917 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7918 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7919 nbsdaout.mh and nbsdelf.mh consistently.
7920 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7921 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7922 nbsdaout.mt and nbsdelf.mh consistently.
7923 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7924 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7925 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7926 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7927 a.out shared library stuff from here...
7928 * config/nm-nbsdaout.h: ...to here.
7929 * config/tm-nbsd.h: Remove.
7930 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7931 * config/arm/nbsd.mh: Remove.
7932 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7934 * config/arm/nbsdaout.mh: New file.
7935 * config/arm/nbsdelf.mh: New file.
7936 * config/arm/nm-nbsdaout.h: New file.
7937 * config/i386/nbsd.mh: Remove.
7938 * config/i386/nbsd.mt: Remove.
7939 * config/i386/nbsdaout.mh: New file.
7940 * config/i386/nbsdaout.mt: New file.
7941 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7942 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7943 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7944 i386_register_u_addr): Remove.
7945 * config/i386/nm-nbsdaout.h: New file.
7946 * config/i386/nm-nbsdelf.h: Remove.
7947 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7948 (USE_STRUCT_CONVENTION): Remove.
7949 * config/i386/tm-nbsdaout.h: New file.
7950 * config/i386/tm-nbsdelf.h: Remove.
7951 * config/m68k/nbsd.mh: Remove.
7952 * config/m68k/nbsd.mt: Remove.
7953 * config/m68k/nbsdaout.mh: New file.
7954 * config/m68k/nbsdaout.mt: New file.
7955 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7956 * config/m68k/nm-nbsdaout.h: New file.
7957 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7958 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7959 * config/ns32k/nbsd.mh: Remove.
7960 * config/ns32k/nbsd.mt: Remove.
7961 * config/ns32k/nbsdaout.mh: New file.
7962 * config/ns32k/nbsdaout.mt: New file.
7963 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7964 * config/ns32k/nm-nbsdaout.h: New file.
7965 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7966 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7967 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7968 (SVR4_SHARED_LIBS): Remove.
7969 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7970 * config/sparc/nbsd.mh: Remove.
7971 * config/sparc/nbsd.mt: Remove.
7972 * config/sparc/nbsdaout.mh: New file.
7973 * config/sparc/nbsdaout.mt: New file.
7974 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7975 * config/sparc/nbsdelf.mt: New file.
7976 * config/sparc/nm-nbsdaout.h: New file.
7977 * config/sparc/nm-nbsdelf.h: Remove.
7978 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7979 * config/sparc/tm-nbsdaout.h: New file.
7981 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7983 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7985 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7987 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7989 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7991 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7993 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7995 * NEWS: Note new MIPS NetBSD native configuration.
7996 * configure.host (mips*-*-netbsd*): New host.
7997 * configure.tgt (mips*-*-netbsd*): New target.
7998 * mipsnbsd-nat.c: New file.
7999 * mipsnbsd-tdep.c: New file.
8000 * mipsnbsd-tdep.h: New file.
8001 * config/mips/nbsd.mh: New file.
8002 * config/mips/nbsd.mt: New file.
8003 * config/mips/nm-nbsd.h: New file.
8004 * config/mips/tm-nbsd.h: New file.
8006 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8008 * Makefile.in (SFILES): Add osabi.c.
8009 (COMMON_OBS): Add osabi.o.
8010 (osabi.o): New dependency list.
8011 * osabi.c: New file.
8012 * osabi.h: New file.
8013 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8015 * Makefile.in (alpha_tdep_h): Define and use instead of
8017 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8018 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8020 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8021 * alpha-tdep.h: Include osabi.h.
8022 (alpha_abi): Remove.
8023 (gdbarch_tdep): Use generic OS ABI framework.
8024 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8025 gdbarch_register_osabi.
8026 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8027 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8028 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8030 * Makefile.in (sh_tdep_h): Add osabi.h.
8031 * sh-tdep.h (sh_osabi): Remove.
8032 (gdbarch_tdep): Use generic OS ABI framework.
8033 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8034 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8035 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8036 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8038 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8039 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8040 gdbarch_register_osabi.
8041 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8042 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8043 (get_elfosabi): Rename to...
8044 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8045 ABI framework support routines.
8046 (arm_gdbarch_init): Use generic OS ABI framework.
8047 (arm_dump_tdep): Likewise.
8048 (_initialize_arm_tdep): Likewise.
8049 * arm-tdep.h: Include osabi.h.
8051 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8053 (arm_gdbarch_register_os_abi): Remove prototype.
8054 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8055 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8057 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8058 * mips-tdep.c: Include osabi.h.
8059 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8062 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8064 * h8300-tdep.c: Fix formatting.
8066 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8068 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8069 printing vector registers.
8071 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8073 From Fernando Nasser:
8074 * remote.c (remote_async_open_1): Re-throw the exception when the
8076 (remote_cisco_open): Ditto.
8077 (remote_open_1): Ditto.
8079 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8081 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8082 (remote_start_remote): Add uiout parameter. Pass through to
8083 remote_start_remote_dummy.
8084 (remote_open_1): Use catch_exception instead of catch_errors.
8085 (remote_async_open_1): Ditto.
8086 (remote_cisco_open): Ditto.
8088 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8090 * remote.c (remote_start_remote): Replace PTR with void pointer.
8091 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8094 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8096 * gdb_indent.sh: Allow the script to be run in the sim directory.
8098 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8100 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8101 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8103 * corelow.c (core_open): Only call set_gdbarch_from_file if
8106 2002-05-17 Andrey Volkov <avolkov@transas.com>
8108 * h8300-tdep.c: Add support of EXR register
8109 * config/h8300/tm-h8300.h: Ditto.
8111 2002-05-17 Andrey Volkov <avolkov@transas.com>
8113 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8115 2002-05-17 Andrey Volkov <avolkov@transas.com>
8117 * h8300-tdep.c: Change literal regnums to REGNO.
8119 2002-05-17 Jim Blandy <jimb@redhat.com>
8121 * NEWS: Note addition of macro support.
8123 Expand preprocessor macros in C expressions.
8124 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8125 (scan_macro_expansion, scanning_macro_expansion,
8126 finished_macro_expansion): New function declarations.
8127 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8128 variable declarations.
8129 * parser-defs.h (expression_context_pc): New declaration.
8130 * parse.c (expression_context_pc): New variable.
8131 (parse_exp_1): Set expression_context_pc, as well as
8132 expression_context_block.
8133 * c-exp.y (yylex): If we're not already reading the result of a
8134 macro expansion, try to macro-expand the next token. When we're
8135 done scanning a macro expansion, switch back to the mainline text.
8136 Commas and `if's in a macro's expansion don't terminate the input.
8137 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8138 (macro_original_text, macro_expanded_text,
8139 expression_macro_lookup_func, expression_macro_lookup_baton): New
8141 (scan_macro_expansion, scanning_macro_expansion,
8142 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8143 c_preprocess_and_parse): New functions.
8144 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8145 c_preprocess_and_parse, instead of c_parse.
8146 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8147 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8149 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8151 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8152 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8153 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8155 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8157 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8159 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8161 * Makefile.in (sh_tdep_h): Define and use.
8162 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8163 register enum): Move to...
8164 * * sh-tdep.h: ...here.
8165 * sh-tdep.c: Include sh-tdep.h.
8166 * sh3-rom.c: Likewise.
8167 * shnbsd-tdep.c: Likewise.
8169 2002-05-16 Michael Snyder <msnyder@redhat.com>
8171 * arm-tdep.c: Spelling fix in comment.
8173 2002-05-16 Jim Blandy <jimb@redhat.com>
8175 Add commands for manually expanding macros and showing their
8177 * macrocmd.c, macroscope.c, macroscope.h: New files.
8178 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8179 (macroscope_h): New variable.
8180 (HFILES_NO_SRCDIR): Add macroscope.h.
8181 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8182 (macroscope.o, macrocmd.o): New rules.
8184 Teach the Dwarf 2 reader to read macro information.
8185 * dwarf2read.c: #include "macrotab.h".
8186 (dwarf_macinfo_buffer): New variable.
8187 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8189 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8190 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8191 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8192 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8193 dwarf2_macro_spaces_in_definition): New complaints.
8194 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8195 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8196 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8197 the partial symbol table.
8198 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8199 from what's recorded in the partial symbol table.
8200 (read_file_scope): If the compilation unit has a
8201 `DW_AT_macro_info' attribute, read its macro information.
8202 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8204 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8207 * ser-tcp.c: Don't include <netinet/udp.h>.
8209 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8211 * MAINTAINERS: Update my email address.
8213 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8215 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8216 include file of the same name.
8218 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8220 * configure.tgt: Mark v850 as multi-arched.
8221 * config/v850/tm-v850.h: Remove file.
8222 * config/v850/v850.mt: Eliminate TM_FILE.
8224 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8226 * v850-tdep.c: Full multi-arch.
8227 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8228 Define GDB_MULTI_ARCH to 2.
8230 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8232 * p-exp.y (current_type): New static variable.
8233 Carries the type of the expression at the position that is parsed.
8234 (push_current_type, pop_current_type): Two new functions. Used
8235 to store/restore current_type in expression on specific tokens.
8236 (search_field): New static variable. Set to one after parsing a point
8237 as at that point only a FIELDNAME token should be searched.
8238 (FIELDNAME): New token. After a point only a token belonging to
8239 current_type type definition is allowed.
8240 (all over token rules): reset and change current_type according
8242 (exp '[' rule): insert implicit array index field if
8243 exp is a pascal string type.
8245 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8247 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8248 frame info. Use frame_info's saved_regs instead of matching member
8249 in extra_frame_info throughout.
8250 (v850_frame_init_saved_regs): New function.
8251 (v850_init_extra_frame_info): Move most functionality into
8252 v850_frame_init_saved_regs().
8253 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8254 (v850_frame_find_saved_regs): Remove declaration.
8255 (FRAME_FIND_SAVED_REGS): Remove definition.
8256 (v850_frame_init_saved_regs): Add declaration.
8257 (FRAME_INIT_SAVED_REGS): Add definition.
8259 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8261 * v850-tdep.c: Begin multi-arch'ing v850.
8262 (v850_target_architecture_hook): Remove function.
8263 (v850_gdbarch_init): New function. Add code previously in
8264 v850_target_architecture_hook().
8265 (_initialize_v850_tdep): Don't set target_architecture_hook.
8266 Call register_gdbarch_init() instead.
8268 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8270 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8271 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8272 (fixup_class_method_type): Likewise.
8274 2002-05-15 Jim Blandy <jimb@redhat.com>
8276 Add macro structures to GDB's symbol tables. Nobody puts anything
8278 * symtab.h (struct symtab): New member: `macro_table'.
8279 * buildsym.h (pending_macros): New global variable.
8280 * buildsym.c: #include "macrotab.h".
8281 (buildsym_init): Initialize `pending_macros'.
8282 (end_symtab): If we found macro information while reading a CU's
8283 debugging info, do build a symtab structure for it. Make the
8284 symtab point to the macro information, and clear the
8285 `pending_macros' pointer which held it while we were reading the
8287 (really_free_pendings): Free any pending macro table.
8288 * objfiles.h (struct objfile): New member: `macro_cache'.
8289 * objfiles.c (allocate_objfile): Set allocate and free functions
8290 for the macro cache's objstack.
8291 (free_objfile): Empty the macro cache's obstack.
8292 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8293 set new allocate and free functions for it.
8294 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8295 free functions for the macro cache's objstack. (Why is this
8296 function building its own objfile?)
8297 * symmisc.c (print_objfile_statistics): Print statistics on the
8299 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8301 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8303 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8304 (REGISTER_U_ADDR): Delete definition.
8305 (arm_register_u_addr): Delete declaration.
8307 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8309 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8310 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8312 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8314 * regcache.c (register_valid): Revise comments refering to "Not
8315 available" and "unavailable".
8316 * frame.c (frame_register_read): Ditto.
8317 * findvar.c (value_of_register): Ditto.
8319 2002-05-15 Andrew Cagney <cagney@redhat.com>
8321 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8322 (remote-sim.o): Update dependencies.
8323 (d10v-tdep.o): Specify dependencies.
8324 (sim_d10v_h): Define.
8326 2002-05-14 Jim Blandy <jimb@redhat.com>
8328 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8329 * macrotab.c (macro_lookup_inclusion, find_definition,
8330 new_macro_table): Same.
8332 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8333 not `! strcmp ()'. This is a dubious improvement.
8334 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8336 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8337 although it's not necessary, to avoid a warning.
8339 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8341 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8342 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8343 TYPE_INSTANCE_FLAGS.
8344 (struct main_type): New.
8345 (struct type): Move most members to struct main_type. Change
8346 cv_type and as_type to new type_chain member. Add instance_flags.
8347 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8348 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8349 (finish_cv_type): Remove prototype.
8350 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8352 (alloc_type_instance): New function.
8353 (smash_type): New function.
8354 (make_pointer_type, make_reference_type, make_function_type)
8355 (smash_to_member_type, smash_to_method_type): Call smash_type.
8356 (make_qualified_type): New function.
8357 (make_type_with_address_space): Call make_qualified_type.
8358 (make_cv_type): Likewise.
8359 (finish_cv_type): Remove unnecessary function.
8360 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8361 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8362 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8363 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8364 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8365 * hpread.c (hpread_read_struct_type): Likewise.
8366 * stabsread.c (read_struct_type): Likewise.
8368 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8370 * configure.tgt: Add a catch all sh* target, for cases like
8371 sh[2,3,4]-elf and sh-hms.
8373 2002-05-14 Keith Seitz <keiths@redhat.com>
8375 * event-loop.c (create_file_handler): Don't do anything but
8376 update data when we are given a fd which we are already
8379 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8381 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8382 (update_context): Use __func__ in warnings.
8384 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8386 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8387 and tcp_close to net_open and net_close.
8388 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8389 using UDP if requested. Don't try to disable Nagle on UDP
8391 * remote.c (remote_serial_open): New function. Warn about UDP.
8392 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8394 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8396 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8398 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8400 * configure.tgt: Remove sh-hms target.
8401 * MAINTAINERS: Don't list sh-hms as a separate target.
8403 2002-05-13 Jim Blandy <jimb@redhat.com>
8405 Add first preprocessor macro-expansion files.
8406 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8407 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8408 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8409 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8410 (COMMON_OBS): Add macrotab.o, macroexp.o.
8411 (macroexp.o, macrotab.o): New rules.
8413 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8415 * config/m88k/tm-m88k.h: Update copyright.
8416 (m88k_target_write_pc): Declare
8417 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8418 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8419 (SHIFT_INST_REGS): Update definition.
8420 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8421 using old definition of TARGET_WRITE_PC.
8422 * regcache.c (generic_target_write_pc): Delete code handling
8424 * gdbarch.sh (NNPC_REGNUM): Delete.
8425 * gdbarch.h, gdbarch.c: Regenerate.
8427 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8429 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8432 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8434 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8435 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8436 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8438 * c-typeprint.c (cp_type_print_method_args): Likewise.
8439 (c_type_print_args): Likewise.
8440 * d10v-tdep.c (d10v_push_arguments): Likewise.
8441 (d10v_extract_return_value): Likewise.
8442 * expprint.c (print_subexp): Likewise.
8443 * gdbtypes.c (lookup_primitive_typename): Likewise.
8444 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8445 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8446 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8447 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8448 (TYPE_VECTOR): Likewise.
8449 * hpread.c (hpread_read_struct_type)
8450 (fix_static_member_physnames, fixup_class_method_type)
8451 (hpread_type_lookup): Likewise.
8452 * mdebugread.c (parse_symbol, parse_type): Likewise.
8453 * p-lang.c (is_pascal_string_type): Likewise.
8454 * valops.c (hand_function_call): Likewise.
8455 * x86-64-tdep.c (classify_argument): Likewise.
8457 * hpread.c (hpread_read_function_type)
8458 (hpread_read_doc_function_type): Call replace_type.
8459 * dstread.c (create_new_type): Delete.
8460 (decode_dst_structure, process_dst_function): Call alloc_type.
8461 Use type access macros.
8463 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8465 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8466 the're not supported by the current architecture.
8467 (i387_fill_fxsave): Likewise.
8469 2002-05-12 Fred Fish <fnf@redhat.com>
8471 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8472 sect_index_xxx members to index the first slot in section_offsets
8473 if all of the section_offsets are zero.
8475 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8477 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8478 checked in with last change.
8480 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8482 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8483 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8486 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8488 * Makefile.in: Update dependencies.
8490 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8492 * language.c (local_hex_string_custom): Simplify. Do not depend
8493 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8495 * memattr.c (mem_info_command): Replace calls to
8496 longest_local_hex_string and longest_local_hex_string_custom.
8497 * buildsym.c (make_blockvector): Ditto.
8498 * solib.c (info_sharedlibrary_command): Ditto.
8499 * tracepoint.c (tracepoints_info): Ditto.
8500 * symtab.c (print_msymbol_info): Ditto.
8502 * language.c (local_hex_string): Delete.
8503 (local_hex_string_custom): Delete.
8504 (longest_local_hex_string): Rename to local_hex_string.
8505 (longest_local_hex_string_custom): Rename to
8506 local_hex_string_custom.
8507 * language.h (local_hex_string): Change parameter type to LONGEST.
8508 (local_hex_string_custom): Ditto.
8509 (longest_local_hex_string): Delete declaration.
8510 (longest_local_hex_string_custom): Ditto.
8512 * solib.c: Update copyright.
8513 * memattr.c: Update copyright.
8515 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8517 * arch-utils.h (legacy_register_to_value): Declare.
8518 (legacy_value_to_register): Declare.
8519 (legacy_convert_register_p): Declare.
8520 * arch-utils.c (legacy_register_to_value): New function.
8521 (legacy_value_to_register): New function.
8522 (legacy_convert_register_p): New function.
8524 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8525 (VALUE_TO_REGISTER): Define.
8526 (CONVERT_REGISTER_P): Define.
8527 * gdbarch.h, gdbarch.c: Regenerate.
8529 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8531 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8534 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8535 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8537 * Makefile.in: Update dependencies for valops.c.
8538 * valops.c: Include "gdb_assert.h".
8539 (typecmp): Skip THIS parameter to methods.
8540 (find_method_list): Remove static_memfuncp argument,
8541 update callers. Check for stub methods.
8542 (find_value_oload_method_list): Don't set *static_memfuncp.
8543 (find_overload_match): Don't check for stub methods. Assert
8544 that methods are not stubbed. Handle static methods.
8545 (value_find_oload_method_list): Remove static_memfuncp argument.
8546 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8547 to the argument list for static stub methods.
8548 * value.h (value_find_oload_method_list): Update prototype.
8550 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8552 * arch-utils.h (generic_register_size): Declare.
8553 (generic_register_raw_size, generic_register_virtual_size): Delete
8555 * arch-utils.c (generic_register_raw_size): Delete.
8556 (generic_register_size): New function.
8557 (generic_register_virtual_size): Delete.
8559 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8560 default generic_register_size.
8561 * gdbarch.h, gdbarch.c: Re-generate.
8563 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8564 register_virtual_size.
8565 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8566 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8568 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8570 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8571 * gdbarch.h, gdbarch.c: Regenerate.
8572 * gnu-v3-abi.c: Update copyright.
8573 (vtable_address_point_offset): Update.
8574 (gnuv3_rtti_type): Update.
8575 (gnuv3_baseclass_offset): Update.
8576 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8577 (init_fetch_link_map_offsets): Update.
8578 * remote.c (get_remote_state): Update.
8580 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8582 * TODO: Remove value_headof/value_from_vtable_info comment.
8583 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8584 * values.c (value_headof, value_from_vtable_info): Delete.
8585 * value.h (value_from_vtable_info): Delete prototype.
8587 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8589 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8590 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8592 (gdb_assert_h): Define.
8593 (gdb_wait_h): Define.
8594 (gdb_regex_h): Define.
8596 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8598 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8599 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8601 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8603 * nbsd-tdep.c: Fix comment.
8605 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8607 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8608 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8609 (nbsd-tdep.o): New dependency list.
8610 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8612 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8613 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8614 * nbsd-tdep.c: New file.
8615 * nbsd-tdep.h: New file.
8616 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8618 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8619 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8620 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8621 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8623 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8625 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8626 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8627 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8628 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8629 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8630 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8632 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8634 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8635 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8636 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8637 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8638 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8639 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8640 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8642 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8644 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8645 fetch_elfcore_registers to...
8646 * i386nbsd-tdep.c: ...here.
8647 (i386nbsd_use_struct_convention): Rename to...
8648 (i386nbsd_aout_use_struct_convention): ...this.
8649 (i386nbsd_supply_reg): New function.
8650 (i386nbsd_fill_reg): New function.
8651 (fetch_core_registers): Use i386nbsd_supply_reg.
8652 (fetch_elfcore_registers): Likewise.
8653 (_initialize_i386nbsd_tdep): New function.
8654 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8655 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8656 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8657 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8658 (i386nbsd_aout_use_struct_convention): ...this.
8660 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8662 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8663 (store_inferior_registers): Use shnbsd_fill_reg.
8664 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8665 sh_nbsd_supply_register): Collapse into...
8666 (shnbsd_supply_reg): ...this.
8667 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8668 (shnbsd_fill_reg): ...this.
8669 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8670 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8671 (fetch_core_registers): Use shnbsd_supply_reg.
8672 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8673 (sh_nbsd_core_fns): Rename to...
8674 (shnbsd_core_fns): ...this.
8675 (sh_nbsd_elfcore_fns): Rename to...
8676 (shnbsd_elfcore_fns): ...this.
8677 (sh_nbsd_init_abi): Rename to...
8678 (shnbsd_init_abi): ...this.
8679 (_initialize_sh_nbsd_tdep): Rename to...
8680 (_initialize_shnbsd_tdep): ...this.
8681 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8682 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8683 sh_nbsd_fill_register): Remove prototypes.
8684 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8686 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8688 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8689 (i387-nat.o): Delete dependency list.
8690 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8691 (x86-64-linux-nat.o): Likewise.
8692 * i387-nat.c: Delete file, moving contents to...
8693 * i387-tdep.c: ...here.
8694 * i387-nat.h: Rename...
8695 * i387-tdep.h: ...to this.
8696 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8697 * i386-linux-nat.c: Likewise.
8698 * i386bsd-nat.c: Likewise.
8699 * i386gnu-nat.c: Likewise.
8700 * i386nbsd-nat.c: Likewise.
8701 * i386v4-nat.c: Likewise.
8702 * x86-64-linux-nat.c: Likewise.
8703 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8704 * config/i386/go32.mh (NATDEPFILES): Likewise.
8705 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8706 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8707 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8708 * config/i386/linux.mh (NATDEPFILES): Likewise.
8709 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8710 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8711 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8712 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8714 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8716 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8717 (alphanbsd-nat.o): Remove dependency list.
8718 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8719 * alphanbsd-nat.c: Delete. Contents moved to...
8720 * alphanbsd-tdep.c: ...here.
8721 (_initialize_alphanbsd_tdep): Register core functions.
8722 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8724 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8726 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8727 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8728 (alphanbsd-nat.o): Likewise.
8729 (alphabsd-tdep.o): New dependency list.
8730 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8731 (fill_gregset): Use alphabsd_fill_reg.
8732 (supply_fpregset): Use alphabsd_supply_fpreg.
8733 (fill_fpregset): Use alphabsd_fill_fpreg.
8734 (fetch_inferior_registers): Use struct reg and struct fpreg
8735 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8736 and alphabsd_supply_fpreg.
8737 (store_inferior_registers): Use struct reg and struct fpreg
8738 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8739 and alphabsd_fill_fpreg.
8740 * alphabsd-tdep.c: New file.
8741 * alphabsd-tdep.h: New file.
8742 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8743 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8744 alphabsd_supply_fpreg.
8745 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8746 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8748 2002-05-11 Eric Christopher <echristo@redhat.com>
8750 * mips-tdep.c (mips_double_register_type): Fix thinko.
8751 (mips_single_register_type): Ditto.
8752 * MAINTAINERS: Add self.
8754 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8756 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8757 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8758 right thing on architectures with different endianness and/or
8761 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8763 From Christian Limpach <chris@Pin.LU>
8764 * configure.in: Change sed expression which comments out
8765 NATDEPFILES to also comment out continuation lines.
8766 * configure: Regenerate.
8768 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8770 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8773 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8775 * sh-tdep.c: Include correct file.
8777 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8779 New support for sh64-elf (sh5) target.
8781 * configure.tgt: For sh64-elf target, default to sh-elf.
8783 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8784 (struct gdbarch_tdep): Add new fields for new registers and ABI
8787 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8788 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8789 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8790 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8791 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8792 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8793 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8794 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8795 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8796 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8797 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8798 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8799 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8800 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8801 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8802 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8803 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8804 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8805 sign_extend, sh64_nofp_frame_init_saved_regs,
8806 sh64_init_extra_frame_info, sh64_get_saved_register,
8807 sh64_extract_struct_value_address, sh64_pop_frame,
8808 sh64_push_arguments, sh64_extract_return_value,
8809 sh64_store_return_value, sh64_show_media_regs,
8810 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8811 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8812 sh_sh64_register_virtual_type,
8813 sh_sh64_register_convert_to_virtual,
8814 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8815 sh64_register_read, sh64_pseudo_register_write,
8816 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8817 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8818 sh64_do_pseudo_register, sh_compact_do_registers_info,
8819 sh64_do_registers_info, sh_gdbarch_init): New functions.
8821 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8823 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8825 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8827 * linespec.c (decode_line_1): Check for a double quote after
8828 a filename correctly.
8830 2002-05-10 Jim Blandy <jimb@redhat.com>
8832 Properly track the size of the current objfile's .debug_line section.
8833 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8834 (DWARF_LINE_SIZE): New macro.
8835 (dwarf2_build_psymtabs_hard): Record the line section's size in
8836 the partial symbol table.
8837 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8840 2002-05-10 Petr Sorfa <petrs@caldera.com>
8842 * ia64-tdep.c: Handle breakpoints on L instruction type
8843 in MLX instruction bundle by moving the breakpoint to
8844 the third slot (X instruction type) as L holds only data.
8846 2002-05-10 Kevin Buettner <kevinb@redhat.com>
8848 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8849 (process_one_symbol): Complain about discarding local symbols
8850 due to a misplaced N_LBRAC entry.
8852 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
8854 From Daniel Berlin <dan@cgsoftware.com>
8855 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8856 decrease the depth we are at, in the case of templates.
8858 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8860 * mips-tdep.c (mips_float_register_type): New function.
8861 (mips_double_register_type): New function.
8862 (mips_print_register): Use them.
8863 (do_fp_register_row): Likewise.
8865 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8867 * signals/signals.c (signals): Remove conditional compilation around
8868 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8869 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8871 2002-05-09 Michael Snyder <msnyder@redhat.com>
8873 * remote-rdp.c (remote_rdp_can_run): Remove.
8875 2002-05-09 Tom Tromey <tromey@redhat.com>
8877 * jv-valprint.c (java_val_print): Handle `char' as a special case
8880 2002-05-09 Michael Snyder <msnyder@redhat.com>
8882 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8883 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8884 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8885 str r(0123),[sp,#nn].
8886 (arm_skip_prologue): Ditto. Also make disassembly
8887 order-independent by placing it in a loop.
8889 2002-05-06 Michael Snyder <msnyder@redhat.com>
8891 * stabsread.c (read_type): Add recognition for new attribute:
8892 "@V;" means that an array type is actually a vector.
8893 This is analogous to the vector flag that's been added to dwarf2.
8895 2002-05-09 Mark Kettenis <kettenis@gnu.org>
8897 * i386-tdep.h (i386_abi): New enum.
8898 (struct gdbarch_tdep): Replace os_ident member with abi.
8899 (i386_gdbarch_register_os_abi): New prototype.
8900 * i386-tdep.c (i386_abi_names): New array.
8901 (process_note_abi_tag_sections): Removed.
8902 (process_note_sections): New function.
8903 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8904 (struct i386_abi_handler): New struct.
8905 (i386_abi_handler_list): New variable.
8906 (i386_gdbarch_register_os_abi): New function.
8907 (i386_gdbarch_init): Adapt for the changes given above.
8909 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
8911 * gregset.h: Say "GNU/Linux".
8913 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
8915 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8916 (build_gdbtypes): Build builtin_type_v2_float.
8917 (_initialize_gdbtypes): Register new builtin type.
8919 2002-05-08 Andrew Cagney <ac131313@redhat.com>
8921 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8922 (clear_gdbarch_swap): New function.
8923 (initialize_non_multiarch): Call.
8924 (gdbarch_update_p): Before calling init(), swap out and clear the
8925 existing architecture.
8926 * gdbarch.c: Regenerate.
8928 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8930 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8933 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8935 * sh-nbsd-nat.c: Rename to...
8936 * shnbsd-nat.c: ...this.
8937 * sh-nbsd-tdep.c: Rename to...
8938 * shnbsd-tdep.c: ...this.
8939 * sh-nbsd-tdep.h: Rename to...
8940 * shnbsd-tdep.h: ...this.
8941 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8942 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8944 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
8946 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8947 concatenation for command help messages.
8949 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8951 * NEWS: Note new sh*-*-netbsdelf* configuration.
8952 * configure.host: Set gdb_host_cpu to sh for all sh*.
8953 (sh*-*-netbsdelf*): New host.
8954 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8955 (sh*-*-netbsdelf*): New target.
8956 * sh-nbsd-nat.c: New file.
8957 * sh-nbsd-tdep.c: New file.
8958 * sh-nbsd-tdep.h: New file.
8959 * config/sh/nbsd.mh: New file.
8960 * config/sh/nbsd.mt: New file.
8961 * config/sh/nm-nbsd.h: New file.
8962 * config/sh/tm-nbsd.h: New file.
8964 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8966 * sh-tdep.c (sh_osabi_names): Declare.
8967 (process_note_abi_tag_sections): New function.
8968 (get_elfosabi): Ditto.
8969 (sh_gdbarch_register_os_abi): Ditto.
8970 (sh_dump_tdep): Ditto.
8971 _initialize_sh_tdep): Use gdbarch_register to register
8972 sh_gdbarch_init and sh_dump_tdep.
8973 * config/sh/tm-sh.h (sh_osabi): Declare.
8974 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8976 2002-05-07 Andrew Cagney <ac131313@redhat.com>
8978 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8979 (thumb_scan_prologue): Ditto.
8980 (arm_find_callers_reg): Ditto.
8981 (arm_frame_chain): Ditto.
8982 (arm_init_extra_frame_info): Ditto.
8983 (arm_frame_saved_pc): Ditto.
8984 (arm_pop_frame): Ditto.
8985 (arm_push_return_address): New function.
8986 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8987 call_dummy_location, call_dummy_breakpoint_offset_p,
8988 call_dummy_breakpoint_offset, call_dummy_p,
8989 call_dummy_stack_adjust_p, call_dummy_words,
8990 sizeof_call_dummy_words, call_dummy_start_offset,
8991 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8992 call_dummy_address, push_return_address and push_dummy_frame for
8993 generic dummy frames.
8995 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8997 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8998 size computation for alloca.
8999 (sh_fp_frame_init_saved_regs): Likewise.
9001 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9003 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9004 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9005 * arm-tdep.c (arm_store_return_value): Use them.
9006 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9007 * remote-rdp.c (remote_rdp_fetch_register): Use
9008 ARM_MAX_REGISTER_RAW_SIZE.
9009 (remote_rdp_store_register): Likewise.
9011 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9013 * dwarf2cfi.c: Code cleanup, removed unused variables,
9014 added default labels to switch {} statements.
9015 * x86-64-tdep.c: Ditto.
9016 * x86-64-linux-nat.c: Ditto.
9018 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9020 * solib.h: Protect against multiple inclusion.
9022 2002-05-06 Jim Blandy <jimb@redhat.com>
9024 Add first preprocessor macro-expansion files.
9025 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9026 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9027 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9028 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9029 (COMMON_OBS): Add macrotab.o, macroexp.o.
9030 (macroexp.o, macrotab.o): New rules.
9032 Separate the job of reading the line number info statement program
9033 header (...expialidocious) out into its own function.
9034 * dwarf2read.c (struct line_head, struct filenames, struct
9035 directories): Replace with...
9036 (struct line_header): New structure, containing the full
9037 contents of the statement program header, including the
9038 include directory and file name tables.
9039 (read_file_scope): If we have line number info, instead of just
9040 calling dwarf_decode_lines to do all the work, call
9041 dwarf_decode_line_header first to get a `struct line_header'
9042 containing the data in the statement program header, and then
9043 pass that to dwarf_decode_lines, which will pick up where that
9044 left off. Be sure to clean up the `struct line_header' object.
9045 (dwarf_decode_line_header, free_line_header, add_include_dir,
9046 add_file_name): New functions.
9047 (dwarf_decode_lines): Move all the code to read the statement
9048 program header into dwarf_decode_line_header. Take the line
9049 header it built as the first argument, instead of the offset to
9050 the compilation unit's line number info. Use the new `struct
9051 line_header' type instead of the old structures. No need to do
9052 cleanups here now, since we don't allocate anything.
9053 (dwarf2_statement_list_fits_in_line_number_section,
9054 dwarf2_line_header_too_long): New complaints.
9056 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9058 * gdbtypes.c (init_vector_type): New function.
9059 (build_builtin_type_vec128): Simplify the representation of SIMD
9061 (build_gdbtypes): Initialize new builtin vector types.
9062 (_initialize_gdbtypes): Register new vector types with gdbarch.
9063 (builtin_type_v4_float, builtin_type_v4_int32,
9064 builtin_type_v8_int16, builtin_type_v16_int8,
9065 builtin_type_v2_int32, builtin_type_v4_int16,
9066 builtin_type_v8_int8): New (renamed) SIMD types.
9068 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9070 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9071 (i387_fill_fxsave): Likewise.
9073 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9075 * alpha-tdep.c (alpha_extract_return_value): Don't use
9076 non-constant array size in prototype.
9078 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9080 From Brian Taylor <briant at model dot com>:
9081 * ui-out.c (ui_out_field_core_addr): Use the function
9082 longest_local_hex_string_custom'to format addresses > 32 bits
9085 * ui-out.c (ui_out_field_core_addr): Update comment.
9087 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9089 * stack.c (select_and_print_frame): Make static. Delete the
9091 (func_command): Update call.
9092 (select_frame_command): Delete code computing the frame level.
9093 * frame.h (select_and_print_frame): Delete declaration.
9095 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9097 * sparc-tdep.c (sparc_get_saved_register): Comment why
9098 get_prev_frame call is safe.
9100 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9102 * frame.h (select_frame): Delete level parameter.
9103 * stack.c (select_frame): Update. Use frame_relative_level to
9104 obtain the frame's level.
9105 (select_and_print_frame): Update call.
9106 (select_frame_command): Ditto.
9107 (up_silently_base): Ditto.
9108 (down_silently_base): Ditto.
9109 * ocd.c (ocd_start_remote): Ditto.
9110 * remote-rdp.c (remote_rdp_open): Ditto.
9111 * remote-mips.c (mips_initialize): Ditto.
9112 (common_open): Ditto.
9113 * remote-e7000.c (e7000_start_remote): Ditto.
9114 * m3-nat.c (select_thread): Ditto.
9115 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9116 (child_get_current_exception_event): Ditto.
9117 * varobj.c (varobj_create): Ditto.
9118 (varobj_update): Ditto.
9119 (c_value_of_root): Ditto.
9120 * tracepoint.c (finish_tfind_command): Ditto.
9121 * corelow.c (core_open): Ditto.
9122 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9123 * thread.c (info_threads_command): Ditto.
9124 (switch_to_thread): Ditto.
9125 * infrun.c (normal_stop): Ditto.
9126 (restore_selected_frame): Ditto.
9127 (restore_inferior_status): Ditto.
9128 * breakpoint.c (insert_breakpoints): Ditto.
9129 (watchpoint_check): Ditto.
9130 (bpstat_stop_status): Ditto.
9131 (do_enable_breakpoint): Ditto.
9132 * blockframe.c (flush_cached_frames): Ditto.
9133 (reinit_frame_cache): Ditto.
9135 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9137 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9140 2002-05-04 Jim Blandy <jimb@redhat.com>
9142 * gdbtypes.c (replace_type): Doc fix.
9144 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9146 * valprint.c (strcat_longest): Delete commented out function.
9149 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9151 * MAINTAINERS: Mark a29k as deleted.
9152 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9153 Move new configurations to the top.
9154 * configure.tgt: Remove a29k.
9155 * config/a29k/tm-vx29k.h: Delete.
9156 * config/a29k/vx29k.mt: Delete.
9157 * config/a29k/tm-a29k.h: Delete.
9158 * config/a29k/a29k-udi.mt: Delete.
9159 * config/a29k/a29k.mt: Delete.
9160 * a29k-tdep.c: Delete.
9161 * remote-udi.c: Delete.
9162 * remote-mm.c: Delete.
9163 * remote-eb.c: Delete.
9164 * remote-adapt.c: Delete.
9165 * Makefile.in: Remove obsolete code.
9166 * config/s390/s390x.mt: Ditto.
9167 * config/s390/s390.mt: Ditto.
9168 * config/sparc/sparclynx.mh: Ditto.
9169 * config/sparc/linux.mh: Ditto.
9170 * config/pa/hppaosf.mh: Ditto.
9171 * config/pa/hppabsd.mh: Ditto.
9172 * config/ns32k/nbsd.mt: Ditto.
9173 * config/mips/vr5000.mt: Ditto.
9174 * config/m68k/sun3os4.mh: Ditto.
9175 * config/m68k/nbsd.mt: Ditto.
9176 * config/m68k/m68klynx.mh: Ditto.
9177 * config/m32r/m32r.mt: Ditto.
9178 * config/i386/x86-64linux.mt: Ditto.
9179 * config/i386/nbsdelf.mt: Ditto.
9180 * config/i386/nbsd.mt: Ditto.
9181 * config/i386/i386lynx.mh: Ditto.
9183 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9185 * target.c (debug_print_register): New function. Handle oversize
9187 (debug_to_fetch_registers): Call.
9188 (debug_to_store_registers): Call.
9190 2002-05-03 Jim Blandy <jimb@redhat.com>
9192 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9193 (read_type): Doc fix.
9194 * gdbtypes.c (replace_type): Doc fix.
9196 * stabsread.c (multiply_defined_struct): New complaint.
9197 (read_struct_type): If the type we were passed isn't empty, or
9198 incomplete, don't read the new struct type into it; complain,
9199 and return the original type unchanged. Take a new `type_code'
9200 argument, which is the type code for the new type.
9201 (read_type): Rather than storing the type's type code here, pass
9202 it as an argument to read_struct_type, and let that take care of
9203 storing it. That way, we don't overwrite the original type code,
9204 so read_struct_type can use it to decide whether we're overwriting
9205 something we shouldn't.
9206 (complain_about_struct_wipeout): New function.
9208 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9210 * gdbarch.sh: Assert that gdbarch is non-NULL.
9211 * gdbarch.c: Regenerate.
9213 2002-05-03 Jason Merrill <jason@redhat.com>
9215 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9218 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9220 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9221 (x86_64_dwarf2gdb_regno_map_length),
9222 (x86_64_dwarf2_reg_to_regnum): Added.
9223 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9224 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9225 (_initialize_x86_64_tdep): Synced with the change above.
9226 (x86_64_skip_prologue): Reformulated message.
9228 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9230 * f-exp.y: Also use new prev_lexptr variable
9231 to improve error reporting. Based on Michael Snyder
9232 2002-04-24 dated patch to c-exp.y.
9233 * jv-exp.y: Likewise.
9234 * m2-exp.y: Likewise.
9236 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9238 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9239 we are dealing with vectors.
9241 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9243 * config/m68k/tm-nbsd.h: Obvious fix,
9244 correct machine name.
9246 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9248 * p-typeprint.c (pascal_type_print_base): Add support
9249 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9251 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9253 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9254 for fondamental pascal 'char' type.
9256 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9258 * p-lang.h (is_pascal_string_type): Declaration changed,
9259 new sixth argument of type char ** added.
9260 * p-lang.c (is_pascal_string_type): Implementation
9261 changed. Args length_pos, length_size, string_pos, char_size
9262 can now be NULL. New argument arrayname set to the field
9263 name of the char array. Return value set to char array
9264 field index plus one.
9265 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9266 is_pascal_string_type function.
9268 2002-05-02 Andrew Cagney <cagney@redhat.com>
9270 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9271 <cagney@redhat.com> change.
9272 * gdbarch.c: Regenerate.
9274 2002-05-02 Andrew Cagney <cagney@redhat.com>
9276 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9277 before probing for a new one. Detect errorenous gdbarch_init
9279 * gdbarch.c: Regenerate.
9281 2002-05-01 Andrew Cagney <cagney@redhat.com>
9283 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9284 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9285 * config/v850/tm-v850.h: Ditto. Update copyright.
9287 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9289 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9292 2002-04-30 Michael Snyder <msnyder@redhat.com>
9294 * arm-tdep.c: Whitespace clean-ups.
9295 (arm_skip_prologue): Fix thinko; two lines
9296 should have been removed as part of 4/24 change.
9298 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9300 * rs6000-tdep.c: Added comment describing how fpscr register
9301 numbers were chosen.
9303 2002-04-30 Michael Snyder <msnyder@redhat.com>
9305 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9307 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9309 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9310 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9311 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9313 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9315 From Louis Hamilton <hamilton@redhat.com>:
9316 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9317 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9318 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9319 not bfd-private xcoff data, to determine wordsize.
9320 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9322 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9324 GDB 5.2 released from 5.2 branch.
9326 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9328 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9329 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9330 (x86_64_register_info_table): Added comments with register numbers.
9332 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9334 * rs6000-tdep.c (rs6000_extract_return_value,
9335 rs6000_store_return_value): Handle returning vectors.
9336 (rs6000_gdbarch_init): Use
9337 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9338 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9340 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9342 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9343 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9345 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9347 * hpread.c (hpread_psymtab_to_symtab_1,
9348 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9349 with fprintf_unfiltered (gdb_stderr,...).
9351 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9353 * remote-array.c (printf_monitor, write_monitor,
9354 array_insert_breakpoint, array_remove_breakpoint ):
9355 Replace fprintf (stderr,...
9356 with fprintf_unfiltered (gdb_stderr,....
9357 * remote-es.c: Likewise.
9358 * remote-os9k.c: Likewise.
9359 * remote-st.c: Likewise.
9361 2002-04-28 Andreas Schwab <schwab@suse.de>
9363 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9364 linux-proc.o and gcore.o.
9366 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9368 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9369 code without frame pointers.
9371 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9373 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9376 2002-04-26 Ben Elliston <bje@redhat.com>
9378 * target.c (do_xfer_memory): Correct reference to the new option
9379 "trust-readonly-sections".
9381 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9383 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9384 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9385 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9387 (read_array_type): Record the fact that this array type is really a
9388 vector (i.e. are passed in by value).
9390 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9392 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9393 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9394 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9395 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9396 * alpha-linux-tdep.c: Include frame.h.
9397 (alpha_linux_sigcontext_addr): New function.
9398 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9399 alpha_linux_sigcontext_addr.
9400 * alpha-osf1-tdep.c: Include gdbcore.h.
9401 (alpha_osf1_sigcontext_addr): New function.
9402 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9403 alpha_osf1_sigcontext_addr.
9404 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9405 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9407 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9409 * stack.c (selected_frame_level):
9410 (select_frame): Do not set selected_frame_level.
9411 * frame.h (selected_frame_level): Delete declaration.
9413 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9415 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9416 convert_from_func_ptr-addr when AIX / PowerOpen.
9418 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9420 * valops.c (hand_function_call): Call
9421 generic_save_call_dummy_addr.
9422 * frame.h (generic_save_call_dummy_addr): Declare.
9423 * blockframe.c (struct dummy_frame): Add fields call_lo and
9425 (generic_find_dummy_frame): Check for PC in range call_lo to
9426 call_hi instead of entry_point_address.
9427 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9428 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9429 (generic_save_call_dummy_addr): New function.
9431 2002-04-24 David S. Miller <davem@redhat.com>
9433 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9434 sparc_skip_prologue.
9435 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9436 information to find prologue when possible.
9437 (sparc_prologue_frameless_p): Call examine_prologue directly.
9438 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9439 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9441 (SKIP_PROLOGUE): Likewise.
9443 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9445 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9446 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9447 indicate that the condition it was testing is always true.
9448 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9449 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9450 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9452 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9454 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9455 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9456 tdep->jb_pc and tdep->jb_elt_size.
9457 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9458 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9459 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9460 * alpha-nat.c (get_longjmp_target): Remove.
9461 (JB_ELEMENT_SIZE): Ditto.
9463 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9464 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9465 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9466 to alpha_get_longjmp_target.
9467 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9468 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9469 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9471 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9473 * README: Update to GDB 5.2.
9475 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9477 * gdbarch.sh (LC_ALL): Set to `c'.
9479 2002-04-25 Theodore A. Roth <troth@verinet.com>
9481 * avr-tdep.c: Ran through gdb_indent.sh.
9483 2002-04-25 Theodore A. Roth <troth@verinet.com>
9485 * MAINTAINERS: Add myself as AVR maintainer.
9486 * NEWS: Note new target avr.
9488 2002-04-25 Theodore A. Roth <troth@verinet.com>
9490 * Makefile.in: Add support for AVR target.
9491 * configure.tgt: Add support for AVR target.
9492 * avr-tdep.c: New file
9493 * config/avr/avr.mt: New file.
9495 2002-04-25 Theodore A. Roth <troth@verinet.com>
9497 * MAINTAINERS: Add myself to write-after-approval.
9499 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9501 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9502 with fprintf_unfiltered (gdb_stderr,....
9504 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9507 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9509 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9511 * p-exp.y: Also use new prev_lexptr variable
9512 to improve error reporting. Based on Michael Snyder
9513 2002-04-24 dated patch to c-exp.y.
9515 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9517 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9518 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9519 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9521 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9523 (FUNCTION_START_OFFSET): Remove.
9524 (BREAKPOINT): Ditto.
9526 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9528 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9531 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9533 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9534 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9535 alpha_linux_pc_in_sigtramp.
9536 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9537 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9538 alpha_osf1_pc_in_sigtramp.
9539 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9540 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9541 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9542 alphafbsd_pc_in_sigtramp.
9543 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9544 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9545 alphanbsd_pc_in_sigtramp.
9546 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9547 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9549 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9551 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9553 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9555 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9557 (alphanbsd-nat.o): New dependency list.
9558 (alphanbsd-tdep.o): Ditto.
9559 * NEWS: Note new native NetBSD/alpha configuration.
9560 * alphanbsd-nat.c: New file.
9561 * alphanbsd-tdep.c: Ditto.
9562 * configure.host (alpha*-*-netbsd*): New host.
9563 * configure.tgt (alpha*-*-netbsd*): New target.
9564 * config/alpha/nbsd.mh: New file.
9565 * config/alpha/nbsd.mt: Ditto.
9566 * config/alpha/nm-nbsd.h: Ditto.
9567 * config/alpha/tm-nbsd.h: Ditto.
9569 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9571 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9572 (alpha-osf1-tdep.o): New dependency list.
9573 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9574 and skip_sigtramp_frame members.
9575 * alpha-linux-tdep.c: Include gdbcore.h.
9576 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9577 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9578 * alpha-osf1-tdep.c: New file.
9579 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9581 (alpha_frame_past_sigtramp_frame): New function.
9582 (alpha_dynamic_sigtramp_offset): Ditto.
9583 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9584 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9585 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9586 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9587 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9588 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9589 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9590 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9591 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9592 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9593 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9594 to find_solib_trampoline_target.
9595 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9596 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9597 (SKIP_TRAMPOLINE_CODE): Remove.
9598 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9599 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9600 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9601 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9602 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9603 (PROC_SIGTRAMP_MAGIC): Ditto.
9604 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9605 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9606 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9607 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9608 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9610 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9612 * NEWS: Note that Alpha targets are now multi-arch.
9614 2002-04-24 Michael Snyder <msnyder@redhat.com>
9616 * parser-defs.h (prev_lexptr): New external variable.
9617 * parse.c (parse_exp_1): Set prev_lexptr to null before
9618 calling the language-specific parser.
9619 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9620 (yyerror): Use prev_lexptr in error reporting.
9622 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9624 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9625 * gregset.h: If FILL_FPXREGSET is defined, provide
9626 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9627 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9628 is defined, call fill_fpxregset.
9630 2002-04-24 Roland McGrath <roland@frob.com>
9632 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9633 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9634 (supply_gregset, supply_fpregset): New functions.
9636 * gnu-nat.c (gnu_find_memory_regions): New function.
9637 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9638 (gnu_xfer_memory): Add a cast.
9640 2002-04-24 Michael Snyder <msnyder@redhat.com>
9642 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9643 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9644 of argument regs ("str r(0123), [r11, #-nn"]).
9645 (arm_skip_prologue): Better handling for frameless functions.
9646 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9647 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9649 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9651 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9652 NUM_PSEUDO_REGS can be used.
9654 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9656 * arch-utils.h: Update copyright.
9658 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9659 * gdbarch.h, gdbarch.c: Re-generate.
9661 * inferior.h (IN_SIGTRAMP): Delete definition.
9662 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9663 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9665 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9666 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9667 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9668 (find_proc_framesize): Ditto.
9669 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9670 (alpha_init_extra_frame_info): Ditto.
9671 * infrun.c (handle_inferior_event): Ditto.
9672 (handle_inferior_event): Ditto.
9673 (check_sigtramp2): Ditto.
9674 * blockframe.c (create_new_frame): Ditto.
9675 (get_prev_frame): Ditto.
9676 * ppc-linux-tdep.c: Update comments.
9677 * i386-linux-tdep.c: Update comments.
9678 * breakpoint.c (bpstat_what): Update comment.
9680 2002-04-24 David S. Miller <davem@redhat.com>
9682 * i960-tdep.c (register_in_window_p): New function.
9683 (i960_find_saved_register): Use it instead of
9684 REGISTER_IN_WINDOW_P.
9685 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9687 * symtab.h (find_stab_function_addr): Kill extern.
9688 * minsyms.c (find_stab_function_addr): Remove from here...
9689 * dbxread.c: ... to here, and mark it static.
9691 2002-04-20 David S. Miller <davem@redhat.com>
9693 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9694 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9696 2002-04-21 David S. Miller <davem@redhat.com>
9698 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9699 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9700 (vx_write_register): Likewise.
9702 2002-04-23 J. Brobecker <brobecker@gnat.com>
9704 * source.c (is_regular_file): New function.
9705 (openp): Check wether file to open is a regular file
9706 to avoid opening directories.
9708 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9710 * findvar.c (extract_signed_integer): Cast printf argument
9711 to suppress format warning.
9712 (extract_unsigned_integer): Likewise.
9713 * infcmd.c (registers_info): Likewise.
9714 * top.c (get_prompt_1): Likewise.
9715 * valops.c (value_assign): Likewise.
9716 * valprint.c (print_decimal): Likewise.
9718 2002-04-22 H.J. Lu (hjl@gnu.org)
9720 * c-exp.y (typebase): Support
9722 [long|long long|short] [signed|unsigned] [int|]
9726 signed [long|long long|short] int
9728 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9730 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9732 * vax-tdep.h: New file.
9733 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9734 Make several routines static.
9735 (vax_get_saved_register): New function.
9736 (vax_gdbarch_init): New function.
9737 (_initialize_vax_tdep): Register vax_gdbarch_init.
9738 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9739 Remove macros now under the control of gdbarch.
9741 2002-04-22 Michael Snyder <msnyder@redhat.com>
9743 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9744 Some whitespace and coding standards tweaks.
9746 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9748 * vax-tdep.c: Include regcache.h.
9749 (vax_call_dummy_words): New.
9750 (sizeof_vax_call_dummy_words): New.
9751 (vax_fix_call_dummy): New function.
9752 (vax_saved_pc_after_call): Ditto.
9753 * config/vax/tm-vax.h: Don't include regcache.h.
9754 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9755 (CALL_DUMMY): Remove.
9756 (CALL_DUMMY_WORDS): Define.
9757 (SIZEOF_CALL_DUMMY_WORDS): Define.
9758 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9760 2002-04-18 Michael Snyder <msnyder@redhat.com>
9762 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9764 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9766 * vax-tdep.c (vax_frame_chain): New function.
9767 (vax_push_dummy_frame): Ditto.
9768 (vax_pop_frame): Ditto.
9769 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9770 (FRAMELESS_FUNCTION_INVOCATION): Use
9771 generic_frameless_function_invocation_not.
9772 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9773 (POP_FRAME): Use vax_pop_frame.
9775 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9777 * vax-tdep.c (vax_store_struct_return): New function.
9778 (vax_extract_return_value): Ditto.
9779 (vax_store_return_value): Ditto.
9780 (vax_extract_struct_value_address): Ditto.
9781 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9782 vax_store_struct_return.
9783 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9784 (STORE_RETURN_VALUE): Use vax_store_return_value.
9785 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9787 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9789 * vax-tdep.c (vax_frame_saved_pc): New function.
9790 (vax_frame_args_address_correct): Ditto.
9791 (vax_frame_args_address): Ditto.
9792 (vax_frame_locals_address): Ditto.
9793 (vax_frame_num_args): Move code to be in proximity to
9794 other frame-related functions.
9795 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9796 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9797 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9798 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9799 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9801 2002-04-22 H.J. Lu (hjl@gnu.org)
9803 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9806 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9808 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9809 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9810 (FRAME_INIT_SAVED_REGS): New macro.
9812 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9814 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9816 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9818 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9820 (fetch_osf_core_registers): Likewise.
9821 (supply_gregset): Likewise.
9823 2002-04-22 J. Brobecker <brobecker@gnat.com>
9825 * symfile.h (get_section_index): Define.
9826 * symfile.c (get_section_index): New function.
9827 * mdebugread.c (SC_IS_SBSS): New macro.
9828 (SC_IS_BSS): Return true for the scBss storage class only, as
9829 the scSBss storage class refers to the .sbss section.
9830 (parse_partial_symbols): Discard the symbols which associated
9831 section does not exist.
9832 Make sure to use the .sbss section index for symbols which
9833 storage class is scBss, rather than using the .bss section index.
9835 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9837 * vax-tdep.c: Update copyright years.
9838 (vax_register_name): New function.
9839 (vax_register_byte): Ditto.
9840 (vax_register_raw_size): Ditto.
9841 (vax_register_virtual_size): Ditto.
9842 (vax_register_virtual_type): Ditto.
9843 * config/vax/tm-vax.h: Update copyright years.
9844 (REGISTER_NAMES): Remove.
9845 (REGISTER_NAME): Define.
9846 (REGISTER_BYTE): Use vax_register_byte.
9847 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9848 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9849 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9851 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9853 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9855 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9857 2002-04-21 David S. Miller <davem@redhat.com>
9859 * arch-utils.c (generic_prologue_frameless_p): Kill
9860 SKIP_PROLOGUE_FRAMELESS_P code.
9861 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9863 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9864 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9865 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9867 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9868 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9869 (sparc_gdbarch_init): Pass it to
9870 set_gdbarch_prologue_frameless_p.
9872 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9874 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9875 (alphabsd-nat.o): New dependency list.
9877 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9879 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9881 (alpha-linux-tdep.o): New dependency list.
9882 (alphafbsd-tdep.o): Likewise.
9884 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9886 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9888 * alpha-tdep.c: ...from here.
9889 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9891 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9893 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9894 prototype from here...
9895 * alpha-tdep.h: ...to here.
9897 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9899 * frame.h (selected_frame_level): Document as deprecated.
9900 (frame_relative_level): Declare.
9901 * stack.c (frame_relative_level): New function.
9902 (selected_frame_level): Document as deprecated.
9903 (select_frame): Do not set the selected_frame_level.
9905 * stack.c (frame_info, record_selected_frame): Update.
9906 (frame_command, current_frame_command): Update.
9907 (up_silently_base, up_command, down_silently_base): Update.
9908 (down_command): Update.
9909 * inflow.c (kill_command): Update.
9910 * tracepoint.c (finish_tfind_command): Update.
9911 * corelow.c (core_open): Update.
9912 * thread.c (info_threads_command): Update.
9913 (do_captured_thread_select): Update.
9914 * infcmd.c (finish_command): Update.
9915 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9917 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9919 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9921 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9923 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9926 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9928 * alphafbsd-tdep.c: Update copyright years. Include
9930 (alphafbsd_use_struct_convention): Make static.
9931 (alphafbsd_init_abi): New function.
9932 (_initialize_alphafbsd_tdep): New function.
9933 * config/alpha/tm-fbsd.h: Update copyright years.
9934 (USE_STRUCT_CONVENTION): Remove.
9936 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9938 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9939 an Alpha ABI variant.
9940 (alpha_abi_handler_list): Declare.
9941 (alpha_gdbarch_register_os_abi): New function.
9942 (alpha_gdbarch_init): Give registered ABI variant handlers a
9943 chance to tweak the gdbarch once we have set up defaults.
9944 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9946 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9948 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9949 to standard_coerce_float_to_double.
9950 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9952 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9954 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9955 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9956 from gdbarch_tdep rather than a constant.
9957 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9958 the default text address for all Alpha Unix ABIs.
9959 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9960 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9962 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9964 * alpha-tdep.h: New file. Includes several Alpha target constants
9966 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9967 let gdbarch deal with.
9968 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9969 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9971 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9972 Alpha target register names.
9973 * alphabsd-nat.c: Likewise.
9974 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9975 Alpha target register names. Make serveral routines static.
9976 (alpha_get_saved_register): New function.
9977 (alpha_abi_names): New.
9978 (process_note_abi_tag_sections): New function.
9979 (get_elfosabi): New function.
9980 (alpha_gdbarch_init): New function.
9981 (alpha_dump_tdep): New function.
9982 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9984 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9986 * frame.c (find_saved_register): Delete #ifdef
9987 HAVE_REGISTER_WINDOWS code.
9988 * config/sparc/tm-sparc.h: Update comments.
9989 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9991 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9993 * i960-tdep.c (i960_find_saved_register): New function.
9994 (i960_get_saved_register): New function.
9995 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9996 (i960_get_saved_register): Declare.
9997 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9999 2002-04-20 David S. Miller <davem@redhat.com>
10001 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10003 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10005 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10006 instead of NUM_PSEUDO_REGS.
10008 2002-04-20 David S. Miller <davem@redhat.com>
10010 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10011 GDB_MULTI_ARCH_PARTIAL
10012 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10013 define, let tm-sp64.h do it.
10015 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10017 * frame.c (find_saved_register): Avoid a NULL pointer
10018 dereference and actually walk the frame list.
10020 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10022 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10023 sorted in most most-recent-used order. Document.
10024 * gdbarch.h, gdbarch.c: Regenerate.
10026 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10028 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10030 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10031 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10032 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10035 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10038 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10039 (build_builtin_type_vec128): Ditto.
10040 (append_composite_type_field): Fix calculation of type length in
10043 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10045 * config/djgpp/README: Update.
10047 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10050 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10052 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10053 (alpha_setup_arbitrary_frame): ...to this.
10054 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10055 for alpha_setup_arbitrary_frame.
10057 2002-04-18 Andrew Cagney <cagney@redhat.com>
10059 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10060 * gdbarch.h, gdbarch.c: Regenerate.
10062 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10063 * target.h (memory_breakpoint_from_pc): Update declaration.
10064 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10066 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10067 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10068 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10069 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10070 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10071 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10072 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10073 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10074 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10075 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10076 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10077 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10079 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10081 * monitor.c (monitor_insert_breakpoint): Ditto.
10082 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10084 * config/mcore/tm-mcore.h: Update copyright.
10085 * mem-break.c: Ditto.
10086 * xstormy16-tdep.c: Ditto.
10088 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10090 * p-exp.y: Add precedence rule for '^' token.
10091 This removes the shift/reduce conflicts.
10092 Remove the comment concerning these shift/reduce conflicts.
10094 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10096 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10097 (registers_powerpc_nofp): New register set for processors
10098 without floating point unit.
10100 2002-04-18 David S. Miller <davem@redhat.com>
10102 * MAINTAINERS: Add myself to write-after-approval.
10104 2002-04-17 Michael Snyder <msnyder@redhat.com>
10106 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10108 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10110 * rs6000-tdep.c (frame_initial_stack_address): Use
10111 frame_register_read to read the alloca_reg.
10113 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10115 * frame.c (find_saved_register): Find saved registers in the next
10119 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10121 * gdbarch.sh (LANG): Set to ``c''.
10123 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10125 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10127 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10129 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10132 * hpread.c (hpread_get_lntt): Add declaration.
10133 Also fix PR gdb/391.
10135 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10137 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10138 * aclocal.m4, configure: Re-generate.
10141 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10143 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10144 instead of tm_print_insn.
10146 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10148 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10150 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10152 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10153 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10154 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10156 2002-04-12 Don Howard <dhoward@redhat.com>
10158 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10159 max_user_call_depth.
10160 (init_cmd_lists): Initialize the new value;
10161 * cli/cli-script.c (execute_user_command): Limit the call depth of
10162 user defined commands. This avoids a core-dump when user commands
10163 are infinitly recursive.
10165 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10167 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10168 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10169 from tdep struct instead of DEFAULT_LR_SAVE.
10170 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10171 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10172 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10174 2002-04-12 Michael Snyder <msnyder@redhat.com>
10176 * Remote.c: Spelling fix.
10177 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10178 If no symbol found for "sbrk", try "_sbrk".
10179 (make_output_phdrs): Use bfd_section_name.
10180 (gcore_copy_callback): Use bfd_section_name.
10181 * eval.c: Indentation fix-ups.
10182 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10183 in case it gets applied to an address that is already
10184 in the instruction space.
10185 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10186 * symfile.c: Fix indentation, long lines.
10187 * source.c: White space fix-up.
10189 2002-04-12 Andrew Cagney <cagney@redhat.com>
10191 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10192 * frame.c (frame_register_read): New function. Return non-zero on
10194 (read_relative_register_raw_bytes_for_frame): Delete.
10195 (read_relative_register_raw_bytes): Delete.
10196 * frame.h (frame_register_read): Declare.
10197 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10198 * sh-tdep.c: Ditto.
10199 * infcmd.c (do_registers_info): Ditto.
10200 * hppa-tdep.c: Ditto.
10201 * rs6000-tdep.c: Ditto.
10202 * h8500-tdep.c: Ditto.
10203 * mips-tdep.c: Ditto.
10204 * h8300-tdep.c: Ditto.
10205 * z8k-tdep.c: Ditto.
10207 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10209 From Jimi X <jimix@watson.ibm.com>:
10210 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10213 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10215 From Jimi X <jimix@watson.ibm.com>:
10216 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10219 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10221 From Jimi X <jimix@watson.ibm.com>:
10222 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10223 register sets for these processor variants.
10225 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10227 * regformats/reg-ppc.dat: Support FPSCR.
10229 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10231 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10232 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10233 Add fpscr as an invalid/unfetchable register.
10234 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10235 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10236 (fill_fpregset): Add support for register fpscr.
10237 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10238 (fill_gregset): Account for the fact that register ``mq'' might
10240 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10241 (registers_power): Add fpscr to register set at slot 71.
10242 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10243 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10245 2002-04-11 Michael Snyder <msnyder@redhat.com>
10247 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10248 * configure: Regenerate.
10249 * config.in: Regenerate.
10250 * acconfig.h: Add define for _SYSCALL32.
10251 * core-sol2.c: Remove #define _SYSCALL32.
10252 * solib-legacy.c: Remove #define _SYSCALL32.
10254 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10256 * stack.c (select_frame): Cleanup internal error message, do not
10259 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10261 * stack.c (select_frame): Check that selected_frame and the
10262 specified level are as expected.
10263 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10265 * frame.h (struct frame_info): Add field `level'. Update
10267 Work-in-progress PR gdb/464.
10269 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10271 * maint.c (maint_print_section_info): Rename print_section_info.
10272 (print_bfd_section_info, print_objfile_section_info): Update.
10273 * inferior.h (struct gdbarch): Add opaque declaration.
10274 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10275 * gdbarch.h: Regenerate.
10277 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10279 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10280 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10281 (kernel_u_size): Added.
10282 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10283 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10285 2002-04-04 Jim Ingham <jingham@apple.com>
10287 * valarith.c (find_size_for_pointer_math): New function, either returns
10288 the size for a pointer's target, returns 1 for void *, or errors for
10290 (value_add, value_sub): use find_size_for_pointer_math.
10292 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10294 * linux-low.c (linux_look_up_symbols): New hook.
10295 (linux_target_ops): Add linux_look_up_symbols.
10296 * remote-utils.c (decode_address): New function.
10297 (look_up_one_symbol): New function.
10298 * server.c (handle_query): Call target look_up_symbols hook.
10299 * server.h (look_up_one_symbol): Add prototype.
10300 * target.h (struct target_ops): Add look_up_symbols hook.
10302 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10304 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10305 override FP_REGNUM with frame->fp. Update copyright.
10306 * parse.c (num_std_regs, std_regs): Delete.
10307 (target_map_name_to_register): Do not search std_regs. Update
10308 function description.
10309 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10310 declarations. Update copyright.
10313 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10315 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10316 after the last symbol in a block.
10318 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10320 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10321 is non zero as a found symbol.
10323 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10325 * findvar.c: Include "builtin-regs.h".
10326 (value_of_register): Call value_of_builtin_reg when applicable.
10327 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10328 (target_map_name_to_register): Call
10329 builtin_reg_map_name_to_regnum.
10330 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10331 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10332 (builtin_regs_h): Define.
10333 (builtin-regs.o): New target.
10334 (findvar.o): Add $(builtin_regs_h).
10335 * builtin-regs.c, builtin-regs.h: New files.
10336 * std-regs.c: New file.
10337 Partial fix for PR gdb/251.
10339 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10341 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10342 it's no longer required.
10344 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10346 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10348 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10350 From Jimi X <jimix@watson.ibm.com>:
10351 * rs6000-tdep.c (rs6000_software_single_step): Use
10352 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10353 and size. Use target_insert_breakpoint() and
10354 target_remove_breakpoint() to insert and remove breakpoints
10355 instead of explicit memory reads and writes.
10357 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10359 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10360 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10361 ELF_OBJECT_FORMAT ifdef.
10363 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10365 From Jimi X <jimix@watson.ibm.com>:
10366 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10368 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10370 From Jimi X <jimix@watson.ibm.com>:
10371 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10372 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10374 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10376 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10377 s/asprintf/xasprintf/.
10378 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10380 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10382 I believe Jeff Law denies responsability for this one:
10383 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10384 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10385 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10386 Work-around for PR gdb/366.
10388 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10390 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10391 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10392 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10394 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10396 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10397 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10400 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10402 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10405 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10407 * README (Reporting Bugs in GDB): Document the bug web page as the
10408 prefered way of submitting bugs.
10411 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10413 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10414 -1. Update comment.
10415 * gdbarch.h, gdbarch.c: Re-generate.
10417 2002-04-07 Andreas Schwab <schwab@suse.de>
10419 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10420 buffer to regcache_collect.
10422 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10424 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10425 * gdbarch.c, gdbarch.h: Re-generate.
10427 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10429 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10430 declaration. Fix -Werror.
10432 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10434 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10435 * gdbarch.c: Regenerate.
10437 2002-04-05 Michael Snyder <msnyder@redhat.com>
10439 * breakpoint.c (clear_command): Rewrite middle section to
10440 combine two loops with identical control conditions.
10441 Add a cleanup to eliminate a memory leak.
10442 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10444 2002-04-05 H.J. Lu (hjl@gnu.org)
10446 * solib-svr4.c (bkpt_names): Add "__start".
10448 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10450 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10451 as test for 64 bit target.
10453 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10455 * h8500-tdep.c (h8500_write_fp): Delete function.
10456 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10457 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10458 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10459 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10460 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10461 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10463 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10464 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10465 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10466 (d10v_write_fp): Delete function.
10467 * inferior.h (write_fp, generic_target_write_fp): Delete
10469 * regcache.c (generic_target_write_fp): Delete function.
10470 (write_fp): Delete function.
10471 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10472 * gdbarch.h, gdbarch.c: Regenerate.
10473 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10474 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10475 (sparc64_write_fp): Delete declaration.
10476 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10477 (h8500_write_fp): Delete declaration.
10479 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10481 * sparc-tdep.c (sparc64_write_fp): Delete.
10482 (sparc_push_dummy_frame): Replace write_fp call with code to store
10484 (sparc_gdbarch_init): Do not initialize write_fp.
10486 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10488 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10491 2002-03-29 Jim Blandy <jimb@redhat.com>
10493 * stack.c (get_selected_block): Add new argument `addr_in_block',
10494 used to return the exact code address we used to select the block,
10495 not just the block.
10496 * blockframe.c (get_frame_block, get_current_block): Same.
10497 * frame.h (get_frame_block, get_current_block,
10498 get_selected_block): Update declarations.
10499 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10500 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10502 2002-04-05 Michael Snyder <msnyder@redhat.com>
10504 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10507 2002-04-05 J. Brobecker <brobecker@gnat.com>
10509 * utils.c (xfullpath): New function.
10510 * defs.h (xfullpath): Add declaration.
10511 * source.c (openp): Use xfullpath in place of gdb_realpath to
10512 avoid resolving the basename part of filenames when the
10513 associated file is a symbolic link. This fixes a potential
10514 inconsistency between the filenames known to GDB and the
10515 filenames it prints in the annotations.
10516 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10517 to be able to match a filename with either the real filename, or
10518 the name of any symbolic link to this file.
10519 (lookup_partial_symtab): Ditto.
10521 2002-04-04 Michael Snyder <msnyder@redhat.com>
10523 * breakpoint.c: Add support for hardware breakpoints in overlays.
10524 (overlay_events_enabled): New state variable.
10525 (insert_breakpoints): Use overlay_events_enabled to decide
10526 whether to attempt to set a breakpoint at the overlay load addr.
10527 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10528 (remove_breakpoint): Use overlay_events_enabled to decide
10529 whether breakpoints need to be removed from overlay load addr.
10530 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10531 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10532 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10533 disable_overlay_breakpoints): Update overlay_events_enabled.
10535 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10537 * dwarf2read.c (struct function_range): New.
10538 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10539 (check_cu_functions): New.
10540 (read_file_scope): Initialize global function lists.
10541 Call dwarf_decode_line after processing children.
10542 (read_func_scope): Add to global function list.
10543 (dwarf_decode_lines): Call check_cu_functions everywhere
10544 record_line is called. Call record_line with a linenumber
10545 of 0 to mark sequence ends.
10547 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10549 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10550 change sync with glibc.
10552 2002-04-03 Jim Blandy <jimb@redhat.com>
10554 * configure.in: Call AC_C_INLINE.
10555 * configure: Regenerated.
10557 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10559 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10560 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10562 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10564 * NEWS: Mention gcore support on FreeBSD/i386.
10566 * fbsd-proc.c: New file.
10567 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10568 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10570 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10573 2002-03-29 Jim Blandy <jimb@redhat.com>
10575 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10576 unescaped newlines in string literals, but newer ones don't. So
10579 2002-03-26 Michael Snyder <msnyder@redhat.com>
10580 Andrew Cagney <cagney@redhat.com>
10582 * cli/cli-dump.c: New file. Dump memory to file,
10583 restore file to memory.
10584 * cli/cli-dump.h: New file.
10585 * Makefile.in: Add rules, dependencies for cli-dump.o.
10586 * NEWS: Mention new commands.
10588 2002-03-28 Michael Snyder <msnyder@redhat.com>
10590 * symfile.c (symbol_file_add): Move test for null symbols to later.
10592 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10594 From veksler at il.ibm.com:
10595 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10596 the xstrduped original path.
10599 2002-03-27 Michael Snyder <msnyder@redhat.com>
10601 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10602 * infcmd.c (_initialize_infcmd): Ditto.
10603 * language.c (_initialize_language): Ditto.
10604 * symfile.c (_initialize_symfile): Ditto.
10605 * top.c (_init_main): Ditto.
10606 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10608 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10610 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10611 vector registers handling.
10612 (skip_prologue): Handle new AltiVec instructions. Fill in new
10613 fields of frame data.
10614 (frame_get_saved_regs): Fill in information for AltiVec registers.
10616 2002-03-27 Jim Blandy <jimb@redhat.com>
10618 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10619 a function; leave this macro here to invoke that function.
10620 (symbol_init_mangled_name): Declaration for that function.
10621 * symtab.c (symbol_init_mangled_name): New function.
10623 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10625 * valarith.c: Replace strerror with safe_strerror.
10626 * tracepoint.c: Ditto.
10627 * lin-lwp.c: Ditto.
10628 * go32-nat.c: Ditto.
10630 * gnu-nat.c: Ditto.
10632 2002-03-27 Andreas Schwab <schwab@suse.de>
10634 * event-top.c (command_line_handler): Remove useless if.
10636 2002-03-27 Andreas Jaeger <aj@suse.de>
10638 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10641 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10643 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10644 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10645 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10646 (x86_64_linux_dr_get_status, supply_gregset),
10647 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10648 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10649 (x86_64_register_info_table): Add.
10650 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10651 (x86_64_register_raw_size, x86_64_register_virtual_type),
10652 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10653 general x86_64_register_info_table.
10654 (i386_gdbarch_init): gdbarch_register_bytes is now set
10655 dynamicaly during initialization.
10656 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10657 * gdbserver/linux-x86-64-low.c: Ditto.
10659 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10661 * gdbserver/server.c (main): Call target_signal_to_host_p
10662 and target_signal_to_host on signals received from the remote.
10663 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10664 target_signal_from_host on signals sent to the remote.
10665 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10666 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10668 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10670 * signals/signals.c: Include "server.h" in gdbserver build.
10671 (target_signal_from_name): Don't use STREQ.
10672 (_initialize_signals): Likewise. Don't include function in
10675 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10677 * signals.c: Moved to...
10678 * signals/signals.c: Here.
10679 * Makefile (signals.o): Update.
10681 2002-03-26 Jeff Law (law@redhat.com)
10683 * somread.c (som_symtab_read): Remove some commented out code and
10684 updated related comments. Do not set the minimal symbol table to
10685 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10686 in a dynamic executable.
10687 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10688 where we are unable to find the minimal symbol for the given
10691 2002-03-25 Jeff Law (law@redhat.com)
10693 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10695 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10697 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10699 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10701 * command.h: Update copyright.
10702 (struct cmd_list_element): Replace definition with opaque
10704 (enum cmd_types): Document that it will eventually be moved to
10706 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10707 (MALLOCED_REPLACEMENT): Delete macro.
10708 * Makefile.in (cli_decode_h): Add $(command_h).
10709 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10710 * top.c: Include "cli/cli-decode.h".
10711 * completer.c: Include "cli/cli-decode.h".
10712 * maint.c: Include "cli/cli-decode.h".
10713 * cli/cli-decode.h: Include "command.h".
10714 (enum command_class): Delete.
10715 (enum cmd_types): Comment out.
10716 (enum cmd_auto_boolean): Delete.
10717 (enum var_types): Delete.
10719 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10721 * cli/cli-decode.c: Include "gdb_assert.h".
10722 (add_set_or_show_cmd): New static function.
10723 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10724 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10725 all fields, such as func, from the set command.
10727 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10729 * MAINTAINERS (sh-elf): Change warning flag to -w.
10731 2002-03-23 Andrew Cagney <cagney@redhat.com>
10733 * defs.h (error): Add printf format attribute.
10734 * thread-db.c (thread_from_lwp): Fix error format string.
10735 * stack.c (parse_frame_specification): Ditto.
10736 * cli/cli-decode.c (undef_cmd_error): Ditto.
10737 * scm-lang.c (scm_lookup_name): Ditto.
10738 * tracepoint.c (trace_error): Ditto.
10739 * remote-utils.c (usage): Ditto.
10740 * remote.c (compare_sections_command): Ditto.
10743 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10745 * gdbtypes.c (append_composite_type_field): New function.
10746 (init_composite_type): New function.
10747 * gdbtypes.h (append_composite_type_field): Declare.
10748 (init_composite_type): Ditto.
10750 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10752 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10754 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10755 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10756 structure returning convention for SYSV ABI case, but not
10757 for GNU/Linux, FreeBSD, or NetBSD.
10759 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10761 * symtab.h (lookup_block_symbol): Add mangled_name argument
10764 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10765 with new mangled_name argument.
10766 * linespec.c (decode_line_1): Likewise.
10767 * valops (value_of_this): Likewise.
10768 * symtab.c (lookup_transparent_type): Likewise.
10769 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10770 (lookup_symbol): If we are given a mangled name, pass it down
10771 to lookup_symbol_aux.
10772 (lookup_block_symbol): If we are given a mangled name to check
10773 against, only return symbols which match it.
10775 2002-03-22 Christopher Faylor <cgf@redhat.com>
10777 * win32-nat.c (child_create_inferior): Check for proper shell to use
10778 here, in case the user changes it on the fly.
10779 (_initialize_inftarg): Remove shell path considerations.
10781 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10783 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10784 for gdbarch_max_register_raw_size and max_register_virtual_size.
10785 Adjust copyright year.
10787 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10789 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10790 in a function to cover the entire beginning of the function
10791 as well if it does not already.
10793 2002-03-21 Tom Rix <trix@redhat.com>
10795 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10796 (rs6000_ptrace64): Renamed from ptrace64.
10798 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10800 * gdbserver/remote-utils.c (remote_open): Don't call
10801 getprotobyname, we're all using TCP here so just use
10803 * gdbserver/gdbreplay.c (remote_open): Ditto.
10805 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10807 * regcache.c (_initialize_regcache): No need to call
10808 build_regcache() at this time; it gets called whenever
10809 the gdbarch changes.
10811 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10813 * sparc-nat.c: Include sys/param.h where possible.
10815 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10818 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10819 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10820 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10822 * stabsread.c (rs6000_builtin_type): Likewise.
10823 (read_sun_floating_type): Likewise.
10825 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10827 * stabsread.c (read_member_functions): Remove skip code for duplicate
10828 constructor/destructor methods. Use standard parsing for these
10829 methods and just do not chain them to the list of methods after
10832 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10834 * coffread.c: Remove redundant static declarations. Replace
10835 occurrences of `PTR' with `void *'.
10836 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10837 * top.h (quit_cover): Likewise.
10838 * defs.h (catch_errors): Likewise.
10840 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10842 * defs.h (XMALLOC): Define.
10843 * gdb-events.sh (XMALLOC): Delete macro.
10844 * gdb-events.c, gdb-events.h: Regenerate.
10845 * gdbarch.sh (XMALLOC): Delete macro.
10846 * gdbarch.c: Regenerate.
10847 * serial.c (XMALLOC): Delete macro.
10848 * ui-file.c (XMALLOC): Ditto.
10849 * ser-unix.h (XMALLOC): Ditto.
10850 * sh-tdep.c (XMALLOC): Ditto.
10851 * ui-out.c (XMALLOC): Ditto.
10852 * utils.c (XMALLOC): Ditto.
10853 * i386-tdep.c (XMALLOC): Ditto.
10854 * gdb-events.c (XMALLOC): Ditto.
10855 * d10v-tdep.c (XMALLOC): Ditto.
10856 * cli-out.c (XMALLOC): Ditto.
10858 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10859 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10860 * ui-file.c, ui-out.c: Ditto.
10862 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10864 * command.h (struct cmd_list_element): Add field context.
10865 (set_cmd_context, get_cmd_context): Declare.
10866 * cli/cli-decode.h: Ditto.
10867 * cli/cli-decode.c (get_cmd_context): New function.
10868 (set_cmd_context): New function.
10869 (add_cmd): Initialize context.
10870 Part of fixing PR gdb/145 and PR gdb/146.
10872 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10874 * cli/cli-decode.c (cmd_type): New function.
10875 * command.h (cmd_type): Declare.
10876 * infrun.c (set_schedlock_func): Call function cmd_type.
10877 * kod.c (kod_set_os): Call cmd_type.
10878 * cris-tdep.c (cris_version_update): Use function cmd_type.
10879 (cris_mode_update, cris_abi_update): Ditto.
10881 * command.h: (execute_cmd_post_hook): Declare.
10882 (execute_cmd_pre_hook): Declare.
10883 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10884 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10885 functions. Execute pre/post hook while ensuring that afterwords
10886 hook_in is cleared.
10887 * top.c (execute_command): Use execute_cmd_post_hook, and
10888 execute_cmd_pre_hook to execute pre/post commands.
10889 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10891 (hook_stop_stub): Call execute_cmd_pre_hook.
10893 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10895 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10896 set'' and this leads to a core dump. Move xstrdup of
10897 operating_system to after check that it is not NULL.
10899 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10901 * kod.c (kod_set_os): Remove unnecessary check that
10902 ``command->type'' is set_cmd.
10904 * valprint.c (set_input_radix): Use input_radix.
10905 (set_output_radix): Use output_radix.
10906 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10909 2002-03-16 Andrew Cagney <ac131313@redhat.com>
10911 * value.h (struct value): Delete field ``substring_addr''. Change
10912 aligner fields to force_doublest_align, force_longest_align,
10913 force_core_addr_align and force_pointer_aligh.
10915 * value.h (struct value): Fix typo in above change.
10917 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10919 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10920 to fix internal_error from ``maintenance print architecture''.
10922 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10924 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10925 for gcc versions after gcc-2.8.1.
10927 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10929 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10930 for method resolution. Restore adjustment of ``this'' pointer after
10931 calling value_struct_elt, which was accidentally removed during the
10934 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10936 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10938 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10939 get_saved_register.
10940 * value.h (value_of_register): Update.
10942 2002-03-14 Richard Henderson <rth@redhat.com>
10944 * configure.in: Detect declaration for canonicalize_file_name.
10945 * utils.c (canonicalize_file_name): Declare, if needed.
10946 (gdb_realpath): Prefer realpath if available and usable.
10947 * config.in, configure: Rebuild.
10949 2002-03-14 Richard Henderson <rth@redhat.com>
10951 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10952 a constant array bound.
10954 * MAINTAINERS: Add myself to write-after-approval.
10956 2002-03-14 Michael Snyder <msnyder@redhat.com>
10958 * symfile.c (syms_from_objfile): Return immediately if no syms.
10959 (symbol_file_add): Return immediately if no syms.
10960 (find_sym_fns): Return immediately if no syms.
10962 2002-03-13 Michal Ludvig <mludvig@suse.cz>
10964 * gdbserver/remote-util.c (remote_open): Print remote-side's
10965 IP address when remote debugging over the network.
10967 2002-03-12 David O'Brien <obrien@FreeBSD.org>
10969 * config/sparc/fbsd.mh: Fix copyright.
10970 * config/sparc/fbsd.mt: Likewise.
10972 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
10974 * MAINTAINERS: Fix typo in name of gdb warnings option.
10975 (x86-64): Fix formating so that this can be parsed by awk.
10977 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10979 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10980 * defs.h: Include "gdb/signals.h".
10981 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10983 2002-03-10 Michal Ludvig <mludvig@suse.cz>
10985 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10986 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10989 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10990 Don Howard <dhoward@redhat.com>
10992 * mips-tdep.c (ST0_FR): Define.
10993 (mips2_fp_compat): New function, temporarily disabled.
10994 (mips_read_fp_register_single): New function.
10995 (mips_read_fp_register_double): New function.
10996 (mips_print_register): Use them.
10997 (do_fp_register_row): Likewise.
10999 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11001 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11004 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11006 * stabsread.c (read_member_functions): Fix is_stub test for
11007 static member functions, improve comment.
11009 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11011 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11012 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11013 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11014 commands that set boolean values.
11015 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11016 (arm_rdi_resume): Always initialize PC.
11017 (arm_rdi_open): Don't use rslt as a boolean.
11018 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11019 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11020 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11021 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11023 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11025 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11026 * configure: Rebuilt.
11028 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11030 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11031 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11033 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11035 * cli/cli-decode.c (set_cmd_completer): New function.
11036 * command.h (set_cmd_completer): Declare.
11037 * cli/cli-decode.h (set_cmd_completer): Ditto.
11039 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11040 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11041 * win32-nat.c (_initialize_inftarg): Ditto.
11042 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11043 * proc-api.c (_initialize_proc_api): Ditto.
11044 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11045 * source.c (_initialize_source): Ditto.
11046 * exec.c (_initialize_exec): Ditto.
11047 * solib.c (_initialize_solib): Ditto.
11048 * top.c (init_main): Ditto.
11049 * tracepoint.c (_initialize_tracepoint): Ditto.
11050 * symfile.c (_initialize_symfile): Ditto.
11051 * printcmd.c (_initialize_printcmd): Ditto.
11052 * infcmd.c (_initialize_infcmd): Ditto.
11053 * corefile.c (_initialize_core): Ditto.
11055 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11057 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11059 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11061 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11063 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11065 * NEWS: Update headings, 5.2 has branched.
11067 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11069 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11070 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11071 (register_addr, REGISTER_RAW_SIZE): Likewise.
11072 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11073 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11075 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11077 * MAINTAINERS (x86-64): Add myself.
11078 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11079 changed value_ptr -> struct value *
11081 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11083 * configure.host (sparc64-*-freebsd): Add.
11084 * configure.tgt: Likewise.
11085 * config/sparc/fbsd.mh: New file.
11086 * config/sparc/fbsd.mt: Likewise.
11087 * config/sparc/nm-fbsd.h: Likewise.
11088 * config/sparc/tm-fbsd.h: Likewise.
11090 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11092 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11093 regformats/reg-s390x.dat.
11095 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11097 * utils.c: Add FIXME explaining true/false problem.
11099 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11101 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11103 2002-02-28 Michael Chastain <mec@shout.net>
11105 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11107 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11109 * gdbserver/linux-s390-low.c: New file.
11110 * regformats/reg-s390.dat: New file.
11111 * regformats/reg-s390x.dat: New file.
11112 * gdbserver/configure.srv: Add S/390.
11113 * gdbserver/Makefile.in: Add S/390.
11114 * configure.tgt: Enable gdbserver for S/390.
11116 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11118 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11119 first line of the doc string for "info dos", except at the end of
11120 the sentence, since the short help stops at the first period.
11122 2002-02-28 Jason Merrill <jason@redhat.com>
11124 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11126 2002-02-27 Fred Fish <fnf@redhat.com>
11128 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11129 comment (dumy -> dummy).
11131 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11133 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11135 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11137 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11139 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11141 * gdbserver/acconfig.h: New file.
11142 * gdbserver/i387-fp.c: New file.
11143 * gdbserver/i387-fp.h: New file.
11144 * gdbserver/linux-x86-64.c: New file.
11145 * regformats/reg-x86-64.dat: New file.
11146 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11147 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11148 * gdbserver/configure.in: Add support for regsets.
11149 * gdbserver/config.in: Regenerate.
11150 * gdbserver/configure: Regenerate.
11151 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11152 * gdbserver/linux-low.h: New file.
11153 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11155 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11156 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11157 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11158 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11159 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11160 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11161 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11162 "i387-fp.h". Add PTRACE_GETREGS and friends.
11163 * gdbserver/regcache.c (supply_register): New function.
11164 (supply_register_by_name): New function.
11165 (collect_register): New function.
11166 (collect_register_by_name): New function.
11168 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11170 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11171 (config.status): Add configure.srv dependency.
11172 (server_h): Add config.h dependency.
11174 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11176 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11177 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11178 * gdbserver/configure.srv: Change i386-*-linux* to use
11181 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11183 * x86-64-tdep.c: Re-indent. Update copyright date.
11185 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11187 From Michal Ludvig <mludvig@suse.cz>:
11188 * x86-64-tdep.c (value.h): Delete.
11189 (gdb_assert.h): Include.
11190 (x86_64_register_convert_to_virtual,
11191 x86_64_register_convert_to_raw ): Add check which lets only
11192 floating-point values to be converted.
11193 (value_push): Delete.
11194 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11195 (i386_gdbarch_init): Number of register_bytes fixed.
11197 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11199 * MAINTAINERS: Add x86-64 target.
11201 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11203 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11204 * osfsolib.c (solib_map_sections): Ditto.
11205 * irix5-nat.c (solib_map_sections): Ditto.
11206 * corelow.c (gdb_check_format): Ditto.
11207 * symfile.c (symfile_bfd_open): Ditto.
11208 * solib.c (solib_map_sections): Ditto.
11211 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11213 * remote.c (_initialize_remote): By default, disable ``e'' and
11214 ``E'' step out-of-range packets.
11216 2002-02-26 Andreas Schwab <schwab@suse.de>
11218 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11219 m68k_linux_frame_saved_pc.
11220 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11222 (SIGCONTEXT_PC_OFFSET): Remove.
11223 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11224 m68k_linux_sigtramp_saved_pc): New functions.
11225 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11226 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11227 (UCONTEXT_PC_OFFSET): Define.
11228 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11229 non-RT and RT signal trampolines.
11231 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11233 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11234 (TARGET_NBPG, STACK_END_ADDR): Delete
11235 (VARIABLES_INSIDE_BLOCK): Delete.
11237 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11239 * utils.c (perror_with_name): Make string parameter constant.
11240 (print_sys_errmsg): Ditto.
11242 * defs.h (perror_with_name): Update.
11243 (print_sys_errmsg): Update.
11246 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11248 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11249 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11251 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11253 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11254 if it already matches the current architecture from the exec file.
11255 Include arch-utils.h for gdbarch_info_init prototype.
11256 * Makefile.in (rs6000-nat.o): Update dependencies.
11258 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11260 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11261 list of exported variables.
11263 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11265 * gdbserver/configure.srv: New file.
11266 * gdbserver/configure.in: Use configure.srv instead
11267 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11269 * gdbserver/configure: Regenerated.
11270 * gdbserver/terminal.h: New file.
11271 * gdbserver/Makefile.in: Update for configure changes. Remove
11272 more unneeded include paths.
11274 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11276 From wiz at danbala:
11277 * config/sparc/tm-sp64.h: Fix grammar and typos.
11280 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11282 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11283 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11284 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11285 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11286 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11287 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11288 * s390-tdep.c: Ditto.
11289 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11290 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11291 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11292 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11293 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11294 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11295 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11296 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11297 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11298 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11301 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11303 * lin-thread.c: Delete file.
11304 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11305 to gdb_proc_service.h.
11306 * configure: Re-generate.
11308 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11309 * serial.c (serial_open): Delete check for "ocd".
11312 * Makefile.in (linux-thread.o): Delete target.
11313 * linux-thread.c: Delete file.
11315 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11316 renamed SH files to be consistent.
11318 * symtab.c (sort_search_symbols): Use xfree.
11320 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11322 * arm-linux-tdep.c (arm_linux_init_abi): Register
11323 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11324 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11325 definition with undef, since we don't want the sysvr4 definition.
11326 (SKIP_TRAMPOLINE_CODE): Likewise.
11328 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11330 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11332 * configure.in: (AC_CHECK_FUNCS) Added test for
11333 canonicalize_file_name Regenerated.
11334 * config.in, configure: Regenerated.
11335 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11336 defined use canonicalize_file_name.
11338 2002-02-23 Michael Chastain <mec@shout.net>
11340 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11342 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11344 * README: Remove references to cygnus.com.
11345 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11346 dot com'' form. Remove references to cygnus.com and sourceware.
11348 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11350 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11351 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11352 1003.1-2001 no longer allows "head -1".
11353 * gdb/Makefile.in (version.c): Likewise.
11354 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11355 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11356 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11358 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11360 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11361 * command.h (cmd_cfunc_eq): Declare.
11362 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11364 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11365 ``struct cmd_list_element *''.
11366 * cli/cli-cmds.c (is_complete_command): Update. Use
11368 * top.c (execute_command): Pass the command to
11369 is_complete_command.
11370 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11372 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11374 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11375 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11376 architecture defines.
11377 * s390-tdep.c (s390_gdbarch_init): Likewise.
11379 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11381 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11382 (arm_linux_push_arguments): Likewise.
11383 (arm_linux_init_abi): Register them. Also register linux-specific
11385 (find_minsym_and_objfile): Use strcmp, not STREQ.
11386 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11387 (arm_linux_call_dummy_words): Delete declaration.
11388 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11389 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11391 (LOWEST_PC): Delete.
11393 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11395 * maint.c (print_section_info): Do not prepend `0x' to filepos
11396 output, it will be handled by local_hex_string_custom.
11398 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11400 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11401 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11402 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11404 2002-02-22 Jim Blandy <jimb@redhat.com>
11406 Indicate that the bcache functions don't change the strings
11408 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11409 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11411 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11413 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11415 2002-02-21 Christopher Faylor <cgf@redhat.com>
11417 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11418 find the complete path to a loaded DLL.
11420 2002-02-21 Fred Fish <fnf@redhat.com>
11422 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11423 that marks the end of the range of a function, enter a line number
11424 entry that has a line number of zero and a PC offset that matches
11425 the end of the function. This starts a range of PC's for which no
11426 line number information is known.
11427 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11428 PC's for which no line number info is found (line number is zero)
11429 then we didn't find any valid line information.
11430 * symtab.h: Document use of zero line number entry.
11432 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11434 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11435 (have_ptrace_getvrregs): Define for run time checks.
11436 (gdb_vrregset_t): New type for Altivec register handling.
11437 (fetch_register, store_register): Fetch/store altivec register
11439 (fetch_altivec_register, store_altivec_register): New functions.
11440 (supply_vrregset, fill_vrregset): New functions.
11441 (fetch_altivec_registers, store_altivec_registers): New functions.
11442 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11445 2002-02-21 Jiri Smid <smid@suse.cz>
11447 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11449 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11451 * Makefile.in (armnbsd-nat.o): Update dependencies.
11452 * armnbsd-nat.c (supply_gregset): New function. Common code to
11453 supply the integer register set.
11454 (supply_fparegset): New function. Similar for FPA registers.
11455 (fetch_regs, fetch_fp_regs): Use them.
11456 (fetch_core_registers): Likewise.
11457 (fetch_elfcore_registers): New function.
11458 (arm_netbsd_elfcore_fns): New core-file type specification.
11459 (_initialize_arm_netbsd_nat): Register it.
11461 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11463 * armnbsd-nat.c: Include gdbcore.h.
11464 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11465 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11466 'void' to declaration, to shut up ARI.
11467 (fetch_core_registers): Make static. Rewrite using supply_register.
11468 (arm_netbsd_core_fns): New core-file type specification.
11469 (_initialize_arm_netbsd_nat): New function.
11471 2002-02-21 Christopher Faylor <cgf@redhat.com>
11473 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11476 2002-02-20 Christopher Faylor <cgf@redhat.com>
11478 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11481 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11483 * jv-exp.y (parse_number): Change type of implicit longs
11484 to builtin_type_uint64.
11486 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11488 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11489 to be an integer instead of a `union wait'.
11491 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11493 * mips-linux-nat.c: Call the operating system GNU/Linux.
11494 * mips-linux-tdep.c: Likewise.
11495 * mips-tdep.c: Likewise.
11497 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11500 * jv-exp.y (parse_number): Handle 64-bit integers.
11502 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11504 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11505 AC_STDC_HEADERS to AC_HEADER_STDC.
11506 * gdbserver/configure: Regenerated.
11508 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11510 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11512 * sparc-tdep.c (get_longjmp_target): Likewise.
11514 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11516 * News: Add news about ARM and Multi-arch. Mention the new target
11519 2002-02-19 Jim Blandy <jimb@redhat.com>
11521 * stabsread.c (error_type_complaint): Improve error message.
11523 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11525 * gdbserver/README: Update documentation.
11526 * gdbserver/configure.in: Update configury to match documentation.
11527 * gdbserver/Makefile.in: Likewise.
11528 * gdbserver/configure: Regenerated.
11529 * gdbserver/aclocal.m4: New file, generated by aclocal.
11530 * gdbserver/config.in: New file, generated by autoheader.
11532 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11534 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11537 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11539 * arm-tdep.h (enum arm_float_model): New enum.
11540 (struct gdbarch_tdep): Add fp_model.
11541 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11542 up floating-point conversions until we know the floating-point model
11543 in use by the inferior. Don't complain about being unable to
11544 determine the ABI of the inferior when we don't have one.
11545 (arm_extract_return_value): Support different floating-point models.
11546 (arm_store_return_value): Likewise.
11547 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11549 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11551 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11553 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11554 of ``current_gdbarch''.
11556 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11558 * armnbsd-nat.c : ANSIfy all function declarations.
11559 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11560 (fetch_inferior_registers): Re-implement in terms of above.
11561 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11562 (store_inferior_registers): Re-implement in terms of above.
11564 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11566 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11568 * arm-linux-tdep.c: Likewise.
11569 * config/arm/tm-linux.h: Likewise.
11571 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11573 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11574 * config/arm/nbsd.mt (TM_FILE): Delete.
11575 * config/arm/tm-nbsd.h: Delete.
11577 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11579 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11580 Initialize CALL_DUMMY_LENGTH.
11582 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11584 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11586 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11587 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11588 defines one thing and that is incorrect for this port.
11589 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11591 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11593 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11595 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11597 * win32-nat.c (display_selector): New function. Displays information
11598 about the information returned by GetThreadSelectorEntry API function.
11599 (display_selectors): New function. Displays the infomation of
11600 the selector given as argument, or of CS, DS ans FS selectors
11601 if no argument is given.
11602 ( _initialize_inftarg): Add "w32" as info prefix command.
11603 Add "info w32 selector" as command calling display_selectors.
11605 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11607 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11608 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11611 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11613 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11615 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11617 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11618 (arm_fix_call_dummy): Call it.
11619 (arm_call_dummy_breakpoint_offset): Delete.
11620 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11621 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11623 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11625 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11626 Default to func_frame_chain_valid.
11627 * gdbarch.h, gdbarch.c: Re-generate.
11628 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11630 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11632 * ppc-linux-nat.c: Update copyright.
11633 (fetch_register, store_register): Add tid parameter, don't compute
11635 (fetch_ppc_registers, store_ppc_registers): Add tid
11636 parameter. Pass it along to callees.
11637 (fetch_inferior_registers, store_inferior_registers): Compute tid
11638 here, and pass it to calleed functions.
11639 (fill_gregset, supply_fpregset): Clean up formatting.
11641 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11643 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11644 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11646 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11648 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11649 * gdbarch.c gdbarch.h: Regenerate.
11650 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11652 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11653 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11654 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11656 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11657 * arm-tdep.c (arm_get_longjmp_target): New function.
11658 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11659 this to a positive value register arm_get_longjmp_target as the
11661 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11662 (arm_linux_init_abi): Set up longjmp description in tdep.
11663 * armnbsd-nat.c (get_longjmp_target): Delete.
11664 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11665 description in tdep.
11666 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11667 (get_longjmp_target): Delete declaration.
11668 (GET_LONGJMP_TARGET): Delete.
11669 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11670 (GET_LONGJMP_TARGET): Delete.
11672 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11674 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11675 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11676 of ``current_gdbarch''.
11678 2002-02-17 Tom Tromey <tromey@redhat.com>
11680 * cli/cli-cmds.c (compare_strings): New function.
11681 (complete_command): Only print each unique item once.
11682 * completer.h (complete_line): Declare.
11683 * completer.c (complete_line): New function.
11684 (line_completion_function): Use it.
11686 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11688 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11689 * gdbarch.h, gdbarch.c: Re-generate.
11691 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11693 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11695 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11697 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11698 * valops.c (value_arg_coerce): Don't take the address of a reference
11699 to convert an argument to a reference.
11701 2002-02-15 Christopher Faylor <cgf@redhat.com>
11703 * win32-nat.c (get_image_name): New function.
11704 (handle_load_dll): Use get_image_name function.
11705 (get_child_debug_event): Avoid registering debug events until possibly
11706 execed process is started.
11707 (child_create_inferior): Allow invocation via shell so that command
11708 line redirection, etc. works ok.
11709 (_initialize_inftarg): Add new command: "set shell" to control whether
11710 a shell is used to start a process.
11712 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11714 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11715 instead of find_register_by_number.
11716 (cannot_store_register): Likewise.
11718 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11720 * dwarf2read.c: Replace fprintf (stderr, ...) by
11721 fprintf_unfiltered (gdb_stderr, ...).
11723 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11725 * gdbserver/gdbserver.1: Document --attach.
11727 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11729 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11731 * arm-tdep.c (arm_default_arm_le_breakpoint)
11732 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11733 (arm_default_thumb_be_breakpoint): New. Initialize them from
11734 traditional breakpoint defines.
11735 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11736 (arm_gdbarch_init): Initialize new breakpoint variables.
11737 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11738 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11739 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11740 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11742 (arm_netbsd_init_abi_common): ... here; new function.
11743 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11744 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11745 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11746 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11748 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11750 * arm-tdep.h (enum arm_abi): New enum.
11751 (struct gdbarch_tdep): New structure.
11752 (LOWEST_PC): Provide a default.
11753 (arm_gdbarch_register_os_abi): Declare new function.
11754 * arm-tdep.c (arm_abi_names): New array.
11755 (process_note_abi_tag_sections): New function.
11756 (get_elfosabi): New function.
11757 (arm_gdbarch_register_os_abi): New function.
11758 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11759 support for that ABI has been built in, then call the appropriate
11760 configuration routine. Use gdbarch_num_regs() to get the number
11762 (arm_dump_tdep): New function.
11763 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11764 place-holder functions.
11765 (_initialize_arm_tdep): Register them.
11766 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11768 * armnbsd-tdep.c: New file.
11769 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11770 * config/arm/nbsd.mt (TDEPFILES): Add it.
11771 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11773 * armnbsd-nat.c: Include regcache.h.
11774 * Makefile.in (armnbsd-nat.o): Update dependency list.
11776 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11778 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11780 * gdbserver/Makefile.in: Fix typos in target rules.
11782 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11784 Fix part of PR gdb/267.
11785 * linespec.c (find_methods): Handle constructors specially for now.
11787 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11789 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11791 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11792 standard_coerce_float_to_double().
11794 2002-02-14 Christopher Faylor <cgf@redhat.com>
11796 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11799 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11801 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11802 find_variant_by_name, because it confuses the multiarch
11803 framework. Return NULL if there isn't an architecture with the
11804 user supplied name, instead of forcing a different one without
11805 recording the change with the multiarch machinery.
11806 (find_variant_by_name): Delete.
11808 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11810 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11811 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11813 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11815 * stack.c (print_frame_info_base): When calling
11816 print_frame_info_listing_hook, set current_source_symtab.
11818 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11820 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11821 and remove unused $(INCLUDE_DIR).
11822 Add regcache.c to OBS.
11823 Add generated register protocol files to clean target.
11824 Update dependencies for new objects, obsolete old target code.
11826 * gdbserver/linux-low.c: Remove all platform-specific code to
11827 new files. Remove various dead code. Update to use regcache
11829 * gdbserver/remote-utils.c (fromhex): Add return statement
11831 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11833 (input_interrupt): Add integer parameter to match prototype
11834 of a signal handler.
11835 (outreg): Use register_data ().
11836 (prepare_resume_reply): Use gdbserver_expedite_regs.
11837 * gdbserver/server.c (main): Dynamically allocate own_buf because
11838 PBUFSIZ is no longer constant. Use registers_to_string () and
11839 registers_from_string ().
11840 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11841 for error (), fatal (), and warning (). Update definition of
11842 PBUFSIZ to use regcache functionality. Add include guard.
11843 * gdbserver/utils.c (fatal): Add missing ``const''.
11844 (warning): New function.
11846 * regformats/regdat.sh: Include "regcache.h" in generated files.
11847 Provide init_registers () function.
11848 * regformats/regdef.h: Add prototype for set_register_cache ().
11851 * gdbserver/linux-arm-low.c: New file.
11852 * gdbserver/linux-i386-low.c: New file.
11853 * gdbserver/linux-ia64-low.c: New file.
11854 * gdbserver/linux-m68k-low.c: New file.
11855 * gdbserver/linux-mips-low.c: New file.
11856 * gdbserver/linux-ppc-low.c: New file.
11857 * gdbserver/linux-sh-low.c: New file.
11859 * gdbserver/regcache.c: New file.
11860 * gdbserver/regcache.h: New file.
11862 * gdbserver/low-linux.c: Removed obsolete file.
11864 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11866 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11867 * config/i386/linux.mt: Likewise.
11868 * config/ia64/linux.mt: Likewise.
11869 * config/m68k/linux.mh: Likewise.
11870 * config/powerpc/linux.mh: Likewise.
11871 * config/mips/linux.mt: Likewise.
11873 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11875 * config/i386/i386lynx.mh: Mark gdbserver variables
11876 as (currently) obsolete for this target.
11877 * config/i386/nbsd.mt: Likewise.
11878 * config/i386/nbsdelf.mt: Likewise.
11879 * config/m32r/m32r.mt: Likewise.
11880 * config/m68k/m68klynx.mh: Likewise.
11881 * config/m68k/nbsd.mt: Likewise.
11882 * config/m68k/sun3os4.mh: Likewise.
11883 * config/mips/vr5000.mt: Likewise.
11884 * config/ns32k/nbsd.mt: Likewise.
11885 * config/pa/hppabsd.mh: Likewise.
11886 * config/pa/hppaosf.mh: Likewise.
11887 * config/powerpc/nbsd.mt: Likewise.
11888 * config/rs6000/rs6000lynx.mh: Likewise.
11889 * config/s390/s390.mt: Likewise.
11890 * config/s390/s390x.mt: Likewise.
11891 * config/sparc/sparclynx.mh: Likewise.
11892 * config/sparc/sun4os4.mh: Likewise.
11893 * config/i386/x86-64linux.mt: Likewise.
11894 * config/sparc/linux.mh: Likewise.
11896 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11898 * configure.tgt: Configure gdbserver only for known working
11899 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11900 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11901 SUBDIRS if it is configured. Update comment for ${nativefile}.
11902 * configure: Regenerated.
11904 2002-02-13 Michael Snyder <msnyder@redhat.com>
11906 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11908 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11909 (default_gcore_mach): Just return 0, work around a problem in bfd.
11910 (default_gcore_target): OK to return NULL if exec_bfd is null.
11911 (make_mem_sec): Use a cast, avoid a warning.
11913 * procfs.c (find_memory_regions_callback): Use a cast instead of
11914 calling host_pointer_to_address (which complains if
11915 sizeof (host pointer) != sizeof (target pointer)).
11916 (procfs_make_note_section): Avoid overflow in psargs string.
11918 * procfs.c (procfs_make_note_section): Make the default
11919 implementation return an error.
11921 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
11923 * procfs.c (procfs_make_note_section): Provide a default definition
11924 (for alpha-dec-osf4.0f). Fix typos.
11926 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11928 * linux-proc.c: Add include of regcache.h.
11929 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11931 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11933 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11934 * memattr.c (create_mem_region): Disallow useless empty region.
11935 Regions are half-open intervals, so allow [A..B) [B..C) as
11938 2002-02-13 Michael Chastain <mec@shout.net>
11940 * defs.h: Kill CONST_PTR.
11941 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11942 * c-lang.c (c_builtin_types): Likewise.
11943 * ch-lang.c (ch_builtin_types): Likewise.
11944 * f-lang.c (f_builtin_types): Likewise.
11945 * language.c (unknown_builtin_types): Likewise.
11946 * m2-lang.c (m2_builtin_types): Likewise.
11947 * p-lang.c (pascal_builtin_types): Likewise.
11948 * scm-lang.c (c_builtin_types): Likewise.
11950 2002-02-13 Keith Seitz <keiths@redhat.com>
11952 * arm-tdep.h (arm_get_next_pc): Add declaration.
11954 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
11956 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11957 with other related struct-returning functions.
11958 (arm_extract_struct_value_address): New function.
11959 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11960 initialize float_format, double_format and long_double_format as
11961 appropriate to the endianness of the target.
11962 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11963 (arm_use_struct_convention): Delete declaration.
11964 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11966 2002-02-13 Keith Seitz <keiths@redhat.com>
11968 * defs.h (core_addr_to_string_nz): New function.
11970 2002-02-13 Mark Kettenis <kettenis@gnu.org>
11972 Apply missing bits of 2002-01-15 patch.
11973 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11974 (fill_fpregset): Use i387_fill_fsave.
11976 2002-02-12 Keith Seitz <keiths@redhat.com>
11978 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11979 (core_addr_to_string_nz): New function.
11981 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11983 * arm-linux-nat.c: Really include arm-tdep.h.
11984 * config/arm/tm-linux.h (struct type, struct value): Declare.
11986 2002-02-11 Michael Snyder <msnyder@redhat.com>
11988 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11989 (gcore section): Ifdef for Solaris and Unixware only.
11990 (procfs_do_thread_registers): Unixware needs one lwpstatus
11991 per thread (not one prstatus or pstatus).
11992 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11993 not over all gdb threads. For unixware, call elfcore_write_pstatus
11994 once before iterating over threads.
11996 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11998 * arm-tdep.h: New file.
11999 * arm-tdep.c: Include arm-tdep.h.
12000 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12001 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12002 (arm_print_float_info, arm_register_type, convert_to_extended)
12003 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12004 (arm_extract_return_value, arm_register_name): Make static.
12005 (arm_software_single_step): Similarly. Fix types in declaration.
12006 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12007 (arm_store_return_value, arm_store_struct_return): New functions.
12008 (arm_gdbarch_init): Register the above functions. Also register
12009 call_dummy_start_offset, sizeof_call_dummy_words,
12010 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12011 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12012 max_register_virtual_size, register_size. Set up
12013 prologue_cache.saved_regs here, rather than ...
12014 (_initialize_arm_tdep): ... here.
12015 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12017 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12018 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12019 (arm_print_float_info, arm_register_type, convert_to_extended)
12020 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12021 (arm_extract_return_value, arm_register_name): Delete declarations.
12022 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12023 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12024 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12025 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12026 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12027 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12028 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12029 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12030 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12031 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12032 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12033 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12035 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12036 * remote-rdi.c remote-rdp.c: Likewise.
12037 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12038 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12039 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12042 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12043 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12044 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12045 from non-ARM_ prefixed definitions.
12046 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12048 * remote-rdi.c remote-rdp.c: Likewise.
12049 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12051 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12053 * arm-tdep.c (arm_frameless_function_invocation)
12054 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12055 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12056 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12057 (arm_pop_frame, arm_get_next_pc): Make static.
12058 (arm_gdbarch_init): Register above in gdbarch structure.
12059 (arm_read_fp): Renamed from arm_target_read_fp.
12060 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12061 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12062 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12063 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12064 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12065 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12066 (arm_pc_is_thumb_dummy): Delete declarations.
12067 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12068 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12069 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12070 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12072 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12074 * symtab.c (compare_search_syms): New function.
12075 (sort_search_symbols): New function.
12076 (search_symbols): Sort symbols after searching rather than
12079 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12081 * NEWS: Linux -> GNU/Linux.
12083 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12085 * gdbarch.sh: For for level one methods, disallow a definition
12086 when partially multi-arched. Add comments explaining rationale.
12087 * gdbarch.h: Re-generate.
12089 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12091 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12092 multi-arch partial.
12094 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12096 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12097 field. Use diff -u.
12098 * gdbarch.c: Re-generate.
12100 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12102 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12103 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12106 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12108 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12109 multi-arch partial.
12110 (PUSH_ARGUMENTS): Switch to using predefault.
12111 * gdbarch.c: Regenerate.
12113 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12115 * valops.c (PUSH_ARGUMENTS): Delete definition.
12116 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12117 partial. Default to default_push_arguments.
12118 * gdbarch.h, gdbarch.c: Regenerate.
12120 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12122 * defs.h (throw_exception): Rename return_to_top_level. Update
12124 * utils.c (error_stream, internal_verror, quit): Ditto.
12125 * top.c (throw_exception, catcher): Ditto.
12126 * sparclet-rom.c (sparclet_load): Ditto.
12127 * remote.c (interrupt_query, minitelnet): Ditto.
12128 * remote-sds.c (interrupt_query): Ditto.
12129 * remote-mips.c (mips_error, mips_kill): Ditto.
12130 * ocd.c (interrupt_query): Ditto.
12131 * monitor.c (monitor_interrupt_query): Ditto.
12132 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12133 * target.h: Update comment.
12135 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12137 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12139 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12140 default_double_format.
12141 * gdbarch.h, gdbarch.c: Re-generate.
12142 * findvar.c (floatformat_unknown): Delete variable definition.
12143 * doublest.h (floatformat_unknown): Delete variable declaration.
12145 2002-02-09 Jim Blandy <jimb@redhat.com>
12147 * stabsread.c (read_type): Add code to parse Sun's syntax for
12148 prototyped function types.
12150 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12152 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12153 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12155 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12157 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12158 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12159 now _initialize_xcoffsolib gets called again and overrides the
12160 commands from solib.c in a native configuration.
12162 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12164 * doublest.c (store_typed_floating): Don't try to return a value.
12167 2002-02-08 Jim Blandy <jimb@redhat.com>
12169 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12170 is prototyped and has no arguments, print its argument list as
12173 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12175 * MAINTAINERS (write-after-approval): Add myself.
12176 (paper-trail): I've escaped!
12178 2002-02-08 Christopher Faylor <cgf@redhat.com>
12180 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12182 (_initialize_check_for_gdb_ini): Ditto.
12184 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12186 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12187 xaprintf -> xasprintf.
12189 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12191 * win32-nat.c: Remove use of printf and sprintf functions.
12193 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12195 * arm-tdep.c (arm_frame_chain_valid): Make static.
12196 (arm_push_arguments): Likewise.
12197 (arm_gdbarch_init): New function.
12198 (_initialize_arm_tdep): Call it.
12199 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12200 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12201 (FRAME_CHAIN_VALID): Delete.
12202 (arm_frame_chain_valid): Delete declaration.
12203 (PUSH_ARGUMENTS): Delete.
12204 (arm_push_arguments): Delete declaration.
12205 (CALL_DUMMY_P): Delete.
12207 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12208 Corinna Vinschen <vinschen@redhat.com>
12210 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12211 on builtin float types.
12213 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12215 * utils.c: Include <curses.h> before "bfd.h".
12216 * tui/tui-hooks.c: Likewise.
12217 * tui/tui.c: Likewise.
12218 * tui/tuiCommand.c: Likewise.
12219 * tui/tuiData.c: Likewise.
12220 * tui/tuiDataWin.c: Likewise.
12221 * tui/tuiDisassem.c: Likewise.
12222 * tui/tuiGeneralWin.c: Likewise.
12223 * tui/tuiIO.c: Likewise.
12224 * tui/tuiLayout.c: Likewise.
12225 * tui/tuiRegs.c: Likewise.
12226 * tui/tuiSource.c: Likewise.
12227 * tui/tuiSourceWin.c: Likewise.
12228 * tui/tuiStack.c: Likewise.
12229 * tui/tuiWin.c: Likewise.
12231 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12233 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12234 to include space for pseudoregs as well. Update loops accordingly.
12235 (sh_fp_frame_init_saved_regs): Ditto.
12236 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12238 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12240 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12241 Add Richard Earnshaw to Arm maintainers.
12243 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12245 * defs.h (warning_begin): Delete declaration.
12247 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12250 2002-02-07 Michael Snyder <msnyder@redhat.com>
12252 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12253 Logic bug, remove misplaced else.
12255 2002-02-07 Klee Dienes <klee@apple.com>
12257 * fork-inferior.c (fork_inferior): Add '!' to the list of
12258 characters that need to be quoted when building a string for the
12259 shell. Quote '!' specifically with a backslash, since CSH chokes
12260 when trying to evaluate "str!str".
12262 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12264 * rdi-share/host.h: Only provide a typedef for bool if it is not
12267 2002-02-04 Michael Snyder <msnyder@redhat.com>
12269 * breakpoint.h (enum bptype): Add new overlay event bp type.
12270 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12272 * breakpoint.c (create_internal_breakpoint): New function.
12273 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12274 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12275 (create_thread_event_breakpoint): Ditto.
12276 (create_solib_event_breakpoint): Ditto.
12277 (create_overlay_event_breakpoint): New function.
12278 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12279 (update_breakpoints_after_exec): Delete and re-initialize
12280 overlay event breakpoints after an exec. Add FIXME comment
12281 about longjmp breakpoint.
12282 (print_it_typical): Ignore overlay event breakpoints.
12283 (print_one_breakpoint): Ditto.
12285 (bpstat_what): Do not stop for overlay event breakpoints.
12286 (delete_breakpoint): Don't delete overlay event breakpoints.
12287 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12288 (breakpoint_re_set): Re-create overlay event breakpoint.
12290 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12291 (overlay_manual_command): Disable overlay breakpoints.
12292 (overlay_off_command): Disable overlay breakpoints.
12294 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12296 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12297 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12298 to here from config/tm-arm.h.
12299 (coff_sym_is_thumb): Make static.
12300 (arm_elf_make_msymbol_special): New function.
12301 (arm_coff_make_msymbol_special): New function.
12302 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12303 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12304 (coff_sym_is_thumb): Delete declaration.
12305 (arm_elf_make_msymbol_special): Declare.
12306 (arm_coff_make_msymbol_special): Declare.
12307 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12308 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12310 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12312 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12314 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12316 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12317 * gdbarch.c gdbarch.h: Regenerate.
12318 * arch-utils.c (default_print_float_info): New function.
12319 * arch-utils.h (default_print_float_info): Prototype it.
12320 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12321 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12322 (PRINT_FLOAT_INFO): Document it.
12324 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12325 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12326 (PRINT_FLOAT_INFO): Define.
12328 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12330 * win32-nat.c (_initialize_check_for_gdb_ini):
12331 Add typecast to sprintf argument to suppress a warning.
12333 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12335 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12336 to allow easier handling of pass state.
12337 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12338 that gives exception name and address.
12339 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12340 and set last_sig value to ourstatus->value.sig. Some missing
12342 (child_continue): Correctly report continue_status.
12343 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12344 TARGET_SIGNAL_0 (new default value).
12345 (child_resume): consider sig argument passed to decide if
12346 the exception should be passed to debuggee or not.
12348 2002-02-05 Michael Snyder <msnyder@redhat.com>
12350 * regcache.c (fetch_register): Call target_fetch_register
12351 only if we don't call FETCH_PSEUDO_REGISTER.
12352 (store_register): Call target_store_register only if we
12353 don't call STORE_PSEUDO_REGISTER.
12355 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12357 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12358 ELF_MAKE_MSYMBOL_SPECIAL.
12359 * gdbarch.c, gdbarch.h: Regenerate.
12360 * arch-utils.c (default_make_msymbol_special): New function.
12361 * arch-utils.h (default_make_msymbol_special): Export.
12362 * elfread.c (elf_symtab_read): Compile use of
12363 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12365 * coffread.c (coff_symtab_read): Ditto, for
12366 COFF_MAKE_MSYMBOL_SPECIAL.
12368 2002-02-05 Jim Blandy <jimb@redhat.com>
12370 * solib-svr4.c (svr4_truncate_ptr): New function.
12371 (svr4_relocate_section_addresses): Do the address arithmetic with
12372 the appropriate truncation for target addresses, even when
12373 CORE_ADDR is larger than a target address.
12375 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12377 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12380 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12382 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12385 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12387 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12389 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12391 * gdbserver/linux-low.c: Remove unused include files.
12393 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12395 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12396 (read_inferior_memory): Use it.
12397 (write_inferior_memory): Likewise.
12399 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12401 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12402 grubbing through sys_errlist.
12404 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12406 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12408 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12409 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12411 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12413 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12414 (do_sfunc, set_cmd_sfunc): New functions.
12416 * command.h (struct cmd_list_element): Add field func.
12417 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12418 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12419 * cli/cli-decode.h: Ditto.
12421 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12422 (help_all, help_cmd_list): Ditto.
12423 (find_cmd, complete_on_cmdlist): Ditto.
12424 * top.c (execute_command): Ditto.
12426 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12429 * infcmd.c (notice_args_read): Fix function signature.
12431 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12432 * cli/cli-decode.c (add_set_cmd): Ditto.
12433 * utils.c (initialize_utils): Ditto.
12434 * maint.c (_initialize_maint_cmds): Ditto.
12435 * infrun.c (_initialize_infrun): Ditto.
12436 * demangle.c (_initialize_demangler): Ditto.
12437 * remote.c (add_packet_config_cmd): Ditto.
12438 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12439 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12440 * proc-api.c (_initialize_proc_api): Ditto.
12441 * kod.c (_initialize_kod): Ditto.
12442 * valprint.c (_initialize_valprint): Ditto.
12443 * top.c (init_main): Ditto.
12444 * infcmd.c (_initialize_infcmd): Ditto.
12445 * corefile.c (_initialize_core): Ditto.
12446 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12447 * arch-utils.c (initialize_current_architecture): Ditto.
12448 (_initialize_gdbarch_utils): Ditto.
12449 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12451 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12452 * wince.c (_initialize_inftarg): Ditto.
12453 * symfile.c (_initialize_symfile): Ditto.
12454 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12455 * language.c (_initialize_language): Ditto.
12456 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12458 2002-02-04 Michael Snyder <msnyder@redhat.com>
12460 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12462 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12464 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12465 Add rules for building the register data files.
12467 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12469 * regformats/regdat.sh: Add braces to the definition of
12470 expedite_regs_${arch}.
12472 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12474 * regformats/regdef.h (struct reg): Add comment describing the
12475 requirements for offset and size fields.
12477 2002-02-04 Andreas Schwab <schwab@suse.de>
12479 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12480 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12482 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12484 * gdbarch.sh (copyright): Update years in generated header.
12485 (SMASH_TEXT_ADDRESS): Add rule.
12486 * gdbarch.h, gdbarch.c: Re-generate.
12487 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12488 * dbxread.c: Likewise.
12489 * dwarfread.c: Likewise.
12490 * elfread.c: Likewise.
12491 * somread.c: Likewise.
12493 * arm-tdep.c (arm_smash_text_address): New function.
12494 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12496 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12498 Add support for hardware watchpoints on win32 native.
12499 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12500 CONTEXT_DEBUG_REGISTERS.
12501 (dr variable): New variable. Static array containing a local copy
12502 of debug registers.
12503 (debug_registers_changed): New variable. Reflects when debug registers
12504 are changed and need to be written to inferior.
12505 (debug_registers_used): New variable. Reflects when any debug register
12506 was set, used when new threads are created.
12507 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12509 (thread_rec): Set dr array if id is the thread of current_event .
12510 (child_continue, child_resume): Change the debug registers for all
12511 threads if debug_registers_changed.
12512 (child_add_thread): Change the debug registers if debug_registers_used.
12513 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12514 Link nm.h to new nm-cygwin.h file.
12515 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12516 of hardware registers.
12518 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12520 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12521 Restore behavour broken by 2002-01-20 Andrew Cagney
12522 <ac131313@redhat.com> IEEE_FLOAT removal.
12524 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12526 * c-valprint.c (c_val_print): Pass a proper valaddr to
12527 cp_print_class_method.
12528 * valops.c (search_struct_method): If there is only one method
12529 and args is NULL, return that method.
12531 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12533 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12534 accessing tag_name directly.
12536 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12538 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12539 of accessing tag_name directly.
12541 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12544 * gdbtypes.c (replace_type): New function.
12545 * gdbtypes.h (replace_type): Add prototype.
12546 * stabsread.c (read_type): Use replace_type.
12548 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12550 * Makefile.in (memattr.o): Add missing dependencies rule.
12552 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12554 * breakpoint.c (break_at_finish_command): Really export.
12555 (break_at_finish_at_depth_command): Ditto.
12556 (tbreak_at_finish_command): Ditto.
12557 * hppa-tdep.c: Include completer.h.
12558 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12559 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12561 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12563 * utils.c (do_write): New function.
12564 (error_stream): Rewrite combining the code from error_begin and
12566 (verror): Rewrite using error_stream.
12567 (error_begin): Delete function.
12569 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12571 * utils.c (error_begin): Make static.
12572 * defs.h (error_begin): Delete declaration.
12574 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12575 (decode_line_1): Use cplusplus_error instead of error_begin,
12576 cplusplus_hint and return_to_top_level.
12577 * coffread.c (coff_symfile_read): Use error instead of error_begin
12578 and return_to_top_level.
12579 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12581 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12583 * language.h (type_error, range_error): Make string parameter
12585 * language.c (warning_pre_print): Delete extern declaration.
12586 * dwarfread.c (warning_pre_print): Ditto.
12587 * language.c (type_error, range_error): Rewrite to use verror and
12588 vwarning instead of warning_begin.
12590 2002-02-01 Michael Snyder <msnyder@redhat.com>
12592 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12593 (set_ignore_count): Move misplaced comment back where it belongs.
12595 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12597 * command.h (NO_FUNCTION): Delete macro.
12598 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12599 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12600 * tracepoint.c (_initialize_tracepoint): Ditto.
12601 * cli/cli-decode.c (add_set_cmd): Ditto.
12602 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12604 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12606 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12607 Update ``this'' pointer when calling virtual functions.
12609 2002-02-01 Michael Snyder <msnyder@redhat.com>
12611 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12612 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12614 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12616 * regformats/reg-arm.dat: New file.
12617 * regformats/reg-i386.dat: New file.
12618 * regformats/reg-ia64.dat: New file.
12619 * regformats/reg-m68k.dat: New file.
12620 * regformats/reg-mips.dat: New file.
12621 * regformats/reg-ppc.dat: New file.
12622 * regformats/reg-sh.dat: New file.
12623 * regformats/regdef.h: New file.
12624 * regformats/regdat.sh: New file.
12626 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12628 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12629 (arm_frame_args_address, arm_frame_locals_address): New functions.
12630 (arm_frame_num_args): New function.
12631 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12632 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12633 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12635 2002-01-31 Michael Snyder <msnyder@redhat.com>
12637 * breakpoint.c (break_at_finish_command): Export.
12638 (break_at_finish_at_depth_command): Export.
12639 (tbreak_at_finish_command): Export.
12640 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12641 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12642 "txbreak" commands, which are HPPA specific.
12644 * printcmd.c (disassemble_command): Remove an ancient
12645 artifact of an old merge.
12647 * symfile.h (enum overlay_debugging_state):
12648 Define enum constant values for overlay mode.
12649 * symfile.c (overlay_debugging): Use enums instead of literals.
12650 (overlay_is_mapped, overlay_auto_command,
12651 overlay_manual_command): Ditto.
12653 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12654 breakpoint_here_p, breakpoint_inserted_here_p,
12655 breakpoint_thread_match, bpstat_stop_status,
12656 describe_other_breakpoints, check_duplicates, clear_command):
12657 Coding standard fixes.
12659 * target.c (target_xfer_memory): Add spaces, coding standard.
12660 (do_xfer_memory): Add missing line to trust-readonly
12661 code: check bfd SEC_READONLY flag for section.
12663 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12665 * PROBLEMS: Fix typo, 5.1->5.1.1.
12667 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12669 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12670 data symbols, since we search based on textlow and texthigh.
12671 (find_pc_sect_symtab): Likewise.
12673 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12675 * defs.h (vwarning): Declare.
12676 * utils.c (vwarning): New function.
12677 (warning): Call vwarning.
12678 (warning_begin): Delete function.
12680 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12681 the warning message.
12682 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12685 2002-01-30 Michael Snyder <msnyder@redhat.com>
12687 * NEWS: Mention "set trust-readonly-sections" command.
12688 Mention generate-core-file command.
12690 2002-01-15 Michael Snyder <msnyder@redhat.com>
12692 * target.c: New command, "set trust-readonly-sections on".
12693 (do_xfer_memory): Honor the suggestion to trust readonly sections
12694 by reading them from the object file instead of from the target.
12695 (initialize_targets): Register command "set trust-readonly-sections".
12697 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12699 * parse.c (target_map_name_to_register): Simplify, search regs and
12700 pseudo-regs using a single loop.
12702 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12704 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12706 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12708 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12709 * config/i386/i386v42mp.mh: Add i387-nat.o .
12710 * i386v4-nat.c: Include i387-nat.h.
12711 (supply_fpregset): Use i387_supply_fsave.
12712 (fill_fpregset): Use i387_fill_fsave.
12714 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12716 * arm-tdep.c (arm_call_dummy_words): Define.
12717 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12718 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12719 (CALL_DUMMY_WORDS): Define.
12720 (arm_call_dummy_words): Declare.
12721 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12722 (arm_linux_call_dummy_words): Declare.
12724 2002-01-30 Andreas Schwab <schwab@suse.de>
12726 * m68klinux-nat.c: Fix last change to use regcache_collect
12727 instead of referencing registers[] directly.
12729 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12731 * parse.c (target_map_name_to_register): Delete code wrapped in
12732 #ifdef REGISTER_NAME_ALIAS_HOOK.
12734 2002-01-28 Michael Snyder <msnyder@redhat.com>
12736 * regcache.c (legacy_read_register_gen): Need to be able to
12737 read pseudo-register as well as real register.
12738 (legacy_write_register_gen): Ditto.
12740 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12742 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12743 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12744 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12745 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12746 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12747 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12748 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12749 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12750 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12751 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12752 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12753 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12754 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12755 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12756 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12757 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12758 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12759 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12760 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12761 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12763 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12765 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12766 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12767 (initialize_current_architecture): Update target_byte_order using
12768 information from BFD.
12769 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12770 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12772 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12774 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12775 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12777 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12778 #ifdef INVALID_FLOAT.
12779 * infcmd.c (do_registers_info): Ditto.
12780 * values.c (unpack_double): Ditto. Add comment.
12782 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12783 already commented out.
12785 2002-01-26 Andreas Schwab <schwab@suse.de>
12787 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12788 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12789 registers and add support for PTRACE_GETREGS.
12791 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12793 GDB 5.1.1 released from 5.1 branch.
12794 * NEWS: Add 5.1.1 news.
12795 * README: Sync with 5.1 branch.
12797 2002-01-23 Fred Fish <fnf@redhat.com>
12799 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12800 stabstring on initial malloc. Reallocing will copy it for us,
12803 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12805 * Makefile.in (hpread_h): Delete.
12806 (HFILES_NO_SRCDIR): Remove hpread.h.
12807 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12808 (hpread.o): Update dependencies.
12809 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12811 * hp-psymtab-read.c: Remove file.
12812 * hp-symtab-read.c: Remove file.
12813 * hpread.h: Remove file.
12815 * hpread.c: Merge all contents of hp-psymtab-read.c,
12816 hp-symtab-read.c and hpread.h into this file, as it was prior to
12819 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12820 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12821 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12822 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12824 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12826 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12827 fill_gregset): Call gdbarch_tdep() just once, assign result to
12828 variable and use that, instead of calling the function several
12831 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12833 * configure.host: Accept sparcv9 as alias for sparc64.
12834 * configure.tgt: Likewise.
12836 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12838 * solib-aix5.c (build_so_list_from_mapfile)
12839 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12840 arguments is not reversed.
12841 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12842 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12844 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
12846 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12847 modified version of obsolete sh_fetch_pseudo_register.
12848 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12849 (sh4_register_read): New function.
12850 (sh_pseudo_register_write): New function. Renamed and modified
12851 version of obsolete sh_store_pseudo_register.
12852 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12853 (sh4_register_write): New function.
12854 (sh_gdbarch_init): Remove setting of gdbarch function
12855 fetch_pseudo_register and store_pseudo_register. Remove setting of
12856 register_convert_to_raw, register_convert_to_virtual,
12857 register_convertible.
12858 (sh_sh4_register_convertible): Delete. No longer needed. All is
12859 taken care by architecture specific functions
12860 register_read/register_write.
12861 (sh_sh4_register_convert_to_virtual): Make static.
12862 (sh_sh4_register_convert_to_raw): Ditto.
12864 2002-01-22 Andrew Cagney <ac131313@redhat.com>
12866 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12867 (floatformat_is_nan, floatformat_mantissa): Ditto.
12869 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12870 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12871 builtin_type_ieee_double_little,
12872 builtin_type_ieee_double_littlebyte_bigword,
12873 builtin_type_m68881_ext, builtin_type_i960_ext,
12874 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12875 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12876 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12877 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12879 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
12881 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12882 parameter. Set frameless flag if it exists and depended of
12883 whether the scanned function is frameless or not.
12884 (xstormy16_skip_prologue): If function is frameless, return
12885 result of xstormy16_scan_prologue().
12886 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12889 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
12891 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12892 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12893 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12894 sh_sh4_register_byte, sh_sh4_register_raw_size,
12895 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12896 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12897 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12898 sh_store_pseudo_register, sh_do_pseudo_register): Call
12899 gdbarch_tdep() just once, assign result to variable and use that,
12900 instead of calling the function several times.
12902 2002-01-20 Mark Kettenis <kettenis@gnu.org>
12904 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12905 macros instead of LAST_FPU_CTRL_REGNUM.
12906 (store_register): Likewise.
12908 2002-01-21 Jim Blandy <jimb@redhat.com>
12910 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12911 is up-to-date before running the program, not just when a program
12914 2002-01-21 Fred Fish <fnf@redhat.com>
12916 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12917 when we have found all instructions we are looking for.
12919 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12921 * arm-tdep.c (arm_register_name): New function.
12922 (arm_registers_names): Make static.
12923 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12924 (arm_register_name): Declare.
12925 (REGISTER_NAME): Use it.
12927 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12928 Kevin Buettner <kevinb@redhat.com>
12930 Convert arm targets to new FRAME interface.
12931 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12932 (arm_frame_find_save_regs): Delete.
12933 (arm_frame_init_saved_regs): New.
12934 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12935 Allocate extra_info as required. Convert all uses of fsr.regs
12936 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12938 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12939 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12940 (check_prologue_cache, save_prologue_cache): Likewise.
12941 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12942 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12943 (FRAME_FIND_SAVED_REGS): Delete.
12944 (arm_frame_find_saved_regs): Delete prototype.
12945 (arm_frame_init_saved_regs): New prototype.
12946 (FRAME_INIT_SAVED_REGS): Define.
12948 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12950 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12952 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12954 From Jeff Law <law@redhat.com>:
12955 * infttrace.c: Include <sys/pstat.h>.
12956 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12957 exec file if the ttrace equivalent fails.
12959 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12961 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12962 (closeLogFile): Ditto.
12964 2002-01-20 Michael Chastain <mec@shout.net>
12966 * top.c (print_gdb_version): Bump copyright year to 2002.
12968 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12970 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12971 Zannoni and Eli Zaretskii.
12973 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12975 * buildsym.c: Update copyright years.
12976 * c-typeprint.c: Likewise.
12977 * dwarf2read.c: Likewise.
12978 * f-typeprint.c: Likewise.
12979 * gdbtypes.c: Likewise.
12980 * gdbtypes.h: Likewise.
12981 * hp-symtab-read.c: Likewise.
12982 * hpread.c: Likewise.
12983 * mdebugread.c: Likewise.
12984 * p-typeprint.c: Likewise.
12986 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12988 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12989 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12990 byte-order selectable.
12991 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12992 * arch-utils.c: Ditto.
12993 (set_endian): Ditto.
12994 (set_endian_from_file): Ditto.
12995 * gdbserver/low-sim.c (create_inferior): Ditto.
12996 * gdbarch.sh: Ditto.
12997 * gdbarch.h: Re-generate.
12998 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12999 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13000 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13001 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13002 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13003 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13004 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13005 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13007 * config/mips/tm-wince.h: Remove #undef of macro
13008 TARGET_BYTE_ORDER_SELECTABLE.
13009 * config/sh/tm-wince.h: Ditto.
13011 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13013 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13014 member function fields. Add accessor macro
13015 TYPE_FN_FIELD_ARTIFICIAL.
13016 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13017 * c-typeprint.c (c_type_print_base): Skip artificial member
13020 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13022 * f-typeprint.c: Delete unused function f_type_print_args.
13023 * p-typeprint.c: Delete unused function pascal_type_print_args.
13025 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13027 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13028 comment. Add ``artificial'' to ``union field_location''.
13030 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13032 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13033 * mdebugread.c (parse_symbol): Likewise.
13034 * stabsread.c (define_symbol): Likewise.
13035 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13036 initializing TYPE_FIELD_BITPOS to n (obsolete).
13037 (hpread_doc_function_type): Likewise.
13038 * hpread.c (hpread_function_type): Likewise.
13040 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13042 * configure.in (host_makefile_frag): Only require a host makefile
13043 fragment when a native build.
13044 * configure: Re-generate.
13046 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13048 * doublest.h (floatformat_from_type): Declare.
13049 * doublest.c (floatformat_from_type): New function.
13050 (convert_typed_floating): Use.
13052 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13053 call to function floatformat_from_type.
13055 * gdbarch.sh (IEEE_FLOAT): Delete.
13056 * gdbarch.h, gdbarch.c: Re-generate.
13057 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13058 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13059 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13060 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13061 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13062 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13063 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13064 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13065 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13066 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13067 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13068 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13070 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13071 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13072 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13073 * sh-tdep.c (sh_gdbarch_init): Ditto.
13074 * mips-tdep.c (mips_gdbarch_init): Ditto.
13075 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13076 * cris-tdep.c (cris_gdbarch_init): Ditto.
13078 2002-01-20 Jiri Smid <smid@suse.cz>
13080 * configure.host, configure.tgt: Support x86-64.
13081 * NEWS: Note new target x86-64.
13083 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13084 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13085 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13086 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13087 x86-64-linux-nat.o): Fix dependencies.
13089 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13091 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13092 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13093 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13094 * config/sparc/xm-sun4os4.h: Delete file.
13095 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13097 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13099 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13100 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13101 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13102 * config/i386/i386lynx.mh (XM_FILE): Delete.
13103 * config/rs6000/xm-rs6000ly.h: Delete file.
13104 * config/sparc/xm-sparclynx.h: Delete file.
13105 * config/m68k/xm-m68klynx.h: Delete file.
13106 * config/i386/xm-i386lynx.h: Delete file.
13107 * config/xm-lynx.h: Delete file.
13108 * config/djgpp/fnchange.lst: Update.
13110 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13112 * alpha-tdep.c (alpha_register_byte): New function.
13113 (alpha_register_raw_size): Ditto.
13114 (alpha_register_virtual_size): Ditto.
13115 (alpha_skip_prologue_internal): Renamed from
13116 alpha_skip_prologue.
13117 (alpha_skip_prologue): New version that calls
13118 alpha_skip_prologue_internal.
13119 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13120 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13121 second argument from alpha_skip_prologue.
13122 (REGISTER_BYTE): Use alpha_register_byte.
13123 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13124 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13125 (FRAMELESS_FUNCTION_INVOCATION): Use
13126 generic_frameless_function_invocation_not.
13127 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13128 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13130 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13132 * config/mips/xm-news-mips.h: Delete file.
13133 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13135 * config/m88k/xm-m88k.h: Delete file.
13136 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13137 * config/m88k/xm-delta88v4.h: Ditto.
13138 * config/m88k/xm-delta88.h: Ditto.
13140 * config/alpha/xm-fbsd.h: Delete file.
13141 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13143 * config/sparc/xm-sparc.h: Delete file.
13144 * Makefile.in (xm-sun4os4.h): Delete dependency.
13145 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13146 * config/sparc/xm-sun4os4.h: Ditto.
13147 * config/sparc/xm-linux.h: Ditto.
13149 * config/i386/xm-windows.h: Delete file.
13151 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13153 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13154 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13156 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13158 * alpha-tdep.c (alpha_call_dummy_words): New.
13159 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13160 (CALL_DUMMY_P): Define.
13161 (CALL_DUMMY_WORDS): Define.
13162 (SIZEOF_CALL_DUMMY_WORDS): Define.
13164 2002-01-19 Per Bothner <per@bothner.com>
13166 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13167 isn't NULL, which can happen with some gcj-3.x-produced code.
13169 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13171 * alpha-tdep.c (alpha_register_virtual_type): New function.
13172 (alpha_init_frame_pc_first): Ditto.
13173 (alpha_fix_call_dummy): Ditto.
13174 (alpha_store_struct_return): Ditto.
13175 (alpha_extract_struct_value_address): Ditto.
13176 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13177 alpha_register_virtual_type.
13178 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13179 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13180 alpha_extract_struct_value_address.
13181 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13182 (INIT_FRAME_PC): Use init_frame_pc_noop.
13183 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13185 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13187 * i386gnu-nat.c: Include "i386-tdep.h".
13188 (fetch_fpregs): Simplify code dealing with uninitialized floating
13189 point states such that it doesn't require FP7_REGNUM.
13191 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13193 * alpha-tdep.c (frame_extra_info): New.
13194 (alpha_find_saved_regs): Make static. Use
13196 (alpha_frame_init_saved_regs): New function.
13197 (alpha_frame_saved_pc): Use frame->extra_info.
13198 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13199 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13200 (init_extra_frame_info): Rename to...
13201 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13202 (alpha_print_extra_frame_info): New function.
13203 (alpha_frame_locals_address): Ditto.
13204 (alpha_frame_args_address): Ditto.
13205 (alpha_pop_frame): Use frame->extra_info.
13206 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13207 alpha_frame_args_address.
13208 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13209 (alpha_find_saved_regs): Remove prototype.
13210 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13211 (EXTRA_FRAME_INFO): Remove.
13212 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13213 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13215 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13217 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13218 (alpha_cannot_fetch_register): Ditto.
13219 (alpha_cannot_store_register): Ditto.
13220 (alpha_register_convertible): Ditto.
13221 (alpha_use_struct_convention): Ditto.
13222 * config/alpha/tm-alpha.h: Update copyright years.
13223 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13224 (INNER_THAN): Use core_addr_lessthan.
13225 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13226 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13227 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13228 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13229 (FRAME_CHAIN): Remove unnecessary cast.
13231 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13233 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13236 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13238 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13239 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13240 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13241 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13242 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13243 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13244 * x86-64-linux-nat.c: Ditto.
13246 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13248 * alpha-tdep.c (alpha_register_name): New function.
13249 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13250 (REGISTER_NAME): Define.
13252 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13254 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13256 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13258 * alpha-tdep.c: Update copyright years.
13259 (alpha_next_pc): New function.
13260 (alpha_software_single_step): Ditto.
13261 * config/alpha/tm-alpha.h: Add prototype for
13262 alpha_software_single_step.
13264 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13266 * alphabsd-nat.c: Update copyright years.
13267 (fill_gregset): Use regcache_collect.
13268 (fill_fpregset): Likewise.
13269 (fetch_inferior_registers): Only fetch integer registers
13270 if requested to do so.
13271 (store_inferior_registers): Only store integer registers
13272 if requested to do so.
13274 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13276 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13277 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13278 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13279 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13280 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13281 * config/arm/linux.mh (XDEPFILES): Delete.
13282 * config/arm/nbsd.mh (XDEPFILES): Delete.
13283 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13284 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13285 * config/i386/i386m3.mh (XDEPFILES): Delete.
13286 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13287 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13288 * config/i386/fbsd.mh (XDEPFILES): Delete.
13289 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13290 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13291 * config/i386/i386v4.mh (XDEPFILES): Delete.
13292 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13293 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13294 * config/i386/i386aix.mh (XDEPFILES): Delete.
13295 * config/i386/go32.mh (XDEPFILES): Delete.
13296 * config/i386/cygwin.mh (XDEPFILES): Delete.
13297 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13298 * config/i386/i386mach.mh (XDEPFILES): Delete.
13299 * config/i386/i386v32.mh (XDEPFILES): Delete.
13300 * config/i386/linux.mh (XDEPFILES): Delete.
13301 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13302 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13303 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13304 * config/i386/i386sco.mh (XDEPFILES): Delete.
13305 * config/i386/i386v.mh (XDEPFILES): Delete.
13306 * config/i386/nbsd.mh (XDEPFILES): Delete.
13307 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13308 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13309 * config/i386/symmetry.mh (XDEPFILES): Delete.
13310 * config/i386/obsd.mh (XDEPFILES): Delete.
13311 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13312 * config/ia64/linux.mh (XDEPFILES): Delete.
13313 * config/ia64/aix.mh (XDEPFILES): Delete.
13314 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13315 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13316 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13317 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13318 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13319 * config/m68k/linux.mh (XDEPFILES): Delete.
13320 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13321 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13322 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13323 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13324 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13325 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13326 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13327 * config/m88k/delta88.mh (XDEPFILES): Delete.
13328 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13329 * config/m88k/m88k.mh (XDEPFILES): Delete.
13330 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13331 * config/mips/linux.mh (XDEPFILES): Delete.
13332 * config/mips/irix6.mh (XDEPFILES): Delete.
13333 * config/mips/irix5.mh (XDEPFILES): Delete.
13334 * config/mips/irix4.mh (XDEPFILES): Delete.
13335 * config/mips/irix3.mh (XDEPFILES): Delete.
13336 * config/mips/decstation.mh (XDEPFILES): Delete.
13337 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13338 (NATDEPFILES): Move core-aout.o to here.
13339 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13340 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13341 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13342 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13343 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13344 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13345 * config/pa/hpux11.mh (XDEPFILES): Delete.
13346 * config/powerpc/aix.mh (XDEPFILES): Delete.
13347 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13348 * config/powerpc/linux.mh (XDEPFILES): Delete.
13349 * config/romp/rtbsd.mh: Rename XDEPFILES.
13350 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13351 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13352 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13353 * config/s390/s390.mh (XDEPFILES): Delete.
13354 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13355 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13356 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13357 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13358 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13359 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13360 * config/sparc/linux.mh (XDEPFILES): Delete.
13361 * config/vax/vaxult.mh (XDEPFILES): Delete.
13362 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13363 * Makefile.in (DEPFILES): Remove XDEPFILES.
13365 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13367 * utils.c (internal_verror): Fix comments, default is yes not no.
13368 Update queries to match. Default to quit and dump core.
13370 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13372 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13374 * defs.h, event-top.c, gdbcmd.h: Ditto.
13375 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13376 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13377 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13378 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13379 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13380 * mi/mi-main.c:Ditto.
13382 * stack.c, symfile.c: Update copyright.
13384 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13386 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13387 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13388 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13389 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13391 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13393 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13394 * gdbserver/low-lynx.c (myattach): Likewise.
13395 * gdbserver/low-nbsd.c (myattach): Likewise.
13396 * gdbserver/low-sim.c (myattach): Likewise.
13397 * gdbserver/low-sparc.c (myattach): Likewise.
13398 * gdbserver/low-sun3.c (myattach): Likewise.
13400 * gdbserver/low-linux.c (myattach): New function.
13402 * gdbserver/server.c (attach_inferior): New function.
13403 (main): Handle "--attach".
13405 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13407 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13410 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13412 * c-typeprint.c (is_type_conversion_operator): Add additional
13413 check for non-conversion operators.
13415 2002-01-15 Michael Snyder <msnyder@redhat.com>
13417 * linux-proc.c: Add "info proc" command, a la procfs.c.
13418 (read_mapping): New function, abstract and re-use code.
13419 (linux_find_memory_regions): Use new func read_mapping.
13420 (linux_info_proc_cmd): New function, implement "info proc".
13421 (_initialize_linux_proc): Add new command "info proc".
13423 2002-01-15 Michael Snyder <msnyder@redhat.com>
13425 * symfile.c (generic_load): Use bfd_map_over_sections method
13426 instead of manipulating bfd structure members directly.
13427 (add_section_size_callback): New function, bfd sections callback
13428 used by generic_load.
13429 (load_sections_callback): New function, bfd sections callback
13430 used by generic_load.
13432 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13434 [Based on work by Jim Blandy]
13435 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13436 (builtin_type_vec128): Export.
13437 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13439 (builtin_type_vec128): New builtin type for 128 bit vector
13441 (build_gdbtypes): Initialize builtin_type_v16qi and
13442 builtin_type_v8hi. Create the vec128 register builtin type
13444 (build_builtin_type_vec128): New function.
13445 (_initialize_gdbtypes): Register builtin_type_v16qi and
13446 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13447 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13448 AltiVec register to new builtin type.
13450 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13452 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13455 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13457 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13458 CLEAN_UP_REGISTER_VALUE.
13459 * regcache.c (supply_register): Update only call.
13461 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13463 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13464 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13465 a29k-*-vxworks* targets as obsolete.
13467 2002-01-14 Michael Snyder <msnyder@redhat.com>
13469 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13470 until we can resolve portability issues.
13471 * gregset.h: Remove references to fpxregs.
13472 * gcore.c (gcore_command): Initialize note_sec to NULL.
13474 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13476 * signals.c (target_signal_to_name): Rewrite. Only use
13477 signals[].name when in bounds and non-NULL.
13479 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13481 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13482 * signals.c (target_signal_to_name): Verify that SIG is within the
13483 bounds of the signals array.
13485 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13487 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13489 2002-01-13 Keith Seitz <keiths@redhat.com>
13491 * stack.c (print_frame_info_base): Print the frame's pc
13492 only if when print_frame_info_listing_hook is not defined.
13494 2002-01-13 Keith Seitz <keiths@redhat.com>
13496 * varobj.c (varobj_set_value): Make sure that there were no
13497 errors evaluating the object before attempting to set its
13499 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13500 so this offset adjustment is no longer necessary.
13501 (create_child): Don't set the error flag if the child is
13502 a CPLUS_FAKE_CHILD.
13503 (value_of_child): If value_fetch_lazy fails, return NULL
13504 so that callers will be notified that an error occurred.
13505 (c_value_of_variable): Delay check of variable's validity
13506 until later. We actually want all structs and unions to have
13508 Do not return "???" for variables which could not be evaluated.
13509 This error condition must be returned to the caller so that it
13510 can get the error condition from gdb.
13511 (cplus_name_of_child): Adjust index for vptr before figuring
13512 out the name of the child.
13513 (cplus_value_of_child): If a child's (real) parent is not valid,
13514 don't even bother trying to give a value for it. Just return
13515 an error. Change all instances in this function.
13516 (cplus_type_of_child): If our parent is one of the "fake"
13517 parents, we need to get at the type of the real parent, and
13518 derive the child's true type using this information.
13520 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13522 From 2002-01-09 John Marshall <johnm@falch.net>:
13523 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13524 sources.redhat.com, and tweak some related URLs which had
13525 suffered from linkrot.
13527 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13530 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13531 structures passed in registers.
13533 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13535 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13536 white space which prevented compilation. Reported by DSK
13537 <dsk@student.unsw.edu.au>.
13539 2002-01-11 Michael Snyder <msnyder@redhat.com>
13541 * symfile.c (build_section_addr_info_from_section_tab):
13542 Use bfd access method instead of manipulating bfd directly.
13543 (syms_from_objfile): Ditto.
13544 (simple_overlay_update_1): Ditto.
13545 (simple_overlay_update): Ditto.
13546 (generic_load): Ditto.
13547 (overlay_unmapped_address): FIXME comment, bfd access methods.
13548 (sections_overlap): FIXME comment, bfd access methods.
13549 (pc_in_mapped_range): FIXME comment, bfd access methods.
13550 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13551 (section_is_mapped): FIXME comment, bfd access methods.
13552 (section_is_overlay): FIXME comment, bfd access methods.
13554 * symfile.c (generic_load): Whitespace and long line cleanups.
13555 Remove duplicate variable, change several local variables to
13556 more appropriate data types.
13557 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13559 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13561 From Peter Schauer:
13562 * language.c (longest_local_hex_string_custom): Use phex_nz to
13563 convert NUM to a hex string.
13565 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13567 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13569 Update Copyright year.
13571 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13573 * language.c (longest_raw_hex_string): Delete unused function.
13575 2002-01-11 Petr Sorfa <petrs@caldera.com>
13577 * MAINTAINERS (write-after-approval): Add myself.
13578 * dwarf2read.c (read_tag_string_type): Handling of
13580 (read_tag_string_type): FORTRAN fix to prevent propagation of
13582 (set_cu_language): Handling of DW_LANG_Fortran95
13584 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13586 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13587 GETPID(inferior_ptid).
13588 (store_inferior_registers): Likewise.
13590 2002-01-10 Jason Merrill <jason@redhat.com>
13592 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13595 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13597 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13598 and bfd/elf32-sh-nbsd.c.
13600 2002-01-10 Michael Snyder <msnyder@redhat.com>
13602 * NEWS: Mention --pid and corefile/proc-id behavior change.
13604 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13605 * gcore.c: Include cli/cli-decode.h instead of command.h.
13607 * main.c (captured_main): Add new command line option "--pid".
13608 If the second command line argument (following the symbol-file)
13609 begins with a digit, try to attach to it before trying to open
13611 (print_gdb_help): Document the "--pid" argument.
13613 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13615 * completer.c (command_completer): New function.
13617 * completer.h <command_completer>: Add prototype.
13619 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13620 completer for the "help" command.
13622 2002-01-09 Jason Merrill <jason@redhat.com>
13624 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13626 2002-01-09 Michael Snyder <msnyder@redhat.com>
13628 * i386-linux-nat.c (fill_fpxregset): Make global.
13629 (store_fpxregset): Ditto.
13631 * gregset.h (gdb_fpxregset_t): Define.
13632 (supply_fpxregset): Prototype.
13633 (fill_fpxregset): Prototype.
13635 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13637 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13639 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13640 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13641 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13643 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13645 * MAINTAINERS: Update target maintainer rules so that any
13646 Maintainer can approve a tested patch for a maintenance-only
13649 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13651 * MAINTAINERS (write-after-approval): Add myself.
13653 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13656 2002-01-08 Michael Snyder <msnyder@redhat.com>
13658 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13659 real name of the executable, rather than the /proc name.
13661 2002-01-03 Michael Snyder <msnyder@redhat.com>
13663 Implement a "generate-core-file" command in gdb, save target state.
13664 * gcore.c: New file. Implement new command 'generate-core-file'.
13665 Save a corefile image of the current state of the inferior.
13666 * linux-proc.c: Add linux-specific code for saving corefiles.
13667 * target.h (struct target_ops): Add new target vectors for saving
13668 corefiles; to_find_memory_regions and to_make_corefile_notes.
13669 (target_find_memory_regions): New macro.
13670 (target_make_corefile_notes): New macro.
13671 * target.c (update_current_target): Inherit new target methods.
13672 (dummy_find_memory_regions): New place-holder method.
13673 (dummy_make_corefile_notes): New place-holder method.
13674 (init_dummy_target): Initialize new dummy target vectors.
13675 * exec.c (exec_set_find_memory_regions): New function.
13676 Allow the exec_ops vector for memory regions to be taken over.
13677 (exec_make_note_section): New function, target vector method.
13678 * defs.h (exec_set_find_memory_regions): Export prototype.
13679 * procfs.c (proc_find_memory_regions): New function, corefile method.
13680 (procfs_make_note_section): New function, corefile method.
13681 (init_procfs_ops): Set new target vector pointers.
13682 (find_memory_regions_callback): New function.
13683 (procfs_do_thread_registers): New function.
13684 (procfs_corefile_thread_callback): New function.
13685 * sol-thread.c (sol_find_memory_regions): New function.
13686 (sol_make_note_section): New function.
13687 (init_sol_thread_ops): Initialize new target vectors.
13688 * inftarg.c (inftarg_set_find_memory_regions): New function.
13689 Allow to_find_memory_regions vector to be taken over.
13690 (inftarg_set_make_corefile_notes): New function.
13691 Allow to_make_corefile_notes vector to be taken over.
13692 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13693 interface layer if not target_has_execution (may be a corefile).
13694 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13695 * config/sparc/sun4sol2.mh: Ditto.
13696 * config/alpha/alpha-linux.mh: Ditto.
13697 * config/arm/linux.mh: Ditto.
13698 * config/i386/x86-64linux.mh: Ditto.
13699 * config/ia64/linux.mh: Ditto.
13700 * config/m68k/linux.mh: Ditto.
13701 * config/mips/linux.mh: Ditto.
13702 * config/powerpc/linux.mh: Ditto.
13703 * config/sparc/linux.mh: Ditto.
13705 2002-01-07 Michael Snyder <msnyder@redhat.com>
13707 * arm-linux-nat.c: Remove references to regcache.c internal data
13708 (registers[] and register_valid[]).
13710 2002-01-07 Michael Snyder <msnyder@redhat.com>
13712 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13713 so that attaching to a pid will automatically read the process's
13714 symbol file and shlibs.
13715 * Makefile.in: Add rule for linux-proc.o.
13716 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13717 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13718 * config/arm/linux.mh: Ditto.
13719 * config/i386/linux.mh: Ditto.
13720 * config/i386/x86-64linux.mh: Ditto.
13721 * config/ia64/linux.mh: Ditto.
13722 * config/m68k/linux.mh: Ditto.
13723 * config/mips/linux.mh: Ditto.
13724 * config/powerpc/linux.mh: Ditto.
13725 * config/sparc/linux.mh: Ditto.
13727 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13729 * win32-nat.c: Add i386-tdep.h dependency.
13731 2002-01-07 Michael Snyder <msnyder@redhat.com>
13733 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13734 instead of bfd_get_arch_size. Don't bail out just because
13735 there's no exec_bfd.
13737 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13738 * p-valprint.c (pascal_object_print_value): Ditto.
13739 * somread.c (som_symtab_read): Ditto.
13740 * symfile.c (simple_free_overlay_region_table): Ditto.
13741 * valops.c (value_assign): Ditto.
13743 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13744 use tilde_expand and strerror for opening save-tracepoints file.
13746 * thread-db.c (thread_db_new_objfile): Indendation fix.
13748 * infptrace.c (GDB_MAX_ALLOCA): New define.
13749 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13750 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13751 can be overridden with whatever value is appropriate to the host).
13752 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13753 alloca to allocate potentially large buffer.
13754 * rs6000-nat.c (child_xfer_memory): Ditto.
13755 * symm-nat.c (child_xfer_memory): Ditto.
13756 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13758 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13760 From Nick Clifton <nickc@redhat.com>
13761 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13763 2002-01-07 Michael Snyder <msnyder@redhat.com>
13765 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13766 Don't use exec_bfd if it's NULL.
13768 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13770 * valops.c (value_arg_coerce): Fix formatting.
13772 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13774 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13775 * gnu-nat.c: Ditto.
13777 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13779 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13780 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13781 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13782 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13783 z8k-coff have not been multi-arched. Update z8k-coff build
13786 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13788 * MAINTAINERS: Mark a29k target as obsolete.
13789 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13790 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13792 * NEWS: Note that a29k targets are obsolete.
13793 * a29k-tdep.c: Mark as obsolete.
13794 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13795 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13796 a29k-*-vxworks* targets as obsolete.
13797 * remote-adapt.c: Obsolete.
13798 * remote-eb.c: Obsolete.
13799 * remote-mm.c: Obsolete.
13800 * remote-udi.c: Obsolete.
13801 * config/a29k/a29k-udi.mt: Obsolete.
13802 * config/a29k/a29k.mt: Obsolete.
13803 * config/a29k/tm-a29k.h: Obsolete.
13804 * config/a29k/tm-vx29k.h: Obsolete.
13805 * config/a29k/vx29k.mt: Obsolete.
13807 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13809 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13810 with BFD_ENDIAN_BIG.
13812 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13814 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13815 * configure, config.in: Re-generate.
13816 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13817 * defs.h: Do not include <endian.h>.
13819 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13821 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13822 * config.in: Regenerate.
13823 * configure.in: Update copyright years.
13824 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13825 * configure: Regenerate.
13826 * i386bsd-nat.c: Update copyright years.
13827 (fill_gregset): Use regcache_collect.
13828 (fetch_inferior_registers): Only fetch integer registers
13829 if requested to do so. Add support for XMM registers
13830 using PT_GETXMMREGS.
13831 (store_inferior_registers): Only store integer registers
13832 if requested to do so. Add support for XMM registers
13833 using PT_SETXMMREGS.
13834 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13835 (store_inferior_registers): Remove.
13836 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13837 (fetch_elfcore_registers): New function.
13838 (i386nbsd_elfcore_fns): New.
13839 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13840 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13842 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13843 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13844 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13845 * config/i386/tm-nbsd.h: Update copyright years.
13846 (HAVE_SSE_REGS): Define.
13847 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13848 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13849 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13850 (SIGCONTEXT_PC_OFFSET): Remove.
13851 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13853 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13855 * configure.tgt: Remove powerpc-*-macos* target.
13856 * config/m68k/xm-mpw.h: Delete file.
13857 * config/xm-mpw.h: Delete file.
13858 * ser-mac.c: Delete file.
13859 * mpw-make.sed: Delete file.
13860 * mpw-config.in: Delete file.
13861 * mac-xdep.c: Delete file.
13862 * mac-gdb.r: Delete file.
13863 * mac-defs.h: Delete file.
13864 * mac-nat.c: Delete file.
13865 * config/powerpc/macos.mh: Delete file.
13866 * config/powerpc/macos.mt: Delete file.
13867 * config/powerpc/nm-macos.h: Delete file.
13868 * config/powerpc/tm-macos.h: Delete file.
13869 * source.c (openp, open_source_file): Remove obsolete code.
13870 * top.c (gdb_readline): Ditto.
13871 * utils.c (query): Ditto.
13872 * event-top.c (display_gdb_prompt): Ditto.
13873 * Makefile.in (ser-mac.o): Delete obsolete target.
13876 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13878 * defs.h (BIG_ENDIAN): Delete macro definition.
13879 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13880 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13881 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13882 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13883 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13884 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13885 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13886 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13887 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13888 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13889 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13890 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13891 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13892 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13893 * gdbarch.c: Re-generate.
13895 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13897 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13900 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13902 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13904 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13906 * value.h (value_ptr): Delete typedef.
13908 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13910 * i386nbsd-nat.c: Update copyright years.
13911 Include i386-tdep.h.
13913 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
13915 * stabsread.c: Update copyright years.
13917 From Debashis Mahata <debashis.mahata@wipro.com>:
13918 (read_struct_fields): Deal with Sun C compiler erroneous stab
13919 output for structs and unions.
13922 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13924 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13927 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13929 * cp-abi.c: Fix whitespace.
13930 (baseclass_offset): New wrapper function.
13931 * cp-abi.h (baseclass_offset): Add prototype.
13932 (struct cp_abi_ops): Add baseclass_offset pointer.
13934 * valops.c (vb_match): Move to...
13935 * gnu-v2-abi.c (vb_match): here.
13936 * valops.c (baseclass_offset): Move to...
13937 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13939 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13941 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13942 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13943 * hpacc-abi.c (init_hpacc_ops): Likewise.
13945 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13947 * valops.c (find_overload_match): Accept obj as a
13948 reference parameter. Update it before returning.
13949 * value.h (find_overload_match): Update prototype.
13950 * eval.c (evaluate_subexp_standard): Pass object to
13951 find_overload_match by reference.
13953 2002-01-03 Andrew Cagney <ac131313@redhat.com>
13955 * valarith.c: Replace value_ptr with struct value pointer. Remove
13956 register attribute from value declarations.
13959 * scm-lang.c (scm_lookup_name): Ditto.
13961 2002-01-03 Michael Snyder <msnyder@redhat.com>
13963 Abstract the functionality of iterating over mapped memory
13964 regions into a general purpose iterator function.
13965 * procfs.c (iterate_over_mappings): New function, general purpose
13966 iterator for memory sections.
13967 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13968 (solib_mappings_callback): New function, callback for above.
13969 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13970 (info_mappings_callback): New function, callback for above.
13972 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13974 2002-01-01 Mark Kettenis <kettenis@gnu.org>
13976 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13977 * i386-tdep.c: Include "elf-bfd.h".
13978 (process_note_abi_tag_sections): New function.
13979 (i386_gdbarch_init): Add code to recognize various OS/ABI
13982 * maint.c (_initialize_maint_cmds): Add missing \ in
13985 For older changes see ChangeLog-2001
13991 version-control: never