1 2002-12-04 J. Brobecker <brobecker@gnat.com>
3 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
5 2002-12-04 J. Brobecker <brobecker@gnat.com>
7 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
8 which is an obsolete macro name.
10 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
12 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
13 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
15 2002-12-03 H.J. Lu (hjl@gnu.org)
17 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
18 (create_breakpoints): Make sure the addr_string field is not
21 2002-12-03 Andrew Cagney <ac131313@redhat.com>
23 * sparc-nat.c (fetch_inferior_registers)
24 (store_inferior_registers): Add comment on problem of LWP vs
27 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
28 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
29 (lin_lwp_store_registers): Remove.
30 (init_lin_lwp_ops): Use fetch_inferior_registers
31 and store_inferior_registers directly.
32 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
33 (store_inferior_registers): Likewise.
36 2002-12-03 Andrew Cagney <ac131313@redhat.com>
38 * frame.h (get_frame_id): Convert to a function.
39 (null_frame_id, frame_id_p): Declare.
40 (frame_id_eq, frame_id_inner): Declare.
41 (frame_id_build): New function.
42 * frame.c (get_frame_id): Update. Use null_frame_id.
43 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
45 (null_frame_id, frame_id_p): Define.
46 (frame_id_eq, frame_id_inner): Define.
47 (frame_id_build): New function.
48 * varobj.c (varobj_create): Update.
49 (varobj_update): Update.
50 * valops.c (value_assign): Update.
51 (new_root_variable): Update.
52 * infrun.c (save_inferior_status): Update.
53 * breakpoint.c (watch_command_1): Update.
55 2002-12-03 J. Brobecker <brobecker@gnat.com>
57 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
60 2002-12-03 Andrew Cagney <cagney@redhat.com>
62 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
65 * PROBLEMS: Mention PR gdb/725.
67 2002-12-03 Andreas Schwab <schwab@suse.de>
69 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
71 2002-12-02 Adam Fedor <fedor@gnu.org>
72 Klee Dienes <kdienes@apple.com>
74 * objc-lang.c (objc_printstr): Add width arg to match
76 (compare_selectors): Add 'const' to arg types.
77 (compare_classes): Likewise.
78 (find_imps): Cast msym pointer to avoid compiler warning.
79 (print_object_command): Validate the address before
80 passing it to the print routine.
81 (find_objc_msgcall_submethod): Change function argument to
83 * objc-lang.h: Add 'extern' to all function declarations.
84 (value_nsstring): Add declaration.
86 2002-12-02 J. Brobecker <brobecker@gnat.com>
88 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
89 Fixes a build failure on HP/UX.
91 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
93 (hpread_has_name): Advance declaration to avoid a compilation warning.
94 (pst_syms_count): Add missing variable type. By change, the compiler
95 was defaulting to int, which seems a good choice. Fixes a compilation
97 (pst_syms_size): Likewise.
99 2002-12-02 J. Brobecker <brobecker@gnat.com>
101 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
102 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
103 later to set the proper gdbarch methods depending on the osabi.
104 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
106 2002-12-02 J. Brobecker <brobecker@gnat.com>
108 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
109 * osabi.c (gdb_osabi_name): Add strings images for the two new
111 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
113 2002-12-02 Andrew Cagney <ac131313@redhat.com>
115 * MAINTAINERS (Java): Global maintainers are responible for Java.
116 (Past Maintainers): Mention both Anthony Green and Per Bothner as
117 part Java maintainers.
119 2002-12-02 J. Brobecker <brobecker@gnat.com>
121 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
122 Fixes a compilation failure on AiX.
124 2002-12-02 J. Brobecker <brobecker@gnat.com>
126 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
127 why aix-thread.o is not listed.
129 2002-12-01 Andrew Cagney <ac131313@redhat.com>
131 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
132 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
133 * gdbarch.h, gdbarch.c: Re-generate.
134 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
135 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
136 * config/pa/tm-hppa.h, frame.h: Update.
137 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
138 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
139 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
140 * cris-tdep.c, alpha-tdep.c: Update.
141 * frame.c (set_unwind_by_pc, create_new_frame): Use either
142 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
143 (get_prev_frame): Ditto.
145 2002-11-30 Andrew Cagney <cagney@redhat.com>
147 * exec.c (xfer_memory): Replace boolean with int.
148 * p-exp.y: Use 0 instead of false.
149 * corelow.c (gdb_check_format): Change return type to int from
151 * utils.c: Don't include <curses.h> or <term.h> first.
153 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
155 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
156 (m68hc11_register_byte): Remove.
157 (m68hc11_gdbarch_init): Don't set the above.
159 2002-11-29 Andrew Cagney <cagney@redhat.com>
161 * remote-mips.c (mips_initialize): Force a selected frame rebuild
162 by calling get_selected_frame.
163 * ocd.c (ocd_start_remote): Use get_selected frame instead of
164 set_current_frame, create_new_frame, select_frame and
166 * remote-e7000.c (e7000_start_remote): Ditto.
167 * remote-mips.c (common_open): Ditto
168 * remote-rdp.c (remote_rdp_open): Ditto.
170 2002-11-29 Andreas Schwab <schwab@suse.de>
172 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
173 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
174 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
175 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
176 read_memory_unsigned_integer instead of read_memory_integer when
177 dealing with addresses and instruction opcodes.
178 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
179 (m68k_linux_frame_saved_pc): Likewise.
181 2002-11-29 Andrew Cagney <ac131313@redhat.com>
183 * stack.c (selected_frame, select_frame): Move from here ...
184 * frame.c (selected_frame, select_frame): ... to here. Include
186 * Makefile.in (frame.o): Update dependencies.
187 * frame.c (get_selected_frame): New function.
188 * frame.h (get_selected_frame): Declare.
189 (deprecated_selected_frame): Rename selected_frame.
190 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
191 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
192 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
193 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
194 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
195 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
196 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
197 * z8k-tdep.c, cli/cli-cmds.c: Update.
199 2002-11-29 Andrew Cagney <ac131313@redhat.com>
201 * frame.h (get_selected_block): Add comments.
203 2002-11-28 Andrew Cagney <ac131313@redhat.com>
205 * frame.c (pc_notcurrent): New function.
206 (find_frame_sal): New function.
207 * frame.h (find_frame_sal): Declare.
208 (struct symtab_and_line): Add opaque declaration.
209 * stack.c (print_frame_info_base): Use find_frame_sal instead of
212 * ada-lang.c (find_printable_frame): Ditto.
214 2002-11-28 J. Brobecker <brobecker@gnat.com>
216 * configure.in: Check that the pthdebug library is recent enough
217 before enabling thread support on native AiX.
218 * configure: Regenerate.
220 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
221 from the list of object files as it is now appended by configure
222 if thread support is enabled.
223 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
224 if thread support is enabled.
226 2002-11-28 Andrew Cagney <cagney@redhat.com>
228 * stack.c (get_selected_block): In-line get_current_block.
229 * frame.h (get_current_block): Delete declaration.
230 * blockframe.c (get_current_block): Delete function.
232 2002-11-28 Andrew Cagney <ac131313@redhat.com>
234 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
235 USE_GENERIC_DUMMY_FRAMES.
236 * gdbarch.h, gdbarch.c: Regenerate.
237 * valops.c, frame.c: Update.
238 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
239 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
240 * config/pa/tm-hppa.h, blockframe.c: Update.
241 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
242 * m68k-tdep.c, alpha-tdep.c: Ditto.
244 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
245 * mips-tdep.c: Ditto.
247 2002-11-27 Andrew Cagney <ac131313@redhat.com>
249 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
250 (USE_GENERIC_DUMMY_FRAMES): Default to true.
251 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
252 * gdbarch.c, gdbarch.h: Re-generate.
253 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
254 (CALL_DUMMY_LOCATION): Delete macro definition.
255 (PC_IN_CALL_DUMMY): Delete macro definitions.
257 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
258 default is already generic_pc_in_call_dummy.
259 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
260 * v850-tdep.c (v850_gdbarch_init): Ditto.
261 * sh-tdep.c (sh_gdbarch_init): Ditto.
262 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
263 * mips-tdep.c (mips_gdbarch_init): Ditto.
264 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
265 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
266 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
267 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
268 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
269 * avr-tdep.c (avr_gdbarch_init): Ditto.
271 * arm-tdep.c (arm_gdbarch_init): Do not set
272 use_generic_dummy_frames, default is already 1.
273 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
274 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
275 * v850-tdep.c (v850_gdbarch_init): Ditto.
276 * sh-tdep.c (sh_gdbarch_init): Ditto.
277 * s390-tdep.c (s390_gdbarch_init): Ditto.
278 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
279 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
280 * mips-tdep.c (mips_gdbarch_init): Ditto.
281 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
282 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
283 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
284 * i386-tdep.c (i386_gdbarch_init): Ditto.
285 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
286 * frv-tdep.c (frv_gdbarch_init): Ditto.
287 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
288 * cris-tdep.c (cris_gdbarch_init): Ditto.
289 * avr-tdep.c (avr_gdbarch_init): Ditto.
291 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
292 call_dummy_location, default is already AT_ENTRY_POINT.
293 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
294 * v850-tdep.c (v850_gdbarch_init): Ditto.
295 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
296 * sh-tdep.c (sh_gdbarch_init): Ditto.
297 * s390-tdep.c (s390_gdbarch_init): Ditto.
298 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
299 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
300 * mips-tdep.c (mips_gdbarch_init): Ditto.
301 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
302 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
303 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
304 * i386-tdep.c (i386_gdbarch_init): Ditto.
305 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
306 * frv-tdep.c (frv_gdbarch_init): Ditto.
307 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
308 * cris-tdep.c (cris_gdbarch_init): Ditto.
309 * avr-tdep.c (avr_gdbarch_init): Ditto.
310 * arm-tdep.c (arm_gdbarch_init): Ditto.
311 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
313 2002-11-28 Andrew Cagney <cagney@redhat.com>
315 * frame.h: Update comments on set_current_frame, create_new_frame,
316 flush_cached_frames, reinit_frame_cache, select_frame and
319 2002-11-27 Andrew Cagney <cagney@redhat.com>
321 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
322 deprecated pc_in_call_dummy function.
323 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
324 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
325 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
326 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
327 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
329 2002-11-26 Martin M. Hunt <hunt@redhat.com>
331 * Makefile.in: Remove Tix dependencies.
332 * acinclude.m4: Ditto.
334 * configure.in: Ditto.
335 * configure: Regenerated.
337 2002-11-26 Andrew Cagney <ac131313@redhat.com>
339 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
340 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
341 * gdbarch.c: Re-generate.
343 2002-11-26 Andrew Cagney <ac131313@redhat.com>
345 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
346 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
347 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
348 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
349 pc_in_call_dummy_at_entry_point.
350 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
351 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
352 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
353 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
354 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
355 pc_in_call_dummy_on_stack.
356 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
357 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
358 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
359 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
360 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
362 2002-11-26 Andrew Cagney <ac131313@redhat.com>
364 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
365 pc_in_call_dummy_before_text_end
366 (deprecated_pc_in_call_dummy_after_text_end): Rename
367 pc_in_call_dummy_after_text_end.
368 (deprecated_pc_in_call_dummy_on_stack): Rename
369 pc_in_call_dummy_on_stack.
370 (deprecated_pc_in_call_dummy_at_entry_point): Rename
371 pc_in_call_dummy_at_entry_point.
372 * m68k-tdep.c (m68k_gdbarch_init): Update.
373 * s390-tdep.c (s390_gdbarch_init): Update.
374 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
375 * vax-tdep.c (vax_gdbarch_init): Update.
376 * sparc-tdep.c (sparc_gdbarch_init): Update.
377 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
378 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
379 * i386-tdep.c (i386_gdbarch_init): Update.
380 * frv-tdep.c (frv_gdbarch_init): Update.
381 * cris-tdep.c (cris_gdbarch_init): Update.
382 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
383 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
384 (deprecated_pc_in_call_dummy_after_text_end)
385 (deprecated_pc_in_call_dummy_on_stack)
386 (deprecated_pc_in_call_dummy_at_entry_point): Update.
387 * alpha-tdep.c (alpha_gdbarch_init): Update.
389 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
391 * acconfig.h (HAVE_PREAD64): Add.
392 * configure.in: Check for pread64.
393 * config.in: Regenerated.
394 * configure: Regenerated.
395 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
396 * linux-proc.c (linux_proc_xfer_memory): New function.
397 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
399 2002-11-25 David Carlton <carlton@math.stanford.edu>
401 * dwarf2read.c (scan_partial_symbols): Descend into namespace
404 2002-11-25 Andrew Cagney <ac131313@redhat.com>
406 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
407 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
409 2002-11-25 Jim Blandy <jimb@redhat.com>
411 * symfile.c (init_objfile_sect_indices): New function.
412 (default_symfile_offsets): Move the section-index-initializing
413 stuff into init_objfile_sect_indices, and call that.
415 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
416 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
418 * symfile.c (syms_from_objfile): Adjust indentation.
420 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
421 || info_verbose isn't true.
423 2002-11-24 Andrew Cagney <ac131313@redhat.com>
425 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
426 default to get_frame_base.
427 * gdbarch.h, gdbarch.c: Regenerate.
428 * arch-utils.c (default_frame_address): Delete function.
429 * arch-utils.h (default_frame_address): Delete declaration
431 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
433 * varobj.c (find_frame_addr_in_frame_chain):
434 Use get_frame_base instead of FRAME_FP,
437 2002-11-19 Andrew Cagney <ac131313@redhat.com>
439 * frame.h (FRAME_FP): Delete macro.
440 (get_frame_base): New function declaration.
441 * frame.c (get_frame_base): New function.
442 (get_frame_id): Use ->frame.
443 (frame_find_by_id): Rewrite to use get_frame_id.
444 * blockframe.c: Use get_frame_base instead of FRAME_FP.
445 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
446 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
447 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
448 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
449 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
450 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
452 2002-11-24 Andrew Cagney <ac131313@redhat.com>
454 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
456 2002-11-24 Andrew Cagney <ac131313@redhat.com>
458 * frame.c (set_unwind_by_pc): Revert change below, use
460 (get_prev_frame): Ditto.
462 2002-11-24 Andrew Cagney <ac131313@redhat.com>
464 * dummy-frame.c (pc_in_dummy_frame): New function.
465 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
466 (find_dummy_frame): Update comment.
467 (generic_pop_current_frame): Use get_frame_type.
468 * dummy-frame.h (pc_in_dummy_frame): Declare.
469 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
470 (create_new_frame): Use pc_in_dummy_frame.
471 (get_prev_frame): Use pc_in_dummy_frame.
472 (frame_saved_regs_register_unwind): Use get_prev_frame.
473 (deprecated_generic_get_saved_register): Use get_prev_frame.
475 2002-11-23 Andrew Cagney <ac131313@redhat.com>
477 * blockframe.c (find_frame_addr_in_frame_chain): Move function
479 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
480 (varobj_create): Note that frame ID should be used.
481 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
483 2002-11-23 Andrew Cagney <ac131313@redhat.com>
485 * breakpoint.c: Include "gdb_assert.h".
486 (deprecated_frame_in_dummy): Assert that generic dummy frames are
488 * Makefile.in (breakpoint.o): Update dependencies.
489 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
490 deprecated_frame_in_dummy.
491 * stack.c (print_frame_info_base): Ditto.
493 (print_frame_info_base): Ditto. Delete dead code.
495 2002-11-23 Andreas Schwab <schwab@suse.de>
497 * Makefile.in (m68k_tdep_h): Define.
498 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
499 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
500 * m68k-tdep.c: Move register number enum ...
501 * m68k-tdep.h: ... to this new file and rename the constants from
502 E_* to M68K_*. All uses changed.
503 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
504 * abug-rom.c: Include "m68k-tdep.h". Use
505 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
506 * cpu32bug-rom.c: Likewise.
507 * dbug-rom.c: Likewise.
508 * m68k-tdep.c: Likewise.
509 * m68klinux-nat.c: Likewise.
510 * remote-est.c: Likewise.
511 * rom68k-rom.c: Likewise.
512 * config/m68k/tm-linux.h: Likewise.
514 2002-11-23 Andrew Cagney <ac131313@redhat.com>
516 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
517 dummy frame initialization code.
518 * mips-tdep.c (mips_gdbarch_init): Ditto.
520 2002-11-22 Christopher Faylor <cgf@redhat.com>
522 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
525 2002-11-22 Andrew Cagney <ac131313@redhat.com>
527 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
528 to default_frame_address.
529 * gdbarch.h, gdbarch.c: Re-generate.
531 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
532 or frame_locals_address to default_frame_address.
533 * m68k-tdep.c (m68k_gdbarch_init): Update.
534 * i386-tdep.c (i386_gdbarch_init): Update.
535 * frv-tdep.c (frv_gdbarch_init): Update.
536 * sh-tdep.c (sh_gdbarch_init): Update.
537 * v850-tdep.c (v850_gdbarch_init): Update.
538 * sparc-tdep.c (sparc_gdbarch_init): Update.
539 * mips-tdep.c (mips_gdbarch_init): Update.
540 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
541 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
542 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
544 * cris-tdep.c (cris_frame_args_address): Delete function.
545 (cris_frame_locals_address): Delete function.
546 (cris_gdbarch_init): Do not set frame_args_address or
547 frame_locals_address.
549 2002-11-22 Michael Snyder <msnyder@redhat.com>
551 * thread-db.c (thread_db_load): Tell the user what's going on
552 if dlopen fails on libthread_db.
554 2002-11-23 Andreas Schwab <schwab@suse.de>
556 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
557 invariant return values.
559 2002-11-22 Andreas Schwab <schwab@suse.de>
561 * valops.c (value_slice): Move declaration of `offset' to avoid
564 2002-11-22 Christopher Faylor <cgf@redhat.com>
566 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
567 (struct so_stuff): Add end_addr field.
568 (register_loaded_dll): Calculate and store end address of loaded dll.
569 (solib_address): New function.
570 (child_solib_loaded_library_pathname): Pass carefully constructed
571 section info to safe_symbol_file_add rather than ignoring it.
572 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
574 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
575 (child_create_inferior): Fix a compiler warning.
576 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
577 (solib_address): Declare new function.
579 2002-11-22 Andreas Schwab <schwab@suse.de>
581 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
584 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
586 * maint.c (_initialize_maint_cmds): Fix typo. From
587 Francesco Potorti` <pot@gnu.org>.
589 2002-11-21 Andrew Cagney <cagney@redhat.com>
591 * mips-tdep.c (mips_dump_tdep): Delete references to
592 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
593 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
594 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
595 * printcmd.c (build_address_symbolic): Delete calls to
596 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
597 (address_info): Ditto.
600 2002-11-19 Klee Dienes <kdienes@apple.com>
601 Adam Fedor <fedor@gnu.org>
603 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
604 the ability to explicitly specify the quote characters and word
605 break characters; if NULL is specified for either, use the old
606 behavior of using the characters used by the completer.
607 (skip_chars): New function. Convenience wrapper around
608 skip_quoted_chars to provide the original skip_chars behavior.
609 * completer.h (skip_quoted_chars): Add prototype.
611 2002-11-19 Andrew Cagney <ac131313@redhat.com>
613 Problems reported by Paul Eggert.
614 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
616 2002-11-19 Andreas Schwab <schwab@suse.de>
618 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
619 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
620 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
621 (m68k_linux_frame_saved_pc): Move to ...
622 * m68klinux-tdep.c: ... here. New file.
623 * Makefile.in (m68klinux-tdep.o): Add dependencies.
624 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
626 2002-11-19 Adam Fedor <fedor@gnu.org>
628 * objc-exp.y: Revert to old skip_quoted usage.
630 2002-11-19 Adam Fedor <fedor@gnu.org>
632 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
633 (objc_lang_h): Define.
634 (YYFILES): Add objc-exp.tab.c.
635 (local-maintainer-clean): Remove objc-exp.tab.c.
636 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
638 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
640 * p-exp.y (typecast rule): Add automatic dereference of
641 pascal classes if needed.
642 (THIS): Set current_type.
643 Automatically dereference pascal classes.
644 (typebase rule): Add ^typebase recognition.
646 2002-11-18 Adam Fedor <fedor@gnu.org>
648 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
649 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
650 (op_name): Handle OP_OBJC_SELF.
651 * Makefile.in (expprint.o): Add additional depends.
653 2002-11-18 Adam Fedor <fedor@gnu.org>
655 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
656 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
657 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
658 * objc-exp.y: Likewise.
660 2002-11-18 Adam Fedor <fedor@gnu.org>
662 * gdb/parser-defs.h: (struct objc_class_str): New structure
663 for parsing ObjC classes.
665 2002-11-18 Andrew Cagney <ac131313@redhat.com>
667 * stack.c (frame_relative_level): Copy function from here ...
668 * frame.c (frame_relative_level): ...to here.
670 2002-11-18 Andrew Cagney <ac131313@redhat.com>
672 * frame.h (enum frame_type): Define.
673 (get_frame_type): Declare.
674 (struct frame_info): Add field `type'. Delete field
675 signal_handler_caller.
676 (deprecated_set_frame_signal_handler_caller): Declare.
677 * frame.c (get_frame_type): New function.
678 (deprecated_set_frame_type): New function.
679 (create_new_frame): Set the frame's type.
680 (get_prev_frame): Similar.
681 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
682 * s390-tdep.c: Ditto.
683 * m68klinux-nat.c: Ditto.
684 * ns32k-tdep.c: Ditto.
685 * x86-64-linux-tdep.c: Ditto.
687 * rs6000-tdep.c: Ditto.
688 * ppc-linux-tdep.c: Ditto.
689 * i386-interix-tdep.c: Ditto.
690 * mips-tdep.c: Ditto.
691 * m68k-tdep.c: Ditto.
692 * hppa-tdep.c: Ditto.
693 * ia64-tdep.c: Ditto.
694 * cris-tdep.c: Ditto.
696 * alpha-tdep.c: Ditto.
697 * i386-tdep.c: Ditto.
700 * blockframe.c: Update.
701 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
702 deprecated_set_frame_type instead of signal_handler_caller.
703 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
704 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
705 * breakpoint.h: Delete FIXME suggesting get_frame_type.
707 2002-11-18 Klee Dienes <kdienes@apple.com>
709 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
711 2002-11-18 Klee Dienes <kdienes@apple.com>
713 * buildsym.c (pop_context): Add comment.
715 2002-11-18 Klee Dienes <kdienes@apple.com>
717 * buildsym.h (pop_context): Convert to function, defined in
719 * buildsym.c: Include gdb_assert.h.
720 (pop_context): Implement as C function. Add check for stack
722 * dbxread.c (process_one_symbol): Complain and stop processing
723 that symbol if we are already at the top of the context stack for
724 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
725 when processing N_RBRAC.
727 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
729 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
731 (struct target_waitstatus): Add opaque definition.
732 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
733 * exec.c (init_exec_ops): Likewise.
734 * fork-child.c (clone_and_follow_inferior): Remove.
735 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
736 * inferior.h (clone_and_follow_inferior): Remove prototype.
737 * infrun.c (follow_fork_mode_both): Remove.
738 (follow_fork_mode_kind_names): Remove commented out "both".
739 (follow_inferior_fork): Remove follow_fork_mode_both support.
740 * inftarg.c (child_clone_and_follow_inferior): Remove.
741 (child_post_follow_inferior_by_clone): Remove.
742 (init_child_ops): Don't set to_clone_and_follow_inferior
743 or to_post_follow_inferior_by_clone.
744 * target.c (default_clone_and_follow_inferior): Remove.
745 (cleanup_target): Don't set to_clone_and_follow_inferior
746 or to_post_follow_inferior_by_clone.
747 (find_default_clone_and_follow_inferior): Remove.
748 (init_dummy_target): Don't set to_clone_and_follow_inferior.
749 (debug_to_clone_and_follow_inferior): Remove.
750 (debug_to_post_follow_inferior_by_clone): Remove.
751 (setup_target_debug): Don't set to_clone_and_follow_inferior
752 or to_post_follow_inferior_by_clone.
753 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
754 and to_post_follow_inferior_by_clone.
755 (child_clone_and_follow_inferior): Remove prototype.
756 (child_post_follow_inferior_by_clone): Remove prototype.
757 (target_clone_and_follow_inferior): Remove macro.
758 (target_post_follow_inferior_by_clone): Remove macro.
759 (find_default_clone_and_follow_inferior): Remove prototype.
761 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
763 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
764 inferior_has_vforked, and inferior_has_execd instead of
765 target_has_forked, target_has_vforked, and target_has_execd.
766 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
767 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
768 (CHILD_WAIT): Define.
769 (child_wait): Add prototype.
770 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
772 (hpux_has_vforked): Likewise, from child_has_vforked.
773 (hpux_has_execd): Likewise, from child_has_execd.
774 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
775 (not_same_real_pid, child_wait): New, copied from inftarg.c.
776 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
777 and hpux_has_syscall_event instead of the target hooks.
778 * infrun.c (inferior_has_forked, inferior_has_vforked)
779 (inferior_has_execd): New functions.
780 * inftarg.c (not_same_real_pid): Remove.
781 (child_wait): Remove references to not_same_real_pid,
782 target_has_forked, target_has_vforked, target_has_execd,
783 and target_has_syscall_event.
784 (child_has_forked, child_has_vforked, child_has_execd)
785 (child_has_syscall_event): Remove.
786 (init_child_ops): Remove references to child_has_forked,
787 child_has_vforked, child_has_execd, and child_has_syscall_event.
788 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
789 (hpux_has_vforked): Likewise, from child_has_vforked.
790 (hpux_has_execd): Likewise, from child_has_execd.
791 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
792 * target.c (cleanup_target): Remove references to
793 to_has_forked, to_has_vforked, to_has_execd, and
794 to_has_syscall_event.
795 (update_current_target): Likewise.
796 (setup_target_debug): Likewise.
797 (debug_to_has_forked): Remove.
798 (debug_to_has_vforked): Remove.
799 (debug_to_has_execd): Remove.
800 (debug_to_has_syscall_event): Remove.
801 * target.h (struct target_ops): Remove to_has_forked.
802 to_has_vforked, to_has_execd, and to_has_syscall_event.
803 (child_has_forked, child_has_vforked, child_has_execd)
804 (child_has_syscall_event): Remove prototypes.
805 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
807 (target_has_forked, target_has_vforked, target_has_execd)
808 (target_has_syscall_event): Remove macros.
810 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
812 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
813 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
814 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
815 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
816 * target.c (cleanup_target): Remove reference to
817 to_can_follow_vfork_prior_to_exec.
818 (update_current_target): Likewise.
819 (debug_to_can_follow_vfork_prior_to_exec): Remove.
820 (setup_target_debug): Remove reference to
821 to_can_follow_vfork_prior_to_exec.
822 * target.h (struct target_ops): Remove
823 to_can_follow_vfork_prior_to_exec.
824 (child_can_follow_vfork_prior_to_exec): Remove prototype.
825 (target_can_follow_vfork_prior_to_exec): Remove definition.
826 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
828 * infrun.c (follow_vfork_when_exec): Remove.
829 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
830 (follow_exec): Likewise.
831 (handle_inferior_event): Likewise.
832 (keep_going): Likewise.
834 2002-11-15 Andrew Cagney <cagney@redhat.com>
836 * frame.c (generic_unwind_get_saved_register): Make static.
837 * frame.h (generic_unwind_get_saved_register): Delete declaration.
838 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
839 defaults to generic_unwind_get_saved_register.
840 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
841 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
842 * frv-tdep.c (frv_gdbarch_init): Ditto.
843 * i386-tdep.c (i386_gdbarch_init): Ditto.
844 * s390-tdep.c (s390_gdbarch_init): Ditto.
845 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
846 * v850-tdep.c (v850_gdbarch_init): Ditto.
847 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
848 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
849 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
851 2002-11-15 Andrew Cagney <cagney@redhat.com>
853 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
856 2002-11-15 Andrew Cagney <cagney@redhat.com>
858 * frame.h (sigtramp_saved_pc): Delete declaration.
859 * blockframe.c (sigtramp_saved_pc): Delete function.
860 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
861 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
862 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
863 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
865 2002-11-15 Andrew Cagney <ac131313@redhat.com>
867 * frame.c (frame_pc_unwind): New function.
868 (frame_saved_regs_pc_unwind): New function.
869 (frame_register_unwind): Pass unwind_cache instead of
870 register_unwind_cache.
871 (set_unwind_by_pc): Add unwind_pc parameter, set.
872 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
873 (get_prev_frame): Ditto.
874 * frame.h (frame_pc_unwind_ftype): Declare.
875 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
876 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
877 (frame_pc_unwind): Declare.
878 * dummy-frame.c (dummy_frame_pc_unwind): New function.
879 (struct dummy_frame): Add comment mentioning that values are for
881 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
882 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
883 (generic_file_frame_chain_valid): Ditto.
884 * stack.c (frame_info): Ditto.
886 2002-11-15 David Carlton <carlton@math.stanford.edu>
888 * linespec.c (locate_first_half): New function.
889 (decode_line_1): Move code into locate_first_half.
891 2002-11-15 Andrew Cagney <ac131313@redhat.com>
893 * complaints.h: Add comment explaining how to eliminate a
894 deprecated_complain call.
895 * complaints.h: Fix spelling errors.
897 2002-11-15 David Carlton <carlton@math.stanford.edu>
899 * printcmd.c: Remove #include "disasm.h".
901 2002-11-14 Andrew Cagney <ac131313@redhat.com>
903 * frame.h: Move the most relevant interface functions to the start
906 2002-11-14 Andrew Cagney <ac131313@redhat.com>
908 * regcache.h (deprecated_registers): Rename registers.
909 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
910 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
911 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
912 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
913 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
914 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
915 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
916 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
917 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
918 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
919 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
922 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
924 * utils.c (gdb_realpath): Add comment mentioning realpath with a
927 2002-11-13 Andrew Cagney <cagney@redhat.com>
929 * regcache.h (deprecated_read_register_bytes): Rename
931 (deprecated_write_register_bytes): Rename write_register_bytes.
932 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
933 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
934 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
935 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
936 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
937 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
938 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
939 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
940 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
941 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
942 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
943 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
944 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
945 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
947 2002-11-13 Jim Blandy <jimb@redhat.com>
949 * findvar.c (read_var_value): Doc fix.
951 2002-11-13 Andrew Cagney <cagney@redhat.com>
953 * regcache.c (struct regcache): Replace passthough_p with
955 (regcache_xmalloc): Initialize readonly_p.
956 (build_regcache): Initialize readonly_p.
957 (regcache_save): New function.
958 (regcache_restore): New function.
959 (regcache_cpy): Re-implement using regcache_save and
961 (regcache_raw_read): Update.
962 (regcache_cooked_read): When a read-only cache, checked for cached
963 pseudo register values.
964 (regcache_raw_write): Assert that the cache is not read-only.
965 Remove code handling a non-passthrough cache.
966 * regcache.h (regcache_save): Declare.
967 (regcache_restore): Declare.
969 2002-11-13 Andrew Cagney <cagney@redhat.com>
971 * regcache.c (struct regcache_descr): Add fields
972 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
973 (init_legacy_regcache_descr): Compute the size of a cooked
974 register cache and then assign that to sizeof_raw_registers. Set
975 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
976 (init_legacy_regcache_descr): Ditto.
978 2002-11-13 Andrew Cagney <cagney@redhat.com>
980 * regcache.c (register_buffer): Move to near start of file, update
982 (regcache_raw_read): Use.
983 (regcache_raw_write): Use.
984 (struct regcache): Rename raw_registers to registers and
985 raw_register_valid_p to register_valid_p.
986 (regcache_xmalloc): Update.
987 (regcache_xfree): Update.
988 (register_buffer): Update.
989 (regcache_cpy): Update.
990 (regcache_cpy_no_passthrough): Update.
991 (regcache_valid_p): Update.
992 (deprecated_grub_regcache_for_registers): Update.
993 (deprecated_grub_regcache_for_register_valid): Update.
994 (set_register_cached): Update.
995 (regcache_raw_write): Update.
997 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
999 * p-exp.y (name_not_typename): Use copy_name to
1000 set current_type variable for fields of THIS.
1002 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1004 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1005 * monitor.c (init_base_monitor_ops): Likewise.
1006 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1007 * remote-array.c (init_array_ops): Likewise.
1008 * remote-e7000.c (init_e7000_ops): Likewise.
1009 * remote-es.c (init_es1800_ops): Likewise.
1010 (init_es1800_child_ops): Likewise.
1011 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1012 * remote-sim.c (init_gdbsim_ops): Likewise.
1013 * remote-st.c (init_st2000_ops): Likewise.
1014 * sol-thread.c (init_sol_core_ops): Likewise.
1015 (init_sol_thread_ops): Likewise.
1016 * v850ice.c (init_850ice_ops): Likewise.
1017 * win32-nat.c (init_child_ops): Likewise.
1018 * wince.c (init_child_ops): Likewise.
1020 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1022 * utils.c (gdb_realpath): Make rp a constant pointer.
1024 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1026 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1027 a constant buffer; cannonicalize_file_name(); realpath() with a
1028 pathconf() defined buffer, xstrdup().
1030 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1032 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1033 to hang2.C; hang3.c to hang3.C.
1035 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1037 * findvar.c (read_var_value): Reenable TLS code.
1039 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1040 Jim Blandy <jimb@redhat.com>
1042 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1043 * target.c (update_current_target): Add
1044 to_get_thread_local_address.
1045 * target.h (to_get_thread_local_address): Export.
1046 (target_get_thread_local_address): Define.
1047 (target_get_thread_local_address_p): Define.
1048 * thread-db.c: Include solib-svr4.h.
1049 (td_thr_tls_get_addr_p): Define.
1050 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1051 (thread_db_get_thread_local_address): New function.
1052 (init_thread_db_ops): Initialize to_get_thread_local_address.
1053 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1054 * configure: Regenerate.
1055 * config.in: Regenerate.
1057 2002-11-11 David Carlton <carlton@math.stanford.edu>
1059 * linespec.c (set_flags): New function.
1060 (decode_line_1): Move code into set_flags.
1062 2002-11-11 David Carlton <carlton@math.stanford.edu>
1064 * linespec.c (decode_line_1): Move chunks of code to separate
1066 (initialize_defaults): New function.
1067 (decode_indirect): New function.
1069 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1071 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1072 instead of void_code_ptr.
1073 (sigtramp_saved_pc): Ditto.
1075 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1078 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1080 * gdbtypes.h (struct main_type): Move artificial flag out of
1081 loc. New member of ``struct field'' named static_kind. Reduce
1082 overloaded meaning of bitsize.
1083 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1084 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1085 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1087 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1089 (template_to_fixed_record_type, template_to_static_fixed_type)
1090 (to_record_with_fixed_variant_part): Likewise.
1091 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1092 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1093 * dwarfread.c (struct_type, enum_type): Likewise.
1094 * hpread.c (hpread_read_enum_type)
1095 (hpread_read_function_type, hpread_read_doc_function_type)
1096 (hpread_read_struct_type): Likewise.
1097 * mdebugread.c (parse_symbol): Likewise.
1099 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1101 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1102 * stack.c (print_frame_info_base): Update.
1103 (print_frame_info_base, frame_info): Update.
1104 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1105 (sparc_frame_saved_pc): Update.
1106 * ada-lang.c (find_printable_frame): Update.
1107 * breakpoint.c (deprecated_frame_in_dummy): Update.
1109 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1111 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1113 (regmap): Extend to cover all registers.
1114 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1115 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1117 (fetch_register, sore_register): Simplify.
1118 (old_fetch_inferior_registers, old_store_inferior_registers):
1120 (cannot_fetch_register, cannot_store_register): Change
1121 implementation to use regmap array to decide which registers
1122 cannot be fetched/stored. This removes $orig_eax from the
1123 registers that cannot be fetched/stored.
1124 (fetch_inferior_registers): Call fetch_register directly instead
1125 of calling old_fetch_inferior_registers.
1126 (store_inferior_registers): Call store_register directly instead
1127 of calling old_store_inferior_registers.
1128 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1129 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1130 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1132 2002-11-09 Klee Dienes <kdienes@apple.com>
1134 * i387-tdep.c (i387_supply_register): When called with NULL as a
1135 buffer, mark the register as not provided (to mirror the behavior
1136 of supply_register).
1137 (i387_supply_fxsave): Ditto.
1138 (i387_supply_fsave): Ditto (inherits the behavior from
1139 i387_supply_register).
1141 2002-11-09 Klee Dienes <kdienes@apple.com>
1143 * blockframe.c (sigtramp_saved_pc): Use
1144 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1145 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1146 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1148 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1150 * frame.c (get_prev_frame): Test prev_p to identify a previously
1151 unwound frame. Initialize prev_p.
1152 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1155 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1157 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1158 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1159 more comments. Zap dead code.
1161 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1163 * infcmd.c (print_vector_info, print_float_info): Move code that
1164 checks whether the target has any registers and whether there is a
1165 selected frame up, such that it is also used if a target provides
1166 multi-arch definitions of these functions.
1168 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1170 * Makefile.in (DESTDIR): Define.
1171 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1174 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1175 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1177 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1179 * i386-linux-tdep.c: Include "reggroups.h".
1180 (i386_linux_register_reggroup_p): New function.
1181 (i386_linux_init_abi): Set register_reggroup_p to
1182 i386_linux_register_reggroup_p.
1183 * i386-tdep.h (i386_register_reggroup_p): Declare.
1184 * i386-tdep.c: Include "reggroups.h".
1185 (i386_init_reggroups): New function.
1186 (i386_add_reggroups): New function.
1187 (i386_register_reggroup_p): New function.
1188 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1189 (_initialize_i386_tdep): Call i386_init_reggroups.
1190 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1193 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1195 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1196 request that's available in *BSD.
1198 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1200 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1203 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1205 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1206 * dummy-frame.c (find_dummy_frame): Rename
1207 generic_find_dummy_frame, make static. Return the dummy frame
1208 instead of the regcache.
1209 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1210 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1211 (dummy_frame_register_unwind): Rename
1212 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1213 * dummy-frame.h (dummy_frame_register_unwind): Rename
1214 generic_call_dummy_register_unwind.
1216 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1218 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1219 except the inclusion of "i386/tm-i386.h", to...
1220 * config/i386/nm-i386v42mp.h: ...here.
1221 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1223 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1225 * Makefile.in (frame.o): Update dependencies.
1226 * blockframe.c (current_frame, frame_obstack_alloc)
1227 (frame_saved_regs_zalloc, get_current_frame)
1228 (set_current_frame, create_new_frame)
1229 (set_unwind_by_pc, get_next_frame)
1230 (flush_cached_frames, reinit_frame_cache)
1231 (frame_saved_regs_register_unwind)
1232 (deprecated_generic_get_saved_register)
1233 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1234 (_initialize_blockframe): Move frame code from here...
1235 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1236 "annotate.h" and "dummy-frame.h".
1237 (_initialize_frame): New function.
1239 2002-11-08 Jim Blandy <jimb@redhat.com>
1241 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1242 when we finish a function a context.
1243 * buildsym.h (outermost_context_p): New macro.
1244 (Bug analyzed by David Edelsohn.)
1246 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1248 * blockframe.c: Include "dummy-frame.h".
1249 (struct dummy_frame, dummy_frame_stack)
1250 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1251 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1252 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1253 (generic_save_call_dummy_addr, generic_pop_current_frame)
1254 (generic_pop_dummy_frame, generic_fix_call_dummy)
1255 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1256 dummy frame code from here...
1257 * dummy-frame.c: ...to here. New file.
1258 * dummy-frame.h: New file.
1259 (generic_call_dummy_register_unwind): Declare.
1260 (generic_find_dummy_frame): Declare.
1261 * Makefile.in (SFILES): Add dummy-frame.c.
1262 (dummy-frame.o): Specify dependencies.
1263 (dummy_frame_h): Define.
1264 (COMMON_OBS): Add dummy-frame.o.
1265 (blockframe.o): Update dependencies.
1267 2002-11-08 Jim Blandy <jimb@redhat.com>
1269 * dwarf2read.c (read_func_scope): Restore local_symbols and
1270 param_symbols after we finish the function context. (Based on a
1271 patch from David Edelsohn.)
1273 2002-11-08 David Carlton <carlton@math.stanford.edu>
1275 * linespec.c (symbol_found): New function.
1276 (minsym_found): New function.
1277 (decode_line_1): Separate out some code into separate functions.
1279 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1281 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1282 the benefit of the interix target.
1283 * i386-tdep.h (i386_frameless_signal_p): Declare.
1285 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1287 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1288 declaration that snuck in from change below.
1290 2002-11-06 Andrew Cagney <cagney@redhat.com>
1292 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1294 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1295 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1296 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1297 (i386_mxcsr_regnum_p): new function. Use instead of
1299 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1300 (i386_sse_regnum_p): Declare.
1301 (i386_mxcsr_regnum_p): Declare.
1302 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1303 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1304 (IS_FP_REGNUM): Update definition.
1305 (IS_FPU_CTRL_REGNUM): Update definition..
1306 (IS_SSE_REGNUM): Update definition..
1307 * i386v-nat.c (register_u_addr): Update.
1308 * go32-nat.c (fetch_register): Update.
1309 (store_register): Update.
1311 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1313 Preparation work to convert the hppa targets to multiarch partial.
1315 * hppa-tdep.c: Add new functions replacing macro bodies from
1316 config/pa/tm-hppa.h. These function will be used to initialize
1317 the gdbarch structure. Import some comments from tm-hppa.h,
1318 and place them where appropriate, to avoid loosing them when
1319 we cleanup this file.
1320 (hppa_reg_struct_has_addr): New function.
1321 (hppa_inner_than): New function.
1322 (hppa_stack_align): New function.
1323 (hppa_pc_requires_run_before_use): New function.
1324 (hppa_instruction_nullified): New function.
1325 (hppa_register_byte): New function.
1326 (hppa_register_virtual_type): New function.
1327 (hppa_store_struct_return): New function.
1328 (hppa_cannot_store_register): New function.
1329 (hppa_frame_args_address): New function.
1330 (hppa_frame_locals_address): New function.
1331 (hppa_smash_text_address): New function.
1332 (hppa_coerce_float_to_double): New function. Requires the inclusion
1335 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1337 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1338 gdbarch-eligible macro to a call to the new associated function
1339 created in hppa-tdep.c.
1340 (INNER_THAN): Likewise.
1341 (STACK_ALIGN): Likewise.
1342 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1343 (INSTRUCTION_NULLIFIED): Likewise.
1344 (REGISTER_BYTE): Likewise.
1345 (REGISTER_VIRTUAL_TYPE): Likewise.
1346 (STORE_STRUCT_RETURN): Likewise.
1347 (CANNOT_STORE_REGISTER): Likewise.
1348 (FRAME_ARGS_ADDRESS): Likewise.
1349 (FRAME_LOCALS_ADDRESS): Likewise.
1350 (SMASH_TEXT_ADDRESS): Likewise.
1351 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1352 (ABOUT_TO_RETURN): Delete, as no longer used.
1354 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1356 * printcmd.c (disassemble_command): Remove obsolete function.
1357 (_initialize_printcmd): Do not create disassemble command here.
1358 * cli/cli-cmds.c (disassemble_command): New function. Implements
1359 disassemble command.
1360 (init_cli_cmds): Create disassemble command here instead.
1362 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1364 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1366 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1368 * regcache.h (regcache_cooked_read_using_offset_hack)
1369 (regcache_cooked_write_using_offset_hack): Delete declarations.
1370 (register_changed): Delete declaration.
1371 * regcache.c (regcache_cooked_read_using_offset_hack)
1372 (regcache_cooked_write_using_offset_hack): Delete functions.
1373 (cooked_xfer_using_offset_hack): Delete function.
1374 (register_changed): Delete function.
1376 2002-11-07 Jim Blandy <jimb@redhat.com>
1378 * macroscope.c: #include "complaints.h".
1379 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1380 but not in the macro table.
1381 * Makefile.in (macroscope.o): Record dependency.
1383 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1385 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1387 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1389 * regcache.c (deprecated_registers_fetched): Update.
1390 * regcache.h (deprecated_registers_fetched): Rename
1392 * remote-vxsparc.c (vx_read_register): Update.
1393 * remote-vxmips.c (vx_read_register): Update.
1394 * remote-vx68.c (vx_read_register): Update.
1395 * irix5-nat.c (fetch_core_registers): Update.
1396 * mipsm3-nat.c (fetch_inferior_registers): Update.
1397 * sun3-nat.c (fetch_inferior_registers): Update.
1398 * symm-nat.c (fetch_inferior_registers): Update.
1399 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1400 (fetch_core_registers): Update.
1401 (fetch_kcore_registers): Update.
1402 * mips-nat.c (fetch_inferior_registers): Update.
1403 * corelow.c (get_core_registers): Update.
1404 * a68v-nat.c (fetch_inferior_registers): Update.
1406 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1408 Put in place the framework necessary for multiarching the hppa targets.
1409 * hppa-tdep.c (hppa_gdbarch_init): New function.
1410 (hppa_dump_tdep): New function.
1411 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1412 tdep structure dumper.
1413 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1414 until the multi-arching conversion has partially been completed.
1416 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1418 * valops.c (value_assign): Merge lval_register case into
1419 lval_reg_frame_relative. Use frame_register and
1420 regcache_cooked_write instead of get_saved_register and
1421 write_register_bytes. After flushing the register cache, try to
1422 re-select the selected frame.
1424 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1426 * regcache.h (deprecated_register_valid): Rename register_valid.
1427 * regcache.c: Update.
1428 * ia64-aix-nat.c: Update.
1429 * i386gnu-nat.c: Update.
1430 * alpha-nat.c: Update.
1431 * sparc-nat.c: Update.
1432 * lynx-nat.c: Update.
1433 * remote-mips.c: Update.
1435 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1437 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1438 to end of file, to be more consistent with the pratice followed
1441 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1443 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1444 (print_float_info): Print registers in float_reggroup.
1445 (print_vector_info): Print registers in vector_reggroup.
1446 (default_print_registers_info): When all, print registers in
1447 all_reggroup. Otherwize, print registers in general_reggroup.
1448 (registers_info): Rewrite. Add support for register groups.
1451 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1453 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1455 (symtab_symbol_info): Remove eons old ifdeffed out code.
1456 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1459 2002-11-06 Theodore A. Roth <troth@openavr.org>
1461 * c-exp.y: Add missing semi-colons.
1462 * f-exp.y: Add missing semi-colons.
1463 * m2-exp.y: Add missing semi-colons.
1464 * p-exp.y: Add missing semi-colons.
1465 Add empty action to start rule to avoid a type clash error when
1466 building with bison >= 1.50.
1468 2002-11-06 Jim Blandy <jimb@redhat.com>
1470 * macrotab.h (struct macro_source_file): Doc fix.
1472 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1474 * varobj.c (child_exists, cplus_number_of_children): Change
1475 STREQ macro references to strcmp.
1476 (cplus_name_of_child): Change code to handle the fact that
1477 fields are not necessarily contiguous with regards to their
1478 access control. This is a fix for PR gdb/792.
1480 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1482 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1483 * gdbarch.h, gdbarch.c: Regnerate.
1484 * frame.h (frame_register): Declare.
1485 * frame.c (frame_register): New function.
1486 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1487 GET_SAVED_REGISTER, otherwize call
1488 generic_unwind_get_saved_register.
1489 (frame_register_read): Use frame_register instead of
1492 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1494 From Jim Ingham <jingham@apple.com>:
1495 * event-top.c (gdb_disable_readline): New function.
1496 (_initialize_event_loop): Move comment.
1498 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1500 * event-loop.c (start_event_loop): Add comment.
1503 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1505 * infcmd.c (default_print_registers_info): Do not call
1506 PRINT_REGISTER_HOOK.
1508 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1510 * sparc-tdep.c (sparc_print_register_hook): Make static.
1511 (sparc_print_registers_info): New function.
1512 (sparc_do_registers_info): New function.
1513 (sparclet_print_registers_info): New function.
1514 (sparclet_do_registers_info): New function.
1515 (do_sparc_print_registers_info): New function.
1516 (sparc_print_registers): New static function, clone of infcmd.c's
1517 default_print_registers_info.
1518 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1519 (sparclet_do_registers_info): Declare.
1520 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1521 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1523 (sparc_do_registers_info): Declare.
1524 (PRINT_REGISTER_HOOK): Delete macro.
1525 (sparc_print_register_hook): Delete declaration.
1527 2002-11-05 David Carlton <carlton@math.stanford.edu>
1529 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1531 (lookup_symbol_aux_local): New function.
1532 (lookup_symbol_aux_symtabs): New function.
1533 (lookup_symbol_aux_psymtabs): New function.
1535 2002-11-05 David Carlton <carlton@math.stanford.edu>
1537 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1538 previous values of 'objfile' and 'block'.
1540 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1542 * values.c (value_change_enclosing_type): Set
1543 enclosing_type field correctly also for the case where
1544 more memory needs to be allocated.
1546 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1548 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1551 * i387-tdep.c (i387_print_float_info): Replace calls to
1552 register_read and deprecated_read_register_gen with calls to
1553 frame_register_read, and make the necessary adjustments to the
1556 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1558 * gdbarch.sh (register_reggroup_p): Allow default value.
1559 * gdbarch.h, gdbarch.c: Regenerate.
1561 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1563 * regcache.h: Add coment indicating replacements for deprecated
1566 2002-11-02 Andrew Cagney <cagney@redhat.com>
1568 * reggroups.h, reggroups.c: New files.
1569 * regcache.c: Include "reggroups.h".
1570 (enum regcache_dump_what): Add `regcache_dump_groups'.
1571 (regcache_dump): Contract size of the "Type" column. When
1572 specified, dump the register's groups.
1573 (maintenance_print_register_groups): New function.
1574 (_initialize_regcache): Add command `maint print register-groups'.
1575 * Makefile.in (COMMON_OBS): Add reggroups.o
1576 (SFILES): Add reggroups.c.
1577 (reggroups_h): Define.
1578 (regcache.o, gdbarch.o): Update dependencies.
1579 (reggroups.o): Specify dependencies.
1580 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1581 Add opaque declaration for `struct reggroup' in generated .h file.
1582 Include "reggroups.h" in generated .c file.
1583 gdbarch.h, gdbarch.c: Re-generate.
1585 2002-11-02 Andrew Cagney <cagney@redhat.com>
1587 * regcache.h (deprecated_read_register_gen): Rename
1589 (deprecated_write_register_gen): Rename write_register_gen.
1590 * i387-tdep.c: Update.
1591 * x86-64-linux-nat.c: Update
1593 * thread-db.c: Update.
1594 * win32-nat.c: Update.
1595 * mips-tdep.c: Update.
1596 * d10v-tdep.c: Update.
1597 * cris-tdep.c: Update.
1598 * remote-sim.c: Update.
1599 * remote-rdi.c: Update.
1600 * remote-rdp.c: Update.
1603 * blockframe.c: Update.
1604 * x86-64-tdep.c: Update.
1605 * xstormy16-tdep.c: Update.
1606 * sh-tdep.c: Update.
1607 * s390-tdep.c: Update.
1608 * rs6000-tdep.c: Update.
1609 * sparc-tdep.c: Update.
1610 * i386-tdep.c: Update.
1611 * dwarf2cfi.c: Update.
1612 * regcache.c: Update.
1614 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1616 New interix-specific files:
1617 * config/i386/nm-interix.h: New file.
1618 * config/i386/interix.mh: New file.
1619 * config/i386/interix.mt: New file.
1620 * i386-interix-nat.c: New file.
1621 * i386-interix-tdep.c: New file.
1623 2002-11-01 Andrew Cagney <cagney@redhat.com>
1625 * frame.h (deprecated_generic_get_saved_register): Rename
1626 generic_get_saved_register.
1627 * blockframe.c (deprecated_generic_get_saved_register): Update.
1628 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1629 (xstormy16_frame_saved_register): Update.
1630 * sh-tdep.c (sh_gdbarch_init): Update.
1631 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1632 * ia64-tdep.c (ia64_get_saved_register): Update.
1633 * cris-tdep.c (cris_gdbarch_init): Update.
1634 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1635 * arm-tdep.c (arm_gdbarch_init): Update.
1637 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1639 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1641 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1643 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1644 trampolines in sigaction.
1646 2002-10-31 Andrew Cagney <cagney@redhat.com>
1648 * h8300-tdep.c: Include "gdb_assert.h".
1649 (h8300_print_register): Add gdbarch, file and frame parameters.
1650 Use frame_read_unsigned_register to read the register's value.
1651 Use fprintf_filtered to display output.
1652 (h8300_print_registers_info): Replace h8300_do_registers_info.
1653 (h8300_gdbarch_init): Set print_registers_info.
1655 2002-10-31 Andrew Cagney <cagney@redhat.com>
1657 * frame.c (frame_read_unsigned_register): New function.
1658 (frame_read_signed_register): New function.
1659 * frame.h (frame_read_unsigned_register): Declare.
1660 (frame_read_signed_register): Declare.
1662 2002-10-31 Andrew Cagney <cagney@redhat.com>
1664 * h8500-tdep.c (h8500_print_registers_info): New static function,
1665 clone of infcmd.c's default_print_registers_info.
1666 (h8500_do_registers_info): New funtion.
1667 (h8500_print_register_hook): Rename print_register_hook, make
1670 * config/h8500/tm-h8500.h: Update copyright.
1671 (DEPRECATED_DO_REGISTERS_INFO): Define.
1672 (h8500_do_registers_info: Declare.
1673 (PRINT_REGISTER_HOOK): Delete macro.
1674 (print_register_hook): Delete function.
1676 2002-10-31 Andrew Cagney <cagney@redhat.com>
1678 * z8k-tdep.c (z8k_print_register_hook): Make static.
1679 (z8k_print_registers_info): New static function, clone of
1680 infcmd.c's default_print_registers_info.
1681 (z8k_do_registers_info): New function. Wrap
1682 z8k_print_registers_info.
1683 * config/z8k/tm-z8k.h: Update copyright.
1684 (PRINT_REGISTER_HOOK): Delete macro.
1685 (z8k_print_register_hook): Delete declaration.
1686 (DEPRECATED_DO_REGISTERS_INFO): Define.
1687 (z8k_do_registers_info): Declare.
1689 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1691 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1692 as this is already provided by value.h, and was actually causing
1693 a compilation error because of a conflict in parameter type
1694 declaration due to a missing const keyword.
1695 (low_text_segment_addres): Fix a compilation warning.
1697 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1699 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1700 registers without a name.
1701 (mips_linux_cannot_store_register): Don't store registers without
1704 2002-10-28 David Carlton <carlton@math.stanford.edu>
1706 * symtab.c (find_addr_symbol): Delete. (It was already commented
1708 * symtab.h: Delete prototype for find_addr_symbol.
1710 2002-10-26 Andrew Cagney <cagney@redhat.com>
1712 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1714 gdbarch.h, gdbarch.c: Re-generate.
1715 * infcmd.c (default_print_registers_info): Update reference.
1716 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1717 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1718 * sh-tdep.c (sh_gdbarch_init): Ditto.
1719 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1720 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1722 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1724 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1725 cfi_init_extra_frame_info.
1726 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1727 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1729 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1730 target where necessary. Add more comments and remove the ones
1731 that don't provide any useful information.
1733 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1734 deprecated_read_register_dummy with
1735 frame_unwind_unsigned_register.
1737 * i386-tdep.c (i386_extract_struct_value_address): Use
1738 regcache_raw_read_unsigned instead of
1739 regcache_cooked_read_unsigned since we know that the register
1740 we're reading isn't a pseudo register. Rename variable 'val' into
1741 the more descriptive 'addr'.
1743 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1744 (x86_64_push_return_address): Add comment.
1745 (x86_64_pop_frame): Make static.
1746 (examine_argument): Clarify comment.
1747 (x86_64_skip_prologue): Make prolog_expact variable static.
1749 * dwarf2cfi.c: Fix some formatting problems.
1750 (context_cpy, read_encoded_pointer): Clarify comments.
1752 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1753 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1754 i386 target back into x86_64_gdbarch_init. Add some comments and
1755 remove meaningless ones.
1757 2002-10-25 Andrew Cagney <cagney@redhat.com>
1759 * complaints.h (struct deprecated_complaint): Rename `struct
1761 * complaints.c (complain): Update.
1762 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1763 incorrect comment indicating that "symfile.h" was being included
1764 for the `struct complaint' definition.
1765 * remote-vx.c: Update.
1766 * objc-lang.c: Update.
1767 * xcoffread.c: Update.
1769 * mdebugread.c: Update.
1770 * stabsread.c: Update.
1771 * dwarf2read.c: Update.
1772 * dwarfread.c: Update.
1773 * elfread.c: Update.
1774 * coffread.c: Update.
1775 * stabsread.h: Update.
1776 * dbxread.c: Update.
1777 * buildsym.c: Update.
1778 * gdbtypes.c: Update.
1779 * macrotab.c: Update.
1781 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1783 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1784 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1785 (x86_64_init_abi): ...new function.
1787 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1788 * i386v-nat.c: Include "i386-tdep.h".
1790 2002-10-25 Andrew Cagney <cagney@redhat.com>
1792 * gdbtypes.c (address_space_name_to_int): Update.
1793 (address_space_int_to_name): Update.
1794 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1795 multi-arch predicate.
1796 (address_class_name_to_type_flags): Ditto.
1797 * gdbarch.h, gdbarch.c: Re-generate.
1799 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1801 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1803 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1805 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1807 * symtab.h (INIT_SAL): Delete macro.
1809 * symtab.c (init_sal): New function.
1811 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1812 to init_sal function call.
1813 (find_sal_from_funcs_and_line): Ditto.
1814 (all_sals_for_line): Ditto.
1815 * breakpoint.c (create_internal_breakpoint): Ditto.
1816 (create_fork_vfork_event_catchpoint): Ditto.
1817 (create_exec_event_catchpoint): Ditto.
1818 (parse_breakpoint_sals): Ditto.
1819 (watch_command_1): Ditto.
1820 (handle_gnu_4_16_catch_command): Ditto.
1821 (clear_command): Ditto.
1822 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1823 * infcmd.c (run_stack_dummy): Ditto.
1824 * infrun.c (process_event_stop_test): Ditto.
1825 (check_sigtramp2): Ditto.
1826 (step_over_function): Ditto.
1827 * linespec.c (decode_line_2): Ditto.
1828 (decode_line_1): Ditto.
1829 * source.c (line_info): Ditto.
1830 * symtab.c (find_pc_sect_line): Ditto.
1832 2002-10-24 Michal Ludvig <mludvig@suse.cz>
1834 * dwarf2cfi.c (struct context)
1835 (struct context_reg): Moved to dwarf2cfi.h
1836 (context_alloc, frame_state_alloc, context_cpy):
1837 Made extern instead of static, removed prototypes.
1838 * dwarf2cfi.h (struct context)
1839 (struct context_reg): New, moved from dwarf2cfi.c
1840 (context_alloc, frame_state_alloc, context_cpy):
1842 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1843 Changed from static to extern.
1844 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1845 (LINUX_SIGCONTEXT_FP_OFFSET)
1846 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1847 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1848 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1849 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1850 set_gdbarch_*() calls now use x86-64 specific functions
1851 instead of DWARF2 CFI ones.
1852 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1853 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1854 (x86_64_init_extra_frame_info): New prototypes.
1856 2002-10-23 David Carlton <carlton@math.stanford.edu>
1858 * linespec.c: #include "parser-defs.h".
1859 Delete prototype for find_template_name_end.
1860 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1862 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1864 * NEWS: add recent mi fixes.
1865 * varobj.c (struct varobj): Add new "updated" flag.
1866 (new_variable): Default "updated" flag to 0.
1867 (varobj_set_value): Set "updated" flag to 1 if value
1869 (varobj_update): Check varobj "updated" flag before
1870 comparing old and refreshed values. Fix for
1873 2002-10-23 David Carlton <carlton@math.stanford.edu>
1875 * parse.c (parse_exp_1): Use BLOCK_START.
1876 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1878 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1880 2002-10-23 David Carlton <carlton@math.stanford.edu>
1882 * symtab.c: Delete cplusplus_hint.
1883 Delete prototype for find_template_name_end.
1885 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1887 * symtab.h: Update comment.
1889 2002-10-23 Michael Snyder <msnyder@redhat.com>
1891 * printcmd.c (address_info): Restore quotes in output.
1892 * valops.c (value_of_local): Restore quotes in error message.
1894 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1896 * symtab.c (symbol_demangled_name): New function.
1897 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1898 turning most of it into a function.
1899 (symbol_demangled_name): Export.
1901 2002-10-23 Michael Snyder <msnyder@redhat.com>
1903 * valops.c (value_of_local): Restore quotes in error message.
1905 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1907 * symtab.c (symbol_init_language_specific): New function.
1908 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1909 turning most of it into a function.
1910 (symbol_init_language_specific): Export.
1912 2002-10-23 David Carlton <carlton@math.stanford.edu>
1914 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1915 (dwarf_attr_name): Ditto.
1916 (dwarf_type_encoding_name): Ditto.
1917 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1918 (process_die): Handle DW_TAG_namespace,
1919 DW_TAG_imported_declaration, DW_TAG_imported_module.
1920 (read_namespace): New function.
1922 2002-10-22 Joel Brobecker <brobecker@gnat.com>
1924 * configure.in: Define NEW_PROC_API on Interix too.
1925 * configure: Regenerate.
1927 2002-10-21 Joel Brobecker <brobecker@gnat.com>
1929 * configure: Regenerate using the proper version of autoconf.
1931 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1933 * findvar.c (read_var_value): Temporarily disable TLS code, until
1934 complete TLS support is added.
1936 2002-10-21 Jim Blandy <jimb@redhat.com>
1937 Elena Zannoni <ezannoni@redhat.com>
1939 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1940 for thread local storage locations.
1941 (struct symbol): Add objfile field.
1942 (SYMBOL_OBJFILE): Define.
1943 * dwarf2read.c (is_thread_local): New static variable.
1944 (new_symbol): If variable is in thread local fill in address class
1945 and objfile appropriately.
1946 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1948 * printcmd.c (address_info): Print the information for thread
1949 local storage variable.
1950 * findvar.c (read_var_value): In case of thread local variable,
1951 defer to the target vector code to compute address.
1953 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1955 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1956 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1958 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1960 * symtab.h (address_class): Rename
1961 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1962 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1963 * printcmd.c (address_info): Ditto.
1964 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1966 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1968 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1969 DBREG_DRX macro to acces debug registers.
1971 * Makefile.in (i386obsd-tdep.o): New target.
1973 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1974 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1976 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1977 * config/i386/obsd.mt: New file.
1978 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1979 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1980 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1981 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1982 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1983 * i386obsd-tdep.c: New file.
1985 2002-10-19 Adam Fedor <fedor@gnu.org>
1987 * objc-exp.y (name_not_typename): Fix invalid comment.
1989 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1991 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1992 to allocate partial syms and macro byte caches.
1994 2002-10-18 David Carlton <carlton@math.stanford.edu>
1996 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1998 2002-10-18 Adam Fedor <fedor@gnu.org>
2000 * stabsread.c (find_name_end): New function.
2001 (define_symbol): Use it.
2003 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2005 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2006 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2007 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2008 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2010 2002-10-17 David Carlton <carlton@math.stanford.edu>
2012 * symfile.h: Add opaque declaration for struct obstack.
2013 Declare obsavestring to take a const char *.
2014 * symfile.c (obsavestring): Make first argument a const char *.
2016 2002-10-16 Adam Fedor <fedor@gnu.org>
2018 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2019 names when matching breakpoints in current file.
2021 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2023 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2024 (read_tag_pointer_type): Add address class support.
2025 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2026 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2028 * gdbarch.h, gdbarch.c: Regenerate.
2029 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2030 (make_type_with_address_space, recursive_type_dump): Add address
2032 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2033 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2034 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2036 2002-10-16 Klee Dienes <kdienes@apple.com>
2038 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2039 to get the last character of a char[] buffer, not
2040 name[sizeof(vptr_name)-1].
2042 2002-10-14 Adam Fedor <fedor@gnu.org>
2044 * symtab.h: New objc_specific struct.
2045 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2046 (SYMBOL_DEMANGLED_NAME): Likewise.
2048 2002-10-14 Adam Fedor <fedor@gnu.org>
2050 * symfile.c (init_filename_language_table): Add ObjC file extension.
2052 2002-10-14 Adam Fedor <fedor@gnu.org>
2054 * utils.c (puts_filtered_tabular): New function.
2055 (fprintf_symbol_filtered): Get ObjC demangled name.
2056 * defs.h (puts_filtered_tabular): Declared.
2058 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2060 * c-lang.h (c_type_print_varspec_prefix): Delete.
2061 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2062 ``need_post_space'' parameter. Adjust all callers.
2064 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2066 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2067 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2068 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2069 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2071 2002-10-13 Adam Fedor <fedor@gnu.org>
2073 * source.c (print_source_lines): Update comments.
2075 2002-10-13 Adam Fedor <fedor@gnu.org>
2077 * valops.c (value_of_local): New function.
2078 (value_of_this): Use it.
2079 * value.h (value_of_local): Declared.
2081 2002-10-13 Adam Fedor <fedor@gnu.org>
2083 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2084 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2086 2002-10-12 Adam Fedor <fedor@gnu.org>
2088 * language.c (binop_result_type): Add language_objc to case.
2089 (integral_type): Likewise.
2090 (character_type): Likewise.
2091 (string_type): Likewise.
2092 (boolean_type): Likewise.
2093 (structured_type): Likewise.
2094 (binop_type_check): Likewise.
2096 2002-10-11 Adam Fedor <fedor@gnu.org>
2098 * printcmd.c (address_info): Print 'self' for ObjC.
2100 2002-10-11 Adam Fedor <fedor@gnu.org>
2102 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2105 2002-10-11 Adam Fedor <fedor@gnu.org>
2107 * language.h (CAST_IS_CONVERSION): Add language_objc.
2109 2002-10-11 Adam Fedor <fedor@gnu.org>
2111 * defs.h (enum language): Add language_objc.
2113 2002-10-11 Klee Dienes <kdienes@apple.com>
2115 * corefile.c (read_memory_typed_address): New function.
2116 * gdbcore.h (read_memory_typed_address): Add prototype.
2117 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2118 to read a value destined for a CORE_ADDR, not read_memory_integer.
2119 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2120 (f77_get_dynamic_lowerbound): Ditto.
2122 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2124 * utils.c (string_to_core_addr): After turning string into
2125 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2126 which will do necessary sign-extension, etc.
2128 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2130 * c-exp.y (THIS): Delete token and grammar rule.
2131 (yylex): Don't return THIS.
2132 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2133 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2134 * demangle.c (cplus_markers): Update comment. Put '$'
2135 first. Remove CPLUS_MARKER.
2136 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2137 * jv-exp.y (THIS): Delete token and grammar rule.
2138 (yylex): Don't return THIS.
2139 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2140 * objc-exp.y (THIS): Delete token and grammar rule.
2141 (yylex): Don't return THIS.
2142 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2143 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2144 (read_member_functions): Likewise for opname.
2145 (read_tilde_fields): Use is_cplus_marker.
2147 * defs.h (CPLUS_MARKER): Don't define.
2148 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2149 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2150 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2151 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2152 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2154 * config/i386/tm-i386v4.h: Delete file.
2155 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2156 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2157 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2158 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2159 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2160 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2161 * config/i386/i386v4.mt (TM_FILE): Likewise.
2162 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2164 2002-10-10 Marko Mlinar <markom@opencores.org>
2166 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2167 accidentially not commited 2002-10-09
2168 * gdbarch.h, gdbarch.c: Re-generate.
2170 2002-10-09 Marko Mlinar <markom@opencores.org>
2172 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2173 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2174 * gdbarch.h, gdbarch.c: Re-generate.
2176 2002-10-08 Petr Sorfa <petrs@caldera.com>
2178 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2180 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2181 so we can work on more than one compilation unit at a time. This
2182 helps prepare GDB to handle inter-CU die references.
2183 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2184 the code to be defined before struct comp_unit_head.
2185 (comp_unit_head): Added new members - offset, cu_head,
2186 begin_die, next and dwarf2_abbrevs.
2187 (dwarf2_abbrevs): Removed single static var; now member of
2188 struct comp_unit_head.
2189 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2191 (psymtab_to_symtab_1): Changed to work with the new
2192 struct comp_unit_head.
2193 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2194 constructs the dwarf2_abbrevs[] inside the cu_header.
2195 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2196 dwarf2_abbrev table to clean up.
2197 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2198 handling of dwarf2_abbrevs inside the cu_header.
2199 (read_partial_die): Now supports the call to the new
2200 dwarf2_lookup_abbrev.
2201 (read_full_die): Now supports the call to the new
2202 dwarf2_lookup_abbrev.
2204 2002-10-06 Christopher Faylor <cgf@redhat.com>
2206 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2207 insure that shell variables, such as "transformed_name" are propagated
2208 to later shell statements in rule.
2210 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2212 * config/i386/nm-i386sco.h: Add protection against
2213 multiple-inclusion. Include "i386/nm-i386v.h".
2214 (REGISTER_U_ADDR): Remove define.
2215 (i386_register_u_addr): Remove prototype.
2217 2002-10-04 Michael Snyder <msnyder@redhat.com>
2219 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2220 before treating it as a single-step event.
2222 2002-10-03 Adam Fedor <fedor@gnu.org>
2224 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2225 (objc_demangle): Remove assignment in if statements, Replace
2227 (add_msglist): Likewise.
2228 (end_msglist): Likewise.
2229 (complare_selectors): Likewise.
2230 (selectors_info): Likewise.
2231 (compare_classes): Likewise.
2232 (classes_info): Likewise.
2233 (print_object_command): Likewise.
2234 (find_objc_msgcall_submethod): Replace PTR with void *.
2235 * objc-lang.h: Remove check for __STDC__.
2237 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2239 * ui-out.h (ui_out_field_fmt_int): New prototype.
2240 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2241 of field width and alignment.
2242 * stack.c (print_frame_info_base): When printing frame level, use
2243 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2246 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2248 * MAINTAINERS: Add self to Write After Approval list.
2250 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2252 * infcmd.c (interrupt_target_command_wrapper): Delete.
2253 (interrupt_target_command): Make non static.
2254 (nofp_registers_info): Make static.
2255 * stack.c (return_command_wrapper): Delete.
2256 (return_command): Make non static.
2258 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2260 * event-top.c (gdb_setup_readline): New function. Code moved from
2261 _initialize_event_loop().
2262 (_initialize_event_loop): Call gdb_setup_readline().
2264 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2266 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2267 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2268 * gdbarch.h, gdbarch.c: Re-generate.
2270 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2273 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2275 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2276 of fill_in_vptr_fieldno.
2278 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2280 * inferior.h (registers_info, stepi_command, nexti_command,
2281 continue_command, interrupt_target_command): Export from infcmd.c.
2282 * frame.h (args_info, selected_frame_level_changed_hook,
2283 return_command): Export from stack.c.
2284 * v850ice.c (stepi_command, nexti_command, continue_command): use
2285 prototypes from inferior.h.
2286 * tracepoint.c (registers_info, args_info, locals_info): Use
2287 prototypes from frame.h and inferior.h.
2288 * Makefile.in (mi-main.o): Add dependency on frame.h.
2290 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2292 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2293 value in register 3 adjusted by ppc_gp0_regnum.
2295 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2297 2002-10-02 Marko Mlinar <markom@opencores.org>
2299 * MAINTAINERS: Add myself to the Write After Approval list.
2301 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2303 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2304 of the section for the N64 ABI, fixed.
2306 * config/mips/tm-irix6.h: Include solib.h.
2308 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2310 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2313 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2315 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2316 and that "mi0" syntax has been removed.
2318 2002-09-30 David Carlton <carlton@math.stanford.edu>
2320 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2321 * ppc-sysv-tdep.c: #include "gdb_string.h".
2322 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2325 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2327 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2328 "vrsave"'s register number.
2330 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2332 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2333 use frame_unwind_signed_register to obtain the PC.
2334 (mips_frame_chain): Handle a generic dummy frame.
2335 (mips_init_extra_frame_info): When a generic dummy frame, don't
2336 re-compute the frame base.
2337 (mips_pop_frame): Handle generic dummy frames.
2338 (mips_gdbarch_init): When generic dummy frames, set
2339 use_generic_dummy_frames, push_dummy_frame to
2340 generic_push_dummy_frame, pc_in_call_dummy to
2341 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2342 generic_save_dummy_frame_tos.
2344 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2346 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2347 against TOP when TOP was explictly set.
2348 (generic_push_dummy_frame): Set TOP to zero.
2350 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2352 * event-loop.c (start_event_loop): Rename variable 'result' to
2353 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2355 2002-09-30 Keith Seitz <keiths@redhat.com>
2357 * gdb-events.sh (selected_thread_changed): New event.
2358 * gdb-events.c: Regenerated.
2359 * gdb-events.h: Regenerated.
2361 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2363 * MAINTAINERS: Add self to Write After Approval list.
2365 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2367 * disasm.c: New file.
2368 * disasm.h: New file.
2369 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2370 (compare_lines): Ditto.
2371 (dump_insns): Ditto.
2372 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2374 (do_assembly_only): Ditto.
2375 (do_disassembly): Renamed to gdb_disassembly and moved to
2376 disasm.c. Sdded uiout argument.
2377 * Makefile.in: Add new files. Reorder SFILES list. Update
2378 dependencies. Include libgdb.a later in the insight executable.
2380 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2382 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2383 bfd/elf64-alpha-fbsd.c.
2385 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2387 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2390 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2392 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2394 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2396 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2397 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2398 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2399 (S_msg_sig_post_reply): Ditto.
2401 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2403 * sh-tdep.c (sh_use_struct_convention): Use definition according
2405 (sh_push_arguments): Store in register with correct endianess.
2406 (sh_default_store_return_value): Ditto.
2407 (sh_gdbarch_init): Set sizeof long double to 8.
2409 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2411 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2412 Fix some whitespace problems.
2414 2002-09-27 David Carlton <carlton@math.stanford.edu>
2416 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2417 (mcore-tdep.o): Ditto.
2418 (ns32k-tdep.o): Ditto.
2419 (ns32knbsd-tdep.o): Ditto.
2421 (vax-tdep.o): Ditto.
2422 * cris-tdep.c: #include "gdb_string.h"
2423 * mcore-tdep.c: Ditto.
2424 * ns32k-tdep.c: Ditto.
2425 * ns32knbsd-tdep.c: Ditto.
2427 * vax-tdep.c: Ditto.
2429 2002-09-27 David Carlton <carlton@math.stanford.edu>
2431 * config/djgpp/fnchange.lst: Add entries for
2432 gdb/testsuite/gdb.c++/m-static files.
2434 2002-09-27 Jim Wilson <wilson@redhat.com>
2436 * MAINTAINERS: Add myself to the Write After Approval list.
2438 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2440 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2443 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2445 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2448 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2450 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2451 (rs6000_struct_return_address): Delete variable.
2452 (rs6000_store_struct_return): Update.
2453 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2454 deprecated_extract_struct_value_address.
2455 (rs6000_frame_align): New function.
2456 (rs6000_gdbarch_init): Set frame_align.
2458 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2460 From Grace Sainsbury <graces@redhat.com>:
2461 * Makefile.in (gdbtk-main.o): New target.
2462 (gdb.o): New target.
2464 (main.o): Update dependencies.
2465 (gdb$(EXEEXT)): Add gdb.o.
2466 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2467 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2468 (SUBDIR_GDBTK_CLEAN): Set.
2469 (install-gdbtk): Install the insight binary.
2470 (uninstall-gdbtk): New target.
2471 (all-gdbtk, clean-gdbtk): New rule.
2472 * top.c (use_windows): Default to zero.
2473 * main.c: Include "main.h".
2475 (struct captured_main_args): Delete.
2476 (gdb_main): New function.
2480 2002-09-25 Andrew Cagney <cagney@redhat.com>
2482 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2483 (frame_map_regnum_to_name): New function.
2484 (frame_map_name_to_regnum): New function.
2485 * frame.h (frame_map_name_to_regnum): Declare.
2486 (frame_map_regnum_to_name): Declare.
2487 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2488 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2489 * parse.c: Do not include "builtin-regs.h".
2490 (target_map_name_to_register): Delete function.
2491 (write_dollar_variable): Use frame_map_name_to_regnum.
2492 * parser-defs.h (target_map_name_to_register): Delete declaration.
2493 * expprint.c: Include "frame.h".
2494 (print_subexp): Use frame_map_regnum_to_name.
2495 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2496 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2498 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2500 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2501 wasn't saved, and the next innermost frame is a dummy, return the
2502 dummy frame's link register.
2504 2002-09-24 Jim Blandy <jimb@redhat.com>
2506 Fix from Paul Breed:
2507 * main.c (captured_main): Add a `break' after the case for 'b'.
2509 2002-09-24 Keith Seitz <keiths@redhat.com>
2511 * varobj.c (c_type_of_child): Use get_target_type instead
2512 of TYPE_TARGET_TYPE.
2514 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2516 * source.c (get_current_or_default_source_symtab_and_line): Remove
2518 (set_default_source_symtab_and_line): New function. Attempts to
2519 determine a source file to list lines from if one is not currently
2521 (get_current_source_symtab_and_line): Initialize sal.pc and
2523 (set_current_source_symtab_and_line): Mark argument as const.
2524 * source.h: Update declarations and comments.
2525 * linespec.c (decode_line_1): Replace call to removed routine above.
2526 * stack.c (print_frame_info_base): Ditto.
2527 * cli/cli-cmds.c (edit_command): Ditto.
2528 (list_command): Ditto.
2530 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2532 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2533 sal.pc and sal.end fields.
2534 (get_current_or_default_source_symtab_and_line): Ditto.
2535 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2536 so we do not cause a new source symtab to be searched for (reverting an
2537 unintentional change from the 2002-09-20 patch).
2538 * scm-lang.c (scm_unpac): Ditto.
2540 2002-09-21 Andrew Cagney <cagney@redhat.com>
2542 * complaints.c (symfile_explanations): Remove new-line from
2543 ``isolated_message''.
2544 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2545 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2547 2002-09-20 Nick Clifton <nickc@redhat.com>
2549 * NEWS: Announce that V850EA ISA is no longer supported.
2550 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2552 2002-09-20 David Carlton <carlton@math.stanford.edu>
2554 * Makefile.in (c-lang.o): Correct dependencies.
2555 (utils.o): Gather dependencies.
2557 * c-lang.c: #include "gdb_string.h"
2559 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2561 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2562 * cli/cli-cmds.c (list_command): New function. Implements the new
2564 (_init_cli_cmds): Add new command definition.
2565 * gdb.1: Document edit command.
2566 * doc/gdb.texinfo: Document edit command.
2568 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2570 * source.c: Make global variables current_source_symtab and
2571 current_source_line static.
2572 (list_command): Moved to cli/cli-cmds.c.
2573 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2574 (get_first_line_listed): New accessor function.
2575 (get_lines_to_list): New accessor function.
2576 (get_current_source_symtab_and_line): New function. Retrieves the
2577 position in the source code that we consider current.
2578 (get_current_or_default_source_symtab_and_line): New function.
2579 Like the above but attempts to determine a default position if one
2580 is not currently defined.
2581 (set_current_source_symtab_and_line): New function. Sets the source
2582 code position considered current and returns the previously set one.
2583 (clear_current_source_symtab_and_line): Reset stored information about
2584 a current source line.
2585 (_initialize_source): Remove registration for the "list" command and
2587 * source.h: Add declarations for the new functions above.
2588 * symtab.h: Remove declarations for the global variables mentioned
2590 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2591 obtain current source line.
2592 * linespec.c (decode_line_1): Ditto.
2593 * macroscope.c (default_macro_scope): Ditto.
2594 * scm-lang.c (scm_unpac): Ditto.
2595 * stack.c (print_frame_info_base): Ditto.
2596 * symfile.c (clear_symtab_users): Ditto.
2597 * symtab.c (decode_line_spec): Ditto.
2598 * cli/cli-cmds.c (list_command): Moved here from source.c.
2599 (ambiguous_line_spec): Moved here from source.c.
2600 (_init_cli_cmds): Add definition for "list" and its alias.
2601 * Makefile.in: Update dependencies.
2603 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2605 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2606 with what gcc thinks is correct.
2608 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2610 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2611 multiple register push instruction.
2613 2002-09-19 Jim Blandy <jimb@redhat.com>
2615 Add support for distinct host and target character sets.
2616 * charset.c, charset.h: New files.
2617 * c-exp.y: #include "charset.h".
2618 (yylex): Convert character and string literals to the target
2619 character set, before returning them as the semantic value of the
2621 * c-lang.c: #include "charset.h".
2622 (c_emit_char): Use charset-specific methods to recognize
2623 characters with backslash escape forms, to decide which characters
2624 to print literally and which to print using numeric escape
2625 sequences, and to convert target characters to host characters
2627 * utils.c: #include "charset.h".
2628 (no_control_char_error): New function.
2629 (parse_escape): Use charset-specific methods to recognize
2630 backslash escapes, parse `control character' notation, and convert
2631 characters from the host character set to the target character set.
2632 * configure.in: Set the default host character set.
2633 Check where to find iconv, and what its argument types might be.
2634 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2635 * Makefile.in (SFILES): List charset.c.
2636 (COMMON_OBS): List charset.o.
2637 (charset.o): New rule.
2638 (charset_h): New header dependency variable.
2639 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2640 (LIBICONV): New variable, set by configure.
2641 (CLIBS): Include $(LIBICONV) here.
2642 * aclocal.m4, config.in, configure: Regenerated.
2644 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2646 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2649 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2651 * gdb_mbuild.sh: New file.
2653 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2655 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2657 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2659 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2660 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2661 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2662 valops.c, value.h: Revert previous change.
2664 2002-09-18 Michael Snyder <msnyder@redhat.com>
2666 Preliminary support for Objective-C:
2667 * defs.h (language_objc): New enum value.
2668 (puts_filtered_tabular): Declaration only, exported from utils.c.
2669 (skip_quoted): Delete, declared in completer.h.
2670 * c-exp.y: Include completer.h.
2673 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2674 New operator enum values.
2675 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2676 * language.c (binop_result_type): Handle language_objc case.
2677 (integral_type, character_type, string_type, boolean_type,
2678 structured_type, binop_type_check): Ditto.
2679 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2680 (struct objc_specific): Add to general_symbol_info.
2681 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2682 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2683 * parser-defs.h (struct objc_class_str): New struct type.
2684 (start_msglist, end_msglist, add_msglist): Declaration only,
2685 exported from objc-lang.c.
2686 * value.h (value_of_local, value_nsstring,
2687 call_function_by_hand_expecting_type): Exported from valops.c.
2688 * valops.c (find_function_addr): Export.
2689 (call_function_by_hand_expecting_type): New function.
2690 (value_of_local): New function.
2691 * symfile.c (init_filename_language_table): Add ".m" extension
2693 * utils.c (puts_filtered_tabular): New function.
2694 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2695 (set/show demangle): Extend help-string to refer to ObjC.
2696 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2697 * stabsread.c (symbol_reference_defined): Objective-C symbols
2698 may contain colons: make allowances when scanning stabs strings
2700 (objc_find_colon): New function.
2701 * printcmd.c (address_info): If language == objc then print
2702 "self" instead of "this".
2703 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2704 OP_NSSTRING, and OP_SELF.
2705 (prefixify_subexp): Ditto.
2706 * source.c (print_source_lines): Mention objc in comment.
2707 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2710 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2712 * complaints.h: Update copyright.
2713 (struct complaints): Declare.
2714 (struct complaint): Make `message' constant.
2715 (internal_complaint): Declare.
2716 (complaint): Declare.
2717 (complaint_root): Delete declaration.
2718 (symfile_complaints): Delete declaration.
2719 (struct complaints): Add opaque declaration.
2720 (clear_complaints): Add a complaints parameter.
2721 * complaints.c: Update copyright.
2722 (enum complaint_series): Define.
2723 (complaint_root): Delete.
2724 (struct complaints): Define.
2725 (complaint_sentinel, symfile_complaint_book): New variables.
2726 (symfile_explanations, symfile_complaints): New variables.
2728 (get_complaints): New function.
2729 (vcomplaint): New function.
2730 (complaint): New function.
2731 (internal_complaint): New function.
2732 (complain): Call vcomplain with symfile_complaint.
2733 (clear_complaints): Rewrite.
2734 (_initialize_complaints): Use add_setshow_command.
2735 * Makefile.in (complaints.o): Update dependencies.
2736 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2737 to call to clear_complaints.
2738 (new_symfile_objfile, reread_symbols): Ditto.
2739 (oldsyms_complaint): Delete.
2740 (empty_symtab_complaint, unknown_option_complaint): Delete.
2741 (free_named_symtabs): Use complaint instead of complain.
2743 2002-09-18 Michael Snyder <msnyder@redhat.com>
2745 Contributed by Apple Computer, Inc. Merged with current sources
2746 by Adam Fedor <fedor@doc.com> [cagney].
2748 * objc-lang.c: First clean-up round: comments, indentation.
2749 * objc-lang.h: Ditto.
2750 * objc-lang.y: Ditto.
2752 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2754 * maint.c (maintenance_internal_error): Print the parameter as the
2756 (maintenance_internal_warning): New function.
2757 (_initialize_maint_cmds): Add command `maint internal-warning'.
2759 * defs.h (internal_warning, internal_vwarning): Declare.
2760 * utils.c (struct internal_problem): Define.
2761 (internal_vproblem): New function.
2762 (internal_warning): New function.
2763 (internal_vwarning): New function.
2764 (internal_warning_problem, internal_error_problem): New variables.
2765 (internal_verror): Just call internal_vproblem.
2767 2002-09-18 Michael Snyder <msnyder@redhat.com>
2769 * objc-lang.c: New file, support for Objective-C.
2770 Preliminary check-in, not yet integrated into gdb.
2771 * objc-lang.h: New file.
2772 * objc-exp.y: New file.
2774 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2776 * infrun.c (signal_stop_update): Convert definition to ISO C.
2777 (signal_print_update): Ditto.
2778 (signal_pass_update): Ditto.
2779 * inflow.c (terminal_save_ours): Ditto.
2781 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2784 * config/djgpp/fnchange.lst: Handle name clashes between
2785 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2788 * i386-linux-tdep.h: Fix tipo.
2790 2002-09-18 Adam Fedor <fedor@gnu.org>
2792 * MAINTAINERS: Add myself to the Write After Approval list.
2794 2002-09-18 Jim Blandy <jimb@redhat.com>
2796 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2797 texthigh and textlow to reader-specific structs caused
2798 objfile_relocate to miss them. This is fixable, but the work that
2799 the change was supposed to prepare GDB for never got done anyway.
2801 2002-09-18 David Carlton <carlton@math.stanford.edu>
2803 * MAINTAINERS: Alphabetize Write After Approval list.
2805 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2808 * values.c (value_static_field): Call read_var_value.
2810 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2812 * valops.c (hand_function_call): Align the initial stack pointer
2813 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2814 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2816 * mips-tdep.c (mips_frame_align): New function.
2817 (mips_gdbarch_init): Set frame_align.
2818 * gdbarch.sh (FRAME_ALIGN): New method.
2819 * gdbarch.h, gdbarch.c: Re-generate.
2821 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2823 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2826 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2828 * NEWS: Mention that MIPS $fp behavior changed.
2829 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2830 reference to FP_REGNUM.
2831 (mipsnbsd_cannot_store_register): Ditto.
2832 * mips-linux-nat.c: Update copyright.
2833 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2834 (mips_linux_cannot_store_register): Ditto.
2835 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2836 * config/mips/tm-mips.h: Update copyright.
2837 (FP_REGNUM): Delete macro.
2838 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2839 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2840 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2841 (mips_r3041_reg_names, mips_r3051_reg_names)
2842 (mips_r3081_reg_names): Replace "fp" with "".
2845 2002-09-17 Theodore A. Roth <troth@verinet.com>
2847 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2848 generic_read_register_dummy() (PR gdb/703).
2849 (avr_push_return_address): #if 0 out unused vars.
2850 (avr_gdbarch_init): Enable use of avr_push_return_address().
2852 2002-09-17 Michael Snyder <msnyder@redhat.com>
2854 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2855 RTE will take care of it.
2857 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2859 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2860 invalid, return SP_REGNUM.
2862 2002-09-17 Michael Snyder <msnyder@redhat.com>
2864 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2865 point registers without sign extension.
2867 2002-09-17 Andrew Cagney <cagney@redhat.com>
2869 * blockframe.c (deprecated_read_register_dummy): Rename
2870 generic_read_register_dummy.
2871 * frame.c (frame_unwind_signed_register): New function.
2872 (frame_unwind_unsigned_register): New function.
2873 * frame.h (frame_unwind_signed_register): Declare.
2874 (frame_unwind_unsigned_register): Declare.
2875 (deprecated_read_register_dummy): Rename
2876 generic_read_register_dummy.
2878 * h8300-tdep.c (h8300_frame_chain): Update.
2879 (h8300_frame_saved_pc): Update.
2880 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2881 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2882 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2883 (s390_frame_chain): Update.
2884 * v850-tdep.c (v850_find_callers_reg): Update.
2885 (v850_frame_saved_pc): Update.
2886 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2887 (m32r_find_callers_reg): Update.
2888 (m32r_frame_saved_pc): Update.
2889 * sh-tdep.c (sh_find_callers_reg): Update.
2890 (sh64_get_saved_pr): Update.
2891 (sh_init_extra_frame_info): Update.
2892 (sh_init_extra_frame_info): Update.
2893 (sh64_init_extra_frame_info): Update.
2894 (sh64_init_extra_frame_info): Update.
2895 * mcore-tdep.c (mcore_find_callers_reg): Update.
2896 (mcore_frame_saved_pc): Update.
2897 (mcore_init_extra_frame_info): Update.
2898 * i386-tdep.c (i386_frame_saved_pc): Update.
2899 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2900 (ia64_init_extra_frame_info): Update.
2901 (ia64_init_extra_frame_info): Update.
2902 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2903 * cris-tdep.c (cris_init_extra_frame_info): Update.
2904 * avr-tdep.c (avr_frame_chain): Update.
2905 (avr_init_extra_frame_info): Update.
2906 (avr_frame_saved_pc): Update.
2907 * arm-tdep.c (arm_find_callers_reg): Update.
2908 (arm_init_extra_frame_info): Update.
2909 (arm_frame_saved_pc): Update.
2911 2002-09-17 Tom Tromey <tromey@redhat.com>
2913 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2916 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2918 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2919 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2921 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2924 2002-09-16 Joel Brobecker <brobecker@gnat.com>
2926 * osfsolib.c: Remove file, replaced by solib-osf.c.
2927 * Makefile.in: Remove compilation rules for osfsolib.c.
2929 2002-09-16 David Carlton <carlton@math.stanford.edu>
2931 * cp-valprint.c (cp_print_class_method): Correct args to
2932 check_stub_method_group.
2934 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
2936 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2937 `set architecture'. Unify naming convention of functions.
2938 (h8300_skip_prologue): Improve prologue analysis.
2939 (h8300_push_arguments): Rewritten to more closely match GCC's
2940 bizarre argument-passing behavior, along with the comment describing
2942 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2943 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2944 sim, remote-e7000.c, remote-hms.c and remote.c
2946 2002-09-15 Mark Kettenis <kettenis@gnu.org>
2948 * i386-tdep.c (gdb_print_insn_i386): Removed.
2949 (i386_print_insn): New function.
2950 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2951 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2954 2002-09-14 Mark Kettenis <kettenis@gnu.org>
2956 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2959 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
2961 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2962 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2963 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2965 2002-09-13 Christopher Faylor <cgf@redhat.com>
2967 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2969 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
2971 * gdbtypes.c (check_stub_method): Make static.
2972 (check_stub_method_group): New function.
2973 * gdbtypes.h: Update prototypes.
2974 * cp-support.c: New file.
2975 * cp-support.h: New file.
2977 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2978 (update_method_name_from_physname): New function.
2979 (read_member_functions): Correct method names for operators
2980 and v3 constructors/destructors. Separate v2 constructors and
2982 * Makefile.in (stabsread.o): Update dependencies.
2983 (SFILES): Add cp-support.c.
2984 (COMMON_OBS): Add cp-support.o.
2985 (cp_support_h, cp-support.o): Add.
2987 * cp-valprint.c (cp_print_class_method): Call
2988 check_stub_method_group instead of check_stub_method. Remove
2990 * p-valprint.c (pascal_object_print_class_method): Likewise.
2991 * valops.c (search_struct_method): Likewise.
2992 (find_method_list, value_struct_elt_for_reference): Likewise.
2994 2002-09-13 Andrew Cagney <cagney@redhat.com>
2996 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2997 * gdbarch.h, gdbarch.c: Regenerate.
2999 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3001 * frame.c (find_saved_register): Delete function.
3002 * frame.h (find_saved_register): Delete declaration.
3005 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3007 * mips-tdep.c (read_next_frame_reg): Re-hack using
3008 frame_register_unwind.
3010 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3012 * mips-tdep.c (mips_get_saved_register): Re-hack using
3013 frame_register_unwind.
3015 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3017 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3018 vector. Will be useful for Interix.
3019 * gdbarch.h, gdbarch.c: Regenerate.
3021 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3022 name of the malloc function by NAME_OF_MALLOC.
3024 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3026 * value.h (find_function_in_inferior): Add const keyword to
3027 one of the parameters. Allows us to invoke this function with
3029 * valops.c (find_function_in_inferior): Likewise.
3031 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3033 * exec.c (xfer_memory): Fix compilation warning with old versions
3035 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3037 2002-09-12 David Carlton <carlton@math.stanford.edu>
3039 * symtab.h: Run through gdb_indent.h.
3040 Add 2002 to Copyright year list.
3042 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3044 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3046 * MAINTAINERS: Add myself to write after approval list.
3048 2002-09-11 J. Brobecker <brobecker@gnat.com>
3050 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3052 2002-09-11 J. Brobecker <brobecker@gnat.com>
3054 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3057 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3059 * procfs.c (do_detach): Clear current signal, not just fault.
3060 Corrects problem with breakpoint trap signal leaking to detached
3063 2002-09-10 Michael Snyder <msnyder@redhat.com>
3065 * buildsym.c (finish_block): Protect against null pointer.
3067 2002-09-10 Andrew Cagney <cagney@redhat.com>
3069 * infcmd.c (default_print_registers_info): Send all output to
3070 ``file'' instead of ``gdb_stdout''.
3072 2002-09-10 Michael Snyder <msnyder@redhat.com>
3074 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3075 LONGEST, and use signed register read (addresses are sign-
3078 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3080 * event-loop.c (gdb_do_one_event): Make public.
3081 * event-loop.h (gdb_do_one_event): Declare.
3083 2002-09-10 Jeff Law <law@redhat.com>
3085 * infttrace.c (child_resume): Simplify and rework to avoid
3088 2002-09-09 Fred Fish <fnf@intrinsity.com>
3090 * printcmd.c (print_scalar_formatted): "len" is the number of
3091 target bytes, NOT the number of target bits.
3093 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3095 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3096 * top.c (init_main): Set rl_terminal_name.
3098 2002-09-08 Aidan Skinner <aidan@velvet.net>
3100 * ada-lang.c (ada_array_bound, ada_type_match,
3101 _initialize_ada_language): Fix K&R definitions.
3102 * ada-tasks.c (get_current_task): Fix K&R definitions.
3103 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3105 2002-09-07 Christopher Faylor <cgf@redhat.com>
3107 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3110 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3112 * i386-tdep.c (i386_register_virtual_type,
3113 i386_register_convertible, i386_register_convert_to_virtual,
3114 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3115 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3116 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3117 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3118 Don't set push_arguments twice.
3120 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3121 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3122 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3123 sigtramp_end to NULL.
3124 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3126 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3128 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3131 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3132 * gdbarch.h, gdbarch.c: Re-generate.
3133 * blockframe.c (find_pc_sect_partial_function): Convert to use
3134 SIGTRAMP_START_P predicate.
3136 2002-09-05 Michael Snyder <msnyder@redhat.com>
3138 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3139 generic_dummy_frame method and old method. Also distinguish
3140 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3141 (arm_extract_return_value): Use new regcache method.
3143 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3144 adjustment that doesn't conform to the ABI.
3145 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3146 saved regcache, not from current regcache.
3148 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3150 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3153 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3155 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3156 if arm_apcs_32 is false.
3158 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3160 GDB 5.3 branch created.
3162 2002-09-03 Theodore A. Roth <troth@verinet.com>
3164 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3165 generic_unwind_get_saved_register.
3167 2002-09-03 David Carlton <carlton@math.stanford.edu>
3169 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3170 argument (PR gdb/653). Update call to smash_to_method_type.
3171 (read_structure_scope): Update call to dwarf2_add_member_fn.
3173 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3175 * x86-64-linux-tdep.c: Include gdb_string.h
3176 * x86-64-linux-nat.c: Ditto.
3178 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3180 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3181 when YYDEBUG is set to 1.
3182 * c-exp.y: Likewise.
3183 * f-exp.y: Likewise.
3184 * jv-exp.y: Likewise.
3185 * m2-exp.y: Likewise.
3186 * p-exp.y: Likewise.
3188 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3190 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3192 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3193 solib_svr4_fetch_link_map_offsets to
3194 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3195 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3196 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3197 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3198 solib-svr4.o, and solib-legacy.o.
3199 * config/i386/tm-nbsd.h: Include solib.h.
3201 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3203 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3204 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3205 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3206 comment noting that this needs its own target configuration.
3207 * config/i386/nbsd.mt: New file.
3208 * config/i386/nbsdaout.mt: Remove.
3209 * config/i386/nbsdelf.mt: Ditto.
3210 * config/i386/tm-nbsdaout.h: Ditto.
3212 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3214 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3215 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3216 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3218 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3219 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3220 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3222 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3224 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3225 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3226 * i386-tdep.h (i386bsd_init_abi): New prototype.
3227 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3228 function declaration.
3229 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3230 for NetBSD-a.out or NetBSD-ELF.
3231 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3232 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3233 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3234 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3236 (i386nbsd_pc_in_sigtramp): New function.
3237 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3238 i386nbsd_pc_in_sigtramp.
3239 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3240 and i386nbsdelf_init_abi OS ABI handlers.
3241 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3242 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3244 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3246 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3247 registers if the target really has them.
3249 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3251 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3254 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3256 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3258 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3259 (alphanbsd_skip_sigtramp_frame): New functions.
3260 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3261 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3262 to alphanbsd_sigcontext_addr.
3264 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3266 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3268 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3269 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3270 nbsd_pc_in_sigtramp.
3271 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3272 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3273 * nbsd-tdep.c: Include gdb_string.h.
3274 (nbsd_pc_in_sigtramp): New function.
3275 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3276 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3277 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3278 ppcnbsd_pc_in_sigtramp.
3279 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3280 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3281 shnbsd_pc_in_sigtramp.
3282 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3283 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3284 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3286 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3288 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3289 watchpoints to NULL.
3290 (insert_breakpoints): set val field of watchpoints if NULL.
3293 2002-08-29 Jim Blandy <jimb@redhat.com>
3295 * symtab.c (lookup_symbol_aux): In the cases where we find a
3296 minimal symbol of an appropriate name and use its address to
3297 select a symtab to read and search, use `name' (as passed to us)
3298 as the demangled name when searching the symtab's global and
3299 static blocks, not the minsym's name.
3301 2002-08-29 Keith Seitz <keiths@redhat.com>
3303 * stack.c (print_frame_info_base): Always set current_source_symtab
3304 and current_source_line.
3306 2002-08-29 Donn Terry <donnte@microsoft.com>
3308 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3310 2002-08-28 Keith Seitz <keiths@redhat.com>
3312 * stack.c (select_frame): Add FIXME concerning selected-frame
3314 (select_frame_command): Send selected-frame-level-changed
3315 event notification, but only if the level actually changed.
3316 (up_silently_base): Add selected-frame-level-changed event
3318 (down_silently_base): Likewise.
3320 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3322 * Makefile.in: Update dependencies for all gdb/*.c files.
3324 2002-08-27 Tom Tromey <tromey@redhat.com>
3326 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3327 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3328 Update dependencies.
3329 * i387-tdep.c: Include gdb_string.h.
3330 * osabi.c: Likewise.
3331 * i386-linux-nat.c: Likewise.
3332 * lin-lwp.c: Likewise.
3333 * ax-gdb.c: Likewise.
3334 * signals/signals.c: Likewise.
3335 * jv-valprint.c: Likewise.
3336 * p-lang.c: Likewise.
3337 * c-valprint.c: Likewise.
3338 * cp-abi.c: Likewise.
3340 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3342 * cli/cli-script.h (copy_command_lines): Export.
3343 * breakpoint.c: Include cli/cli-script.h.
3344 * Makefile.in (breakpoint.o): Update dependencies.
3346 2002-08-26 Michael Snyder <msnyder@redhat.com>
3348 * breakpoint.c (insert_breakpoints): Protect all references
3349 to 'process_warning'. Shorten long lines.
3351 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3353 * cli/cli-script.c (copy_command_lines): New function.
3354 * defs.h (copy_command_lines): Export.
3355 * testsuite/gdb.base/commands.exp: New tests for commands
3356 attached to a temporary breakpoint, and for commands that
3357 delete the breakpoint they are attached to.
3359 2002-08-26 Michael Snyder <msnyder@redhat.com>
3361 * breakpoint.c (bpstat_stop_status): Instead of copying the
3362 pointer to the breakpoint commands struct, make a new copy
3363 of the struct and point to that.
3364 (bpstat_clear): Free the commands struct.
3365 (bpstat_clear_actions): Free the commands struct.
3366 (bpstat_do_actions): Free the command actions. Also execute
3367 the local cleanups, instead of deleting them.
3368 (delete_breakpoint): Leave the commands field of the bpstat
3369 chain alone -- it will be freed later.
3371 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3373 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3374 deleted in 2002-08-20 commit. This function is still used by
3377 2002-08-26 Keith Seitz <keiths@redhat.com>
3379 * gdb-events.sh: Add selected-frame-level-changed event.
3380 * gdb-events.c: Regenerated.
3381 * gdb-events.h: Regenerated.
3383 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3386 * inflow.c (terminal_save_ours): New function to save terminal
3388 * inferior.h (terminal_save_ours): Declare.
3389 * target.c (debug_to_terminal_save_ours): New function.
3390 (cleanup_target): Defaults to_terminal_save_ours.
3391 (update_current_target): Inherit to_terminal_save_ours.
3392 (setup_target_debug): Set to_terminal_save_ours.
3393 * target.h (target_terminal_save_ours): New to save terminal settings.
3394 (target_ops): New member to_terminal_save_ours.
3395 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3396 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3397 * inftarg.c (init_child_ops): Likewise.
3398 * m3-nat.c (init_m3_ops): Likewise.
3399 * procfs.c (init_procfs_ops): Likewise.
3400 * wince.c (init_child_ops): Likewise.
3401 * win32-nat.c (init_child_ops): Likewise.
3402 * sol-thread.c (init_sol_thread_ops): Likewise.
3404 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3406 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3407 use regcache_* functions.
3408 (i386_gdbarch_init): Set store_return_value instead of
3409 deprecated_store_return_value.
3411 * regcache.c (regcache_raw_write_signed,
3412 regcache_raw_write_unsigned): New functions.
3413 * regcache.h (regcache_raw_write_signed,
3414 regcache_raw_write_unsigned): New prototypes.
3416 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3418 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3419 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3420 source file dependencies. Cleanup corresponding generator rules.
3422 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3424 * regcache.h (register_offset_hack): Declare.
3425 (regcache_cooked_read_using_offset_hack): Declare.
3426 (regcache_cooked_write_using_offset_hack): Declare.
3428 * regcache.c (register_offset_hack): New function.
3429 (regcache_cooked_read_using_offset_hack): New function.
3430 (regcache_cooked_write_using_offset_hack): New function.
3431 (regcache_dump): Check that the registers, according to their
3432 offset, are packed hard against each other.
3433 (cooked_xfer_using_offset_hack): New function.
3435 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3437 * regcache.c (struct regcache_descr): Add field register_type.
3438 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3440 (init_regcache_descr): Initialize register_type. Pass the descr
3441 to init_legacy_regcache_descr. Use register_type instead of
3442 REGISTER_VIRTUAL_TYPE.
3443 (register_type): New function.
3444 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3445 * regcache.h (register_type): Declare.
3447 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3449 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3450 instead of deprecated_store_return_value. Fix fallout from
3451 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3453 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3455 * regcache.c (max_register_size): New function.
3456 (init_legacy_regcache_descr): Ensure that max_register_size is
3457 large enough for REGISTER_VIRTUAL_SIZE.
3458 * regcache.h (max_register_size): Declare.
3460 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3462 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3464 (e500_extract_return_value): Change type of valbuf pointer to
3467 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3469 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3472 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3473 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3474 long long) to prevent compiler warning on 64-bit systems.
3476 2002-08-23 Andrew Cagney <cagney@redhat.com>
3478 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3479 (DEPRECATED_STORE_RETURN_VALUE): New method.
3480 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3481 * gdbarch.h, gdbarch.c: Re-generate.
3483 * values.c (set_return_value): Pass current_regcache to
3485 * arch-utils.h (legacy_store_return_value): Declare.
3486 * arch-utils.c (legacy_store_return_value): New function.
3487 (legacy_extract_return_value): Update parameters.
3489 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3491 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3492 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3493 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3494 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3495 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3496 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3497 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3498 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3499 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3500 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3502 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3503 * i386-tdep.c (i386_extract_return_value): Update.
3504 * arch-utils.c (legacy_extract_return_value): Update.
3505 * frv-tdep.c (frv_gdbarch_init): Update.
3506 * cris-tdep.c (cris_gdbarch_init): Update.
3507 * d10v-tdep.c (d10v_gdbarch_init): Update.
3508 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3509 * m68k-tdep.c (m68k_gdbarch_init): Update.
3510 * mcore-tdep.c (mcore_gdbarch_init): Update.
3511 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3512 * s390-tdep.c (s390_gdbarch_init): Update.
3513 * sparc-tdep.c (sparc_gdbarch_init): Update.
3514 * sh-tdep.c (sh_gdbarch_init): Update.
3515 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3516 * v850-tdep.c (v850_gdbarch_init): Update.
3517 * avr-tdep.c (avr_gdbarch_init): Update.
3518 * ia64-tdep.c (ia64_gdbarch_init): Update.
3519 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3520 * vax-tdep.c (vax_gdbarch_init): Update.
3521 * alpha-tdep.c (alpha_gdbarch_init): Update.
3522 * arm-tdep.c (arm_gdbarch_init): Update.
3523 * mips-tdep.c (mips_gdbarch_init): Update.
3524 * i386-tdep.c (i386_gdbarch_init): Update.
3526 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3528 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3529 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3531 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3533 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3536 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3538 * infrun.c (handle_inferior_event): Move a comment outside of a
3539 function call, in order to avoid indent reformatting this part
3540 of the code in an unreadable way.
3542 2002-08-23 Grace Sainsbury <graces@redhat.com>
3544 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3545 when breakpoints fail. Move general breakpoint error messages to
3547 * breakpoint.c (insert_breakpoints): Change warnings when
3548 breakpoints are nto inserted to specify the type. Remove call to
3549 memory_error when hardware breakpoints can't be inserted. Remove
3550 multiple calls to warning so all messages are sent to the user at
3552 (delete_breakpoints): Make insert error messsages more explicit.
3554 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3556 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3557 gdbserver/ChangeLog.
3559 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3561 * i386-tdep.c: Include "objfiles.h".
3562 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3563 skip_trampoline_code.
3564 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3565 (CPLUS_MARKER): Define to '.'.
3567 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3569 (linux_corefile_thread_callback): Increase args->num_notes.
3570 (linux_make_note_section): Initialize thread_args.num_notes, and
3571 use it to determine whether notes for any threads were created.
3573 2002-08-23 Donn Terry <donnte@microsoft.com>
3575 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3576 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3578 (write_with_trace): Conditionalize out the switch branch handling
3579 PCSHOLD if the corresponding macro is not defined. Likewise for
3580 PRSABORT and PRSTOP.
3581 This change will be needed by the Interix port.
3583 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3585 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3586 write_register wherever possible instead of manipulating the
3587 register bytes directly.
3588 Assign VALUE_CONTENTS to a variable and use that.
3589 The GPR numbers are now dependent on the architecture.
3591 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3593 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3595 (skip_prologue): Add support for BookE/e500 instructions.
3596 (e500_extract_return_value): New function.
3597 (frame_get_saved_regs): Add support for saving ev registers and
3599 (e500_store_return_value): New function.
3600 (rs6000_gdbarch_init): Move up default intializations of
3601 deprecated_extract_return_value and store_return_value. Overwrite
3602 init of store_return_value with e500 specific version.
3603 Set extract_return_value for e500.
3605 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3607 * blockframe.c (generic_call_dummy_register_unwind): Use
3608 regcache_cooked_read to catch cases in which the variable is
3609 stored in a pseudo register.
3611 2002-08-22 Andrew Cagney <cagney@redhat.com>
3613 * NEWS: Mention that the i960 has been made obsolete.
3614 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3616 (remote-nrom.o): Obsolete target.
3617 (remote-nindy.o, i960-tdep.o): Ditto.
3618 * remote-nrom.c: Make file obsolete.
3619 * remote-nindy.c, remote-vx960.c: Ditto.
3620 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3621 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3622 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3623 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3624 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3625 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3626 i960-*-vxworks* obsolete.
3627 * MAINTAINERS: Note that the i960 is obsolete.
3629 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3631 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3632 detach to allow reinitialization.
3634 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3636 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3639 2002-08-22 Jim Blandy <jimb@redhat.com>
3641 * coffread.c (coff_symfile_read): Don't try to read the line
3642 number table from disk if the image file doesn't have a symbol
3643 table; we'll never actually look at the info anyway, and Windows
3644 ships DLL's with bogus file offsets for the line number data.
3646 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3648 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3651 2002-08-21 Michael Snyder <msnyder@redhat.com>
3653 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3654 (MSYMBOL_SIZE): Replace macro with function.
3655 (DEFAULT_MIPS_TYPE): Delete unused macro.
3656 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3657 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3659 2002-08-21 Jim Blandy <jimb@redhat.com>
3661 * valops.c (value_cast): Simplify and correct logic for doing a
3662 static cast from a pointer to a base class to a pointer to a
3665 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3667 * infcmd.c (default_print_registers_info): Replace
3669 (registers_info): Use gdbarch_print_registers_info instead of
3671 * inferior.h (default_print_registers_info): Replace
3673 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3674 (DO_REGISTERS_INFO): Change to a predicate function.
3675 * gdbarch.h, gdbarch.c: Regenerate.
3677 2002-08-21 Keith Seitz <keiths@redhat.com>
3679 * gdb-events.sh: Add target-changed event.
3680 * gdb-events.c: Regenerated.
3681 * gdb-events.c: Regenerated.
3682 * valops.c (value_assign): Add target-changed event notification
3683 to inlval_register, lval_memory, and lval_reg_frame_relative.
3685 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3687 * NEWS: Add an entry regarding the improvement of the next/step
3688 operation on Alpha Tru64 multi-processor machines.
3690 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3692 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3694 * Makefile.in: Update all _h macro definitions.
3695 * Makefile.in (install-gdbtk): Move to install section.
3696 (rdi-share/libangsd.a): Move to end of file.
3698 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3700 * frame.c (frame_register_unwind): When a register, set addrp to
3701 the register's byte.
3703 2002-08-20 Michael Snyder <msnyder@redhat.com>
3705 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3706 used locally, so move them from the target machine header to here.
3707 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3708 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3710 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3712 2002-08-20 Andrew Cagney <cagney@redhat.com>
3714 * NEWS: Mention that the Apollo line was made obsolete.
3715 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3716 m68*-hp-hpux* obsolete.
3717 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3718 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3719 * buildsym.c (make_blockvector): Make static.
3720 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3721 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3722 (ALLDEPFILES): Remove dstread.c.
3723 (dstread.o): Obsolete make rule.
3724 * dstread.c: Makefile obsolete.
3726 * config/m68k/hp300hpux.mt: Ditto.
3727 * config/m68k/hp300hpux.mh: Ditto.
3728 * config/m68k/hp300bsd.mt: Ditto.
3729 * config/m68k/hp300bsd.mh: Ditto.
3730 * config/m68k/apollo68b.mt: Ditto.
3731 * config/m68k/apollo68v.mh: Ditto.
3732 * config/m68k/apollo68b.mh: Ditto.
3734 2002-08-20 Michael Snyder <msnyder@redhat.com>
3736 * mips-tdep.c (mips_in_return_stub): Make static.
3737 (mips_gdbarch_init): Set in_solib_return_trampoline.
3738 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3740 2002-08-20 Michael Snyder <msnyder@redhat.com>
3742 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3743 * gdbarch.c, gdbarch.h: Regenerate.
3744 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3746 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3748 2002-08-20 Michael Snyder <msnyder@redhat.com>
3750 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3751 (mips_gdbarch_init): Set skip_trampoline_code,
3752 in_solib_call_trampoline.
3753 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3754 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3756 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3758 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3760 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3761 vector type for ev registers.
3762 (e500_pseudo_register_read): New function.
3763 (e500_pseudo_register_write): New function.
3764 (e500_dwarf2_reg_to_regnum): New function.
3765 (PPC_UISA_NOFP_SPRS): New macro.
3766 (PPC_EV_REGS): New macro.
3767 (PPC_GPRS_PSEUDO_REGS): New macro.
3768 (registers_e500): New register set for e500.
3769 (variants): Add e500 variant.
3770 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3771 before setting architectural dependent variations. Initialize ev
3772 registers numbers. Add case for e500 architecture. Set the
3773 number of pseudo registers.
3775 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3777 * rs6000-tdep.c: Clean up comments.
3779 2002-08-20 Andrew Cagney <cagney@redhat.com>
3781 * h8300-tdep.c: Re-indent file.
3783 2002-08-20 Jim Blandy <jimb@redhat.com>
3785 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3788 2002-08-20 Keith Seitz <keiths@redhat.com>
3790 * breakpoints.c (watch_command_1): Use internal breakpoint
3791 when setting a watchpoint_scope breakpoint.
3793 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3795 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3796 (build_builtin_type_vec64i): Ditto.
3797 (build_builtin_type_vec128): Ditto.
3798 (build_builtin_type_vec128i): Ditto.
3800 2002-08-19 Michael Snyder <msnyder@redhat.com>
3802 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3803 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3804 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3805 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3806 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3807 CALL_DUMMY_ADDRESS): Delete.
3808 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3809 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3810 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3811 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3812 push_return_address.
3813 (mips_register_raw_size, mips_eabi_use_struct_convention,
3814 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3815 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3816 mips_init_extra_frame_info, mips_eabi_push_arguments,
3817 mips_n32n64_push_arguments, mips_push_return_address,
3818 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3819 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3821 2002-08-19 Michael Snyder <msnyder@redhat.com>
3823 * mips-tdep.c (mips_frame_num_args): New function.
3824 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3825 frame_saved_pc, frame_args_address, frame_locals_address,
3826 frame_num_args, and frame_args_skip.
3827 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3828 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3829 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3830 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3832 2002-08-20 Michael Snyder <msnyder@redhat.com>
3834 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3835 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3836 * mips-tdep.c (mips_store_struct_return): New function.
3837 (mips_extract_struct_value_address): New function.
3838 (mips_gdbarch_init): Set store_struct_return and
3839 extract_struct_value_address.
3841 2002-08-20 David Carlton <carlton@math.stanford.edu>
3843 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3844 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3845 (read_file_scope): Check that line_header is nonzero before
3846 decoding macro information.
3848 2002-08-20 Mark Kettenis <kettenis@gnu.org>
3850 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3851 flag the general-purpose registers as floating-point on targets
3852 that don't support the floating-point registers.
3854 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3856 * rs6000-tdep.c (altivec_register_p): Delete.
3857 (rs6000_do_altivec_registers): Delete.
3858 (rs6000_altivec_registers_info): Delete.
3859 (rs6000_do_registers_info): Delete.
3860 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3861 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3863 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3865 * infcmd.c (do_registers_info): Print vector registers in hex
3867 (print_vector_info): Check that printing registers
3869 (print_float_info): Ditto.
3871 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3873 * mips-tdep.c (mips_gdbarch_init): Update.
3874 (mips_o32_extract_return_value): Rewrite.
3875 (mips_o32_store_return_value): Rewrite.
3876 (mips_o32_xfer_return_value): New function.
3877 (mips_xfer_register): Tweak debug print message. Allow for
3878 buf_offset when dumping the value transfered.
3880 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3882 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3883 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3884 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3885 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3886 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3888 2002-08-14 Michael Snyder <msnyder@redhat.com>
3890 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3892 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3894 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3896 (P): New macro to define a register as a pseudo register.
3897 (R, R4, R8, R16, FR32, R64, R0): Updated.
3898 (struct variant): Add new fields for number of pseudo registers
3899 and number of total registers.
3900 (tot_num_registers): New macro replacing....
3901 (num_registers): ...deleted macro.
3902 (num_registers): New function.
3903 (num_pseudo_registers): New function.
3904 (variants): Update all variants to intialize new fields correctly.
3905 Postpone initialization of number of pseudo regs and real regs.
3906 (init_variants): New function.
3907 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3910 2002-08-19 David Carlton <carlton@math.stanford.edu>
3912 * valops.c (search_struct_field): Change error message to treat
3913 return value of 0 from value_static_field as meaning that field is
3915 (value_struct_elt_for_reference): Ditto.
3916 * values.c (value_static_field): Treat an unresolved location the
3917 same as a nonexistent symbol. Fix PR gdb/635.
3918 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3919 enclosed. Fix PR gdb/574.
3920 * MAINTAINERS: Add self to Write After Approval list.
3922 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3924 * mips-tdep.c (mips_xfer_register): New function.
3925 (mips_n32n64_extract_return_value): Rewrite.
3926 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3927 instead of deprecated_extract_return_value.
3929 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3931 * rs6000-tdep.c (TDEP): Delete macro.
3932 (branch_dest): Replace use of TDEP macro with its body.
3933 (rs6000_pop_frame): Ditto.
3934 (rs6000_push_arguments): Ditto.
3935 (rs6000_skip_trampoline_code): Ditto.
3936 (rs6000_frame_saved_pc): Ditto.
3937 (rs6000_frame_chain): Ditto.
3938 (rs6000_register_name): Ditto.
3939 (rs6000_register_byte): Ditto.
3940 (rs6000_register_raw_size): Ditto.
3941 (rs6000_register_virtual_type): Ditto.
3942 (rs6000_register_convertible): Ditto.
3943 (rs6000_convert_from_func_ptr_addr): Ditto.
3945 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
3947 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3949 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3950 MIPS_LINUX_JB_ELEMENT_SIZE.
3951 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3952 for MAX_REGISTER_RAW_SIZE arrays.
3953 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3954 MIPS_LINUX_JB_ELEMENT_SIZE.
3956 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3958 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3960 2002-08-19 Aidan Skinner <aidan@velvet.net>
3962 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3963 ada-valprint.c ada-tasks.c.
3964 (YYFILES): Add ada-exp.y.
3965 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3966 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3967 (ada-exp.tab.o): New target.
3969 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3971 * regcache.c (regcache_xfer_part): New function.
3972 (regcache_raw_read_part): New function.
3973 (regcache_raw_write_part): New function.
3974 (regcache_cooked_read_part): New function.
3975 (regcache_cooked_write_part): New function.
3976 * regcache.h (regcache_raw_read_part): Declare.
3977 (regcache_raw_write_part): Declare.
3978 (regcache_cooked_read_part): Declare.
3979 (regcache_cooked_write_part): Declare.
3981 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
3983 * remote.c (remote_open_1): Add async_p.
3984 (remote_async_open_1): Delete.
3985 (open_remote_target): Delete.
3986 (remote_open, extended_remote_open): Update calls to remote_open_1.
3987 (remote_async_open, extended_remote_async_open): Call
3988 remote_open_1 instead of remote_async_open_1.
3990 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3992 * blockframe.c: Fix a few coding standard violations.
3994 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3996 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3998 * config/i386/tm-i386sco5.h: ... here. File removed.
3999 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4001 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4002 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4003 (TM_FILE): Set to tm-i386.h.
4004 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4005 * config/i386/tm-i386v.h: Remove file.
4006 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4007 instead of "i386/tm-i386v.h".
4008 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4009 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4011 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4012 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4015 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4017 * config/i386/nm-i386v.h: Add protection against
4019 (i386_register_u_addr): Remove prototype.
4020 (register_u_addr): New prototype.
4021 (REGISTER_U_ADDR): Redefine accordingly.
4022 * i386v-nat.c: Improve several comments.
4023 (i386_register_u_addr): Change signature and rename to
4024 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4027 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4029 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4030 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4031 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4032 deprecated_extract_return_value.
4033 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4034 rename mips_o32o64_push_arguments.
4035 (mips_gdbarch_init): Update.
4036 (mips_extract_return_value): Delete.
4037 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4038 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4039 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4040 (mips_n32n64_extract_return_value): Clone
4041 mips_extract_return_value.
4042 (mips_store_return_value): Delete.
4043 (mips_o32_store_return_value): Clone mips_store_return_value.
4044 (mips_o64_store_return_value): Clone mips_store_return_value.
4045 (mips_eabi_store_return_value): Clone mips_store_return_value.
4046 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4048 2002-08-18 Aidan Skinner <aidan@velvet.net>
4050 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4051 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4053 2002-08-18 Aidan Skinner <aidan@velvet.net>
4055 * ada-lang.c: Run through gdb_indent.sh.
4056 * ada-lang.h: Run through gdb_indent.sh.
4057 * ada-tasks.c: Run through gdb_indent.sh.
4058 * ada-typeprint.c: Run through gdb_indent.sh.
4059 * ada-valprint.c: Run through gdb_indent.sh.
4061 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4063 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4066 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4068 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4070 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4071 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4073 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4074 write_register_gen instead of write_register_bytes.
4076 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4077 i[3456]-*-osf1mk* configurations have been made obsolete.
4078 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4079 i[3456]86-*-osf1mk* hosts obsolete.
4080 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4082 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4083 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4084 config/i386/i386m3.mt, config/i386/nm-m3.h,
4085 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4086 config/i386/i386mk.mh, config/i386/i386mk.mt,
4087 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4089 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4090 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4091 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4093 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4095 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4096 (hppa_value_returned_from_stack): Declare.
4097 (hppa_extract_return_value): Declare.
4098 * config/pa/hppa.mt: New file.
4099 * configure.tgt: Recognize hppa*-*-*.
4100 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4102 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4104 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4107 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4109 * top.c (gdb_rl_operate_and_get_next): Make sure
4110 operate-and-get-next functions correctly even when the history
4111 list is completely filled.
4113 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4115 * MAINTAINERS (Target Instruction Set Architectures): Rename
4116 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4117 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4118 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4119 already listed under Host/Native.
4121 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4122 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4125 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4127 * config/ia64/ia64.mt: New file.
4128 * config/alpha/alpha.mt: New file.
4129 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4130 ia64-linux-gnu. Mention that ia64-elf is broken.
4131 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4133 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4135 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4136 generic_func_frame_valid instead of func_frame_valid.
4138 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4140 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4141 procfs appears to be broken when debugging on multi-processor
4142 machines. So enable software single stepping in order to avoid
4143 using the procfs interface to do next/step operations, using
4144 internal breakpoints instead.
4146 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4147 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4148 make this pc address equal to the value it would have if the
4149 system stepping capability was used. Also set a new flag used
4150 to ensure that we don't readjust the PC one more time later.
4152 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4153 address by DECR_PC_AFTER_BREAK when software single step is
4154 in use for this architecture, as this has already been taken
4155 care of in handle_inferior_event().
4157 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4159 * infrun.c (handle_inferior_event): Minor reformatting, to make
4160 a rather long condition expression easier to read.
4162 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4164 * Makefile.in (gdbtk.o): Move to end of file.
4165 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4166 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4167 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4168 (gdbtk-wrapper.o, gdbres.o): Ditto.
4170 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4172 * Makefile.in (copying.o): Separate out compile rule.
4173 (hpux-thread.o, procfs.o, signals.o): Ditto.
4174 (v850ice.o, z8k-tdep.o): Ditto.
4175 (tui-file.o): Move to TUI section.
4176 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4177 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4179 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4181 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4182 skip_trampoline_code, for better namespace-proofing.
4184 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4186 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4188 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4190 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4192 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4193 signal, check whether we hit a breakpoint before checking for a
4194 single step breakpoint. Otherwise, GDB fails to notice that a
4195 breakpoint has been hit when stepping onto a breakpoint.
4197 2002-08-16 Keith Seitz <keiths@redhat.com>
4199 * gdb-events.sh (clear_gdb_event_hooks): New function.
4200 * gdb-events.c: Regenerate.
4201 * gdb-events.h: Regenerate.
4203 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4205 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4206 not_a_sw_breakpoint.
4207 * breakpoint.h (bpstat_stop_status): Add parameter names.
4209 2002-08-16 Grace Sainsbury <graces@redhat.com>
4211 * remote.c (remote_insert_hw_breakpoint)
4212 (remote_remove_hw_breakpoint): Fix calculation of length field
4215 2002-08-15 Michael Snyder <msnyder@redhat.com>
4217 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4218 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4219 (supply_fpregset): Ditto.
4221 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4222 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4223 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4224 (TARGET_READ_SP): Delete.
4225 (DO_REGISTERS_INFO): Delete.
4226 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4228 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4229 from macros to functions.
4231 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4232 (mips_register_convertible, mips_register_convert_to_virtual,
4233 mips_register_convert_to_raw): Make static.
4234 (mips_read_sp): New function.
4235 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4236 (mips_do_registers_info): Make static.
4237 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4238 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4239 (mips_register_convert_from_type, mips_register_convert_to_type):
4241 (mips_gdbarch_init): Set up function_start_offset,
4242 register_virtual_size, pc_in_sigtramp.
4244 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4246 * infcmd.c (vector_info): New function.
4247 (_initialize_infcmd): Add command "info vector".
4248 (print_vector_info): New function.
4250 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4251 * gdbarch.h, gdbarch.c: Regenerate.
4253 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4255 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4256 ``print_all''. Only print vector registers when ``print_all''.
4258 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4260 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4261 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4263 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4264 Add `args' parameter.
4265 * gdbarch.h, gdbarch.c: Regenerate.
4267 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4269 * infcmd.c (float_info): Call print_float_info.
4270 (print_float_info): New function. By default, print the
4271 floating-point registers.
4273 * arch-utils.h (default_print_float_info): Delete declaration.
4274 * arch-utils.c (default_print_float_info): Delete function.
4276 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4278 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4281 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4284 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4285 * configure.host: Make i[3456]86-*-aix host obsolete.
4286 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4287 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4288 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4289 config/i386/xm-i386aix.h: Make files obsolete.
4290 * i386aix-nat.c: Make file obsolete.
4291 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4292 (i386aix-nat.o): Make target obsolete.
4294 * config/i386/nm-gnu.h: Removed.
4295 * config/i386/nm-i386gnu.h: New file.
4296 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4297 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4299 * config/i386/tm-i386gnu.h: ... here. Removed.
4300 * config/i386/xm-i386gnu.h: Removed.
4301 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4302 (NAT_FILE): Set to nm-i386gnu.h.
4303 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4304 * i386-tdep.c: New file.
4305 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4306 (i386gnu-tdep.o): Specify dependencies.
4308 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4310 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4311 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4312 Adjust a few comments to reflect reality a bit closer.
4313 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4314 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4315 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4316 target_insert_watchpoint, target_remove_watchpoint):
4318 * config/i386/nm-i386sco5.h: ... here.
4319 (kernel_u_size): Add prototype. Improve a few comments and add
4320 protection against multiple inclusion.
4322 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4325 * uw-thread.c (SP_ARG0): Define if not already defined.
4326 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4328 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4330 * config/i386/tm-i386.h: Don't include "regcache.h".
4332 * i387-tdep.h (i387_print_float_info): New prototype.
4333 * i387-tdep.c (print_i387_value, print_i387_ext,
4334 print_i387_status_word, print_i387_control_word): Add `struct
4335 ui_file *' argument and use it for output.
4336 (i387_print_float_info): Renamed from i387_float_info. Add
4337 `struct gdbarch *' and `struct ui_file *' arguments and use the
4339 * i386-tdep.c: Include "i387-tdep.h".
4340 (i386_gdbarch_init): Set print_float_info.
4341 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4342 (FLOAT_INFO): Remove define.
4344 2002-08-13 Michael Snyder <msnyder@redhat.com>
4346 * mips-tdep.c (mips_push_arguments): Rename to
4347 mips_eabi_push_arguments, and tune for EABI.
4348 (MIPS_REGS_HAVE_HOME_P): Delete.
4349 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4350 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4351 Delete references to mips_regs_have_home_p.
4353 2002-08-14 Keith Seitz <keiths@redhat.com>
4355 * Makefile.in (install-gdbtk): Create insight plugin directory.
4356 Install plugins.tcl file.
4358 2002-08-14 Keith Seitz <keiths@redhat.com>
4360 * configure.in: Move SUBDIRS to near top of the file so that
4361 --enable options may add things to it.
4362 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4363 * configure: Regenerate.
4365 2002-08-13 Michael Snyder <msnyder@redhat.com>
4367 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4368 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4369 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4371 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4373 * vax-tdep.c (vax_get_saved_register): Delete function.
4374 (vax_gdbarch_init): Update.
4375 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4376 (ns32k_gdbarch_init): Update.
4377 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4378 (alpha_gdbarch_init): Update.
4380 2002-08-13 Andrew Cagney <cagney@redhat.com>
4382 * regcache.c (init_regcache_descr): Overallocate the
4383 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4384 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4386 (set_register_cached): Add range checking assertions. Use
4389 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4391 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4392 numbers for MMX registers.
4394 2002-08-13 Andrew Cagney <cagney@redhat.com>
4396 * i386-tdep.c (i386_gdbarch_init): Use
4397 generic_unwind_get_saved_register.
4399 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4401 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4402 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4404 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4405 Delete. Add comment regarding this now-deleted target method.
4407 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4409 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4410 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4411 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4412 real PC and the page number (if it's within the memory bank window).
4413 (m68hc11_pseudo_register_write): Likewise when saving.
4414 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4415 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4416 (m68hc11_register_raw_size): And use 32-bit for it.
4417 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4418 16K memory bank is used by the prog; also use the virtual pc.
4420 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4422 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4423 (m68hc11_gdbarch_init): Install it in gdbarch.
4424 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4425 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4426 (MSYMBOL_SIZE): New for documentation.
4427 (insn_return_kind): Enum to specify how a function returns.
4428 (frame_extra_info): Cleanup and record the return mode.
4429 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4430 register in address computation.
4431 (m68hc11_get_return_insn): New to obtain the return instruction used
4433 (m68hc11_frame_init_saved_regs): Take into account the return
4434 instruction used by the function for far and interrupt functions.
4435 (m68hc11_init_extra_frame_info): Take into account page register.
4436 (m68hc11_frame_args_address): Adjust according to the return mode.
4437 (show_regs): Print page register only when it's used.
4439 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4441 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4442 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4443 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4445 (m68hc11_register_raw_size): Likewise.
4447 2002-08-13 Andrew Cagney <cagney@redhat.com>
4449 * i386-tdep.c (i386_register_name): Handle mmx registers.
4450 (mmx_regnum_p): New function.
4451 (i386_mmx_names): New array.
4452 (mmx_num_regs): New variable.
4453 (i386_pseudo_register_read): New function.
4454 (i386_pseudo_register_write): New function.
4455 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4457 * regcache.c (regcache_raw_read_unsigned): New function.
4458 (regcache_raw_read_signed): New function.
4459 * regcache.h (regcache_raw_read_unsigned): Declare.
4460 (regcache_raw_read_signed): Declare.
4462 2002-08-13 Andrew Cagney <cagney@redhat.com>
4464 * regcache.c (regcache_raw_read_as_address): Delete function.
4465 (regcache_cooked_read_signed): New function.
4466 (regcache_cooked_read_unsigned): New function.
4467 * regcache.h (regcache_cooked_read_signed): Declare.
4468 (regcache_cooked_read_unsigned): Declare.
4469 (regcache_raw_read_as_address): Delete declaration.
4471 * blockframe.c (generic_read_register_dummy): Use
4472 regcache_cooked_read_unsigned.
4473 * i386-tdep.c (i386_extract_struct_value_address): Use
4474 regcache_cooked_read_unsigned.
4476 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4478 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4479 double sizes according to ELF ABI flags.
4480 (gdbarch_tdep): Record elf_flags.
4482 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4484 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4485 (m6812_prolog): They can appear in 68HC12 function prologue.
4486 (m68hc11_frame_chain): Cleanup.
4488 2002-08-12 Andrew Cagney <cagney@redhat.com>
4490 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4492 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4493 (i386_linux_register_raw_size): Delete function.
4494 (i386_linux_init_abi): Update.
4495 * i386-tdep.c (i386_register_raw_size): Delete function.
4496 (i386_register_byte): Delete function.
4497 (i386_gdbarch_init): Update.
4498 (i386_register_size): Delete array.
4499 (i386_register_offset): Delete array.
4501 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4502 (REGISTER_RAW_SIZE): Delete macro.
4503 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4504 (REGISTER_BYTE): Delete macro.
4506 2002-08-11 Aidan Skinner <aidan@velvet.net>
4508 * ada-lang.c (ada_lookup_partial_symbol)
4509 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4510 prototype names so that grep ^func works properly.
4512 * ada-lang.c (ada_array_element_type)
4513 (ada_lookup_partial_symbol): Fix typos in parameter list.
4515 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4516 Fix prototype names so that grep ^func works properly.
4518 2002-08-10 Andrew Cagney <cagney@redhat.com>
4519 Elena Zannoni <ezannoni@redhat.com>
4520 Martin M. Hunt <hunt@redhat.com>
4522 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4523 (build_builtin_type_vec128i): Set the vector bit.
4524 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4525 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4526 (build_builtin_type_vec64): New function.
4527 (build_builtin_type_vec64i): New function.
4528 (build_gdbtypes): Initialize builtin_type_vec64 and
4529 builtin_type_vec64i.
4531 2002-08-09 Andrew Cagney <cagney@redhat.com>
4533 * regcache.c (regcache_dump): Compare the register offset
4535 * arch-utils.c (generic_register_byte): New function.
4536 * arch-utils.h (generic_register_byte): Declare.
4537 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4538 * gdbarch.h, gdbarch.c: Regenerate.
4540 2002-08-09 Andrew Cagney <cagney@redhat.com>
4542 * regcache.c: Include "gdbcmd.h"
4543 (_initialize_regcache): Add commands "maintenance print
4544 registers", "maintenance print raw-registers" and "maintenance
4545 print cooked-registers".
4546 (enum regcache_dump_what): Define.
4547 (dump_endian_bytes): New function.
4548 (regcache_dump): New function.
4549 (regcache_print): New function.
4550 (maintenance_print_registers): New function.
4551 (maintenance_print_raw_registers): New function.
4552 (maintenance_print_cooked_registers): New function.
4553 * Makefile.in (regcache.o): Update dependencies.
4555 2002-08-09 Michael Snyder <msnyder@redhat.com>
4557 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4558 (mips_push_arguments): Correct some comments. Use paddr_nz
4559 for printing addresses in debug output. Replace static
4560 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4561 (mips_n32n64_push_arguments): New function, cloned from
4562 mips_push_arguments and tuned for the n32/n64 ABI.
4563 (mips_push_register): Buffer needs dynamic allocation.
4564 (mips_print_register): Ditto.
4565 (do_gp_register_row): Ditto.
4566 (mips_store_return_value): Ditto.
4567 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4569 2002-08-09 Don Howard <dhoward@redhat.com>
4571 * memattr.c (mem_info_command): Print special case of upper bound
4572 as max CORE_ADDR + 1.
4574 2002-08-08 Michael Snyder <msnyder@redhat.com>
4576 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4577 returns structs by ref if they're too big to fit in two registers.
4579 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4581 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4583 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4584 mips_find_saved_regs().
4585 (mips_pop_frame): Likewise.
4587 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4589 * blockframe.c (frame_saved_regs_register_unwind): Revise
4590 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4593 2002-08-09 Grace Sainsbury <graces@redhat.com>
4595 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4596 T-packets; the 'a' is not taken as a register number.
4597 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4598 (remote_stopped_data_address): New functions; add to target
4600 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4601 prototypes to match other implementations of this
4602 function. replace integer argument with pointer -- the length
4603 field in the Z-packet is the length of what is pointed to or 1 if
4604 pointer is null. Add to target vector.
4605 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4609 * remote.c (remote_wait): Add support to extract optional
4610 watchpoint information from T-packet. Ignore unrecognized
4611 optional info in T-packet.
4612 (remote_async_wait): Ditto.
4614 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4616 * cli/cli-dump.c: Change fopen modes to use binary open modes
4617 as defined in include/fopen-bin.h throughout.
4619 2002-08-08 Michael Snyder <msnyder@redhat.com>
4621 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4623 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4625 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4626 assertion failure by returning early after a warning.
4628 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4630 * mips-tdep.c (mips_find_saved_regs): Make static.
4631 (mips_frame_init_saved_regs): New function.
4632 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4633 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4634 (mips_find_saved_regs): Delete declaration.
4636 2002-08-08 Grace Sainsbury <graces@redhat.com>
4638 * remote.c (remote_wait, remote_async_wait): Change
4639 thread_num from int to ULONGEST.
4640 (unpack_varlen_hex): Change result parameter from
4641 int * to ULONGEST *.
4643 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4645 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4646 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4648 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4650 2002-08-08 Andrew Cagney <cagney@redhat.com>
4652 * gcore.c (override_derive_stack_segment): Delete variable.
4653 (preempt_derive_stack_segment): Delete function.
4654 (derive_stack_segment): Delete function.
4655 (default_derive_stack_segment): Renamed to derive_stack_segment.
4656 (override_derive_heap_segment): Delete variable.
4657 (preempt_derive_heap_segment): Delete function.
4658 (derive_heap_segment): Delete function.
4659 (default_derive_heap_segment): Rename to derive_heap_segment.
4661 2002-08-06 Michael Snyder <msnyder@redhat.com>
4663 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4664 * mips-tdep.c (mips_EABI_use_struct_convention,
4665 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4666 New functions. (mips_use_struct_convention): Delete.
4667 (mips_gdbarch_init): set use_gdbarch_convention.
4669 2002-08-06 Michael Snyder <msnyder@redhat.com>
4671 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4672 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4673 mips_o32_reg_struct_has_addr): New functions.
4674 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4676 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4678 * regcache.c (pseudo_register): Delete function.
4679 (fetch_register): Delete function.
4680 (store_register): Delete function.
4681 (regcache_raw_read, legacy_read_register_gen): Use
4682 target_fetch_registers instead of fetch_register.
4683 (legacy_write_register_gen, regcache_raw_write): Use
4684 target_store_register instead of store_register.
4685 (write_register_bytes): Ditto.
4687 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4688 (STORE_PSEUDO_REGISTER): Delete.
4689 * gdbarch.h, gdbarch.c: Regenerate.
4691 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4693 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4694 write dump file binary.
4696 2002-08-05 Michael Snyder <msnyder@redhat.com>
4698 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4699 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4700 (mips_gdbarch_init): Set N32 target to be mips64.
4702 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4704 * frame.c (find_saved_register): Break out of loop once saved
4705 register address is found. Don't mention sparc in loop comment
4708 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4710 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4711 mips_default_saved_regsize to 8.
4713 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4715 * gcore.c: Do not include <sys/procfs.h>.
4716 * Makefile.in (gcore.o): Update dependencies.
4718 2002-08-06 Andrew Cagney <cagney@redhat.com>
4720 * configure.tgt: Make arc-*-* obsolete.
4721 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4722 * MAINTAINERS: Make arc-elf obsolete.
4723 * arc-tdep.c: Make file obsolete.
4724 * config/arc/arc.mt: Ditto.
4725 * config/arc/tm-arc.h: Ditto.
4727 2002-08-05 Theodore A. Roth <troth@verinet.com>
4729 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4731 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4733 * mcore-tdep.c (mcore_gdbarch_init): Use
4734 generic_unwind_get_saved_register instead of
4735 generic_get_saved_register.
4736 * v850-tdep.c (v850_gdbarch_init): Ditto.
4737 * frv-tdep.c (frv_gdbarch_init): Ditto.
4738 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4739 * s390-tdep.c (s390_gdbarch_init): Ditto.
4740 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4741 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4742 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4744 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4746 * objfiles.h: Add missing #include "symfile.h"
4748 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4750 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4752 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4753 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4756 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4758 * NEWS: Cleanup and nitpick.
4760 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4762 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4764 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4766 * Makefile.in (gdbtk-bp.o): Update dependencies.
4767 (gdbtk-register.o): Ditto.
4768 (gdbtk-varobj.o): Ditto.
4770 2002-08-03 Andrew Cagney <cagney@redhat.com>
4772 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4773 m68hc11_fetch_pseudo_register.
4774 (m68hc11_pseudo_register_write): Replace
4775 m68hc11_store_pseudo_register.
4776 (m68hc11_gdbarch_init): Update.
4778 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4780 * gdbarch.sh: Include "gdb_string.h".
4781 * gdbarch.c: Regenerate.
4783 * regcache.c: Include "gdb_string.h".
4784 * ax-general.c: Ditto.
4786 * std-regs.c: Ditto.
4787 * fbsd-proc.c: Ditto.
4790 * Makefile.in (regcache.o): Update dependencies.
4791 (thread.o, gdbarch.o): Ditto.
4792 (ax-general.o, gdbarch.o): Ditto.
4793 (varobj.o, std-regs.o): Ditto.
4794 (fbsd-proc.o): Specify dependencies.
4796 2002-08-02 Andrew Cagney <cagney@redhat.com>
4798 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4800 (regcache_cooked_write): Ditto.
4802 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4804 * regcache.c (regcache_cooked_read): New function.
4805 (regcache_cooked_write): New function.
4806 (read_register_gen): Rewrite using regcache_cooked_read.
4807 (write_register_gen): Rewrite using regcache_cooked_write.
4809 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4812 2002-08-02 Andrew Cagney <cagney@redhat.com>
4814 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4815 Replace the architecture methods register_read and register_write.
4816 * gdbarch.h, gdbarch.c: Regenerate.
4817 * regcache.c (init_regcache_descr): Update.
4818 (read_register_gen): Update.
4819 (write_register_gen): Update.
4820 (supply_register): Update comment.
4822 * sh-tdep.c (sh_gdbarch_init): Update.
4823 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4824 `regcache' and `gdbarch' parameters. Make `buffer' a void
4825 pointer. Update code.
4826 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4827 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4828 void pointer. Update code.
4829 (sh64_register_write): Delete.
4830 (sh4_register_read): Delete.
4831 (sh64_register_read): Delete.
4832 (sh4_register_write): Delete.
4833 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4834 void pointer, `to' parameter a void pointer.
4835 (sh_sh64_register_convert_to_raw): Ditto.
4837 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4839 * mips-tdep.c (mips_register_virtual_type): Use architecture
4840 invariant return values.
4842 2002-08-01 Andrew Cagney <cagney@redhat.com>
4844 * linux-proc.c: Include "gdb_string.h".
4845 * Makefile.in (linux-proc.o): Update dependency list.
4847 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4849 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4852 2002-08-01 Grace Sainsbury <graces@redhat.com>
4854 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4855 to_insert_watchpoint, to_remove_watchpoint,
4856 to_stopped_by_watchpoint, to_stopped_data_address,
4857 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4858 target vecctor. Define their corresponding macros so they call
4861 * target.c: Add default and debug versions of for
4862 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4863 to_insert_watchpoint, to_remove_watchpoint,
4864 to_stopped_by_watchpoint, to_stopped_data_address,
4865 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4867 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4869 * mips-tdep.c (mips_register_virtual_type): New function.
4870 (mips_gdbarch_init): Register mips_register_virtual_type()
4871 with gdbarch machinery.
4872 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4873 this file instead of tm-bigmips.h.
4874 (MIPS_REGSIZE): Delete this macro.
4875 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4876 multiarch version in mips-tdep.c will be found.
4878 2002-08-01 Andrew Cagney <cagney@redhat.com>
4880 * NEWS: Menion that CHILL has been made obsolete.
4882 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4883 * stabsread.c (read_range_type): Ditto.
4884 * gdbtypes.h: Ditto.
4885 * language.c (binop_type_check): Ditto.
4886 (binop_result_type): Ditto.
4887 (integral_type): Ditto.
4888 (character_type): Ditto.
4889 (string_type): Ditto.
4890 (boolean_type): Ditto.
4891 (structured_type): Ditto.
4892 (lang_bool_type): Ditto.
4893 (binop_type_check): Ditto.
4894 * language.h (_LANG_chill): Ditto.
4895 * dwarfread.c (set_cu_language): Ditto.
4896 * dwarfread.c (CHILL_PRODUCER): Ditto.
4897 * dwarfread.c (handle_producer): Ditto.
4898 * expression.h (enum exp_opcode): Ditto.
4899 * eval.c: Ditto for comments.
4900 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4901 * expprint.c (print_subexp): Ditto.
4902 (print_subexp): Ditto.
4903 * valops.c (value_cast): Ditto.
4904 (search_struct_field): Ditto.
4905 * value.h (COERCE_VARYING_ARRAY): Ditto.
4906 * symfile.c (init_filename_language_table): Ditto.
4907 (add_psymbol_with_dem_name_to_list): Ditto.
4908 * valarith.c (value_binop): Ditto.
4910 * valops.c (value_slice): Ditto.
4911 * symtab.h (union language_specific): Ditto.
4912 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4913 (SYMBOL_DEMANGLED_NAME): Ditto.
4914 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4915 * defs.h (enum language): Ditto.
4916 * symtab.c (got_symtab): Ditto.
4917 * utils.c (fprintf_symbol_filtered): Ditto.
4919 * ch-typeprint.c: Make file obsolete.
4920 * ch-valprint.c: Make file obsolete.
4921 * ch-lang.h: Make file obsolete.
4922 * ch-exp.c: Make file obsolete.
4923 * ch-lang.c: Make file obsolete.
4925 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4927 (TARGET_FLAGS_TO_PASS): Ditto.
4928 (CHILLFLAGS): Obsolete.
4930 (CHILL_FOR_TARGET): Obsolete.
4931 (CHILL_LIB): Obsolete.
4932 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4934 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4935 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4937 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4940 2002-07-31 Joel Brobecker <brobecker@gnat.com>
4942 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4943 This does not change anything at the moment, but will be helpful
4944 later when full Ada support is integrated.
4946 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4948 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4951 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4953 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4954 and save it in a local variable. Use variable in later test.
4956 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4958 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4959 test. (Thanks to Daniel Jacobowitz.)
4961 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4963 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4964 (mips_abi_strings): Add "n64".
4965 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4967 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4969 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4970 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4972 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4974 * utils.c (host_pointer_to_address, address_to_host_pointer):
4975 Use gdb_assert() instead of explicit call to internal_error().
4977 2002-07-30 Kevin Buettner <kevinb@redhat.com>
4979 * Makefile.in (rs6000-nat.o): Update dependencies.
4981 From Nicholas Duffek:
4982 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4983 (aix-thread.o): New rule.
4984 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4985 * config/powerpc/aix432.mh: New file.
4987 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4989 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4990 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4991 (fetch_core_registers, ppc_linux_supply_gregset)
4992 (ppc_linux_supply_fpregset): New functions.
4993 (ppc_linux_regset_core_fns): New.
4994 (_initialize_ppc_linux_tdep): Call add_core_fns.
4995 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4996 and ppc_linux_supply_gregset.
4997 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4998 (supply_fpregset): Call ppc_linux_supply_fpregset.
4999 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5001 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5003 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5005 * symtab.c (lookup_symbol): Demangle before lowercasing.
5007 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5009 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5011 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5012 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5013 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5014 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5016 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5017 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5018 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5019 (avr-tdep.o, mon960-rom.o): Ditto.
5020 (aout_stabs_gnu_h): Define.
5021 (symtab_h): Remove $(gdb_obstack_h).
5023 2002-07-30 Jim Blandy <jimb@redhat.com>
5025 Patch from David Carlton <carlton@math.stanford.edu>:
5026 * gdbinit.in: Move the `dir' commands that add GDB's own source
5027 directory to the search path to the end, so that the `gdb' source
5028 directory will be searched first.
5030 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5032 * gdb_obstack.h: New file.
5033 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5034 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5035 * objfiles.h: Include "gdb_obstack.h".
5036 * Makefile.in (gdb_obstack_h): Define.
5037 (symtab_h): Add $(gdb_obstack_h).
5038 (objfiles_h): Add $(gdb_obstack_h).
5040 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5041 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5042 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5043 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5044 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5045 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5046 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5047 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5049 * Makefile.in (bcache.o): Update dependencies.
5050 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5051 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5052 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5053 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5054 (stabsread.o, symfile.o, symmisc.o): Ditto.
5055 (symtab.o, typeprint.o, macroexp.o): Ditto.
5056 (macrotab.o, mdebugread.o): Ditto.
5057 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5058 (coff_ecoff_h, aout_aout64_h): Define.
5059 (aout_stabs_gnu_h, libaout_h): Define.
5061 2002-07-29 Andrew Cagney <cagney@redhat.com>
5063 * regcache.c (struct regcache_descr): Rename nr_registers to
5064 nr_cooked_registers. Revise comments describing the structure
5066 (init_regcache_descr): Update.
5067 (init_legacy_regcache_descr): Update.
5068 (read_register_gen, write_register_gen): When a cooked register in
5069 the raw register range, directly access the value from the raw
5072 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5074 * z8k-tdep.c: Do not include "obstack.h".
5075 * h8300-tdep.c, h8500-tdep.c: Ditto.
5076 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5077 * valprint.c, v850-tdep.c: Ditto.
5078 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5079 * mn10200-tdep.c: Ditto.
5081 * Makefile.in (z8k-tdep.o): Update dependencies.
5082 (m68hc11-tdep.o, valprint.o): Ditto.
5083 (v850-tdep.o, d10v-tdep.o): Ditto.
5084 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5085 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5086 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5087 (sh_opc_h, gdb_sim_sh_h): Define.
5088 (elf_sh_h, elf_bfd_h): Define.
5089 (opcode_m68hc11_h): Define.
5090 (OPCODES_SRC, OPCODES_DIR): define.
5091 (OPCODES): Use $(OPCODES_DIR).
5092 (gdb_sim_d10v_h): Rename sim_d10v_h.
5093 (gdb_sim_arm_h): Rename sim_arm_h.
5095 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5097 * utils.c (host_pointer_to_address, address_to_host_pointer):
5098 Change internal_error() message to indicate function responsible
5101 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5103 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5104 calls to local_hex_string_custom().
5106 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5108 * irix5-nat.c: Move IRIX shared library support from here...
5109 * solib-irix.c: ...to here. Revised substantially to work with
5110 generic solib framework.
5112 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5113 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5114 * mips-irix-tdep.c: New file.
5116 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5117 (mips-irix-tdep.o, solib-irix.o): New rules.
5118 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5120 * config/mips/irix6.mt (TDEPFILES): Likewise.
5121 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5123 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5125 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5126 disabled (via ``#if 0'') includes.
5128 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5130 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5131 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5132 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5133 Add support for the fpscr register.
5134 * rs6000-nat.c (regmap, fetch_inferior_registers)
5135 (store_inferior_registers, fetch_core_registers): Likewise.
5137 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5139 * rs6000-nat.c (language.h): Include.
5140 (special_regs): Delete this array.
5141 (regmap): New function.
5142 (fetch_register, store_register): Use regmap() to map gdb
5143 register numbers to ptrace register numbers. Also, use
5144 outputs from regmap() to make decisions regarding type of
5145 ptrace() call to make. In particular, don't compare against
5146 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5147 (fetch_inferior_registers, store_inferior_registers): Where
5148 possible, obtain register numbers from tdep struct. Don't
5149 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5150 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5151 (LAST_UISA_SP_REGNUM): Delete.
5153 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5155 * rs6000-nat.c (ppc-tdep.h): Include.
5156 (fetch_registers, store_register, fetch_core_registers): Don't
5157 access registers[] directly. Instead, use supply_register() or
5158 regcache_collect() as appropriate.
5159 (find_toc_address): Format hex address with local_hex_string().
5161 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5163 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5166 2002-07-24 Tom Tromey <tromey@redhat.com>
5168 * jv-exp.y: Marked all strings with _().
5169 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5171 (MethodInvocation, CastExpression, parse_number, yyerror,
5172 java_type_from_name, push_expression_name, yylex): Typo fixes.
5174 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5176 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5177 (tee_file_flush, tee_file_write, tee_file_fputs)
5178 (tee_file_isatty): New.
5179 * ui-file.h (tee_file_new): Add prototype.
5181 2002-07-24 Aidan Skinner <aidan@velvet.net>
5183 * ada-lang.c: Change k&r style function definitions to prototyped
5185 * ada-typeprint.c: Change k&r style function definitions to prototyped
5187 * ada-valprint.c: Change k&r style function definitions to prototyped
5190 2002-07-24 Andrew Cagney <cagney@redhat.com>
5192 * README: Remove reference to remote-bug.
5193 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5195 (m88k-nat.o): Delete rule.
5196 (m88k-tdep.o): Delete rule.
5197 (remote-bug.o): Delete rule.
5198 * MAINTAINERS: Mark as obsolete.
5199 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5200 * m88k-tdep.c: Make file obsolete.
5201 * config/m88k/m88k.mh: Ditto.
5202 * config/m88k/delta88v4.mh: Ditto.
5203 * config/m88k/delta88v4.mt: Ditto.
5204 * config/m88k/delta88.mt: Ditto.
5205 * config/m88k/delta88.mh: Ditto.
5206 * remote-bug.c: Ditto.
5207 * config/m88k/tm-delta88.h: Ditto.
5208 * config/m88k/nm-delta88v4.h: Ditto.
5209 * config/m88k/xm-delta88.h: Ditto.
5210 * config/m88k/xm-dgux.h: Ditto.
5211 * config/m88k/tm-m88k.h: Ditto.
5212 * config/m88k/nm-m88k.h: Ditto.
5213 * config/m88k/tm-delta88v4.h: Ditto.
5214 * m88k-nat.c: Ditto.
5215 * cxux-nat.c: Ditto.
5216 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5217 and m88*-*-* obsolete.
5218 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5221 2002-07-24 Andrew Cagney <cagney@redhat.com>
5223 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5224 constant. Same for local pointer variables.
5225 (extract_signed_integer): Ditto.
5226 * defs.h (extract_unsigned_integer): Update.
5227 (extract_signed_integer): Update.
5229 2002-07-24 Andrew Cagney <cagney@redhat.com>
5231 * regcache.c (regcache_raw_write): Change buf parameter to a
5232 constant void pointer.
5233 (regcache_raw_read): Change buf parameter to a void pointer.
5234 (legacy_write_register_gen): Change myaddr parameter a constant
5236 (supply_register): Change val parameter to a const void pointer.
5237 * regcache.h (regcache_raw_write): Update declaration.
5238 (regcache_raw_read): Update declaration.
5239 (supply_register): Update declaration.
5241 2002-07-24 Tom Tromey <tromey@redhat.com>
5243 * defs.h (gdb_readline_wrapper): Declare.
5244 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5245 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5246 * top.c (gdb_readline_wrapper): New function.
5247 (command_line_input): Use it.
5249 2002-07-24 Andrew Cagney <cagney@redhat.com>
5251 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5252 regcache_read and regcache_write.
5253 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5254 * regcache.c: Update.
5255 * sh-tdep.c (sh64_push_arguments): Update comment.
5256 (sh_pseudo_register_read): Update.
5257 (sh_pseudo_register_write): Update.
5258 (sh4_register_read): Update.
5259 (sh4_register_write): Update.
5260 (sh64_pseudo_register_read): Update.
5261 (sh64_pseudo_register_write): Update.
5262 (sh64_register_read): Update.
5263 (sh64_register_write): Update.
5264 * i386-tdep.c (i386_extract_return_value): Update.
5265 (i386_extract_struct_value_address): Update.
5266 (i386_extract_return_value): Update.
5267 * blockframe.c (generic_read_register_dummy): Update.
5268 (generic_call_dummy_register_unwind): Update
5269 * infrun.c (write_inferior_status_register): Update.
5271 2002-07-23 Jim Blandy <jimb@redhat.com>
5273 * parser-defs.h (expression_context_pc): Make this extern.
5274 (Thanks to Michael Snyder.)
5276 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5278 GDB 5.2.1 released from 5.2 branch.
5279 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5280 * README: Update to mention 5.2.1.
5282 2002-07-23 Mark Salter <msalter@redhat.com>
5284 * remote.c (remote_read_bytes): Fix check for error.
5286 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5288 * aix-thread.c (language.h): Include.
5289 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5290 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5291 Print newlines at end of debug messages.
5292 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5293 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5295 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5297 * aix-thread.c (ppc-tdep.h): Include.
5298 (special_register_p): New function.
5299 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5300 (store_regs_user_thread): Use register number information from
5301 gdbarch_tdep struct instead of hardcoded offsets relative to
5302 FIRST_UISA_SP_REGNUM.
5303 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5304 special_register_p() instead of using FPLAST_REGNUM and
5305 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5306 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5307 will be MQ's register number.
5309 2002-07-22 Michael Snyder <msnyder@redhat.com>
5311 * aix-thread.c (ops): Rename to aix_thread_ops.
5312 (base_ops): Rename to base_target.
5313 (ops_attach): Rename to aix_thread_attach.
5314 (ops_detach): Rename to aix_thread_detach.
5315 (ops_resume): Rename to aix_thread_detach.
5316 (ops_wait): Rename to aix_thread_wait.
5317 (ops_kill): Rename to aix_thread_kill.
5318 (init_ops): Rename to init_aix_thread_ops.
5319 (ops_fetch_register): Rename to aix_thread_fetch_register.
5320 (ops_store_register): Rename to aix_thread_store_register.
5321 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5322 (ops_thread_alive): Rename to aix_thread_thread_alive.
5323 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5324 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5325 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5326 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5327 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5328 (store_regs_lib): Rename to store_regs_user_thread.
5329 (store_regs_kern): Rename to store_regs_kernel_thread.
5331 2002-07-22 Michael Snyder <msnyder@redhat.com>
5333 * aix-thread.c (ops_prepare_to_store): Eliminate.
5334 (init_ops): Don't initialize ops.prepare_to_store.
5335 (store_regs_kern): Pre-fetch register buffers from child,
5336 because some registers may not be in the cache. Copy
5337 regs from register cache only if they are cached.
5338 (store_regs_lib): Copy regs from register cache only
5340 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5341 fill_gprs64): Ditto.
5343 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5345 * aix-thread.c (gdb_assert.h): Include.
5346 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5347 register sizes (from register cache) match size of buffer holding
5349 (fill_sprs32): Change parameter types to match those in the ptrace()
5351 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5352 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5354 2002-07-22 Michael Snyder <msnyder@redhat.com>
5356 * aix-thread.c (supply_sprs64): Cosmetic change.
5357 (supply_sprs32): Cosmetic change.
5358 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5359 (fill_sprs64): Use regcache_collect instead of read_register.
5360 (store_regs_lib): Use regcache_collect instead of
5361 read_register. Use fill_sprs32 instead of fill_sprs64,
5362 if debugging a 32-bit architecture.
5363 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5364 out of the register cache, instead of passing a pointer into
5365 the register cache directly to ptrace. Use regcache_collect
5366 insteaad of read_register.
5367 (ops_prepare_to_store): Use target_read_registers instead
5368 of read_register_bytes.
5370 2002-07-20 Aidan Skinner <aidan@velvet.net>
5372 * MAINTAINERS: Add self under write after approval.
5374 2002-07-20 Aidan Skinner <aidan@velvet.net>
5376 * ada-tasks.c: Change k&r style function definitions to prototyped
5379 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5381 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5382 * x86-64-tdep.c: Include "objfiles.h".
5383 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5384 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5386 2002-07-17 Michal Ludvig <michal@suse.cz>
5388 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5389 (update_context): Initialise cfa variable.
5391 2002-07-17 Michael Snyder <msnyder@redhat.com>
5393 * aix-thread.c: Shorten some long lines.
5394 Bring comments into line with code spec.
5396 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5398 * infrun.c: Re-indent using gdb_indent.sh.
5400 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5402 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5403 Leave the indentation temporarily untouched, to minimize the diffs.
5405 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5407 * stabsread.c: Make os9k sections of the code obsolete,
5409 * stabsread.h: Make os9k sections of the code obsolete.
5411 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5413 * linux-low.c (regsets_store_inferior_registers): Add free()
5414 at the end of a loop to prevent memory leak.
5415 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5416 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5417 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5419 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5421 2002-07-17 Jim Blandy <jimb@redhat.com>
5423 * macrocmd.c (info_macro_command): Remove newline from error
5426 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5428 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5429 (sh_gdbarch_init): Use it for sh-dsp.
5431 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5433 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5434 64-bit DWARF2 format.
5436 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5438 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5439 <sys/proc.h> when not available.
5441 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5443 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5444 * stabsread.c: Make os9k sections of the code obsolete.
5445 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5446 * config/i386/i386os9k.mt: Make file obsolete.
5447 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5448 (COMMON_OBS): Remove os9kread.o
5449 (SFILES): Remove os9kread.c.
5450 (os9kread.o, remote-os9k.o): Make target obsolete.
5451 * remote-os9k.c: Make file obsolete.
5452 * os9kread.c: Make file obsolete.
5455 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5457 * NEWS: Mention that the FR30 has been made obsolete.
5458 * fr30-tdep.c: Make file obsolete.
5459 * config/fr30/tm-fr30.h: Ditto.
5460 * config/fr30/fr30.mt: Ditto.
5461 * configure.tgt: Make fr30-*-elf obsolete.
5462 * MAINTAINERS: Make fr30-elf obsolete.
5464 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5466 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5467 found is not inside a section.
5469 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5471 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5473 (pdc_realloc): Use xrealloc() instead of realloc().
5475 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5477 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5478 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5479 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5482 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5484 * aix-thread.c (ptrace_check): Eliminate goto.
5485 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5488 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5490 * aix-thread.c (gdbcmd.h): Include.
5491 (DEBUG, DBG, DBG2, dbg): Eliminate.
5492 (debug_aix_thread): New static global.
5493 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5494 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5495 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5496 invocations to DBG and DBG2 macros to test against
5497 ``debug_aix_thread'' and call fprintf_unfiltered().
5498 (_initialize_aix_thread): Add new command "set debug aix-thread".
5500 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5502 From Gerhard Tonn <TON@de.ibm.com>:
5503 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5504 instead of supply_register.
5506 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5508 * dwarf2cfi.c: Include "gdb_assert.h".
5509 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5511 (update_context): Do not use __func__. Add missing ``break''.
5512 (update_context): Do not use __func__.
5514 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5516 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5517 and its setting. Set gdbarch instruction printing functions
5518 directly. For non-rs6000 case use new function
5519 gdb_print_insn_powerpc.
5520 (gdb_print_insn_powerpc): New function.
5522 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5524 * NEWS: Mention that the d30v has been marked obsolete.
5525 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5526 * configure.tgt: Mark d30v-*-* as obsolete.
5527 * d30v-tdep.c: Mark file as obsolete.
5528 * config/d30v/d30v.mt: Ditto.
5529 * config/d30v/tm-d30v.h: Ditto.
5531 2002-07-13 Aidan Skinner <aidan@velvet.net>
5533 * ada-tasks.c (add_task_entry): replace calls to
5534 malloc() with xmalloc
5535 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5537 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5538 ada_finish_decode_line_1, all_sals_for_line
5539 ada_breakpoint_rewrite): replace calls to free() with xfree()
5541 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5543 From Nicholas Duffek (with minor changes by Martin Hunt,
5544 Louis Hamilton, and Kevin Buettner):
5545 * aix-thread.c: New file.
5547 2002-07-12 Petr Sorfa <petrs@caldera.com>
5549 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5550 complaint for invalid attribute class or form.
5551 (read_func_scope): DW_AT_frame_base
5552 better handling of DW_AT_block*.
5553 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5554 better handling of DW_AT_block*.
5555 (read_common_block): DW_AT_location
5556 better handling of DW_AT_block*.
5557 (read_partial_die): DW_AT_location better handling
5559 (new_symbol): DW_AT_external better handling of
5560 DW_AT_block*. Proper initialization of variable
5562 (attr_form_is_block): New function that returns true
5563 if the attribute's form is of DW_FORM_block*.
5565 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5567 * valops.c (find_method_list): Remove comment about
5568 removed STATIC_MEMFUNCP argument.
5569 (value_find_oload_method_list): Likewise.
5571 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5573 From Nicholas Duffek:
5574 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5575 target_new_objfile_hook.
5577 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5579 From Nicholas Duffek:
5580 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5583 2002-07-12 Andrew Cagney <cagney@redhat.com>
5585 * MAINTAINERS: Mention --enable-sim-build-warnings.
5586 (m68hc11-elf): Disable sim build warnings.
5587 (m32r-elf): Mark as broken obsolete candidate.
5588 (x86_64-linux-gnu): Mark as buildable with -Werror.
5589 (arm-elf): Change -w to ``,'' which enables warnings but not
5592 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5594 * bcache.h: Update copyright.
5595 (struct bstring, struct bcache): Move definition to "bcache.c".
5596 Replaced by opaque declaration.
5597 (bcache_xfree): Replace free_bcache.
5598 (bcache_xmalloc, bcache_memory_used): Declare.
5600 * bcache.c: Update copyright.
5601 (struct bstring, struct bcache): Moved to here from "bcache.h".
5603 (bcache_xmalloc, bcache_memory_used): New functions.
5604 (bcache_xfree): Replace function free_bcache.
5606 * Makefile.in (objfiles.o): Add $(bcache_h).
5607 (objfiles_h): Remove $(bcache_h).
5608 (symfile.o): Add $(bcache_h).
5610 * symmisc.c: Update copyright.
5611 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5612 (print_objfile_statistics): Use bcache_memory_used.
5614 * symfile.c: Include "bcache.h".
5615 (reread_symbols): Use bcache_xfree.
5616 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5617 (add_psymbol_to_list): Pass psymbol_cache by value.
5618 (add_psymbol_with_dem_name_to_list): Ditto.
5620 * objfiles.h: Update copyright.
5621 (struct bcache): Declare opaque. Do not include "bcache.h".
5622 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5624 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5626 * objfiles.c: Include "bcache.h". Update copyright.
5627 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5629 (free_objfile): Use bcache_xfree.
5631 2002-07-11 Grace Sainsbury <graces@redhat.com>
5633 * monitor.c (monitor_fetch_register): Make name a constant.
5634 (monitor_store_register): Same.
5636 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5638 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5639 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5640 (finish_block) For non-function blocks, hash the symbol table. For
5641 function blocks, mark the symbol table as unhashed.
5642 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5643 (msymbol_hash_iw): Likewise.
5644 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5646 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5647 (lookup_minimal_symbol): Likewise for both.
5648 * symtab.h (struct block): Add `hashtable' flag. Comment the
5650 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5651 (ALL_BLOCK_SYMBOLS): Update.
5652 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5653 (struct symbol): Add `hash_next' pointer.
5654 * symtab.c (lookup_block_symbol): Search using the hash table when
5656 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5657 (search_symbols, find_addr_symbol): Likewise.
5659 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5660 (read_dst_symtab): Likewise.
5661 * jv-lang.c (get_java_class_symtab): Likewise.
5662 * mdebugread.c: Include "gdb_assert.h".
5663 (shrink_block): Assert that the block being modified is not hashed.
5664 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5665 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5667 (dump_symtab): Recognize hashed blocks.
5668 * printcmd.c (print_frame_args): Assert that function blocks do not
5669 have hashed symbol tables.
5670 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5671 (fill_in_ada_prototype, debug_print_block): Likewise.
5672 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5674 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5676 * stack.c (print_frame): Use result of frame_address_in_block()
5677 instead of fi->pc when evaluating symbols.
5678 (backtrace_command_1): Ditto.
5680 2002-07-11 Andrew Cagney <cagney@redhat.com>
5682 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5685 * arm-tdep.c (arm_register_name): Make return type constant.
5687 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5689 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5691 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5692 * s390-tdep.c (s390_fp_regnum): Ditto.
5693 (s390_read_fp): Ditto.
5694 (s390_pop_frame): Ditto.
5695 (_initialize_s390_tdep): Ditto.
5696 * remote.c (get_remote_state): Ditto.
5697 * procfs.c (mappingflags): Ditto.
5698 * memattr.c (_initialize_mem): Ditto.
5699 * mcore-tdep.c (mcore_pop_frame): Ditto.
5700 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5701 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5702 * language.c (set_case_str): Ditto.
5703 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5704 * frv-tdep.c (new_variant): Ditto.
5705 (frv_stopped_data_address): Ditto.
5706 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5707 (context_alloc): Ditto.
5708 (frame_state_alloc): Ditto.
5709 (unwind_tmp_obstack_init): Ditto.
5710 (unwind_tmp_obstack_free): Ditto.
5711 (cfi_read_fp): Ditto.
5712 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5713 (cris_pop_frame): Ditto.
5714 * c-lang.c (scanning_macro_expansion): Ditto.
5715 (finished_macro_expansion): Ditto.
5716 (c_preprocess_and_parse): Ditto.
5717 * gdbarch.sh: Ditto.
5718 * gdbarch.h, gdbarch.c: Regenerate.
5719 * config/mn10200/tm-mn10200.h: Adjust indentation.
5720 * target.c: Adjust indentation.
5721 * symtab.h: Adjust indentation.
5722 * stabsread.h: Adjust indentation.
5723 * remote-es.c: Adjust indentation.
5724 * os9kread.c: Adjust indentation.
5726 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5728 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5729 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5731 2002-07-10 Grace Sainsbury <graces@redhat.com>
5733 * NEWS: Mention m68k, mcore multi-arching.
5734 * MAINTAINERS: Change status of m68k, mcore to reflect
5737 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5739 * valops.c (find_overload_match): Free oload_syms.
5741 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5743 Define HAVE_SYS_PROC_H if sys/proc.h exists
5744 * configure.in: Add check for sys/proc.h
5745 * config.in: Regenerate.
5746 * configure: Regenerate.
5748 2002-07-09 Grace Sainsbury <graces@redhat.com>
5750 * config/m68k/tm-m68k.h: Remove macros wrapped in
5751 #if !GDB_MULTI_ARCH.
5753 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5755 * config.in, configure: Regenerate.
5757 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5759 * dwarf2cfi.c: Include "gcore.h".
5760 (execute_stack_op): Fix implementation of the
5761 DW_OP_deref and DW_OP_deref_size operators by letting do their
5762 lookup in the target.
5764 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5766 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5767 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5770 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5772 Fix PR gdb/595, gdb/602
5773 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5774 Don't call value_cast, just read the vtable pointer; update comments
5777 2002-07-05 Grace Sainsbury <graces@redhat.com>
5779 * config/mcore/tm-mcore.h: Remove file.
5780 * config/mcore/mcore.mt: Remove definition of TM_FILE
5781 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5783 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5785 * i386bsd-tdep.c: Include "gdb_string.h".
5787 2002-07-04 Grace Sainsbury <graces@redhat.com>
5789 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5790 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5792 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5793 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5794 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5795 (RETVAL_REGNUM): Move macros from tm-mcore.h
5796 (mcore_reg_struct_has_addr): New function.
5797 (mcore_gdbarch_init): Added initializations for the macros removed
5800 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5802 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5803 traditonal string branding within the ELF header.
5805 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5807 * symtab.c (remove_params): New function.
5808 (make_symbol_overload_list): Use it instead of cplus_demangle.
5809 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5811 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5813 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5815 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5817 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5818 and tdep->sigtramp_end.
5819 * i386obsd-nat.c: New file.
5820 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5822 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5823 Don't call get_current_frame().
5825 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5827 * i386-nat.c (child_post_startup_inferior): New function
5828 calling i386_cleanup_dregs if
5829 I386_USE_GENERIC_WATCHPOINTS is defined.
5830 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5831 conditional to acknowledge that i386-nat.c has its
5832 own child_post_startup_inferior function.
5834 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5836 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5837 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5838 instead of MAX_REGISTER_RAW_SIZE.
5839 (i386_extract_return_value, i386_extract_struct_value_address):
5840 Convert to use regcache.
5841 (i386_gdbarch_init): Set max_register_raw_size and
5842 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5843 Set extract_return_value and extract_struct_value_address instead
5844 of their deprecated variants.
5846 Convert i386 target to generic dummy frames.
5847 * i386-tdep.c: Include "symfile.h".
5848 (i386_frameless_signal_p): Consider a function to be frameless if
5849 the pc points at the first instruction of the function.
5850 (i386_frame_chain): Handle (generic) call dummies.
5851 (i386_frame_saved_pc): Likewise.
5852 (i386_frame_init_saved_regs): Remove code dealing with call
5853 dummies on the stack.
5854 (i386_push_dummy_frame): Removed.
5855 (i386_call_dummy_words): Removed.
5856 (i386_fix_call_dummy): Removed.
5857 (i386_push_return_address): New function.
5858 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5859 parameter, and don't call get_current_frame.
5860 (i386_pop_frame): New function.
5861 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5862 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5863 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5864 call_dummy_length to 0, set call_dummy_words to NULL, set
5865 sizeof_call_dummy_words to 0, set fix_call_dummy to
5866 generic_fix_call_dummy, set pc_in_call_dummy to
5867 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5868 generic_push_dummy_frame, set push_return_address to
5869 i386_push_return_address and set frame_chain_valid to
5870 generic_file_frame_chain_valid.
5872 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5874 * gdbarch.sh (struct regcache): Add opaque declaration.
5875 (EXTRACT_RETURN_VALUE): New architecture method.
5876 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5877 * gdbarch.h, gdbarch.c: Regenerate.
5878 * arch-utils.c (legacy_extract_return_value): New function.
5879 * arch-utils.h (legacy_extract_return_value): Declare.
5880 * values.c (value_being_returned): Re-enable code handling
5881 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5882 deprecated_grub_regcache_for_registers call to block handling
5883 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5884 (EXTRACT_RETURN_VALUE): Do not define.
5886 2002-07-03 Grace Sainsbury <graces@redhat.com>
5888 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5889 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5890 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5891 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5892 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5893 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5894 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5895 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5896 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5897 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5898 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5899 argument so the function fits the prototype in the architecture
5901 (mcore_pop_frame): Remove argument so the function fits the
5902 prototype. Use get_current_frame instead of the argument.
5903 (mcore_push_arguments): Change type of struct_return so the
5904 function can be used in the architecture vector.
5905 (mcore_store_struct_return): Add.
5906 (mcore_frame_init_saved_regs): Add.
5907 (mcore_gdbarch_init): Add function calls to replace the macros
5908 removed from tm-mcore.h
5910 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5912 * infcmd.c (print_return_value): Remove compatibility code calling
5913 deprecated_grub_regcache_for_registers.
5915 * values.c: Include "regcache.h".
5916 (value_being_returned): Update. Use
5917 deprecated_grub_regcache_for_registers to extract the register
5919 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5920 ``struct regcache''.
5921 * Makefile.in (values.o): Add dependency on $(regcache_h).
5923 * inferior.h (run_stack_dummy): Change type of second parameter to
5924 a ``struct regcache''.
5925 * valops.c (hand_function_call): Change type of retbuf to ``struct
5926 regcache''. Allocate using regcache_xmalloc, clean using
5927 make_cleanup_regcache_xfree.
5928 * infcmd.c (run_stack_dummy): Update. Use
5929 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5931 * regcache.c (do_regcache_xfree): New function.
5932 (make_cleanup_regcache_xfree): New function.
5933 * regcache.h (make_cleanup_regcache_xfree): Declare.
5935 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5937 * event-top.c (command_line_handler): Don't read past
5938 beginning of buffer.
5940 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5942 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5944 (varobj_create): Store frame_id for root.
5945 (varobj_gen_name): Use xasprintf.
5946 (varobj_update): Save and restore frame using get_frame_id() and
5948 (create_child): Use xasprintf.
5949 (new_root_variable): Initialize frame_id.
5950 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5951 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5952 to prevent memory leak.
5954 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5956 * valops.c (hand_function_call): Move declaration of retbuf to
5957 start of function, allocate using malloc, add a cleanup but before
5958 the inf_status cleanup, cleanup the buffer. Rename local variable
5959 old_chain to inf_status_cleanup.
5961 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5963 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5965 * cli/cli-decode.c (cmd_func_p): New function.
5966 (cmd_func): New function.
5968 * command.h: Add cmd_func() and cmd_func_p().
5970 2002-07-03 Grace Sainsbury <graces@redhat.com>
5972 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5973 (REGISTER_SIZE): Remove.
5974 (MAX_REGISTER_RAW_SIZE): Remove.
5975 (REGISTER_VIRTUAL_TYPE): Remove.
5976 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5977 (REGISTER_NAME): Remove.
5978 (USE_GENERIC_DUMMY_FRAMES): Remove.
5979 (CALL_DUMMY): Remove.
5980 (CALL_DUMMY_START_OFFSET): Remove.
5981 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5982 (CALL_DUMMY_LOCATION): Remove.
5983 (FIX_CALL_DUMMY): Remove.
5984 (CALL_DUMMY_ADDRESS): Remove.
5985 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5986 (SAVE_DUMMY_FRAME_TOS): Remove.
5987 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5988 (mcore_register_virtual_type): New function.
5989 (mcore_register_byte): New function.
5990 (mcore_register_size): New function.
5991 (mcore_register_name): New function.
5992 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5993 macros removed from tm-mcore.h.
5994 (mcore_dump_tdep): Add.
5995 (_initialize_mcore_tdep): Add gdbarch_register call.
5997 2002-07-03 Mark Kettenis <kettenis@gnu.org>
5999 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6000 frameless_look_for_prologue, such that we actually call this
6003 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6005 * frame.h (frame_address_in_block): New function.
6007 * blockframe.c (frame_address_in_block): New function extracted
6008 from get_frame_block().
6009 (get_frame_block): Use frame_address_in_block().
6010 (block_innermost_frame): Use frame_address_in_block() to match
6011 the frame pc address against the block boundaries rather than
6012 the frame pc directly. This prevents a failure when a frame pc
6013 is actually a return-address pointing immediately after the end
6016 2002-07-02 Grace Sainsbury <graces@redhat.com>
6018 * MAINTAINERS: Add self under write after approval.
6020 2002-07-02 Grace Sainsbury <graces@redhat.com>
6022 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6023 used in architecture vector. The default is
6024 m68k_local_breakpoint_from_pc.
6025 (m68k_local_breakpoint_from_pc): Add.
6026 (enum): Add register numbers from tm-m68k.h.
6027 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6029 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6030 GDB_MULTI_ARCH_PARTIAL.
6031 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6032 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6034 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6035 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6036 to enum in m68k-tdep.c
6038 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6040 * solib-osf.c (open_map): Compute the list of shared libraries
6041 loaded by the inferior, rather than the list of libraries loaded
6042 by GDB itself. Otherwise, GDB ends up reading the symbols from
6043 the wrong shared libraries...
6045 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6047 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6048 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6050 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6052 (FRAMELESS_SIGNAL): Remove function.
6053 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6054 i386_linux_saved_pc_after_call): Removed.
6055 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6056 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6057 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6059 * i386-tdep.c (i386_frameless_signal_p): New function.
6060 (i386_frame_chain): Deal with frameless signals.
6061 (i386_sigtramp_saved_sp): New function.
6062 (i386_frame_saved_pc): Deal with frameless signals.
6063 (i386_saved_pc_after_call): Make sure the correct value is
6064 returned just after entry into a sigtramp.
6065 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6066 i386fbsd4_sc_sp_offset): New variables.
6067 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6068 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6069 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6070 similiar to what we already did for sc_pc_offset.
6071 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6074 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6076 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6078 * config/i386/tm-x86-64linux.h: New.
6079 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6081 * config/i386/nm-x86-64.h: Rename to ...
6082 * config/i386/nm-x86-64linux.h: ... this one.
6083 * config/i386/x86-64linux.mh: Reflect the above change.
6085 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6087 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6088 with sigcontext_addr. Add sc_sp_offset.
6089 (i386bsd_sigtramp_saved_pc): Remove prototype.
6090 (i386bsd_sicontext_addr): Add prototype.
6091 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6092 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6093 (i386_svr4_sigtramp_saved_pc): Removed.
6094 (i386_svr4_sigcontext_addr): New function.
6095 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6096 Initialize tdep->sigcontext_addr instead. Initialize
6097 tdep->sc_pc_offset and tdep->sc_sp_offset.
6098 (i386_gdbarch_init): Likewise.
6099 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6101 (i386bsd_sigtramp_saved_pc): Remove function.
6102 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6103 Initialize tdep->sigcontext_addr instead. Initialize
6105 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6106 of tdep->sigtramp_saved_pc.
6107 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6108 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6111 * i386-tdep.c (i386_frameless_function_invocation,
6112 i386_frame_num_args, i386_frame_init_saved_regs,
6113 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6114 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6115 i386_extract_return_value, i386_store_return_value,
6116 i386_extract_struct_value_address, i386_register_virtual_type,
6117 i386_register_convertible, i386_register_convert_to_virtual,
6118 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6119 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6122 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6124 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6126 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6127 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6128 this macro. Include "value.h".
6130 2002-06-30 Aidan Skinner <aidan@velvet.net>
6132 * ada-exp.tab.c: remove as it's a generated file
6133 * ada-lex.c: remove as it's a generated file
6135 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6137 * config/i386/tm-i386.h (struct frame_info, struct
6138 frame_saved_regs, struct value, struct type): Remove forward
6141 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6142 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6143 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6144 (FILL_FPXREGSET): Define.
6146 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6148 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6149 i[3456]86-*-netbsd* case.
6150 * config/i386/tm-obsd.h: Removed.
6151 * config/i386/obsd.mt: Removed.
6152 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6154 (MH_CFLAGS): Add -DYYDEBUG=0.
6156 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6157 i386nbsd_sc_pc_offset on OpenBSD too.
6159 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6160 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6161 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6163 * i386bsd-tdep.c: Include "arch-utils.h".
6164 (i386bsd_aout_in_solib_call_trampoline): New function.
6165 (i386bsd_init_abi): Set in_solib_call_trampoline to
6166 i386bsd_aout_in_solib_call_trampoline.
6167 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6168 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6170 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6172 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6173 (struct obstack, struct bcache): Add opaque declarations.
6174 * Makefile.in (macrotab_h): Update
6176 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6178 * blockframe.c (generic_find_dummy_frame): Change return type to
6179 ``struct regcache''.
6180 (struct dummy_frame): Replace field ``registers'' with regcache, a
6181 struct regcache object.
6182 (generic_find_dummy_frame): Update.
6183 (generic_push_dummy_frame): Update. Use regcache_xfree,
6184 regcache_xmalloc and regcache_cpy.
6185 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6187 (deprecated_generic_find_dummy_frame): Update.
6188 (generic_read_register_dummy): Update. Use
6189 regcache_read_as_address.
6190 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6191 (generic_get_saved_register): Update. Use regcache_read.
6193 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6195 * Makefile.in (objfiles_h): Add $(bcache_h).
6196 * objfiles.h: Include "bcache.h".
6198 * Makefile.in (symtab_h): Remove $(bcache_h).
6199 * symtab.h: Do not include "bcache.h".
6201 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6203 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6204 generic_func_frame_chain_valid.
6206 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6208 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6209 * config/i386/tm-fbsd.h: Likewise.
6211 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6213 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6214 generic_unwind_get_saved_register.
6216 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6218 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6219 * regcache.c (supply_register): Add missing argument to
6220 register_buffer call.
6222 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6224 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6225 Solaris /bin/grep does not not like it. From Peter Schauer.
6227 2002-06-26 Tom Tromey <tromey@redhat.com>
6229 * command.h (add_setshow_cmd): Declare.
6230 (add_setshow_cmd_full): Declare.
6231 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6232 returns void. Use add_setshow_cmd_full.
6233 (add_setshow_cmd_full): New function.
6234 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6235 (add_setshow_boolean_cmd): Likewise.
6237 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6239 * config/vax/tm-vax.h: Protect from multiple inclusion.
6240 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6241 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6242 * config/vax/tm-vaxbsd.h: ...here. New file.
6243 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6245 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6247 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6248 (BELIEVE_PCC_PROMOTION): Remove.
6249 (AP_REGNUM): Move to...
6250 * config/vax/nm-vax.h: ...here.
6251 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6252 (vax_breakpoint_from_pc): New function.
6253 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6254 and gdbarch_believe_pcc_promotion.
6256 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6258 * Makefile.in (vax_tdep_h): Define.
6259 (vax-tdep.o): Use $(vax_tdep_h).
6260 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6261 (vax_dump_tdep): New function.
6262 (_initialize_vax_tdep): Register vax_dump_tdep.
6263 * vax-tdep.h: Include osabi.h.
6264 (struct gdbarch_tdep): New.
6266 2002-06-26 Andrew Cagney <cagney@redhat.com>
6268 * frame.h (deprecated_generic_find_dummy_frame): Rename
6269 generic_find_dummy_frame.
6270 * blockframe.c (generic_find_dummy_frame): Make static.
6271 (deprecated_generic_find_dummy_frame): New function.
6272 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6273 generic_find_dummy_frame with deprecated_find_dummy_frame.
6274 (sh64_nofp_frame_init_saved_regs): Ditto.
6275 (sh_fp_frame_init_saved_regs): Ditto.
6276 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6277 (s390_frame_chain): Ditto.
6278 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6280 2002-06-26 Grace Sainsbury <graces@redhat.com>
6282 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6283 gdbarch vector are at the top.
6285 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6286 (FRAME_ARGS_ADDRESS): Remove.
6287 (FRAME_LOCALS_ADDRESS): Remove.
6288 (FRAME_NUM_ARGS): Remove.
6289 (FRAME_ARGS_SKIP): Remove.
6290 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6291 (m68k_gdbarch_init): Add gdbarch initializations for macros
6292 undefined in tm-m68k.h
6294 2002-06-26 Grace Sainsbury <graces@redhat.com>
6296 * monitor.h: Add the function regname to monitor_ops
6297 structure. This way NUM_REGS does not have to be a constant.
6298 * monitor.c (monitor_fetch_register): Added support for regname
6299 function. The function is called if the array regnames is NULL.
6300 (monitor_store_register): Same.
6301 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6303 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6304 cpu32bug_cmds.regname to point to new function.
6305 * abug-rom.c (abug_regname): Same as above.
6306 (init_abug_cmds): Same.
6307 * dbug-rom.c (dbug_regname): Same as above.
6308 (init_dbug_cmds): Same.
6309 * remote-est.c (est_regname): Same.
6310 (init_est_cmds): Same.
6311 * rom68k-rom.c (rom68k_regname): Same.
6312 (init_rom68k_cmds): Same.
6314 2002-06-25 Tom Tromey <tromey@redhat.com>
6316 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6318 2002-06-25 Andrew Cagney <cagney@redhat.com>
6320 * infrun.c (stop_registers): Change variable's type to ``struct
6322 (xmalloc_inferior_status): Delete function.
6323 (free_inferior_status): Delete function.
6324 (normal_stop): Use regcache_cpy.
6325 (struct inferior_status): Change type of fields ``stop_registers''
6326 and ``registers'' to ``struct regcache''.
6327 (write_inferior_status_register): Use regcache_write.
6328 (save_inferior_status): Instead of calling
6329 xmalloc_inferior_status, allocate the inf_status buffer directly.
6330 Use regcache_dup_no_passthrough and regcache_dup to save the
6332 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6333 Replace the stop_registers regcache instead of overriding it. Use
6334 regcache_xfree. Instead of calling free_inferior_status, xfree
6335 the buffer directly.
6336 (discard_inferior_status): Use regcache_xfree. Instead of calling
6337 free_inferior_status, xfree the buffer directly.
6338 (build_infrun): Use regcache_xmalloc.
6339 (_initialize_infrun): Delete redundant call to build_infrun.
6341 * Makefile.in (infcmd.o): Add $(regcache_h).
6343 * infcmd.c: Include "regcache.h".
6344 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6345 obtain the address of `stop_registers' register buffer.
6346 (print_return_value): Ditto.
6348 * inferior.h (struct regcache): Add opaque declaration.
6349 (stop_registers): Change variable's declared type to ``struct
6352 2002-06-24 Tom Tromey <tromey@redhat.com>
6354 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6355 * target.c (initialize_targets): Fixed typo in
6356 trust-readonly-sections `show' documentation.
6358 * main.c: Marked all strings with _().
6360 2002-06-24 Don Howard <dhoward@redhat.com>
6362 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6363 that means max CORE_ADDR+1.
6364 (lookup_mem_region): Ditto.
6365 (mem_info_command): Ditto.
6367 2002-06-24 Grace Sainsbury <graces@redhat.com>
6369 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6370 (REGISTER_BYTES_OK): Remove.
6371 (REGISTER_BYTES): Remove.
6372 (STORE_STRUCT_RETURN): Remove.
6373 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6374 (STORE_RETURN_VALUE): Remove.
6375 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6376 (FRAME_CHAIN): Remove.
6377 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6378 (FRAME_SAVED_PC): Remove.
6379 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6380 (m68k_store_struct_return): Add.
6381 (m68k_deprecated_extract_return_value): Add.
6382 (m68k_deprecated_extract_struct_value_address): Add.
6383 (m68k_store_return_value): Add.
6384 (m68k_frame_chain): Add.
6385 (m68k_frameless_function_invocation): Add.
6386 (m68k_frame_saved_pc): Add.
6387 (m68k_gdbarch_init): added set_gdbarch calls for new
6388 functions and deleted macros.
6390 2002-06-23 Tom Tromey <tromey@redhat.com>
6392 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6393 (ALLDEPFILES): Likewise.
6394 (udiheaders): Removed.
6395 (udip2soc.o): Likewise.
6396 (udi2go32.o): Likewise.
6398 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6400 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6402 * infrun.c (_initialize_infrun): Delete unnecessary call to
6405 * regcache.h: Update comments describing the regcache_cpy family
6407 (regcache_save, regcache_restore): Delete declaration.
6408 (regcache_save_no_passthrough): Delete declaration.
6409 (regcache_restore_no_passthrough): Delete declaration.
6410 * regcache.c (regcache_save): Delete function.
6411 (regcache_save_no_passthrough): Delete function.
6412 (regcache_restore): Delete function.
6413 (regcache_restore_no_passthrough): Delete function.
6415 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6417 * config/m68k/tm-m68k.h: Fix typo.
6418 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6419 (m68k_frame_init_saved_regs): Declare.
6421 2002-06-21 Jim Blandy <jimb@redhat.com>
6423 Remove some vestiges of Harris 88k support.
6424 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6425 register numbering quirk.
6426 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6427 odd symbols occurring in Harris 88k ELF targets.
6429 2002-06-21 Tom Tromey <tromey@redhat.com>
6431 * gdb_locale.h: New file.
6432 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6433 (defs_h): Added gdb_locale.h.
6434 * configure, config.in: Rebuilt.
6435 * configure.in (PACKAGE): Define.
6436 * defs.h: Include gdb_locale.h.
6437 * main.c (captured_main): Call setlocale, bindtextdomain,
6440 2002-06-21 Dave Brolley <brolley@redhat.com>
6442 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6443 * config/frv/frv.mt: New file.
6444 * config/frv/tm-frv.h: New file.
6445 * configure.tgt: Support frv-*-*.
6446 * Makefile.in (frv-tdep.o): New target.
6447 * frv-tdep.c: New file.
6448 * NEWS: Mention frv.
6450 2002-06-21 Dave Brolley <brolley@redhat.com>
6452 * MAINTAINERS: Add self to "Write After Approval" list.
6454 2002-06-21 Grace Sainsbury <graces@redhat.com>
6456 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6457 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6458 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6459 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6460 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6462 * m68k-tdep.c: Include arch-utils.h
6463 (m68k_register_raw_size): Add.
6464 (m68k_register_virtual_size): Add.
6465 (m68k_register_virtual_type): Add.
6466 (m68k_register_name): Add.
6467 (m68k_stack_align): Add.
6468 (m68k_register_byte): Add.
6469 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6472 2002-06-21 Grace Sainsbury <graces@redhat.com>
6474 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6475 m68k_find_saved_regs.
6476 (m68k_pop_frame): Removed saved_regs structure, and replaced
6477 references to it with frame->saved_regs.
6478 (m68k_gdbarch_init): Added function calls to initialize the
6480 (m68k_fix_call_dummy): Add.
6481 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6482 (CALL_DUMMY): Remove.
6483 (CALL_DUMMY_LENGTH): Remove.
6484 (CALL_DUMMY_START_OFFSET): Remove.
6485 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6486 (FIX_CALL_DUMMY): Remove.
6487 (PUSH_DUMMY_FRAME): Remove.
6488 (POP_FRAME): Remove.
6490 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6492 * parse.c (parse_fprintf): New function used to avoid calls to
6493 fprintf in bison parser generated debug code.
6494 * parser-defs.h: Declaration of new parse_fprintf function.
6495 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6496 Set YYDEBUG to 1 by default.
6497 Set YYFPRINTF as parse_fprintf.
6499 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6501 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6503 (pointer_encoding, enum ptr_encoding): New.
6504 (execute_cfa_program): Take care about pointer encoding.
6505 (dwarf2_build_frame_info): Only call parse_frame_info for
6506 .debug_frame and .eh_frame.
6507 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6508 fixed augmentation handling, added relative addressing,
6509 ignore duplicate FDEs. Added comments.
6510 * dwarf2cfi.c: Reindented.
6512 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6514 * event-top.c (command_handler): Don't use space_at_cmd_start
6515 unless there is sbrk() on the host. Assign time and space data
6516 to union fields of the appropriate length.
6518 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6520 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6521 x86_64_register_name. Return type changed to 'const char *'.
6522 (x86_64_register_name2nr): Rename to x86_64_register_number.
6523 (x86_64_gdbarch_init): Update to reflect the change.
6524 * x86-64-tdep.h: Ditto.
6525 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6526 (supply_fpregset): Ditto.
6528 2002-06-19 Andrew Cagney <cagney@redhat.com>
6530 * regcache.h: Update copyright.
6531 (struct regcache, struct gdbarch): Add opaque declarations.
6532 (current_regcache): Declare global variable.
6533 (regcache_read, regcache_write): Add gdbarch parameter.
6534 (regcache_save, regcache_save_no_passthrough)
6535 (regcache_restore, regcache_restore_no_passthrough)
6536 (regcache_dup, regcache_dup_no_passthrough)
6537 (regcache_cpy, regcache_cpy_no_passthrough)
6538 (deprecated_grub_regcache_for_registers)
6539 (deprecated_grub_regcache_for_register_valid)
6540 (regcache_valid_p): Add function declarations.
6542 * regcache.c: Update copyright.
6543 (regcache_descr_handle): New global variable.
6544 (struct regcache_descr): Define.
6545 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6546 (regcache_descr, xfree_regcache_descr): New functions.
6547 (struct regcache): Define.
6548 (regcache_xmalloc, regcache_xfree): New functions.
6549 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6550 (regcache_dup, regcache_dup_no_passthrough): New functions.
6551 (regcache_valid_p, regcache_read_as_address): New functions.
6552 (deprecated_grub_regcache_for_registers): New function.
6553 (deprecated_grub_regcache_for_register_valid): New function.
6554 (current_regcache): New global variable.
6555 (register_buffer): Add regcache parameter. Update calls.
6556 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6557 (read_register_gen, write_register_gen): Update register_buffer
6558 call. Test for legacy_p instead of gdbarch_register_read_p or
6559 gdbarch_register_write_p.
6560 (regcache_collect): Update register_buffer call.
6561 (build_regcache): Rewrite. Use deprecated grub functions.
6562 (regcache_save, regcache_save_no_passthrough): New functions.
6563 (regcache_restore, regcache_restore_no_passthrough): New
6565 (_initialize_regcache): Create the regcache_data_handle. Swap
6566 current_regcache global variable.
6568 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6569 parameter to regcache_read and regcache_write calls.
6570 (sh4_register_read): Ditto.
6571 (sh64_pseudo_register_read): Ditto.
6572 (sh64_register_read): Ditto.
6573 (sh_pseudo_register_write): Ditto.
6574 (sh4_register_write): Ditto.
6575 (sh64_pseudo_register_write): Ditto.
6576 (sh64_register_write): Ditto.
6578 * defs.h (XCALLOC): Define.
6580 2002-06-19 Grace Sainsbury <graces@redhat.com>
6582 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6583 * m68k-tdep.c (m68k_gdbarch_init): Added.
6584 (m68k_dump_tdep): Added.
6586 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6588 * ada-lang.c (fill_in_ada_prototype): Update comment.
6590 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6592 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6594 (mips_abi_string, mips_abi_strings): New.
6595 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6596 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6597 tdep->mips_abi_string. Honor mips_abi_string. Default to
6598 O32 if no ABI is found.
6599 (mips_dump_tdep): Use mips_abi_strings.
6600 (mips_abi_update): New function.
6601 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6602 ``set mips abi'' and ``show mips abi''. Check the size of
6605 2002-06-19 Andrew Cagney <cagney@redhat.com>
6607 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6610 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6612 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6613 current frame using only the first stack size adjustment. All
6614 subsequent size adjustments are not considered to be part of
6615 the "static" part of the current frame.
6616 Compute the address of the saved registers relative to the
6617 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6618 in use in this frame.
6620 2002-06-18 Don Howard <dhoward@redhat.com>
6622 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6623 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6624 suggesting this solution.
6626 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6628 * config/romp/xm-rtbsd.h: Delete file.
6629 * config/romp/rtbsd.mh: Delete file.
6631 2002-06-18 Keith Seitz <keiths@redhat.com>
6633 * breakpoint.c (condition_command): Post breakpoint_modify
6634 when a condition is added to an existing breakpoint.
6635 (commands_command): Likewise for commands.
6636 (set_ignore_count): Likewise for ignore counts.
6637 If no tty, do not simply return, still need to send event
6639 (ignore_command): Only print a newline if the command came
6641 Don't call breakpoints_changed, since this is now properly
6642 handled by set_ignore_count.
6644 2002-06-18 Andrew Cagney <cagney@redhat.com>
6646 * MAINTAINERS: Note that cris-elf target can be compiled with
6648 * cris-tdep.c (cris_register_name): Make return type constant.
6649 (cris_breakpoint_from_pc): Ditto.
6651 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6653 * frame.h (struct frame_info): Change type of context to
6656 2002-06-17 Andrew Cagney <cagney@redhat.com>
6658 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6660 * gdbarch.h, gdbarch.c: Regenerate.
6661 * config/mips/tm-mips.h (mips_register_name): Update.
6662 * i386-tdep.h (i386_register_name): Update.
6663 * mips-tdep.c (mips_register_name): Update
6664 * alpha-tdep.c (alpha_register_name): Update.
6665 * arch-utils.c (legacy_register_name): Update.
6666 * arch-utils.h (legacy_register_name): Update.
6667 * avr-tdep.c (avr_register_name): Update.
6668 * ia64-tdep.c (ia64_register_name): Update.
6669 * i386-tdep.c (i386_register_name): Update.
6670 * sparc-tdep.c (sparc32_register_name): Update.
6671 (sparc64_register_name): Update.
6672 (sparclite_register_name): Update.
6673 (sparclet_register_name): Update.
6674 * sh-tdep.c (sh_generic_register_name): Update.
6675 (sh_sh_register_name): Update.
6676 (sh_sh3_register_name): Update.
6677 (sh_sh3e_register_name): Update.
6678 (sh_sh_dsp_register_name): Update.
6679 (sh_sh3_dsp_register_name): Update.
6680 (sh_sh4_register_name): Update.
6681 (sh_sh64_register_name): Update.
6682 * s390-tdep.c (s390_register_name): Update.
6683 * rs6000-tdep.c (rs6000_register_name): Update.
6684 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6685 (ns32k_register_name_32382): Update.
6686 * d10v-tdep.c (d10v_ts2_register_name): Update.
6687 (d10v_ts3_register_name): Update.
6688 * xstormy16-tdep.c (xstormy16_register_name): Update.
6689 * vax-tdep.c (vax_register_name): Update.
6690 * v850-tdep.c (v850_register_name): Update.
6691 * m68hc11-tdep.c (m68hc11_register_name): Update.
6692 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6693 (am33_register_name): Update.
6695 2002-06-17 Grace Sainsbury <graces@redhat.com>
6697 * m68k-tdep.c: Reindented.
6699 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6701 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6702 list of predefined types.
6704 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6706 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6707 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6708 REGISTER_CONVERT_TO_RAW): Remove defines.
6709 (i386_register_virtual_type, i386_register_convertible,
6710 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6712 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6713 macros mentioned above.
6715 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6716 (i386lynx_saved_pc_after_call): Remove prototype.
6717 * i386ly-tdep.c: Include "i386-tdep.h".
6718 (i386lynx_saved_pc_after_call): Make static. Use
6719 read_memory_nobpt instead of read_memory. Use
6720 read_memory_unsigned_integer instead of read_memory_integer.
6721 (i386lynx_init_abi): New function.
6722 (i386lynx_coff_osabi_sniffer): New function.
6723 (_initialize_i386bsd_tdep): New function.
6725 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6726 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6727 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6728 (i386_fix_call_dummy): Remove prototype.
6729 * i386-tdep.c (i386_call_dummy_words): New variable.
6730 (i386_gdbarch_init): Adjust for removal of the
6731 macros mentioned above.
6733 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6735 * command.h (add_setshow_auto_boolean_cmd): Replace
6736 add_set_auto_boolean_cmd.
6737 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6738 add_set_auto_boolean_cmd.
6739 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6740 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6741 mask-address'' command.
6742 (show_mask_address): Add cmd parameter.
6743 * remote.c (add_packet_config_cmd): Update. Change type of
6744 set_func and show_func to cmd_sfunc_ftype.
6745 (_initialize_remote): Update `set remote Z-packet'
6746 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6747 (show_remote_protocol_e_packet_cmd): Ditto.
6748 (show_remote_protocol_E_packet_cmd): Ditto.
6749 (show_remote_protocol_P_packet_cmd): Ditto.
6750 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6751 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6752 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6753 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6754 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6755 (show_remote_protocol_Z_packet_cmd): Ditto.
6756 (show_remote_protocol_binary_download_cmd): Ditto.
6757 (show_remote_cmd): Pass NULL to all of above.
6759 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6761 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6762 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6763 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6764 POP_FRAME): Remove defines.
6765 (i386_push_arguments, i386_store_struct_return,
6766 i386_extract_return_value, i386_store_return_value,
6767 i386_extract_struct_value_address, i386_push_dummy_frame,
6768 i386_pop_frame): Renove prototypes.
6769 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6770 macros mentioned above.
6772 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6774 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6775 add_set_boolean_cmd.
6776 (add_setshow_cmd): New function.
6777 * command.h (add_setshow_boolean_cmd): Replace
6778 add_set_boolean_cmd.
6779 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6780 and ``set rdiromatzero''.
6781 * maint.c (_initialize_maint_cmds): Update commented out code.
6782 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6783 * target.c (initialize_targets): Update `set
6784 trust-readonly-sections'.
6785 * remote.c (_initialize_remote): Update `set remotebreak'.
6787 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6789 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6790 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6791 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6792 fit into multi-arch framework.
6793 (i386_breakpoint_from_pc): New function.
6794 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6797 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6798 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6799 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6800 (i386_frameless_function_invocation, i386_frame_num_args,
6801 i386_frame_init_saved_regs): Remove prototypes.
6802 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6803 macros mentioned above.
6805 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6807 * cli/cli-decode.c (set_cmd_cfunc): Update.
6808 (set_cmd_sfunc): Update.
6809 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6810 (set_cmd_sfunc, set_cmd_cfunc): Update.
6811 * cli/cli-decode.h: Update.
6813 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6815 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6816 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6818 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6820 * defs.h (auto_boolean): Declare enum.
6821 * command.h (cmd_auto_boolean): Delete enum.
6822 * mips-tdep.c (mask_address_var): Update.
6823 (mips_mask_address_p): Update.
6824 (show_mask_address): Update.
6825 * remote.c (struct packet_config): Update.
6826 (update_packet_config): Update.
6827 (show_packet_config_cmd): Update.
6828 (packet_ok): Update.
6829 (add_packet_config_cmd): Update.
6830 (_initialize_remote):
6831 * command.h: Update.
6832 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6833 (do_setshow_command): Update.
6834 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6835 * cli/cli-decode.h: Update.
6837 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6839 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6840 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6841 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6842 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6843 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6844 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6846 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6847 list of DJGPP COFF targets.
6849 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6850 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6851 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6852 (FP0_REGNUM): Remove define.
6853 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6854 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6855 (i386_register_virtual_size): Remove protoype.
6856 * i386-tdep.c (i386_register_virtual_size): Removed.
6857 (i386_extract_return_value, i386_store_return_value): Use
6858 FP0_REGNUM instead of NUM_FREGS to determine whether the
6859 floating-point registers are available.
6860 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6861 Adjust for removal of macros mentioned above.
6863 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6865 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6867 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6869 (supply_gregset, fill_gregset): Remove use of register keyword and
6870 remove declaration for regmap. Use I386_NUM_GREGS instead of
6871 NUM_REGS and NUM_FREGS.
6872 (FPREGSET_FSAVE_OFFSET): Remove.
6873 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6874 NUM_FREGS to determine whether the floating-point registers are
6877 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6878 gnu_store_registers): Replace usage of NUM_GREGS with
6881 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6882 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6883 usage of NUM_GREGS with I386_NUM_GREGS.
6885 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6887 * i386bsd-nat.c: Include "i386-tdep.h".
6888 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6891 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6892 and associated comment. They no longer make any sense, since we
6893 don't use this file anymore on Linux.
6895 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6896 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6897 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6898 elements in these arrays.
6899 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6902 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6904 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6905 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6907 2002-06-14 Andrew Cagney <cagney@redhat.com>
6909 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6910 EXTRACT_RETURN_VALUE.
6911 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6912 EXTRACT_STRUCT_VALUE_ADDRESS.
6913 * gdbarch.h, gdbarch.c: Regenerate.
6915 * values.c (value_being_returned): Handle
6916 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6917 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6919 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6920 * arm-tdep.c (arm_gdbarch_init): Update.
6921 * avr-tdep.c (avr_gdbarch_init): Update.
6922 * cris-tdep.c (cris_gdbarch_init): Update.
6923 * d10v-tdep.c (d10v_gdbarch_init): Update.
6924 * ia64-tdep.c (ia64_gdbarch_init): Update.
6925 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6926 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6927 * s390-tdep.c (s390_gdbarch_init): Update.
6928 * sh-tdep.c (sh_gdbarch_init): Update.
6929 * s390-tdep.c (s390_gdbarch_init): Update.
6930 * sparc-tdep.c (sparc_gdbarch_init): Update.
6931 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6932 * v850-tdep.c (v850_gdbarch_init): Update.
6933 * vax-tdep.c (vax_gdbarch_init): Update.
6934 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6935 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6937 * config/arc/tm-arc.h: Update.
6938 * config/d30v/tm-d30v.h: Update.
6939 * config/fr30/tm-fr30.h: Update.
6940 * config/h8300/tm-h8300.h: Update.
6941 * config/h8500/tm-h8500.h: Update.
6942 * config/i386/tm-i386.h: Update.
6943 * config/i386/tm-ptx.h: Update.
6944 * config/i386/tm-symmetry.h: Update.
6945 * config/i960/tm-i960.h: Update.
6946 * config/m32r/tm-m32r.h: Update.
6947 * config/m68k/tm-delta68.h: Update.
6948 * config/m68k/tm-linux.h: Update.
6949 * config/m68k/tm-m68k.h: Update.
6950 * config/m88k/tm-m88k.h: Update.
6951 * config/mcore/tm-mcore.h: Update.
6952 * config/mips/tm-mips.h: Update.
6953 * config/mn10200/tm-mn10200.h: Update.
6954 * config/pa/tm-hppa.h: Update.
6955 * config/pa/tm-hppa64.h: Update.
6956 * config/sparc/tm-sp64.h: Update.
6957 * config/sparc/tm-sparc.h: Update.
6958 * config/sparc/tm-sparclet.h: Update.
6959 * config/z8k/tm-z8k.h: Update.
6961 2002-06-14 Andrew Cagney <cagney@redhat.com>
6963 * Makefile.in (i386_linux_tdep_h): Define.
6964 (i386_tdep_h, i387_tdep_h): Define.
6965 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6966 $(i386_tdep_h) and $(i387_tdep_h).
6967 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6969 2002-06-14 Mark Kettenis <kettenis@gnu.org>
6971 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6972 Already covered by the default.
6974 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6975 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6976 (i386_gdbarch_init): Initialize long_double_format and long_double
6979 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6980 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6982 * config/i386/i386sol2.mh: ... here.
6983 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6984 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6985 (SIGCONTEXT_PC_OFFSET): Remove define.
6986 (IN_SIGTRAMP): Remove define.
6987 * i386-sol2-tdep.c: New file.
6989 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6990 * config/i386/tm-i386nw.h: Removed.
6992 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6993 USE_STRUCT_CONVENTION): Remove defines.
6994 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6995 (get_longjmp_target): Remove prototype.
6996 (IN_SIGTRAMP): Remove define.
6997 (i386bsd_in_sigtramp): Remove prototype.
6998 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6999 function. Update comment accordingly
7000 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7001 (FRAME_SAVED_PC): Remove define.
7002 (i386bsd_frame_saved_pc): Remove prototype.
7003 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7004 GET_LONGJMP_TARGET): Remove defines.
7005 (get_longjmp_target): Remove prototype.
7006 (IN_SIGTRAMP): Remove define.
7007 (i386bsd_in_sigtramp): Remove prototype.
7008 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7009 function. Update comment accordingly
7010 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7011 (FRAME_SAVED_PC): Remove define.
7012 (i386bsd_frame_saved_pc): Remove prototype.
7013 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7015 (USE_STRUCT_CONVENTION): Remove prototype.
7016 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7018 (_initialize_i386bsd_nat): Revise logic to determine some
7019 constants at compile time when compiling a native GDB. Warn if
7020 things don't match up with what we expect.
7021 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7023 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7024 to use date stored in `struct gdbarch_tdep'.
7025 (i386bsd_sigcontext_offset): Remove varaible.
7026 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7027 stored in `struct gdbarch_tdep'.
7028 (i386bsd_frame_saved_pc): Make static.
7029 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7030 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7031 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7032 i386fbsd4_sc_pc_offset): New variables.
7033 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7034 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7036 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7038 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7039 Modify the value of i386fbsd_sigtramp_start and
7040 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7041 i386fbsd_sigtramp_end.
7042 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7045 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7046 define to i386-linux-tdep.h.
7047 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7048 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7050 (i386_linux_register_name, i386_linux_register_byte,
7051 i386_linux_register_raw_size): Remove prototypes.
7052 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7053 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7054 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7055 TARGET_WRITE_PC): Remove defines.
7056 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7057 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7058 i386_linux_write_pc): Remove prototypes.
7059 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7060 (get_longjmp_target): Remove prototype.
7061 * i386-linux-tdep.h: New file.
7062 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7063 * i386-linux-tdep.c: Include "i386-tdep.h" and
7064 "i386-linux-tdep.h".
7065 (i386_linux_register_name, i386_linux_register_byte,
7066 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7067 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7069 (i386_linux_init_abi): New function.
7070 (_initialize_i386_linux_tdep): New function.
7072 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7073 (i386_saved_pc_after_call): Remove prototype.
7074 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7075 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7076 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7077 (i386_register_name, i386_stab_reg_to_regnum,
7078 i386_dwarf_reg_to_regnum): Remove prototypes.
7079 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7080 SIZEOF_SSE_REGS): Remove defines.
7081 (REGISTER_BYTES): Remove define.
7082 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7083 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7084 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7085 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7086 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7087 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7088 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7089 (get_longjmp_target): Remove prototype.
7090 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7091 (sigtramp_saved_pc): Remove define.
7092 (i386v4_sigtramp_saved_pc): Remove prototype.
7093 * config/i386/tm-go32.h (FRAME_CHAIN,
7094 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7095 (i386go32_frame_saved_pc): Remove prototype.
7096 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7097 (get_longjmp_target): Remove prototype.
7098 * i386-tdep.h: Include "osabi.h".
7099 (enum i386_abi): Removed.
7100 (enum struct_return): New enum.
7101 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7102 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7103 sc_pc_offset members.
7104 (i386_gdbarch_register_os_abi): Remove prototype.
7105 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7106 I386_SSE_NUM_REGS): New defines.
7107 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7108 I386_SSE_SIZEOF_REGS): New defines.
7109 (i386_register_name, i386_register_byte, i386_register_raw_size):
7111 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7112 (i386bsd_sigtramp_saved_pc): New prototype.
7113 * i386-tdep.c: Don't include "elf-bfd.h".
7114 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7115 i386_frame_chain, i386_saved_pc_after_call): Make static.
7116 (i386_frame_saved_pc): Rewrite to call architecture dependent
7117 function to deal with signal handlers. Make static.
7118 (i386go32_frame_saved_pc): Removed.
7119 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7121 (i386_get_longjmp_target): New function.
7122 (default_struct_convention, pcc_struct_convention,
7123 reg_struct_convention, valid_conventions, struct_convention): New
7125 (i386_use_struct_convention): New function.
7126 (i386v4_sigtramp_saved_pc): Renamed to
7127 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7128 (i386_pc_in_sigtramp): New function.
7129 (i386_abi_names): Removed.
7130 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7131 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7133 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7134 i386_gdbarch_register_os_abi): Removed.
7135 (struct i386_abi_handler): Removed.
7136 (i386_abi_handler_list): Removed.
7137 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7139 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7140 i386_nw_init_abi): New functions.
7141 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7142 Use set_gdbarch_xxx() calls instead of relying on macros for a
7144 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7145 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7146 Register the various architecture variants defined in this file.
7148 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7150 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7151 (struct main_type): Remove arg_types member. Update comments for
7153 (TYPE_ARG_TYPES): Remove.
7154 (TYPE_FN_FIELD_ARGS): Update.
7155 (smash_to_method_type): Update prototype.
7157 * c-typeprint.c (cp_type_print_method_args): Take method type
7158 instead of argument list. Use new argument layout. Simplify.
7159 (c_type_print_args): Use new argument layout. Simplify.
7160 (c_type_print_base): Update call to cp_type_print_method_args.
7161 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7162 argument; use die->type instead. Update call to
7163 smash_to_method_type.
7164 (read_structure_scope): Update call to dwarf2_add_member_fn.
7165 * gdbtypes.c (allocate_stub_method): Update comment.
7166 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7167 Use new argument layout.
7168 (check_stub_method): Use new argument layout. Don't count
7169 void as an argument.
7170 (print_arg_types): Update comments. Use new argument layout.
7171 (recursive_dump_type): Don't print arg_types member.
7172 * hpread.c (hpread_read_struct_type): Use new argument layout.
7173 (fixup_class_method_type): Likewise.
7174 (hpread_type_lookup): Likewise.
7175 * stabsread.c (read_type): Update calls to read_args and
7176 smash_to_method_type.
7177 (read_args): Use new argument layout. Simplify.
7178 * valops.c (typecmp): Use new argument layout. Update parameters
7179 and comments. Simplify.
7180 (hand_function_call): Use new argument layout.
7181 (search_struct_method): Update call to typecmp.
7182 (find_overload_match): Use new argument layout.
7184 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7186 * NEWS: Mention multithreaded debug support for gdbserver.
7188 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7190 * MAINTAINERS: Mention NEWS.
7192 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7194 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7195 (struct mips_objfile_private, compare_pdr_entries): New.
7196 (non_heuristic_proc_desc): Read the ".pdr" section if it
7199 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7201 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7202 (arm_debug): New static variable.
7203 (_initialize_arm_tdep): Add ``set debug arm'' command.
7205 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7207 * Makefile.in (sim_arm_h): Define.
7208 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7209 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7210 (arm_register_sim_regno): New function, map an internal REGNUM
7211 onto a simulator register number.
7212 (arm_gdbarch_init): Set register_sim_regno.
7214 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7216 * MAINTAINERS: Add self.
7218 2002-06-11 Jim Blandy <jimb@redhat.com>
7220 * source.c (source_info): Mention whether the symtab has
7221 information about preprocessor macros.
7223 Call the command `info macro', not `show macro'.
7224 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7226 (_initialize_macrocmd): Register `info_macro_command' in
7227 `infolist', not `showlist'.
7229 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7231 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7232 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7233 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7234 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7235 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7237 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7238 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7239 (_initialize_mips_tdep): Remove dead code.
7240 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7241 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7242 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7243 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7244 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7245 MIPS_LAST_FP_ARG_REGNUM): Remove.
7247 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7249 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7250 (unwind_tmp_obstack_free, parse_frame_info)
7251 (update_context, cfi_read_fp, cfi_write_fp)
7252 (cfi_frame_chain, cfi_init_extra_frame_info)
7253 (cfi_virtual_frame_pointer): Use the above function.
7254 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7256 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7258 * v850-tdep.c (v850_type_is_scalar): New function.
7259 (v850_use_struct_convention): Match current gcc implementation
7260 as close as possible.
7261 (v850_push_arguments): Fix stack_offset handling. Don't write
7262 struct_addr into register. This is done by v850_store_struct_return.
7263 (v850_extract_return_value): Care for structs.
7264 (v850_store_return_value): Ditto.
7265 (v850_store_struct_return): Actually write address.
7267 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7269 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7270 without debug information too.
7272 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7274 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7275 Make multi-arch pure.
7276 * gdbarch.h, gdbarch.c: Re-generate.
7277 * arm-tdep.c (arm_print_float_info): Update.
7278 * arch-utils.h (default_print_float_info): Update.
7279 * arch-utils.c (default_print_float_info): Update.
7280 * infcmd.c (float_info): Update call.
7282 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7284 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7285 the front of the initialize list.
7287 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7289 * infrun.c (struct inferior_status): Replace fields
7290 selected_frame_address and selected_level with field
7292 (save_inferior_status): Update. Use get_frame_id.
7293 (struct restore_selected_frame_args): Delete.
7294 (restore_selected_frame): Update. Use frame_find_by_id.
7295 (restore_inferior_status): Update.
7297 * breakpoint.h (struct breakpoint): Change type of
7298 watchpoint_frame to frame_id.
7299 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7300 call to get_current_frame.
7301 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7303 (watchpoint_check): Use frame_find_by_id.
7305 * frame.h (record_selected_frame): Delete declaration.
7306 * stack.c (record_selected_frame): Delete function.
7308 * frame.h (struct frame_id): Define.
7309 (get_frame_id): Declare.
7310 (frame_find_by_id): Declare.
7311 * frame.c (frame_find_by_id): New function.
7312 (get_frame_id): New function.
7314 2002-06-10 Andrey Volkov <avolkov@transas.com>
7316 * ser-e7kpc.c: Fix duplicated define and call of
7317 _initialize_ser_e7000pc
7319 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7321 * signals/signals.c (target_signal_from_host): Fix #ifdef
7323 (do_target_signal_to_host): Likewise.
7325 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7327 * mips-tdep.c (mips_find_abi_section): New function.
7328 (mips_gdbarch_init): Call it.
7330 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7332 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7333 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7334 after Andrew's 2002-06-08 gdbarch change.
7336 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7338 * i386-linux-nat.c (suppy_gregset): Don't supply
7339 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7341 (fill_gregset): Don't fetch it under the same circumstances.
7343 2002-06-09 Andrew Cagney <cagney@redhat.com>
7345 * Makefile.in (callback_h): Define.
7346 (remote_sim_h): Update path to remote-sim.h.
7347 (remote-rdp.o): Add $(callback_h).
7348 (remote-sim.o): Use $(callback_h).
7349 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7350 * remote-rdp.c: Include "gdb/callback.h".
7352 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7354 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7355 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7357 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7359 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7360 * rdi-share/serpardr.c: Ditto.
7361 * rdi-share/unixcomm.c: Ditto.
7362 * rdi-share/serdrv.c: Ditto.
7363 * rdi-share/hostchan.h: Ditto.
7364 * rdi-share/hostchan.c: Ditto.
7365 * rdi-share/host.h: Ditto.
7366 * rdi-share/devsw.c: Ditto.
7368 * objfiles.h: Change type of obj_private to void pointer.
7369 * pa64solib.c: Update copyright. Don't include "assert.h", use
7370 strcmp instead of STREQ, use LONGEST, do not use PTR
7371 * somsolib.c: Ditto.
7373 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7374 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7375 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7377 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7379 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7380 (default_get_saved_register): Delete function.
7381 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7382 generic_unwind_get_saved_register.
7383 * gdbarch.h, gdbarch.c: Re-generate.
7385 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7387 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7388 generic_func_frame_chain_valid.
7389 * gdbarch.h, gdbarch.c: Re-generate.
7390 * blockframe.c (generic_func_frame_chain_valid): Only check
7391 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7392 passing FP to PC_IN_CALL_DUMMY.
7395 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7397 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7398 (register_gdbarch_data): Initialize init_p.
7399 (gdbarch_data): Initialize data pointer using the init function.
7400 (init_gdbarch_data): Delete function.
7401 (gdbarch_update_p): Update.
7402 (initialize_non_multiarch): Update.
7403 (struct gdbarch): Add field initialized_p.
7404 * gdbarch.h, gdbarch.c: Re-generate.
7406 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7408 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7409 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7410 better do the things actually here.
7411 * x86-64-tdep.c (x86_64_register_name2nr): New.
7412 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7413 (x86_64_gdbarch_init): Respect the above change.
7414 * x86-64-tdep.h (x86_64_register_name2nr)
7415 (x86_64_register_nr2name): Add prototypes.
7416 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7418 2002-06-06 Michael Snyder <msnyder@redhat.com>
7420 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7421 Delete extra braces and re-indent.
7422 (d10v_store_return_value): Char return values
7423 must be shifted over by one byte in R0.
7424 (d10v_extract_return_value): Delete extra braces, re-indent.
7426 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7428 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7429 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7430 (d10v_integer_to_address): Rewrite.
7431 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7432 the d10v specific functions which take care of converting to the
7435 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7437 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7438 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7440 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7442 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7444 * config/tm-linux.h: Ditto.
7445 * config/alpha/tm-alphalinux.h: Ditto.
7446 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7447 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7448 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7449 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7450 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7451 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7452 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7453 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7454 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7455 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7456 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7457 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7458 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7459 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7460 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7461 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7462 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7463 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7464 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7465 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7466 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7467 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7468 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7469 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7470 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7471 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7472 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7473 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7474 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7475 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7476 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7477 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7478 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7479 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7480 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7481 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7482 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7484 2002-05-04 Aidan Skinner <aidan@velvet.net>
7486 * ada-exp.tab.c: New file
7487 * ada-exp.y: New file
7488 * ada-lang.c: New file
7489 * ada-lang.h: New file
7490 * ada-lex.c: New file
7491 * ada-lex.l: New file
7492 * ada-tasks.c: New file
7493 * ada-typeprint.c: New file
7494 * ada-valprint.c: New file
7496 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7498 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7499 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7501 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7503 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7504 insetead of ppc-linux-tdep.o.
7505 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7506 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7508 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7510 2002-05-07 Christian Groessler <chris@groessler.org>
7511 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7512 bit register contents for little endian hosts.
7514 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7516 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7519 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7521 * gdbarch.h: Regenerate.
7523 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7525 * MAINTAINERS: Add everyone to write-after-approval list.
7527 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7529 * stack.c (frame_info): Use frame_register_unwind instead of
7530 saved_regs. Mention when the SP is on the stack or in a register.
7532 * frame.h (frame_register_unwind_ftype): Define. Document.
7533 (struct frame_info): Add field register_unwind and
7534 register_unwind_cache.
7535 (frame_register_unwind): Declare.
7536 (generic_unwind_get_saved_register): Declare.
7538 * frame.c (frame_register_unwind): New function.
7539 (generic_unwind_get_saved_register): New function.
7541 * blockframe.c (generic_call_dummy_register_unwind): New function.
7542 (frame_saved_regs_register_unwind): New function.
7543 (set_unwind_by_pc): New function.
7544 (create_new_frame): New function.
7545 (get_prev_frame): New function.
7547 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7549 * a29k-share/: Delete directory.
7550 * remote-vx29k.c: Delete file.
7552 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7554 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7555 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7557 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7559 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7560 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7563 (sparcnbsd-tdep.o): New dependency lists.
7564 * NEWS: Note new UltraSPARC NetBSD native configuration.
7565 * configure.host (sparc64-*-netbsd*): New host.
7566 * configure.tgt (sparc-*-netbsdelf*)
7567 (sparc-*-netbsd*): Set gdb_target to nbsd.
7568 (sparc64-*-netbsd*): New target.
7569 * sparc64nbsd-nat.c: New file.
7570 * sparcnbsd-nat.c: New file.
7571 * sparcnbsd-tdep.c: New file.
7572 * sparcnbsd-tdep.h: New file.
7573 * config/sparc/nbsd.mt: New file.
7574 * config/sparc/nbsd64.mh: New file.
7575 * config/sparc/nbsd64.mt: New file.
7576 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7577 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7579 * config/sparc/nbsdaout.mt: Remove.
7580 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7581 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7583 * config/sparc/nbsdelf.mt: Remove.
7584 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7585 sparc-nat.c compatiblity defines.
7586 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7587 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7588 * config/sparc/tm-nbsd64.h: New file.
7589 * config/sparc/tm-nbsdaout.h: Remove.
7590 * config/sparc/xm-nbsd.h: Remove.
7592 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7594 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7595 * sparc-tdep.c: Include osabi.h.
7596 (gdbarch_tdep): Add osabi member.
7597 (_initialize_sparc_tdep): Use gdbarch_register.
7598 (sparc_gdbarch_init): Use generic OS ABI framework.
7599 (sparc_dump_tdep): New function.
7601 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7603 * corefile.c (do_captured_read_memory_integer): Return non-zero
7605 (safe_read_memory_integer): Copy result of memory read when
7606 status is non-zero. Also, add comments.
7608 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7610 * Makefile.in (ppc_tdep_h): Define.
7613 (rs6000-tdep.o): Use $(ppc_tdep_h).
7616 (ppcnbsd-tdep.o): New dependency lists.
7617 * ppc-tdep.h: Use generic OS ABI framework.
7618 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7619 (ppc_linux_init_abi): New functions.
7620 (ppc_sysv_abi_broken_use_struct_convention)
7621 (ppc_sysv_abi_use_struct_convention)
7622 (ppc_sysv_abi_push_arguments): Move to...
7623 * ppc-sysv-tdep.c: ...here.
7624 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7625 * rs6000-tdep.c (process_note_abi_tag_sections)
7626 (get_elfosabi): Remove.
7627 (rs6000_gdbarch_init): Use generic OS ABI framework.
7628 (rs6000_dump_tdep): New function.
7629 (_initialize_rs6000_tdep): Use gdbarch_register.
7630 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7631 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7632 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7633 of ppc-linux-tdep.o.
7634 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7635 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7636 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7637 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7638 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7639 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7641 2002-05-29 Jim Blandy <jimb@redhat.com>
7643 * macroscope.c (default_macro_scope): Put `void' in empty argument
7646 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7648 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7649 * arch-utils.c: Include "sim-regno.h".
7650 * gdbarch.sh: Don't include "sim-regno.h".
7651 * gdbarch.h, gdbarch.c: Regenerate.
7652 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7654 * arch-utils.h (legacy_register_sim_regno): To here.
7655 * remote-sim.c (legacy_register_sim_regno): Move function from
7657 * arch-utils.c (legacy_register_sim_regno): To here.
7659 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7661 * sim-regno.h: New file.
7662 * Makefile.in (sim_regno_h): Define.
7663 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7664 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7665 (legacy_register_sim_regno): New function.
7666 (one2one_register_sim_regno): New function.
7667 (gdbsim_fetch_register): Rewrite.
7668 (gdbsim_store_register): Only store a register when
7669 REGISTER_SIM_REGNO is valid.
7670 * d10v-tdep.c: Include "sim-regno.h".
7671 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7672 (d10v_ts3_register_sim_regno): Ditto.
7673 * gdbarch.sh: Include "sim-regno.h".
7674 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7675 * gdbarch.h, gdbarch.c: Regenerate.
7676 * arch-utils.h (default_register_sim_regno): Delete declaration.
7677 * arch-utils.c (default_register_sim_regno): Delete function.
7679 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7681 * ppcnbsd-nat.c: Rewrite.
7682 * ppcnbsd-tdep.c: New file.
7683 * ppcnbsd-tdep.h: New file.
7684 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7685 solib.o, and solib-svr4.o.
7686 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7687 nbsd-tdep.o, and corelow.o.
7689 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7691 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7692 `tr' and `sed'. Mention that `broken' targets are not expected to
7695 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7697 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7698 Let PC point right after the prologue before looking up symbols.
7700 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7702 * i386-tdep.c (i386_register_virtual_type): Return
7703 builtin_type_vec128i for SSE registers.
7705 * gdbtypes.h (builtin_type_vec128i): Declare.
7707 * gdbtypes.c (build_builtin_type_vec128i): New function.
7708 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7709 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7710 (build_gdbtypes): Initialize new builtin vector types.
7711 (_initialize_gdbtypes): Register new vector types with gdbarch.
7713 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7715 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7716 since it has been multi-arch'd.
7717 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7718 Move Alpha and VAX multi-arch news entries to same section
7719 as other multi-arch news.
7721 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7723 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7724 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7725 static. Rename some register numbers to put them in ns32k-tdep
7727 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7728 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7730 (_initialize_ns32k_tdep): Use gdbarch_register.
7731 * ns32k-tdep.h: New file.
7732 * ns32knbsd-tdep.c: New file.
7733 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7734 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7735 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7736 REGISTER_BYTES, REGISTER_BYTE): Remove.
7737 * config/ns32k/tm-ns32k.h: New file.
7738 * config/ns32k/tm-umax.h: Remove.
7740 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7742 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7743 ns32k_store_struct_return, ns32k_extract_return_value,
7744 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7746 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7747 ns32k_saved_pc_after_call.
7748 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7749 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7750 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7751 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7752 ns32k_extract_struct_value_address.
7754 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7756 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7757 ns32k_fix_call_dummy): New.
7758 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7759 ns32k_call_dummy_words.
7760 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7761 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7762 CALL_DUMMY_NARGS): Remove.
7763 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7765 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7767 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7768 ns32k_frame_saved_pc, ns32k_frame_args_address,
7769 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7770 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7771 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7772 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7773 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7774 (BREAKPOINT): Remove..
7775 (FRAME_CHAIN): Define as ns32k_frame_chain.
7776 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7777 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7778 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7779 (FRAME_FIND_SAVED_REGS): Remove.
7780 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7781 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7782 (POP_FRAME): Define as ns32k_pop_frame.
7784 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7786 * ns32k-tdep.c (ns32k_register_byte_32082,
7787 ns32k_register_byte_32382, ns32k_register_raw_size,
7788 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7790 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7791 ns32k_register_byte_32382.
7792 * config/ns32k/tm-umax.h: Update copyright years.
7793 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7794 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7795 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7796 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7797 (ns32k_get_enter_addr): Fix prototype.
7799 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7801 * ns32k-tdep.c: Update copyright years.
7802 (ns32k_register_name_32082): New function.
7803 (ns32k_register_name_32382): Ditto.
7804 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7805 (REGISTER_NAME): Define as ns32k_register_name_32382.
7806 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7807 (REGISTER_NAME): Define as ns32k_register_name_32082.
7809 2002-05-24 Jim Blandy <jimb@redhat.com>
7811 * dwarf2read.c (free_line_header): Use xfree, not free.
7813 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7815 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7816 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7818 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7820 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7822 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7824 From Ross Alexander at NEC Europe:
7825 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7827 2002-05-23 Michael Snyder <msnyder@redhat.com>
7829 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7830 for input, rather than parse_and_eval_address.
7832 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7834 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7835 * Makefile.in (sim_d10v_h): Update definition.
7837 2002-05-24 Andrew Cagney <cagney@redhat.com>
7839 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7840 change `2002-05-22 Michael Snyder' below.
7841 (d10v_push_arguments): Ditto.
7842 (d10v_extract_return_value): Ditto.
7844 2002-05-23 Jim Blandy <jimb@redhat.com>
7846 * macrotab.c (check_for_redefinition): Don't complain if the new
7847 definition is the same as the previous one. Take more arguments
7848 to allow the comparison.
7849 (macro_define_object, macro_define_function): Pass more arguments
7850 to check_for_redefinition.
7852 2002-05-22 Michael Snyder <msnyder@redhat.com>
7854 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7855 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7856 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7857 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7858 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7859 Add a temp variable to save a call (and a memory read).
7860 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7861 if possible (so that PC_IN_CALL_DUMMY will work).
7863 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
7865 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7867 2002-05-22 Michal Ludvig <mludvig@suse.cz>
7869 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7871 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7872 (dwarf2_build_frame_info): Add offset to fde->initial_location
7873 so that frames of shared libraries are mapped correctly.
7874 (execute_stack_op): Change type of 'result' from ULONGEST to
7877 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7879 * config/alpha/tm-nbsd.h: Include solib.h.
7881 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7883 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7884 assumptions about the host's byte order.
7886 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7888 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7890 * alphanbsd-tdep.c: Include solib-svr4.h.
7891 * shnbsd-tdep.c: Ditto.
7893 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7895 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7896 nbsd-tdep.h to dependency list.
7897 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7898 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7899 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7900 nbsdaout.mh and nbsdelf.mh consistently.
7901 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7902 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7903 nbsdaout.mt and nbsdelf.mh consistently.
7904 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7905 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7906 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7907 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7908 a.out shared library stuff from here...
7909 * config/nm-nbsdaout.h: ...to here.
7910 * config/tm-nbsd.h: Remove.
7911 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7912 * config/arm/nbsd.mh: Remove.
7913 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7915 * config/arm/nbsdaout.mh: New file.
7916 * config/arm/nbsdelf.mh: New file.
7917 * config/arm/nm-nbsdaout.h: New file.
7918 * config/i386/nbsd.mh: Remove.
7919 * config/i386/nbsd.mt: Remove.
7920 * config/i386/nbsdaout.mh: New file.
7921 * config/i386/nbsdaout.mt: New file.
7922 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7923 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7924 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7925 i386_register_u_addr): Remove.
7926 * config/i386/nm-nbsdaout.h: New file.
7927 * config/i386/nm-nbsdelf.h: Remove.
7928 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7929 (USE_STRUCT_CONVENTION): Remove.
7930 * config/i386/tm-nbsdaout.h: New file.
7931 * config/i386/tm-nbsdelf.h: Remove.
7932 * config/m68k/nbsd.mh: Remove.
7933 * config/m68k/nbsd.mt: Remove.
7934 * config/m68k/nbsdaout.mh: New file.
7935 * config/m68k/nbsdaout.mt: New file.
7936 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7937 * config/m68k/nm-nbsdaout.h: New file.
7938 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7939 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7940 * config/ns32k/nbsd.mh: Remove.
7941 * config/ns32k/nbsd.mt: Remove.
7942 * config/ns32k/nbsdaout.mh: New file.
7943 * config/ns32k/nbsdaout.mt: New file.
7944 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7945 * config/ns32k/nm-nbsdaout.h: New file.
7946 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7947 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7948 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7949 (SVR4_SHARED_LIBS): Remove.
7950 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7951 * config/sparc/nbsd.mh: Remove.
7952 * config/sparc/nbsd.mt: Remove.
7953 * config/sparc/nbsdaout.mh: New file.
7954 * config/sparc/nbsdaout.mt: New file.
7955 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7956 * config/sparc/nbsdelf.mt: New file.
7957 * config/sparc/nm-nbsdaout.h: New file.
7958 * config/sparc/nm-nbsdelf.h: Remove.
7959 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7960 * config/sparc/tm-nbsdaout.h: New file.
7962 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7964 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7966 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7968 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7970 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7972 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7974 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7976 * NEWS: Note new MIPS NetBSD native configuration.
7977 * configure.host (mips*-*-netbsd*): New host.
7978 * configure.tgt (mips*-*-netbsd*): New target.
7979 * mipsnbsd-nat.c: New file.
7980 * mipsnbsd-tdep.c: New file.
7981 * mipsnbsd-tdep.h: New file.
7982 * config/mips/nbsd.mh: New file.
7983 * config/mips/nbsd.mt: New file.
7984 * config/mips/nm-nbsd.h: New file.
7985 * config/mips/tm-nbsd.h: New file.
7987 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7989 * Makefile.in (SFILES): Add osabi.c.
7990 (COMMON_OBS): Add osabi.o.
7991 (osabi.o): New dependency list.
7992 * osabi.c: New file.
7993 * osabi.h: New file.
7994 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7996 * Makefile.in (alpha_tdep_h): Define and use instead of
7998 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7999 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8001 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8002 * alpha-tdep.h: Include osabi.h.
8003 (alpha_abi): Remove.
8004 (gdbarch_tdep): Use generic OS ABI framework.
8005 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8006 gdbarch_register_osabi.
8007 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8008 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8009 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8011 * Makefile.in (sh_tdep_h): Add osabi.h.
8012 * sh-tdep.h (sh_osabi): Remove.
8013 (gdbarch_tdep): Use generic OS ABI framework.
8014 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8015 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8016 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8017 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8019 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8020 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8021 gdbarch_register_osabi.
8022 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8023 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8024 (get_elfosabi): Rename to...
8025 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8026 ABI framework support routines.
8027 (arm_gdbarch_init): Use generic OS ABI framework.
8028 (arm_dump_tdep): Likewise.
8029 (_initialize_arm_tdep): Likewise.
8030 * arm-tdep.h: Include osabi.h.
8032 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8034 (arm_gdbarch_register_os_abi): Remove prototype.
8035 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8036 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8038 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8039 * mips-tdep.c: Include osabi.h.
8040 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8043 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8045 * h8300-tdep.c: Fix formatting.
8047 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8049 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8050 printing vector registers.
8052 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8054 From Fernando Nasser:
8055 * remote.c (remote_async_open_1): Re-throw the exception when the
8057 (remote_cisco_open): Ditto.
8058 (remote_open_1): Ditto.
8060 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8062 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8063 (remote_start_remote): Add uiout parameter. Pass through to
8064 remote_start_remote_dummy.
8065 (remote_open_1): Use catch_exception instead of catch_errors.
8066 (remote_async_open_1): Ditto.
8067 (remote_cisco_open): Ditto.
8069 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8071 * remote.c (remote_start_remote): Replace PTR with void pointer.
8072 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8075 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8077 * gdb_indent.sh: Allow the script to be run in the sim directory.
8079 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8081 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8082 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8084 * corelow.c (core_open): Only call set_gdbarch_from_file if
8087 2002-05-17 Andrey Volkov <avolkov@transas.com>
8089 * h8300-tdep.c: Add support of EXR register
8090 * config/h8300/tm-h8300.h: Ditto.
8092 2002-05-17 Andrey Volkov <avolkov@transas.com>
8094 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8096 2002-05-17 Andrey Volkov <avolkov@transas.com>
8098 * h8300-tdep.c: Change literal regnums to REGNO.
8100 2002-05-17 Jim Blandy <jimb@redhat.com>
8102 * NEWS: Note addition of macro support.
8104 Expand preprocessor macros in C expressions.
8105 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8106 (scan_macro_expansion, scanning_macro_expansion,
8107 finished_macro_expansion): New function declarations.
8108 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8109 variable declarations.
8110 * parser-defs.h (expression_context_pc): New declaration.
8111 * parse.c (expression_context_pc): New variable.
8112 (parse_exp_1): Set expression_context_pc, as well as
8113 expression_context_block.
8114 * c-exp.y (yylex): If we're not already reading the result of a
8115 macro expansion, try to macro-expand the next token. When we're
8116 done scanning a macro expansion, switch back to the mainline text.
8117 Commas and `if's in a macro's expansion don't terminate the input.
8118 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8119 (macro_original_text, macro_expanded_text,
8120 expression_macro_lookup_func, expression_macro_lookup_baton): New
8122 (scan_macro_expansion, scanning_macro_expansion,
8123 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8124 c_preprocess_and_parse): New functions.
8125 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8126 c_preprocess_and_parse, instead of c_parse.
8127 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8128 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8130 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8132 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8133 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8134 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8136 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8138 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8140 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8142 * Makefile.in (sh_tdep_h): Define and use.
8143 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8144 register enum): Move to...
8145 * * sh-tdep.h: ...here.
8146 * sh-tdep.c: Include sh-tdep.h.
8147 * sh3-rom.c: Likewise.
8148 * shnbsd-tdep.c: Likewise.
8150 2002-05-16 Michael Snyder <msnyder@redhat.com>
8152 * arm-tdep.c: Spelling fix in comment.
8154 2002-05-16 Jim Blandy <jimb@redhat.com>
8156 Add commands for manually expanding macros and showing their
8158 * macrocmd.c, macroscope.c, macroscope.h: New files.
8159 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8160 (macroscope_h): New variable.
8161 (HFILES_NO_SRCDIR): Add macroscope.h.
8162 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8163 (macroscope.o, macrocmd.o): New rules.
8165 Teach the Dwarf 2 reader to read macro information.
8166 * dwarf2read.c: #include "macrotab.h".
8167 (dwarf_macinfo_buffer): New variable.
8168 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8170 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8171 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8172 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8173 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8174 dwarf2_macro_spaces_in_definition): New complaints.
8175 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8176 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8177 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8178 the partial symbol table.
8179 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8180 from what's recorded in the partial symbol table.
8181 (read_file_scope): If the compilation unit has a
8182 `DW_AT_macro_info' attribute, read its macro information.
8183 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8185 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8188 * ser-tcp.c: Don't include <netinet/udp.h>.
8190 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8192 * MAINTAINERS: Update my email address.
8194 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8196 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8197 include file of the same name.
8199 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8201 * configure.tgt: Mark v850 as multi-arched.
8202 * config/v850/tm-v850.h: Remove file.
8203 * config/v850/v850.mt: Eliminate TM_FILE.
8205 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8207 * v850-tdep.c: Full multi-arch.
8208 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8209 Define GDB_MULTI_ARCH to 2.
8211 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8213 * p-exp.y (current_type): New static variable.
8214 Carries the type of the expression at the position that is parsed.
8215 (push_current_type, pop_current_type): Two new functions. Used
8216 to store/restore current_type in expression on specific tokens.
8217 (search_field): New static variable. Set to one after parsing a point
8218 as at that point only a FIELDNAME token should be searched.
8219 (FIELDNAME): New token. After a point only a token belonging to
8220 current_type type definition is allowed.
8221 (all over token rules): reset and change current_type according
8223 (exp '[' rule): insert implicit array index field if
8224 exp is a pascal string type.
8226 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8228 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8229 frame info. Use frame_info's saved_regs instead of matching member
8230 in extra_frame_info throughout.
8231 (v850_frame_init_saved_regs): New function.
8232 (v850_init_extra_frame_info): Move most functionality into
8233 v850_frame_init_saved_regs().
8234 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8235 (v850_frame_find_saved_regs): Remove declaration.
8236 (FRAME_FIND_SAVED_REGS): Remove definition.
8237 (v850_frame_init_saved_regs): Add declaration.
8238 (FRAME_INIT_SAVED_REGS): Add definition.
8240 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8242 * v850-tdep.c: Begin multi-arch'ing v850.
8243 (v850_target_architecture_hook): Remove function.
8244 (v850_gdbarch_init): New function. Add code previously in
8245 v850_target_architecture_hook().
8246 (_initialize_v850_tdep): Don't set target_architecture_hook.
8247 Call register_gdbarch_init() instead.
8249 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8251 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8252 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8253 (fixup_class_method_type): Likewise.
8255 2002-05-15 Jim Blandy <jimb@redhat.com>
8257 Add macro structures to GDB's symbol tables. Nobody puts anything
8259 * symtab.h (struct symtab): New member: `macro_table'.
8260 * buildsym.h (pending_macros): New global variable.
8261 * buildsym.c: #include "macrotab.h".
8262 (buildsym_init): Initialize `pending_macros'.
8263 (end_symtab): If we found macro information while reading a CU's
8264 debugging info, do build a symtab structure for it. Make the
8265 symtab point to the macro information, and clear the
8266 `pending_macros' pointer which held it while we were reading the
8268 (really_free_pendings): Free any pending macro table.
8269 * objfiles.h (struct objfile): New member: `macro_cache'.
8270 * objfiles.c (allocate_objfile): Set allocate and free functions
8271 for the macro cache's objstack.
8272 (free_objfile): Empty the macro cache's obstack.
8273 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8274 set new allocate and free functions for it.
8275 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8276 free functions for the macro cache's objstack. (Why is this
8277 function building its own objfile?)
8278 * symmisc.c (print_objfile_statistics): Print statistics on the
8280 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8282 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8284 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8285 (REGISTER_U_ADDR): Delete definition.
8286 (arm_register_u_addr): Delete declaration.
8288 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8290 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8291 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8293 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8295 * regcache.c (register_valid): Revise comments refering to "Not
8296 available" and "unavailable".
8297 * frame.c (frame_register_read): Ditto.
8298 * findvar.c (value_of_register): Ditto.
8300 2002-05-15 Andrew Cagney <cagney@redhat.com>
8302 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8303 (remote-sim.o): Update dependencies.
8304 (d10v-tdep.o): Specify dependencies.
8305 (sim_d10v_h): Define.
8307 2002-05-14 Jim Blandy <jimb@redhat.com>
8309 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8310 * macrotab.c (macro_lookup_inclusion, find_definition,
8311 new_macro_table): Same.
8313 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8314 not `! strcmp ()'. This is a dubious improvement.
8315 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8317 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8318 although it's not necessary, to avoid a warning.
8320 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8322 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8323 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8324 TYPE_INSTANCE_FLAGS.
8325 (struct main_type): New.
8326 (struct type): Move most members to struct main_type. Change
8327 cv_type and as_type to new type_chain member. Add instance_flags.
8328 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8329 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8330 (finish_cv_type): Remove prototype.
8331 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8333 (alloc_type_instance): New function.
8334 (smash_type): New function.
8335 (make_pointer_type, make_reference_type, make_function_type)
8336 (smash_to_member_type, smash_to_method_type): Call smash_type.
8337 (make_qualified_type): New function.
8338 (make_type_with_address_space): Call make_qualified_type.
8339 (make_cv_type): Likewise.
8340 (finish_cv_type): Remove unnecessary function.
8341 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8342 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8343 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8344 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8345 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8346 * hpread.c (hpread_read_struct_type): Likewise.
8347 * stabsread.c (read_struct_type): Likewise.
8349 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8351 * configure.tgt: Add a catch all sh* target, for cases like
8352 sh[2,3,4]-elf and sh-hms.
8354 2002-05-14 Keith Seitz <keiths@redhat.com>
8356 * event-loop.c (create_file_handler): Don't do anything but
8357 update data when we are given a fd which we are already
8360 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8362 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8363 (update_context): Use __func__ in warnings.
8365 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8367 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8368 and tcp_close to net_open and net_close.
8369 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8370 using UDP if requested. Don't try to disable Nagle on UDP
8372 * remote.c (remote_serial_open): New function. Warn about UDP.
8373 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8375 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8377 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8379 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8381 * configure.tgt: Remove sh-hms target.
8382 * MAINTAINERS: Don't list sh-hms as a separate target.
8384 2002-05-13 Jim Blandy <jimb@redhat.com>
8386 Add first preprocessor macro-expansion files.
8387 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8388 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8389 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8390 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8391 (COMMON_OBS): Add macrotab.o, macroexp.o.
8392 (macroexp.o, macrotab.o): New rules.
8394 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8396 * config/m88k/tm-m88k.h: Update copyright.
8397 (m88k_target_write_pc): Declare
8398 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8399 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8400 (SHIFT_INST_REGS): Update definition.
8401 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8402 using old definition of TARGET_WRITE_PC.
8403 * regcache.c (generic_target_write_pc): Delete code handling
8405 * gdbarch.sh (NNPC_REGNUM): Delete.
8406 * gdbarch.h, gdbarch.c: Regenerate.
8408 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8410 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8413 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8415 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8416 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8417 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8419 * c-typeprint.c (cp_type_print_method_args): Likewise.
8420 (c_type_print_args): Likewise.
8421 * d10v-tdep.c (d10v_push_arguments): Likewise.
8422 (d10v_extract_return_value): Likewise.
8423 * expprint.c (print_subexp): Likewise.
8424 * gdbtypes.c (lookup_primitive_typename): Likewise.
8425 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8426 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8427 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8428 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8429 (TYPE_VECTOR): Likewise.
8430 * hpread.c (hpread_read_struct_type)
8431 (fix_static_member_physnames, fixup_class_method_type)
8432 (hpread_type_lookup): Likewise.
8433 * mdebugread.c (parse_symbol, parse_type): Likewise.
8434 * p-lang.c (is_pascal_string_type): Likewise.
8435 * valops.c (hand_function_call): Likewise.
8436 * x86-64-tdep.c (classify_argument): Likewise.
8438 * hpread.c (hpread_read_function_type)
8439 (hpread_read_doc_function_type): Call replace_type.
8440 * dstread.c (create_new_type): Delete.
8441 (decode_dst_structure, process_dst_function): Call alloc_type.
8442 Use type access macros.
8444 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8446 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8447 the're not supported by the current architecture.
8448 (i387_fill_fxsave): Likewise.
8450 2002-05-12 Fred Fish <fnf@redhat.com>
8452 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8453 sect_index_xxx members to index the first slot in section_offsets
8454 if all of the section_offsets are zero.
8456 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8458 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8459 checked in with last change.
8461 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8463 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8464 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8467 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8469 * Makefile.in: Update dependencies.
8471 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8473 * language.c (local_hex_string_custom): Simplify. Do not depend
8474 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8476 * memattr.c (mem_info_command): Replace calls to
8477 longest_local_hex_string and longest_local_hex_string_custom.
8478 * buildsym.c (make_blockvector): Ditto.
8479 * solib.c (info_sharedlibrary_command): Ditto.
8480 * tracepoint.c (tracepoints_info): Ditto.
8481 * symtab.c (print_msymbol_info): Ditto.
8483 * language.c (local_hex_string): Delete.
8484 (local_hex_string_custom): Delete.
8485 (longest_local_hex_string): Rename to local_hex_string.
8486 (longest_local_hex_string_custom): Rename to
8487 local_hex_string_custom.
8488 * language.h (local_hex_string): Change parameter type to LONGEST.
8489 (local_hex_string_custom): Ditto.
8490 (longest_local_hex_string): Delete declaration.
8491 (longest_local_hex_string_custom): Ditto.
8493 * solib.c: Update copyright.
8494 * memattr.c: Update copyright.
8496 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8498 * arch-utils.h (legacy_register_to_value): Declare.
8499 (legacy_value_to_register): Declare.
8500 (legacy_convert_register_p): Declare.
8501 * arch-utils.c (legacy_register_to_value): New function.
8502 (legacy_value_to_register): New function.
8503 (legacy_convert_register_p): New function.
8505 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8506 (VALUE_TO_REGISTER): Define.
8507 (CONVERT_REGISTER_P): Define.
8508 * gdbarch.h, gdbarch.c: Regenerate.
8510 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8512 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8515 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8516 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8518 * Makefile.in: Update dependencies for valops.c.
8519 * valops.c: Include "gdb_assert.h".
8520 (typecmp): Skip THIS parameter to methods.
8521 (find_method_list): Remove static_memfuncp argument,
8522 update callers. Check for stub methods.
8523 (find_value_oload_method_list): Don't set *static_memfuncp.
8524 (find_overload_match): Don't check for stub methods. Assert
8525 that methods are not stubbed. Handle static methods.
8526 (value_find_oload_method_list): Remove static_memfuncp argument.
8527 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8528 to the argument list for static stub methods.
8529 * value.h (value_find_oload_method_list): Update prototype.
8531 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8533 * arch-utils.h (generic_register_size): Declare.
8534 (generic_register_raw_size, generic_register_virtual_size): Delete
8536 * arch-utils.c (generic_register_raw_size): Delete.
8537 (generic_register_size): New function.
8538 (generic_register_virtual_size): Delete.
8540 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8541 default generic_register_size.
8542 * gdbarch.h, gdbarch.c: Re-generate.
8544 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8545 register_virtual_size.
8546 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8547 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8549 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8551 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8552 * gdbarch.h, gdbarch.c: Regenerate.
8553 * gnu-v3-abi.c: Update copyright.
8554 (vtable_address_point_offset): Update.
8555 (gnuv3_rtti_type): Update.
8556 (gnuv3_baseclass_offset): Update.
8557 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8558 (init_fetch_link_map_offsets): Update.
8559 * remote.c (get_remote_state): Update.
8561 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8563 * TODO: Remove value_headof/value_from_vtable_info comment.
8564 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8565 * values.c (value_headof, value_from_vtable_info): Delete.
8566 * value.h (value_from_vtable_info): Delete prototype.
8568 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8570 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8571 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8573 (gdb_assert_h): Define.
8574 (gdb_wait_h): Define.
8575 (gdb_regex_h): Define.
8577 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8579 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8580 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8582 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8584 * nbsd-tdep.c: Fix comment.
8586 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8588 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8589 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8590 (nbsd-tdep.o): New dependency list.
8591 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8593 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8594 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8595 * nbsd-tdep.c: New file.
8596 * nbsd-tdep.h: New file.
8597 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8599 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8600 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8601 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8602 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8604 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8606 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8607 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8608 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8609 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8610 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8611 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8613 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8615 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8616 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8617 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8618 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8619 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8620 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8621 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8623 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8625 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8626 fetch_elfcore_registers to...
8627 * i386nbsd-tdep.c: ...here.
8628 (i386nbsd_use_struct_convention): Rename to...
8629 (i386nbsd_aout_use_struct_convention): ...this.
8630 (i386nbsd_supply_reg): New function.
8631 (i386nbsd_fill_reg): New function.
8632 (fetch_core_registers): Use i386nbsd_supply_reg.
8633 (fetch_elfcore_registers): Likewise.
8634 (_initialize_i386nbsd_tdep): New function.
8635 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8636 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8637 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8638 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8639 (i386nbsd_aout_use_struct_convention): ...this.
8641 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8643 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8644 (store_inferior_registers): Use shnbsd_fill_reg.
8645 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8646 sh_nbsd_supply_register): Collapse into...
8647 (shnbsd_supply_reg): ...this.
8648 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8649 (shnbsd_fill_reg): ...this.
8650 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8651 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8652 (fetch_core_registers): Use shnbsd_supply_reg.
8653 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8654 (sh_nbsd_core_fns): Rename to...
8655 (shnbsd_core_fns): ...this.
8656 (sh_nbsd_elfcore_fns): Rename to...
8657 (shnbsd_elfcore_fns): ...this.
8658 (sh_nbsd_init_abi): Rename to...
8659 (shnbsd_init_abi): ...this.
8660 (_initialize_sh_nbsd_tdep): Rename to...
8661 (_initialize_shnbsd_tdep): ...this.
8662 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8663 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8664 sh_nbsd_fill_register): Remove prototypes.
8665 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8667 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8669 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8670 (i387-nat.o): Delete dependency list.
8671 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8672 (x86-64-linux-nat.o): Likewise.
8673 * i387-nat.c: Delete file, moving contents to...
8674 * i387-tdep.c: ...here.
8675 * i387-nat.h: Rename...
8676 * i387-tdep.h: ...to this.
8677 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8678 * i386-linux-nat.c: Likewise.
8679 * i386bsd-nat.c: Likewise.
8680 * i386gnu-nat.c: Likewise.
8681 * i386nbsd-nat.c: Likewise.
8682 * i386v4-nat.c: Likewise.
8683 * x86-64-linux-nat.c: Likewise.
8684 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8685 * config/i386/go32.mh (NATDEPFILES): Likewise.
8686 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8687 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8688 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8689 * config/i386/linux.mh (NATDEPFILES): Likewise.
8690 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8691 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8692 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8693 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8695 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8697 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8698 (alphanbsd-nat.o): Remove dependency list.
8699 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8700 * alphanbsd-nat.c: Delete. Contents moved to...
8701 * alphanbsd-tdep.c: ...here.
8702 (_initialize_alphanbsd_tdep): Register core functions.
8703 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8705 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8707 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8708 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8709 (alphanbsd-nat.o): Likewise.
8710 (alphabsd-tdep.o): New dependency list.
8711 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8712 (fill_gregset): Use alphabsd_fill_reg.
8713 (supply_fpregset): Use alphabsd_supply_fpreg.
8714 (fill_fpregset): Use alphabsd_fill_fpreg.
8715 (fetch_inferior_registers): Use struct reg and struct fpreg
8716 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8717 and alphabsd_supply_fpreg.
8718 (store_inferior_registers): Use struct reg and struct fpreg
8719 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8720 and alphabsd_fill_fpreg.
8721 * alphabsd-tdep.c: New file.
8722 * alphabsd-tdep.h: New file.
8723 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8724 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8725 alphabsd_supply_fpreg.
8726 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8727 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8729 2002-05-11 Eric Christopher <echristo@redhat.com>
8731 * mips-tdep.c (mips_double_register_type): Fix thinko.
8732 (mips_single_register_type): Ditto.
8733 * MAINTAINERS: Add self.
8735 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8737 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8738 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8739 right thing on architectures with different endianness and/or
8742 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8744 From Christian Limpach <chris@Pin.LU>
8745 * configure.in: Change sed expression which comments out
8746 NATDEPFILES to also comment out continuation lines.
8747 * configure: Regenerate.
8749 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8751 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8754 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8756 * sh-tdep.c: Include correct file.
8758 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8760 New support for sh64-elf (sh5) target.
8762 * configure.tgt: For sh64-elf target, default to sh-elf.
8764 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8765 (struct gdbarch_tdep): Add new fields for new registers and ABI
8768 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8769 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8770 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8771 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8772 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8773 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8774 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8775 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8776 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8777 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8778 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8779 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8780 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8781 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8782 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8783 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8784 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8785 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8786 sign_extend, sh64_nofp_frame_init_saved_regs,
8787 sh64_init_extra_frame_info, sh64_get_saved_register,
8788 sh64_extract_struct_value_address, sh64_pop_frame,
8789 sh64_push_arguments, sh64_extract_return_value,
8790 sh64_store_return_value, sh64_show_media_regs,
8791 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8792 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8793 sh_sh64_register_virtual_type,
8794 sh_sh64_register_convert_to_virtual,
8795 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8796 sh64_register_read, sh64_pseudo_register_write,
8797 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8798 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8799 sh64_do_pseudo_register, sh_compact_do_registers_info,
8800 sh64_do_registers_info, sh_gdbarch_init): New functions.
8802 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8804 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8806 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8808 * linespec.c (decode_line_1): Check for a double quote after
8809 a filename correctly.
8811 2002-05-10 Jim Blandy <jimb@redhat.com>
8813 Properly track the size of the current objfile's .debug_line section.
8814 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8815 (DWARF_LINE_SIZE): New macro.
8816 (dwarf2_build_psymtabs_hard): Record the line section's size in
8817 the partial symbol table.
8818 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8821 2002-05-10 Petr Sorfa <petrs@caldera.com>
8823 * ia64-tdep.c: Handle breakpoints on L instruction type
8824 in MLX instruction bundle by moving the breakpoint to
8825 the third slot (X instruction type) as L holds only data.
8827 2002-05-10 Kevin Buettner <kevinb@redhat.com>
8829 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8830 (process_one_symbol): Complain about discarding local symbols
8831 due to a misplaced N_LBRAC entry.
8833 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
8835 From Daniel Berlin <dan@cgsoftware.com>
8836 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8837 decrease the depth we are at, in the case of templates.
8839 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8841 * mips-tdep.c (mips_float_register_type): New function.
8842 (mips_double_register_type): New function.
8843 (mips_print_register): Use them.
8844 (do_fp_register_row): Likewise.
8846 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8848 * signals/signals.c (signals): Remove conditional compilation around
8849 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8850 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8852 2002-05-09 Michael Snyder <msnyder@redhat.com>
8854 * remote-rdp.c (remote_rdp_can_run): Remove.
8856 2002-05-09 Tom Tromey <tromey@redhat.com>
8858 * jv-valprint.c (java_val_print): Handle `char' as a special case
8861 2002-05-09 Michael Snyder <msnyder@redhat.com>
8863 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8864 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8865 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8866 str r(0123),[sp,#nn].
8867 (arm_skip_prologue): Ditto. Also make disassembly
8868 order-independent by placing it in a loop.
8870 2002-05-06 Michael Snyder <msnyder@redhat.com>
8872 * stabsread.c (read_type): Add recognition for new attribute:
8873 "@V;" means that an array type is actually a vector.
8874 This is analogous to the vector flag that's been added to dwarf2.
8876 2002-05-09 Mark Kettenis <kettenis@gnu.org>
8878 * i386-tdep.h (i386_abi): New enum.
8879 (struct gdbarch_tdep): Replace os_ident member with abi.
8880 (i386_gdbarch_register_os_abi): New prototype.
8881 * i386-tdep.c (i386_abi_names): New array.
8882 (process_note_abi_tag_sections): Removed.
8883 (process_note_sections): New function.
8884 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8885 (struct i386_abi_handler): New struct.
8886 (i386_abi_handler_list): New variable.
8887 (i386_gdbarch_register_os_abi): New function.
8888 (i386_gdbarch_init): Adapt for the changes given above.
8890 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
8892 * gregset.h: Say "GNU/Linux".
8894 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
8896 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8897 (build_gdbtypes): Build builtin_type_v2_float.
8898 (_initialize_gdbtypes): Register new builtin type.
8900 2002-05-08 Andrew Cagney <ac131313@redhat.com>
8902 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8903 (clear_gdbarch_swap): New function.
8904 (initialize_non_multiarch): Call.
8905 (gdbarch_update_p): Before calling init(), swap out and clear the
8906 existing architecture.
8907 * gdbarch.c: Regenerate.
8909 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8911 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8914 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8916 * sh-nbsd-nat.c: Rename to...
8917 * shnbsd-nat.c: ...this.
8918 * sh-nbsd-tdep.c: Rename to...
8919 * shnbsd-tdep.c: ...this.
8920 * sh-nbsd-tdep.h: Rename to...
8921 * shnbsd-tdep.h: ...this.
8922 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8923 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8925 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
8927 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8928 concatenation for command help messages.
8930 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8932 * NEWS: Note new sh*-*-netbsdelf* configuration.
8933 * configure.host: Set gdb_host_cpu to sh for all sh*.
8934 (sh*-*-netbsdelf*): New host.
8935 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8936 (sh*-*-netbsdelf*): New target.
8937 * sh-nbsd-nat.c: New file.
8938 * sh-nbsd-tdep.c: New file.
8939 * sh-nbsd-tdep.h: New file.
8940 * config/sh/nbsd.mh: New file.
8941 * config/sh/nbsd.mt: New file.
8942 * config/sh/nm-nbsd.h: New file.
8943 * config/sh/tm-nbsd.h: New file.
8945 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8947 * sh-tdep.c (sh_osabi_names): Declare.
8948 (process_note_abi_tag_sections): New function.
8949 (get_elfosabi): Ditto.
8950 (sh_gdbarch_register_os_abi): Ditto.
8951 (sh_dump_tdep): Ditto.
8952 _initialize_sh_tdep): Use gdbarch_register to register
8953 sh_gdbarch_init and sh_dump_tdep.
8954 * config/sh/tm-sh.h (sh_osabi): Declare.
8955 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8957 2002-05-07 Andrew Cagney <ac131313@redhat.com>
8959 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8960 (thumb_scan_prologue): Ditto.
8961 (arm_find_callers_reg): Ditto.
8962 (arm_frame_chain): Ditto.
8963 (arm_init_extra_frame_info): Ditto.
8964 (arm_frame_saved_pc): Ditto.
8965 (arm_pop_frame): Ditto.
8966 (arm_push_return_address): New function.
8967 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8968 call_dummy_location, call_dummy_breakpoint_offset_p,
8969 call_dummy_breakpoint_offset, call_dummy_p,
8970 call_dummy_stack_adjust_p, call_dummy_words,
8971 sizeof_call_dummy_words, call_dummy_start_offset,
8972 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8973 call_dummy_address, push_return_address and push_dummy_frame for
8974 generic dummy frames.
8976 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8978 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8979 size computation for alloca.
8980 (sh_fp_frame_init_saved_regs): Likewise.
8982 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
8984 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8985 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
8986 * arm-tdep.c (arm_store_return_value): Use them.
8987 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8988 * remote-rdp.c (remote_rdp_fetch_register): Use
8989 ARM_MAX_REGISTER_RAW_SIZE.
8990 (remote_rdp_store_register): Likewise.
8992 2002-05-07 Michal Ludvig <mludvig@suse.cz>
8994 * dwarf2cfi.c: Code cleanup, removed unused variables,
8995 added default labels to switch {} statements.
8996 * x86-64-tdep.c: Ditto.
8997 * x86-64-linux-nat.c: Ditto.
8999 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9001 * solib.h: Protect against multiple inclusion.
9003 2002-05-06 Jim Blandy <jimb@redhat.com>
9005 Add first preprocessor macro-expansion files.
9006 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9007 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9008 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9009 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9010 (COMMON_OBS): Add macrotab.o, macroexp.o.
9011 (macroexp.o, macrotab.o): New rules.
9013 Separate the job of reading the line number info statement program
9014 header (...expialidocious) out into its own function.
9015 * dwarf2read.c (struct line_head, struct filenames, struct
9016 directories): Replace with...
9017 (struct line_header): New structure, containing the full
9018 contents of the statement program header, including the
9019 include directory and file name tables.
9020 (read_file_scope): If we have line number info, instead of just
9021 calling dwarf_decode_lines to do all the work, call
9022 dwarf_decode_line_header first to get a `struct line_header'
9023 containing the data in the statement program header, and then
9024 pass that to dwarf_decode_lines, which will pick up where that
9025 left off. Be sure to clean up the `struct line_header' object.
9026 (dwarf_decode_line_header, free_line_header, add_include_dir,
9027 add_file_name): New functions.
9028 (dwarf_decode_lines): Move all the code to read the statement
9029 program header into dwarf_decode_line_header. Take the line
9030 header it built as the first argument, instead of the offset to
9031 the compilation unit's line number info. Use the new `struct
9032 line_header' type instead of the old structures. No need to do
9033 cleanups here now, since we don't allocate anything.
9034 (dwarf2_statement_list_fits_in_line_number_section,
9035 dwarf2_line_header_too_long): New complaints.
9037 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9039 * gdbtypes.c (init_vector_type): New function.
9040 (build_builtin_type_vec128): Simplify the representation of SIMD
9042 (build_gdbtypes): Initialize new builtin vector types.
9043 (_initialize_gdbtypes): Register new vector types with gdbarch.
9044 (builtin_type_v4_float, builtin_type_v4_int32,
9045 builtin_type_v8_int16, builtin_type_v16_int8,
9046 builtin_type_v2_int32, builtin_type_v4_int16,
9047 builtin_type_v8_int8): New (renamed) SIMD types.
9049 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9051 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9052 (i387_fill_fxsave): Likewise.
9054 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9056 * alpha-tdep.c (alpha_extract_return_value): Don't use
9057 non-constant array size in prototype.
9059 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9061 From Brian Taylor <briant at model dot com>:
9062 * ui-out.c (ui_out_field_core_addr): Use the function
9063 longest_local_hex_string_custom'to format addresses > 32 bits
9066 * ui-out.c (ui_out_field_core_addr): Update comment.
9068 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9070 * stack.c (select_and_print_frame): Make static. Delete the
9072 (func_command): Update call.
9073 (select_frame_command): Delete code computing the frame level.
9074 * frame.h (select_and_print_frame): Delete declaration.
9076 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9078 * sparc-tdep.c (sparc_get_saved_register): Comment why
9079 get_prev_frame call is safe.
9081 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9083 * frame.h (select_frame): Delete level parameter.
9084 * stack.c (select_frame): Update. Use frame_relative_level to
9085 obtain the frame's level.
9086 (select_and_print_frame): Update call.
9087 (select_frame_command): Ditto.
9088 (up_silently_base): Ditto.
9089 (down_silently_base): Ditto.
9090 * ocd.c (ocd_start_remote): Ditto.
9091 * remote-rdp.c (remote_rdp_open): Ditto.
9092 * remote-mips.c (mips_initialize): Ditto.
9093 (common_open): Ditto.
9094 * remote-e7000.c (e7000_start_remote): Ditto.
9095 * m3-nat.c (select_thread): Ditto.
9096 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9097 (child_get_current_exception_event): Ditto.
9098 * varobj.c (varobj_create): Ditto.
9099 (varobj_update): Ditto.
9100 (c_value_of_root): Ditto.
9101 * tracepoint.c (finish_tfind_command): Ditto.
9102 * corelow.c (core_open): Ditto.
9103 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9104 * thread.c (info_threads_command): Ditto.
9105 (switch_to_thread): Ditto.
9106 * infrun.c (normal_stop): Ditto.
9107 (restore_selected_frame): Ditto.
9108 (restore_inferior_status): Ditto.
9109 * breakpoint.c (insert_breakpoints): Ditto.
9110 (watchpoint_check): Ditto.
9111 (bpstat_stop_status): Ditto.
9112 (do_enable_breakpoint): Ditto.
9113 * blockframe.c (flush_cached_frames): Ditto.
9114 (reinit_frame_cache): Ditto.
9116 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9118 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9121 2002-05-04 Jim Blandy <jimb@redhat.com>
9123 * gdbtypes.c (replace_type): Doc fix.
9125 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9127 * valprint.c (strcat_longest): Delete commented out function.
9130 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9132 * MAINTAINERS: Mark a29k as deleted.
9133 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9134 Move new configurations to the top.
9135 * configure.tgt: Remove a29k.
9136 * config/a29k/tm-vx29k.h: Delete.
9137 * config/a29k/vx29k.mt: Delete.
9138 * config/a29k/tm-a29k.h: Delete.
9139 * config/a29k/a29k-udi.mt: Delete.
9140 * config/a29k/a29k.mt: Delete.
9141 * a29k-tdep.c: Delete.
9142 * remote-udi.c: Delete.
9143 * remote-mm.c: Delete.
9144 * remote-eb.c: Delete.
9145 * remote-adapt.c: Delete.
9146 * Makefile.in: Remove obsolete code.
9147 * config/s390/s390x.mt: Ditto.
9148 * config/s390/s390.mt: Ditto.
9149 * config/sparc/sparclynx.mh: Ditto.
9150 * config/sparc/linux.mh: Ditto.
9151 * config/pa/hppaosf.mh: Ditto.
9152 * config/pa/hppabsd.mh: Ditto.
9153 * config/ns32k/nbsd.mt: Ditto.
9154 * config/mips/vr5000.mt: Ditto.
9155 * config/m68k/sun3os4.mh: Ditto.
9156 * config/m68k/nbsd.mt: Ditto.
9157 * config/m68k/m68klynx.mh: Ditto.
9158 * config/m32r/m32r.mt: Ditto.
9159 * config/i386/x86-64linux.mt: Ditto.
9160 * config/i386/nbsdelf.mt: Ditto.
9161 * config/i386/nbsd.mt: Ditto.
9162 * config/i386/i386lynx.mh: Ditto.
9164 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9166 * target.c (debug_print_register): New function. Handle oversize
9168 (debug_to_fetch_registers): Call.
9169 (debug_to_store_registers): Call.
9171 2002-05-03 Jim Blandy <jimb@redhat.com>
9173 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9174 (read_type): Doc fix.
9175 * gdbtypes.c (replace_type): Doc fix.
9177 * stabsread.c (multiply_defined_struct): New complaint.
9178 (read_struct_type): If the type we were passed isn't empty, or
9179 incomplete, don't read the new struct type into it; complain,
9180 and return the original type unchanged. Take a new `type_code'
9181 argument, which is the type code for the new type.
9182 (read_type): Rather than storing the type's type code here, pass
9183 it as an argument to read_struct_type, and let that take care of
9184 storing it. That way, we don't overwrite the original type code,
9185 so read_struct_type can use it to decide whether we're overwriting
9186 something we shouldn't.
9187 (complain_about_struct_wipeout): New function.
9189 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9191 * gdbarch.sh: Assert that gdbarch is non-NULL.
9192 * gdbarch.c: Regenerate.
9194 2002-05-03 Jason Merrill <jason@redhat.com>
9196 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9199 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9201 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9202 (x86_64_dwarf2gdb_regno_map_length),
9203 (x86_64_dwarf2_reg_to_regnum): Added.
9204 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9205 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9206 (_initialize_x86_64_tdep): Synced with the change above.
9207 (x86_64_skip_prologue): Reformulated message.
9209 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9211 * f-exp.y: Also use new prev_lexptr variable
9212 to improve error reporting. Based on Michael Snyder
9213 2002-04-24 dated patch to c-exp.y.
9214 * jv-exp.y: Likewise.
9215 * m2-exp.y: Likewise.
9217 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9219 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9220 we are dealing with vectors.
9222 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9224 * config/m68k/tm-nbsd.h: Obvious fix,
9225 correct machine name.
9227 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9229 * p-typeprint.c (pascal_type_print_base): Add support
9230 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9232 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9234 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9235 for fondamental pascal 'char' type.
9237 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9239 * p-lang.h (is_pascal_string_type): Declaration changed,
9240 new sixth argument of type char ** added.
9241 * p-lang.c (is_pascal_string_type): Implementation
9242 changed. Args length_pos, length_size, string_pos, char_size
9243 can now be NULL. New argument arrayname set to the field
9244 name of the char array. Return value set to char array
9245 field index plus one.
9246 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9247 is_pascal_string_type function.
9249 2002-05-02 Andrew Cagney <cagney@redhat.com>
9251 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9252 <cagney@redhat.com> change.
9253 * gdbarch.c: Regenerate.
9255 2002-05-02 Andrew Cagney <cagney@redhat.com>
9257 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9258 before probing for a new one. Detect errorenous gdbarch_init
9260 * gdbarch.c: Regenerate.
9262 2002-05-01 Andrew Cagney <cagney@redhat.com>
9264 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9265 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9266 * config/v850/tm-v850.h: Ditto. Update copyright.
9268 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9270 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9273 2002-04-30 Michael Snyder <msnyder@redhat.com>
9275 * arm-tdep.c: Whitespace clean-ups.
9276 (arm_skip_prologue): Fix thinko; two lines
9277 should have been removed as part of 4/24 change.
9279 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9281 * rs6000-tdep.c: Added comment describing how fpscr register
9282 numbers were chosen.
9284 2002-04-30 Michael Snyder <msnyder@redhat.com>
9286 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9288 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9290 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9291 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9292 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9294 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9296 From Louis Hamilton <hamilton@redhat.com>:
9297 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9298 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9299 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9300 not bfd-private xcoff data, to determine wordsize.
9301 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9303 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9305 GDB 5.2 released from 5.2 branch.
9307 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9309 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9310 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9311 (x86_64_register_info_table): Added comments with register numbers.
9313 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9315 * rs6000-tdep.c (rs6000_extract_return_value,
9316 rs6000_store_return_value): Handle returning vectors.
9317 (rs6000_gdbarch_init): Use
9318 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9319 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9321 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9323 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9324 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9326 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9328 * hpread.c (hpread_psymtab_to_symtab_1,
9329 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9330 with fprintf_unfiltered (gdb_stderr,...).
9332 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9334 * remote-array.c (printf_monitor, write_monitor,
9335 array_insert_breakpoint, array_remove_breakpoint ):
9336 Replace fprintf (stderr,...
9337 with fprintf_unfiltered (gdb_stderr,....
9338 * remote-es.c: Likewise.
9339 * remote-os9k.c: Likewise.
9340 * remote-st.c: Likewise.
9342 2002-04-28 Andreas Schwab <schwab@suse.de>
9344 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9345 linux-proc.o and gcore.o.
9347 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9349 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9350 code without frame pointers.
9352 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9354 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9357 2002-04-26 Ben Elliston <bje@redhat.com>
9359 * target.c (do_xfer_memory): Correct reference to the new option
9360 "trust-readonly-sections".
9362 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9364 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9365 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9366 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9368 (read_array_type): Record the fact that this array type is really a
9369 vector (i.e. are passed in by value).
9371 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9373 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9374 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9375 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9376 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9377 * alpha-linux-tdep.c: Include frame.h.
9378 (alpha_linux_sigcontext_addr): New function.
9379 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9380 alpha_linux_sigcontext_addr.
9381 * alpha-osf1-tdep.c: Include gdbcore.h.
9382 (alpha_osf1_sigcontext_addr): New function.
9383 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9384 alpha_osf1_sigcontext_addr.
9385 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9386 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9388 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9390 * stack.c (selected_frame_level):
9391 (select_frame): Do not set selected_frame_level.
9392 * frame.h (selected_frame_level): Delete declaration.
9394 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9396 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9397 convert_from_func_ptr-addr when AIX / PowerOpen.
9399 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9401 * valops.c (hand_function_call): Call
9402 generic_save_call_dummy_addr.
9403 * frame.h (generic_save_call_dummy_addr): Declare.
9404 * blockframe.c (struct dummy_frame): Add fields call_lo and
9406 (generic_find_dummy_frame): Check for PC in range call_lo to
9407 call_hi instead of entry_point_address.
9408 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9409 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9410 (generic_save_call_dummy_addr): New function.
9412 2002-04-24 David S. Miller <davem@redhat.com>
9414 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9415 sparc_skip_prologue.
9416 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9417 information to find prologue when possible.
9418 (sparc_prologue_frameless_p): Call examine_prologue directly.
9419 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9420 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9422 (SKIP_PROLOGUE): Likewise.
9424 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9426 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9427 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9428 indicate that the condition it was testing is always true.
9429 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9430 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9431 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9433 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9435 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9436 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9437 tdep->jb_pc and tdep->jb_elt_size.
9438 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9439 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9440 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9441 * alpha-nat.c (get_longjmp_target): Remove.
9442 (JB_ELEMENT_SIZE): Ditto.
9444 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9445 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9446 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9447 to alpha_get_longjmp_target.
9448 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9449 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9450 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9452 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9454 * README: Update to GDB 5.2.
9456 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9458 * gdbarch.sh (LC_ALL): Set to `c'.
9460 2002-04-25 Theodore A. Roth <troth@verinet.com>
9462 * avr-tdep.c: Ran through gdb_indent.sh.
9464 2002-04-25 Theodore A. Roth <troth@verinet.com>
9466 * MAINTAINERS: Add myself as AVR maintainer.
9467 * NEWS: Note new target avr.
9469 2002-04-25 Theodore A. Roth <troth@verinet.com>
9471 * Makefile.in: Add support for AVR target.
9472 * configure.tgt: Add support for AVR target.
9473 * avr-tdep.c: New file
9474 * config/avr/avr.mt: New file.
9476 2002-04-25 Theodore A. Roth <troth@verinet.com>
9478 * MAINTAINERS: Add myself to write-after-approval.
9480 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9482 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9483 with fprintf_unfiltered (gdb_stderr,....
9485 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9488 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9490 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9492 * p-exp.y: Also use new prev_lexptr variable
9493 to improve error reporting. Based on Michael Snyder
9494 2002-04-24 dated patch to c-exp.y.
9496 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9498 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9499 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9500 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9502 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9504 (FUNCTION_START_OFFSET): Remove.
9505 (BREAKPOINT): Ditto.
9507 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9509 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9512 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9514 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9515 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9516 alpha_linux_pc_in_sigtramp.
9517 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9518 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9519 alpha_osf1_pc_in_sigtramp.
9520 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9521 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9522 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9523 alphafbsd_pc_in_sigtramp.
9524 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9525 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9526 alphanbsd_pc_in_sigtramp.
9527 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9528 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9530 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9532 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9534 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9536 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9538 (alphanbsd-nat.o): New dependency list.
9539 (alphanbsd-tdep.o): Ditto.
9540 * NEWS: Note new native NetBSD/alpha configuration.
9541 * alphanbsd-nat.c: New file.
9542 * alphanbsd-tdep.c: Ditto.
9543 * configure.host (alpha*-*-netbsd*): New host.
9544 * configure.tgt (alpha*-*-netbsd*): New target.
9545 * config/alpha/nbsd.mh: New file.
9546 * config/alpha/nbsd.mt: Ditto.
9547 * config/alpha/nm-nbsd.h: Ditto.
9548 * config/alpha/tm-nbsd.h: Ditto.
9550 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9552 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9553 (alpha-osf1-tdep.o): New dependency list.
9554 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9555 and skip_sigtramp_frame members.
9556 * alpha-linux-tdep.c: Include gdbcore.h.
9557 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9558 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9559 * alpha-osf1-tdep.c: New file.
9560 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9562 (alpha_frame_past_sigtramp_frame): New function.
9563 (alpha_dynamic_sigtramp_offset): Ditto.
9564 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9565 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9566 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9567 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9568 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9569 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9570 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9571 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9572 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9573 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9574 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9575 to find_solib_trampoline_target.
9576 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9577 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9578 (SKIP_TRAMPOLINE_CODE): Remove.
9579 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9580 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9581 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9582 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9583 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9584 (PROC_SIGTRAMP_MAGIC): Ditto.
9585 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9586 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9587 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9588 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9589 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9591 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9593 * NEWS: Note that Alpha targets are now multi-arch.
9595 2002-04-24 Michael Snyder <msnyder@redhat.com>
9597 * parser-defs.h (prev_lexptr): New external variable.
9598 * parse.c (parse_exp_1): Set prev_lexptr to null before
9599 calling the language-specific parser.
9600 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9601 (yyerror): Use prev_lexptr in error reporting.
9603 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9605 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9606 * gregset.h: If FILL_FPXREGSET is defined, provide
9607 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9608 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9609 is defined, call fill_fpxregset.
9611 2002-04-24 Roland McGrath <roland@frob.com>
9613 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9614 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9615 (supply_gregset, supply_fpregset): New functions.
9617 * gnu-nat.c (gnu_find_memory_regions): New function.
9618 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9619 (gnu_xfer_memory): Add a cast.
9621 2002-04-24 Michael Snyder <msnyder@redhat.com>
9623 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9624 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9625 of argument regs ("str r(0123), [r11, #-nn"]).
9626 (arm_skip_prologue): Better handling for frameless functions.
9627 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9628 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9630 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9632 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9633 NUM_PSEUDO_REGS can be used.
9635 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9637 * arch-utils.h: Update copyright.
9639 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9640 * gdbarch.h, gdbarch.c: Re-generate.
9642 * inferior.h (IN_SIGTRAMP): Delete definition.
9643 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9644 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9646 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9647 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9648 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9649 (find_proc_framesize): Ditto.
9650 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9651 (alpha_init_extra_frame_info): Ditto.
9652 * infrun.c (handle_inferior_event): Ditto.
9653 (handle_inferior_event): Ditto.
9654 (check_sigtramp2): Ditto.
9655 * blockframe.c (create_new_frame): Ditto.
9656 (get_prev_frame): Ditto.
9657 * ppc-linux-tdep.c: Update comments.
9658 * i386-linux-tdep.c: Update comments.
9659 * breakpoint.c (bpstat_what): Update comment.
9661 2002-04-24 David S. Miller <davem@redhat.com>
9663 * i960-tdep.c (register_in_window_p): New function.
9664 (i960_find_saved_register): Use it instead of
9665 REGISTER_IN_WINDOW_P.
9666 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9668 * symtab.h (find_stab_function_addr): Kill extern.
9669 * minsyms.c (find_stab_function_addr): Remove from here...
9670 * dbxread.c: ... to here, and mark it static.
9672 2002-04-20 David S. Miller <davem@redhat.com>
9674 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9675 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9677 2002-04-21 David S. Miller <davem@redhat.com>
9679 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9680 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9681 (vx_write_register): Likewise.
9683 2002-04-23 J. Brobecker <brobecker@gnat.com>
9685 * source.c (is_regular_file): New function.
9686 (openp): Check wether file to open is a regular file
9687 to avoid opening directories.
9689 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9691 * findvar.c (extract_signed_integer): Cast printf argument
9692 to suppress format warning.
9693 (extract_unsigned_integer): Likewise.
9694 * infcmd.c (registers_info): Likewise.
9695 * top.c (get_prompt_1): Likewise.
9696 * valops.c (value_assign): Likewise.
9697 * valprint.c (print_decimal): Likewise.
9699 2002-04-22 H.J. Lu (hjl@gnu.org)
9701 * c-exp.y (typebase): Support
9703 [long|long long|short] [signed|unsigned] [int|]
9707 signed [long|long long|short] int
9709 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9711 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9713 * vax-tdep.h: New file.
9714 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9715 Make several routines static.
9716 (vax_get_saved_register): New function.
9717 (vax_gdbarch_init): New function.
9718 (_initialize_vax_tdep): Register vax_gdbarch_init.
9719 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9720 Remove macros now under the control of gdbarch.
9722 2002-04-22 Michael Snyder <msnyder@redhat.com>
9724 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9725 Some whitespace and coding standards tweaks.
9727 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9729 * vax-tdep.c: Include regcache.h.
9730 (vax_call_dummy_words): New.
9731 (sizeof_vax_call_dummy_words): New.
9732 (vax_fix_call_dummy): New function.
9733 (vax_saved_pc_after_call): Ditto.
9734 * config/vax/tm-vax.h: Don't include regcache.h.
9735 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9736 (CALL_DUMMY): Remove.
9737 (CALL_DUMMY_WORDS): Define.
9738 (SIZEOF_CALL_DUMMY_WORDS): Define.
9739 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9741 2002-04-18 Michael Snyder <msnyder@redhat.com>
9743 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9745 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9747 * vax-tdep.c (vax_frame_chain): New function.
9748 (vax_push_dummy_frame): Ditto.
9749 (vax_pop_frame): Ditto.
9750 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9751 (FRAMELESS_FUNCTION_INVOCATION): Use
9752 generic_frameless_function_invocation_not.
9753 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9754 (POP_FRAME): Use vax_pop_frame.
9756 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9758 * vax-tdep.c (vax_store_struct_return): New function.
9759 (vax_extract_return_value): Ditto.
9760 (vax_store_return_value): Ditto.
9761 (vax_extract_struct_value_address): Ditto.
9762 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9763 vax_store_struct_return.
9764 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9765 (STORE_RETURN_VALUE): Use vax_store_return_value.
9766 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9768 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9770 * vax-tdep.c (vax_frame_saved_pc): New function.
9771 (vax_frame_args_address_correct): Ditto.
9772 (vax_frame_args_address): Ditto.
9773 (vax_frame_locals_address): Ditto.
9774 (vax_frame_num_args): Move code to be in proximity to
9775 other frame-related functions.
9776 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9777 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9778 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9779 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9780 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9782 2002-04-22 H.J. Lu (hjl@gnu.org)
9784 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9787 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9789 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9790 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9791 (FRAME_INIT_SAVED_REGS): New macro.
9793 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9795 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9797 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9799 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9801 (fetch_osf_core_registers): Likewise.
9802 (supply_gregset): Likewise.
9804 2002-04-22 J. Brobecker <brobecker@gnat.com>
9806 * symfile.h (get_section_index): Define.
9807 * symfile.c (get_section_index): New function.
9808 * mdebugread.c (SC_IS_SBSS): New macro.
9809 (SC_IS_BSS): Return true for the scBss storage class only, as
9810 the scSBss storage class refers to the .sbss section.
9811 (parse_partial_symbols): Discard the symbols which associated
9812 section does not exist.
9813 Make sure to use the .sbss section index for symbols which
9814 storage class is scBss, rather than using the .bss section index.
9816 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9818 * vax-tdep.c: Update copyright years.
9819 (vax_register_name): New function.
9820 (vax_register_byte): Ditto.
9821 (vax_register_raw_size): Ditto.
9822 (vax_register_virtual_size): Ditto.
9823 (vax_register_virtual_type): Ditto.
9824 * config/vax/tm-vax.h: Update copyright years.
9825 (REGISTER_NAMES): Remove.
9826 (REGISTER_NAME): Define.
9827 (REGISTER_BYTE): Use vax_register_byte.
9828 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9829 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9830 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9832 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9834 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9836 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9838 2002-04-21 David S. Miller <davem@redhat.com>
9840 * arch-utils.c (generic_prologue_frameless_p): Kill
9841 SKIP_PROLOGUE_FRAMELESS_P code.
9842 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9844 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9845 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9846 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9848 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9849 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9850 (sparc_gdbarch_init): Pass it to
9851 set_gdbarch_prologue_frameless_p.
9853 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9855 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9856 (alphabsd-nat.o): New dependency list.
9858 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9860 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9862 (alpha-linux-tdep.o): New dependency list.
9863 (alphafbsd-tdep.o): Likewise.
9865 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9867 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9869 * alpha-tdep.c: ...from here.
9870 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9872 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9874 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9875 prototype from here...
9876 * alpha-tdep.h: ...to here.
9878 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9880 * frame.h (selected_frame_level): Document as deprecated.
9881 (frame_relative_level): Declare.
9882 * stack.c (frame_relative_level): New function.
9883 (selected_frame_level): Document as deprecated.
9884 (select_frame): Do not set the selected_frame_level.
9886 * stack.c (frame_info, record_selected_frame): Update.
9887 (frame_command, current_frame_command): Update.
9888 (up_silently_base, up_command, down_silently_base): Update.
9889 (down_command): Update.
9890 * inflow.c (kill_command): Update.
9891 * tracepoint.c (finish_tfind_command): Update.
9892 * corelow.c (core_open): Update.
9893 * thread.c (info_threads_command): Update.
9894 (do_captured_thread_select): Update.
9895 * infcmd.c (finish_command): Update.
9896 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9898 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9900 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9902 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9904 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9907 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9909 * alphafbsd-tdep.c: Update copyright years. Include
9911 (alphafbsd_use_struct_convention): Make static.
9912 (alphafbsd_init_abi): New function.
9913 (_initialize_alphafbsd_tdep): New function.
9914 * config/alpha/tm-fbsd.h: Update copyright years.
9915 (USE_STRUCT_CONVENTION): Remove.
9917 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9919 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9920 an Alpha ABI variant.
9921 (alpha_abi_handler_list): Declare.
9922 (alpha_gdbarch_register_os_abi): New function.
9923 (alpha_gdbarch_init): Give registered ABI variant handlers a
9924 chance to tweak the gdbarch once we have set up defaults.
9925 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9927 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9929 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9930 to standard_coerce_float_to_double.
9931 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9933 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9935 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9936 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9937 from gdbarch_tdep rather than a constant.
9938 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9939 the default text address for all Alpha Unix ABIs.
9940 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9941 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9943 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9945 * alpha-tdep.h: New file. Includes several Alpha target constants
9947 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9948 let gdbarch deal with.
9949 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9950 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9952 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9953 Alpha target register names.
9954 * alphabsd-nat.c: Likewise.
9955 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9956 Alpha target register names. Make serveral routines static.
9957 (alpha_get_saved_register): New function.
9958 (alpha_abi_names): New.
9959 (process_note_abi_tag_sections): New function.
9960 (get_elfosabi): New function.
9961 (alpha_gdbarch_init): New function.
9962 (alpha_dump_tdep): New function.
9963 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9965 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9967 * frame.c (find_saved_register): Delete #ifdef
9968 HAVE_REGISTER_WINDOWS code.
9969 * config/sparc/tm-sparc.h: Update comments.
9970 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9972 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9974 * i960-tdep.c (i960_find_saved_register): New function.
9975 (i960_get_saved_register): New function.
9976 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9977 (i960_get_saved_register): Declare.
9978 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9980 2002-04-20 David S. Miller <davem@redhat.com>
9982 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9984 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9986 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9987 instead of NUM_PSEUDO_REGS.
9989 2002-04-20 David S. Miller <davem@redhat.com>
9991 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9992 GDB_MULTI_ARCH_PARTIAL
9993 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9994 define, let tm-sp64.h do it.
9996 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9998 * frame.c (find_saved_register): Avoid a NULL pointer
9999 dereference and actually walk the frame list.
10001 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10003 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10004 sorted in most most-recent-used order. Document.
10005 * gdbarch.h, gdbarch.c: Regenerate.
10007 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10009 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10011 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10012 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10013 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10016 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10019 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10020 (build_builtin_type_vec128): Ditto.
10021 (append_composite_type_field): Fix calculation of type length in
10024 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10026 * config/djgpp/README: Update.
10028 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10031 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10033 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10034 (alpha_setup_arbitrary_frame): ...to this.
10035 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10036 for alpha_setup_arbitrary_frame.
10038 2002-04-18 Andrew Cagney <cagney@redhat.com>
10040 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10041 * gdbarch.h, gdbarch.c: Regenerate.
10043 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10044 * target.h (memory_breakpoint_from_pc): Update declaration.
10045 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10047 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10048 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10049 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10050 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10051 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10052 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10053 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10054 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10055 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10056 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10057 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10058 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10060 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10062 * monitor.c (monitor_insert_breakpoint): Ditto.
10063 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10065 * config/mcore/tm-mcore.h: Update copyright.
10066 * mem-break.c: Ditto.
10067 * xstormy16-tdep.c: Ditto.
10069 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10071 * p-exp.y: Add precedence rule for '^' token.
10072 This removes the shift/reduce conflicts.
10073 Remove the comment concerning these shift/reduce conflicts.
10075 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10077 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10078 (registers_powerpc_nofp): New register set for processors
10079 without floating point unit.
10081 2002-04-18 David S. Miller <davem@redhat.com>
10083 * MAINTAINERS: Add myself to write-after-approval.
10085 2002-04-17 Michael Snyder <msnyder@redhat.com>
10087 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10089 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10091 * rs6000-tdep.c (frame_initial_stack_address): Use
10092 frame_register_read to read the alloca_reg.
10094 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10096 * frame.c (find_saved_register): Find saved registers in the next
10100 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10102 * gdbarch.sh (LANG): Set to ``c''.
10104 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10106 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10108 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10110 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10113 * hpread.c (hpread_get_lntt): Add declaration.
10114 Also fix PR gdb/391.
10116 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10118 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10119 * aclocal.m4, configure: Re-generate.
10122 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10124 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10125 instead of tm_print_insn.
10127 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10129 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10131 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10133 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10134 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10135 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10137 2002-04-12 Don Howard <dhoward@redhat.com>
10139 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10140 max_user_call_depth.
10141 (init_cmd_lists): Initialize the new value;
10142 * cli/cli-script.c (execute_user_command): Limit the call depth of
10143 user defined commands. This avoids a core-dump when user commands
10144 are infinitly recursive.
10146 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10148 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10149 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10150 from tdep struct instead of DEFAULT_LR_SAVE.
10151 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10152 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10153 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10155 2002-04-12 Michael Snyder <msnyder@redhat.com>
10157 * Remote.c: Spelling fix.
10158 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10159 If no symbol found for "sbrk", try "_sbrk".
10160 (make_output_phdrs): Use bfd_section_name.
10161 (gcore_copy_callback): Use bfd_section_name.
10162 * eval.c: Indentation fix-ups.
10163 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10164 in case it gets applied to an address that is already
10165 in the instruction space.
10166 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10167 * symfile.c: Fix indentation, long lines.
10168 * source.c: White space fix-up.
10170 2002-04-12 Andrew Cagney <cagney@redhat.com>
10172 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10173 * frame.c (frame_register_read): New function. Return non-zero on
10175 (read_relative_register_raw_bytes_for_frame): Delete.
10176 (read_relative_register_raw_bytes): Delete.
10177 * frame.h (frame_register_read): Declare.
10178 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10179 * sh-tdep.c: Ditto.
10180 * infcmd.c (do_registers_info): Ditto.
10181 * hppa-tdep.c: Ditto.
10182 * rs6000-tdep.c: Ditto.
10183 * h8500-tdep.c: Ditto.
10184 * mips-tdep.c: Ditto.
10185 * h8300-tdep.c: Ditto.
10186 * z8k-tdep.c: Ditto.
10188 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10190 From Jimi X <jimix@watson.ibm.com>:
10191 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10194 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10196 From Jimi X <jimix@watson.ibm.com>:
10197 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10200 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10202 From Jimi X <jimix@watson.ibm.com>:
10203 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10204 register sets for these processor variants.
10206 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10208 * regformats/reg-ppc.dat: Support FPSCR.
10210 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10212 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10213 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10214 Add fpscr as an invalid/unfetchable register.
10215 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10216 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10217 (fill_fpregset): Add support for register fpscr.
10218 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10219 (fill_gregset): Account for the fact that register ``mq'' might
10221 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10222 (registers_power): Add fpscr to register set at slot 71.
10223 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10224 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10226 2002-04-11 Michael Snyder <msnyder@redhat.com>
10228 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10229 * configure: Regenerate.
10230 * config.in: Regenerate.
10231 * acconfig.h: Add define for _SYSCALL32.
10232 * core-sol2.c: Remove #define _SYSCALL32.
10233 * solib-legacy.c: Remove #define _SYSCALL32.
10235 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10237 * stack.c (select_frame): Cleanup internal error message, do not
10240 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10242 * stack.c (select_frame): Check that selected_frame and the
10243 specified level are as expected.
10244 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10246 * frame.h (struct frame_info): Add field `level'. Update
10248 Work-in-progress PR gdb/464.
10250 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10252 * maint.c (maint_print_section_info): Rename print_section_info.
10253 (print_bfd_section_info, print_objfile_section_info): Update.
10254 * inferior.h (struct gdbarch): Add opaque declaration.
10255 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10256 * gdbarch.h: Regenerate.
10258 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10260 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10261 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10262 (kernel_u_size): Added.
10263 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10264 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10266 2002-04-04 Jim Ingham <jingham@apple.com>
10268 * valarith.c (find_size_for_pointer_math): New function, either returns
10269 the size for a pointer's target, returns 1 for void *, or errors for
10271 (value_add, value_sub): use find_size_for_pointer_math.
10273 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10275 * linux-low.c (linux_look_up_symbols): New hook.
10276 (linux_target_ops): Add linux_look_up_symbols.
10277 * remote-utils.c (decode_address): New function.
10278 (look_up_one_symbol): New function.
10279 * server.c (handle_query): Call target look_up_symbols hook.
10280 * server.h (look_up_one_symbol): Add prototype.
10281 * target.h (struct target_ops): Add look_up_symbols hook.
10283 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10285 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10286 override FP_REGNUM with frame->fp. Update copyright.
10287 * parse.c (num_std_regs, std_regs): Delete.
10288 (target_map_name_to_register): Do not search std_regs. Update
10289 function description.
10290 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10291 declarations. Update copyright.
10294 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10296 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10297 after the last symbol in a block.
10299 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10301 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10302 is non zero as a found symbol.
10304 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10306 * findvar.c: Include "builtin-regs.h".
10307 (value_of_register): Call value_of_builtin_reg when applicable.
10308 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10309 (target_map_name_to_register): Call
10310 builtin_reg_map_name_to_regnum.
10311 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10312 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10313 (builtin_regs_h): Define.
10314 (builtin-regs.o): New target.
10315 (findvar.o): Add $(builtin_regs_h).
10316 * builtin-regs.c, builtin-regs.h: New files.
10317 * std-regs.c: New file.
10318 Partial fix for PR gdb/251.
10320 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10322 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10323 it's no longer required.
10325 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10327 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10329 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10331 From Jimi X <jimix@watson.ibm.com>:
10332 * rs6000-tdep.c (rs6000_software_single_step): Use
10333 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10334 and size. Use target_insert_breakpoint() and
10335 target_remove_breakpoint() to insert and remove breakpoints
10336 instead of explicit memory reads and writes.
10338 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10340 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10341 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10342 ELF_OBJECT_FORMAT ifdef.
10344 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10346 From Jimi X <jimix@watson.ibm.com>:
10347 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10349 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10351 From Jimi X <jimix@watson.ibm.com>:
10352 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10353 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10355 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10357 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10358 s/asprintf/xasprintf/.
10359 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10361 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10363 I believe Jeff Law denies responsability for this one:
10364 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10365 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10366 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10367 Work-around for PR gdb/366.
10369 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10371 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10372 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10373 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10375 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10377 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10378 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10381 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10383 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10386 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10388 * README (Reporting Bugs in GDB): Document the bug web page as the
10389 prefered way of submitting bugs.
10392 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10394 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10395 -1. Update comment.
10396 * gdbarch.h, gdbarch.c: Re-generate.
10398 2002-04-07 Andreas Schwab <schwab@suse.de>
10400 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10401 buffer to regcache_collect.
10403 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10405 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10406 * gdbarch.c, gdbarch.h: Re-generate.
10408 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10410 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10411 declaration. Fix -Werror.
10413 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10415 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10416 * gdbarch.c: Regenerate.
10418 2002-04-05 Michael Snyder <msnyder@redhat.com>
10420 * breakpoint.c (clear_command): Rewrite middle section to
10421 combine two loops with identical control conditions.
10422 Add a cleanup to eliminate a memory leak.
10423 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10425 2002-04-05 H.J. Lu (hjl@gnu.org)
10427 * solib-svr4.c (bkpt_names): Add "__start".
10429 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10431 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10432 as test for 64 bit target.
10434 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10436 * h8500-tdep.c (h8500_write_fp): Delete function.
10437 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10438 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10439 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10440 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10441 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10442 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10444 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10445 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10446 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10447 (d10v_write_fp): Delete function.
10448 * inferior.h (write_fp, generic_target_write_fp): Delete
10450 * regcache.c (generic_target_write_fp): Delete function.
10451 (write_fp): Delete function.
10452 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10453 * gdbarch.h, gdbarch.c: Regenerate.
10454 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10455 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10456 (sparc64_write_fp): Delete declaration.
10457 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10458 (h8500_write_fp): Delete declaration.
10460 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10462 * sparc-tdep.c (sparc64_write_fp): Delete.
10463 (sparc_push_dummy_frame): Replace write_fp call with code to store
10465 (sparc_gdbarch_init): Do not initialize write_fp.
10467 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10469 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10472 2002-03-29 Jim Blandy <jimb@redhat.com>
10474 * stack.c (get_selected_block): Add new argument `addr_in_block',
10475 used to return the exact code address we used to select the block,
10476 not just the block.
10477 * blockframe.c (get_frame_block, get_current_block): Same.
10478 * frame.h (get_frame_block, get_current_block,
10479 get_selected_block): Update declarations.
10480 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10481 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10483 2002-04-05 Michael Snyder <msnyder@redhat.com>
10485 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10488 2002-04-05 J. Brobecker <brobecker@gnat.com>
10490 * utils.c (xfullpath): New function.
10491 * defs.h (xfullpath): Add declaration.
10492 * source.c (openp): Use xfullpath in place of gdb_realpath to
10493 avoid resolving the basename part of filenames when the
10494 associated file is a symbolic link. This fixes a potential
10495 inconsistency between the filenames known to GDB and the
10496 filenames it prints in the annotations.
10497 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10498 to be able to match a filename with either the real filename, or
10499 the name of any symbolic link to this file.
10500 (lookup_partial_symtab): Ditto.
10502 2002-04-04 Michael Snyder <msnyder@redhat.com>
10504 * breakpoint.c: Add support for hardware breakpoints in overlays.
10505 (overlay_events_enabled): New state variable.
10506 (insert_breakpoints): Use overlay_events_enabled to decide
10507 whether to attempt to set a breakpoint at the overlay load addr.
10508 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10509 (remove_breakpoint): Use overlay_events_enabled to decide
10510 whether breakpoints need to be removed from overlay load addr.
10511 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10512 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10513 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10514 disable_overlay_breakpoints): Update overlay_events_enabled.
10516 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10518 * dwarf2read.c (struct function_range): New.
10519 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10520 (check_cu_functions): New.
10521 (read_file_scope): Initialize global function lists.
10522 Call dwarf_decode_line after processing children.
10523 (read_func_scope): Add to global function list.
10524 (dwarf_decode_lines): Call check_cu_functions everywhere
10525 record_line is called. Call record_line with a linenumber
10526 of 0 to mark sequence ends.
10528 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10530 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10531 change sync with glibc.
10533 2002-04-03 Jim Blandy <jimb@redhat.com>
10535 * configure.in: Call AC_C_INLINE.
10536 * configure: Regenerated.
10538 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10540 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10541 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10543 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10545 * NEWS: Mention gcore support on FreeBSD/i386.
10547 * fbsd-proc.c: New file.
10548 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10549 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10551 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10554 2002-03-29 Jim Blandy <jimb@redhat.com>
10556 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10557 unescaped newlines in string literals, but newer ones don't. So
10560 2002-03-26 Michael Snyder <msnyder@redhat.com>
10561 Andrew Cagney <cagney@redhat.com>
10563 * cli/cli-dump.c: New file. Dump memory to file,
10564 restore file to memory.
10565 * cli/cli-dump.h: New file.
10566 * Makefile.in: Add rules, dependencies for cli-dump.o.
10567 * NEWS: Mention new commands.
10569 2002-03-28 Michael Snyder <msnyder@redhat.com>
10571 * symfile.c (symbol_file_add): Move test for null symbols to later.
10573 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10575 From veksler at il.ibm.com:
10576 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10577 the xstrduped original path.
10580 2002-03-27 Michael Snyder <msnyder@redhat.com>
10582 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10583 * infcmd.c (_initialize_infcmd): Ditto.
10584 * language.c (_initialize_language): Ditto.
10585 * symfile.c (_initialize_symfile): Ditto.
10586 * top.c (_init_main): Ditto.
10587 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10589 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10591 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10592 vector registers handling.
10593 (skip_prologue): Handle new AltiVec instructions. Fill in new
10594 fields of frame data.
10595 (frame_get_saved_regs): Fill in information for AltiVec registers.
10597 2002-03-27 Jim Blandy <jimb@redhat.com>
10599 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10600 a function; leave this macro here to invoke that function.
10601 (symbol_init_mangled_name): Declaration for that function.
10602 * symtab.c (symbol_init_mangled_name): New function.
10604 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10606 * valarith.c: Replace strerror with safe_strerror.
10607 * tracepoint.c: Ditto.
10608 * lin-lwp.c: Ditto.
10609 * go32-nat.c: Ditto.
10611 * gnu-nat.c: Ditto.
10613 2002-03-27 Andreas Schwab <schwab@suse.de>
10615 * event-top.c (command_line_handler): Remove useless if.
10617 2002-03-27 Andreas Jaeger <aj@suse.de>
10619 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10622 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10624 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10625 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10626 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10627 (x86_64_linux_dr_get_status, supply_gregset),
10628 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10629 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10630 (x86_64_register_info_table): Add.
10631 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10632 (x86_64_register_raw_size, x86_64_register_virtual_type),
10633 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10634 general x86_64_register_info_table.
10635 (i386_gdbarch_init): gdbarch_register_bytes is now set
10636 dynamicaly during initialization.
10637 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10638 * gdbserver/linux-x86-64-low.c: Ditto.
10640 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10642 * gdbserver/server.c (main): Call target_signal_to_host_p
10643 and target_signal_to_host on signals received from the remote.
10644 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10645 target_signal_from_host on signals sent to the remote.
10646 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10647 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10649 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10651 * signals/signals.c: Include "server.h" in gdbserver build.
10652 (target_signal_from_name): Don't use STREQ.
10653 (_initialize_signals): Likewise. Don't include function in
10656 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10658 * signals.c: Moved to...
10659 * signals/signals.c: Here.
10660 * Makefile (signals.o): Update.
10662 2002-03-26 Jeff Law (law@redhat.com)
10664 * somread.c (som_symtab_read): Remove some commented out code and
10665 updated related comments. Do not set the minimal symbol table to
10666 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10667 in a dynamic executable.
10668 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10669 where we are unable to find the minimal symbol for the given
10672 2002-03-25 Jeff Law (law@redhat.com)
10674 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10676 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10678 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10680 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10682 * command.h: Update copyright.
10683 (struct cmd_list_element): Replace definition with opaque
10685 (enum cmd_types): Document that it will eventually be moved to
10687 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10688 (MALLOCED_REPLACEMENT): Delete macro.
10689 * Makefile.in (cli_decode_h): Add $(command_h).
10690 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10691 * top.c: Include "cli/cli-decode.h".
10692 * completer.c: Include "cli/cli-decode.h".
10693 * maint.c: Include "cli/cli-decode.h".
10694 * cli/cli-decode.h: Include "command.h".
10695 (enum command_class): Delete.
10696 (enum cmd_types): Comment out.
10697 (enum cmd_auto_boolean): Delete.
10698 (enum var_types): Delete.
10700 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10702 * cli/cli-decode.c: Include "gdb_assert.h".
10703 (add_set_or_show_cmd): New static function.
10704 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10705 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10706 all fields, such as func, from the set command.
10708 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10710 * MAINTAINERS (sh-elf): Change warning flag to -w.
10712 2002-03-23 Andrew Cagney <cagney@redhat.com>
10714 * defs.h (error): Add printf format attribute.
10715 * thread-db.c (thread_from_lwp): Fix error format string.
10716 * stack.c (parse_frame_specification): Ditto.
10717 * cli/cli-decode.c (undef_cmd_error): Ditto.
10718 * scm-lang.c (scm_lookup_name): Ditto.
10719 * tracepoint.c (trace_error): Ditto.
10720 * remote-utils.c (usage): Ditto.
10721 * remote.c (compare_sections_command): Ditto.
10724 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10726 * gdbtypes.c (append_composite_type_field): New function.
10727 (init_composite_type): New function.
10728 * gdbtypes.h (append_composite_type_field): Declare.
10729 (init_composite_type): Ditto.
10731 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10733 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10735 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10736 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10737 structure returning convention for SYSV ABI case, but not
10738 for GNU/Linux, FreeBSD, or NetBSD.
10740 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10742 * symtab.h (lookup_block_symbol): Add mangled_name argument
10745 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10746 with new mangled_name argument.
10747 * linespec.c (decode_line_1): Likewise.
10748 * valops (value_of_this): Likewise.
10749 * symtab.c (lookup_transparent_type): Likewise.
10750 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10751 (lookup_symbol): If we are given a mangled name, pass it down
10752 to lookup_symbol_aux.
10753 (lookup_block_symbol): If we are given a mangled name to check
10754 against, only return symbols which match it.
10756 2002-03-22 Christopher Faylor <cgf@redhat.com>
10758 * win32-nat.c (child_create_inferior): Check for proper shell to use
10759 here, in case the user changes it on the fly.
10760 (_initialize_inftarg): Remove shell path considerations.
10762 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10764 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10765 for gdbarch_max_register_raw_size and max_register_virtual_size.
10766 Adjust copyright year.
10768 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10770 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10771 in a function to cover the entire beginning of the function
10772 as well if it does not already.
10774 2002-03-21 Tom Rix <trix@redhat.com>
10776 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10777 (rs6000_ptrace64): Renamed from ptrace64.
10779 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10781 * gdbserver/remote-utils.c (remote_open): Don't call
10782 getprotobyname, we're all using TCP here so just use
10784 * gdbserver/gdbreplay.c (remote_open): Ditto.
10786 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10788 * regcache.c (_initialize_regcache): No need to call
10789 build_regcache() at this time; it gets called whenever
10790 the gdbarch changes.
10792 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10794 * sparc-nat.c: Include sys/param.h where possible.
10796 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10799 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10800 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10801 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10803 * stabsread.c (rs6000_builtin_type): Likewise.
10804 (read_sun_floating_type): Likewise.
10806 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10808 * stabsread.c (read_member_functions): Remove skip code for duplicate
10809 constructor/destructor methods. Use standard parsing for these
10810 methods and just do not chain them to the list of methods after
10813 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10815 * coffread.c: Remove redundant static declarations. Replace
10816 occurrences of `PTR' with `void *'.
10817 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10818 * top.h (quit_cover): Likewise.
10819 * defs.h (catch_errors): Likewise.
10821 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10823 * defs.h (XMALLOC): Define.
10824 * gdb-events.sh (XMALLOC): Delete macro.
10825 * gdb-events.c, gdb-events.h: Regenerate.
10826 * gdbarch.sh (XMALLOC): Delete macro.
10827 * gdbarch.c: Regenerate.
10828 * serial.c (XMALLOC): Delete macro.
10829 * ui-file.c (XMALLOC): Ditto.
10830 * ser-unix.h (XMALLOC): Ditto.
10831 * sh-tdep.c (XMALLOC): Ditto.
10832 * ui-out.c (XMALLOC): Ditto.
10833 * utils.c (XMALLOC): Ditto.
10834 * i386-tdep.c (XMALLOC): Ditto.
10835 * gdb-events.c (XMALLOC): Ditto.
10836 * d10v-tdep.c (XMALLOC): Ditto.
10837 * cli-out.c (XMALLOC): Ditto.
10839 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10840 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10841 * ui-file.c, ui-out.c: Ditto.
10843 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10845 * command.h (struct cmd_list_element): Add field context.
10846 (set_cmd_context, get_cmd_context): Declare.
10847 * cli/cli-decode.h: Ditto.
10848 * cli/cli-decode.c (get_cmd_context): New function.
10849 (set_cmd_context): New function.
10850 (add_cmd): Initialize context.
10851 Part of fixing PR gdb/145 and PR gdb/146.
10853 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10855 * cli/cli-decode.c (cmd_type): New function.
10856 * command.h (cmd_type): Declare.
10857 * infrun.c (set_schedlock_func): Call function cmd_type.
10858 * kod.c (kod_set_os): Call cmd_type.
10859 * cris-tdep.c (cris_version_update): Use function cmd_type.
10860 (cris_mode_update, cris_abi_update): Ditto.
10862 * command.h: (execute_cmd_post_hook): Declare.
10863 (execute_cmd_pre_hook): Declare.
10864 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10865 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10866 functions. Execute pre/post hook while ensuring that afterwords
10867 hook_in is cleared.
10868 * top.c (execute_command): Use execute_cmd_post_hook, and
10869 execute_cmd_pre_hook to execute pre/post commands.
10870 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10872 (hook_stop_stub): Call execute_cmd_pre_hook.
10874 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10876 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10877 set'' and this leads to a core dump. Move xstrdup of
10878 operating_system to after check that it is not NULL.
10880 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10882 * kod.c (kod_set_os): Remove unnecessary check that
10883 ``command->type'' is set_cmd.
10885 * valprint.c (set_input_radix): Use input_radix.
10886 (set_output_radix): Use output_radix.
10887 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10890 2002-03-16 Andrew Cagney <ac131313@redhat.com>
10892 * value.h (struct value): Delete field ``substring_addr''. Change
10893 aligner fields to force_doublest_align, force_longest_align,
10894 force_core_addr_align and force_pointer_aligh.
10896 * value.h (struct value): Fix typo in above change.
10898 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10900 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10901 to fix internal_error from ``maintenance print architecture''.
10903 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10905 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10906 for gcc versions after gcc-2.8.1.
10908 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10910 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10911 for method resolution. Restore adjustment of ``this'' pointer after
10912 calling value_struct_elt, which was accidentally removed during the
10915 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10917 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10919 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10920 get_saved_register.
10921 * value.h (value_of_register): Update.
10923 2002-03-14 Richard Henderson <rth@redhat.com>
10925 * configure.in: Detect declaration for canonicalize_file_name.
10926 * utils.c (canonicalize_file_name): Declare, if needed.
10927 (gdb_realpath): Prefer realpath if available and usable.
10928 * config.in, configure: Rebuild.
10930 2002-03-14 Richard Henderson <rth@redhat.com>
10932 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10933 a constant array bound.
10935 * MAINTAINERS: Add myself to write-after-approval.
10937 2002-03-14 Michael Snyder <msnyder@redhat.com>
10939 * symfile.c (syms_from_objfile): Return immediately if no syms.
10940 (symbol_file_add): Return immediately if no syms.
10941 (find_sym_fns): Return immediately if no syms.
10943 2002-03-13 Michal Ludvig <mludvig@suse.cz>
10945 * gdbserver/remote-util.c (remote_open): Print remote-side's
10946 IP address when remote debugging over the network.
10948 2002-03-12 David O'Brien <obrien@FreeBSD.org>
10950 * config/sparc/fbsd.mh: Fix copyright.
10951 * config/sparc/fbsd.mt: Likewise.
10953 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
10955 * MAINTAINERS: Fix typo in name of gdb warnings option.
10956 (x86-64): Fix formating so that this can be parsed by awk.
10958 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10960 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10961 * defs.h: Include "gdb/signals.h".
10962 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10964 2002-03-10 Michal Ludvig <mludvig@suse.cz>
10966 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10967 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10970 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10971 Don Howard <dhoward@redhat.com>
10973 * mips-tdep.c (ST0_FR): Define.
10974 (mips2_fp_compat): New function, temporarily disabled.
10975 (mips_read_fp_register_single): New function.
10976 (mips_read_fp_register_double): New function.
10977 (mips_print_register): Use them.
10978 (do_fp_register_row): Likewise.
10980 2002-03-09 Andrew Cagney <ac131313@redhat.com>
10982 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10985 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10987 * stabsread.c (read_member_functions): Fix is_stub test for
10988 static member functions, improve comment.
10990 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10992 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10993 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10994 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10995 commands that set boolean values.
10996 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10997 (arm_rdi_resume): Always initialize PC.
10998 (arm_rdi_open): Don't use rslt as a boolean.
10999 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11000 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11001 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11002 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11004 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11006 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11007 * configure: Rebuilt.
11009 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11011 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11012 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11014 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11016 * cli/cli-decode.c (set_cmd_completer): New function.
11017 * command.h (set_cmd_completer): Declare.
11018 * cli/cli-decode.h (set_cmd_completer): Ditto.
11020 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11021 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11022 * win32-nat.c (_initialize_inftarg): Ditto.
11023 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11024 * proc-api.c (_initialize_proc_api): Ditto.
11025 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11026 * source.c (_initialize_source): Ditto.
11027 * exec.c (_initialize_exec): Ditto.
11028 * solib.c (_initialize_solib): Ditto.
11029 * top.c (init_main): Ditto.
11030 * tracepoint.c (_initialize_tracepoint): Ditto.
11031 * symfile.c (_initialize_symfile): Ditto.
11032 * printcmd.c (_initialize_printcmd): Ditto.
11033 * infcmd.c (_initialize_infcmd): Ditto.
11034 * corefile.c (_initialize_core): Ditto.
11036 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11038 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11040 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11042 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11044 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11046 * NEWS: Update headings, 5.2 has branched.
11048 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11050 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11051 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11052 (register_addr, REGISTER_RAW_SIZE): Likewise.
11053 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11054 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11056 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11058 * MAINTAINERS (x86-64): Add myself.
11059 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11060 changed value_ptr -> struct value *
11062 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11064 * configure.host (sparc64-*-freebsd): Add.
11065 * configure.tgt: Likewise.
11066 * config/sparc/fbsd.mh: New file.
11067 * config/sparc/fbsd.mt: Likewise.
11068 * config/sparc/nm-fbsd.h: Likewise.
11069 * config/sparc/tm-fbsd.h: Likewise.
11071 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11073 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11074 regformats/reg-s390x.dat.
11076 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11078 * utils.c: Add FIXME explaining true/false problem.
11080 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11082 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11084 2002-02-28 Michael Chastain <mec@shout.net>
11086 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11088 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11090 * gdbserver/linux-s390-low.c: New file.
11091 * regformats/reg-s390.dat: New file.
11092 * regformats/reg-s390x.dat: New file.
11093 * gdbserver/configure.srv: Add S/390.
11094 * gdbserver/Makefile.in: Add S/390.
11095 * configure.tgt: Enable gdbserver for S/390.
11097 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11099 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11100 first line of the doc string for "info dos", except at the end of
11101 the sentence, since the short help stops at the first period.
11103 2002-02-28 Jason Merrill <jason@redhat.com>
11105 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11107 2002-02-27 Fred Fish <fnf@redhat.com>
11109 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11110 comment (dumy -> dummy).
11112 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11114 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11116 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11118 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11120 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11122 * gdbserver/acconfig.h: New file.
11123 * gdbserver/i387-fp.c: New file.
11124 * gdbserver/i387-fp.h: New file.
11125 * gdbserver/linux-x86-64.c: New file.
11126 * regformats/reg-x86-64.dat: New file.
11127 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11128 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11129 * gdbserver/configure.in: Add support for regsets.
11130 * gdbserver/config.in: Regenerate.
11131 * gdbserver/configure: Regenerate.
11132 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11133 * gdbserver/linux-low.h: New file.
11134 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11136 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11137 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11138 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11139 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11140 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11141 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11142 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11143 "i387-fp.h". Add PTRACE_GETREGS and friends.
11144 * gdbserver/regcache.c (supply_register): New function.
11145 (supply_register_by_name): New function.
11146 (collect_register): New function.
11147 (collect_register_by_name): New function.
11149 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11151 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11152 (config.status): Add configure.srv dependency.
11153 (server_h): Add config.h dependency.
11155 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11157 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11158 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11159 * gdbserver/configure.srv: Change i386-*-linux* to use
11162 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11164 * x86-64-tdep.c: Re-indent. Update copyright date.
11166 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11168 From Michal Ludvig <mludvig@suse.cz>:
11169 * x86-64-tdep.c (value.h): Delete.
11170 (gdb_assert.h): Include.
11171 (x86_64_register_convert_to_virtual,
11172 x86_64_register_convert_to_raw ): Add check which lets only
11173 floating-point values to be converted.
11174 (value_push): Delete.
11175 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11176 (i386_gdbarch_init): Number of register_bytes fixed.
11178 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11180 * MAINTAINERS: Add x86-64 target.
11182 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11184 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11185 * osfsolib.c (solib_map_sections): Ditto.
11186 * irix5-nat.c (solib_map_sections): Ditto.
11187 * corelow.c (gdb_check_format): Ditto.
11188 * symfile.c (symfile_bfd_open): Ditto.
11189 * solib.c (solib_map_sections): Ditto.
11192 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11194 * remote.c (_initialize_remote): By default, disable ``e'' and
11195 ``E'' step out-of-range packets.
11197 2002-02-26 Andreas Schwab <schwab@suse.de>
11199 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11200 m68k_linux_frame_saved_pc.
11201 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11203 (SIGCONTEXT_PC_OFFSET): Remove.
11204 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11205 m68k_linux_sigtramp_saved_pc): New functions.
11206 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11207 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11208 (UCONTEXT_PC_OFFSET): Define.
11209 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11210 non-RT and RT signal trampolines.
11212 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11214 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11215 (TARGET_NBPG, STACK_END_ADDR): Delete
11216 (VARIABLES_INSIDE_BLOCK): Delete.
11218 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11220 * utils.c (perror_with_name): Make string parameter constant.
11221 (print_sys_errmsg): Ditto.
11223 * defs.h (perror_with_name): Update.
11224 (print_sys_errmsg): Update.
11227 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11229 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11230 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11232 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11234 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11235 if it already matches the current architecture from the exec file.
11236 Include arch-utils.h for gdbarch_info_init prototype.
11237 * Makefile.in (rs6000-nat.o): Update dependencies.
11239 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11241 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11242 list of exported variables.
11244 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11246 * gdbserver/configure.srv: New file.
11247 * gdbserver/configure.in: Use configure.srv instead
11248 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11250 * gdbserver/configure: Regenerated.
11251 * gdbserver/terminal.h: New file.
11252 * gdbserver/Makefile.in: Update for configure changes. Remove
11253 more unneeded include paths.
11255 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11257 From wiz at danbala:
11258 * config/sparc/tm-sp64.h: Fix grammar and typos.
11261 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11263 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11264 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11265 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11266 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11267 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11268 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11269 * s390-tdep.c: Ditto.
11270 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11271 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11272 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11273 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11274 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11275 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11276 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11277 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11278 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11279 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11282 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11284 * lin-thread.c: Delete file.
11285 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11286 to gdb_proc_service.h.
11287 * configure: Re-generate.
11289 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11290 * serial.c (serial_open): Delete check for "ocd".
11293 * Makefile.in (linux-thread.o): Delete target.
11294 * linux-thread.c: Delete file.
11296 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11297 renamed SH files to be consistent.
11299 * symtab.c (sort_search_symbols): Use xfree.
11301 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11303 * arm-linux-tdep.c (arm_linux_init_abi): Register
11304 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11305 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11306 definition with undef, since we don't want the sysvr4 definition.
11307 (SKIP_TRAMPOLINE_CODE): Likewise.
11309 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11311 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11313 * configure.in: (AC_CHECK_FUNCS) Added test for
11314 canonicalize_file_name Regenerated.
11315 * config.in, configure: Regenerated.
11316 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11317 defined use canonicalize_file_name.
11319 2002-02-23 Michael Chastain <mec@shout.net>
11321 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11323 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11325 * README: Remove references to cygnus.com.
11326 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11327 dot com'' form. Remove references to cygnus.com and sourceware.
11329 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11331 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11332 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11333 1003.1-2001 no longer allows "head -1".
11334 * gdb/Makefile.in (version.c): Likewise.
11335 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11336 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11337 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11339 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11341 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11342 * command.h (cmd_cfunc_eq): Declare.
11343 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11345 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11346 ``struct cmd_list_element *''.
11347 * cli/cli-cmds.c (is_complete_command): Update. Use
11349 * top.c (execute_command): Pass the command to
11350 is_complete_command.
11351 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11353 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11355 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11356 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11357 architecture defines.
11358 * s390-tdep.c (s390_gdbarch_init): Likewise.
11360 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11362 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11363 (arm_linux_push_arguments): Likewise.
11364 (arm_linux_init_abi): Register them. Also register linux-specific
11366 (find_minsym_and_objfile): Use strcmp, not STREQ.
11367 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11368 (arm_linux_call_dummy_words): Delete declaration.
11369 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11370 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11372 (LOWEST_PC): Delete.
11374 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11376 * maint.c (print_section_info): Do not prepend `0x' to filepos
11377 output, it will be handled by local_hex_string_custom.
11379 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11381 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11382 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11383 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11385 2002-02-22 Jim Blandy <jimb@redhat.com>
11387 Indicate that the bcache functions don't change the strings
11389 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11390 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11392 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11394 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11396 2002-02-21 Christopher Faylor <cgf@redhat.com>
11398 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11399 find the complete path to a loaded DLL.
11401 2002-02-21 Fred Fish <fnf@redhat.com>
11403 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11404 that marks the end of the range of a function, enter a line number
11405 entry that has a line number of zero and a PC offset that matches
11406 the end of the function. This starts a range of PC's for which no
11407 line number information is known.
11408 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11409 PC's for which no line number info is found (line number is zero)
11410 then we didn't find any valid line information.
11411 * symtab.h: Document use of zero line number entry.
11413 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11415 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11416 (have_ptrace_getvrregs): Define for run time checks.
11417 (gdb_vrregset_t): New type for Altivec register handling.
11418 (fetch_register, store_register): Fetch/store altivec register
11420 (fetch_altivec_register, store_altivec_register): New functions.
11421 (supply_vrregset, fill_vrregset): New functions.
11422 (fetch_altivec_registers, store_altivec_registers): New functions.
11423 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11426 2002-02-21 Jiri Smid <smid@suse.cz>
11428 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11430 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11432 * Makefile.in (armnbsd-nat.o): Update dependencies.
11433 * armnbsd-nat.c (supply_gregset): New function. Common code to
11434 supply the integer register set.
11435 (supply_fparegset): New function. Similar for FPA registers.
11436 (fetch_regs, fetch_fp_regs): Use them.
11437 (fetch_core_registers): Likewise.
11438 (fetch_elfcore_registers): New function.
11439 (arm_netbsd_elfcore_fns): New core-file type specification.
11440 (_initialize_arm_netbsd_nat): Register it.
11442 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11444 * armnbsd-nat.c: Include gdbcore.h.
11445 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11446 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11447 'void' to declaration, to shut up ARI.
11448 (fetch_core_registers): Make static. Rewrite using supply_register.
11449 (arm_netbsd_core_fns): New core-file type specification.
11450 (_initialize_arm_netbsd_nat): New function.
11452 2002-02-21 Christopher Faylor <cgf@redhat.com>
11454 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11457 2002-02-20 Christopher Faylor <cgf@redhat.com>
11459 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11462 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11464 * jv-exp.y (parse_number): Change type of implicit longs
11465 to builtin_type_uint64.
11467 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11469 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11470 to be an integer instead of a `union wait'.
11472 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11474 * mips-linux-nat.c: Call the operating system GNU/Linux.
11475 * mips-linux-tdep.c: Likewise.
11476 * mips-tdep.c: Likewise.
11478 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11481 * jv-exp.y (parse_number): Handle 64-bit integers.
11483 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11485 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11486 AC_STDC_HEADERS to AC_HEADER_STDC.
11487 * gdbserver/configure: Regenerated.
11489 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11491 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11493 * sparc-tdep.c (get_longjmp_target): Likewise.
11495 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11497 * News: Add news about ARM and Multi-arch. Mention the new target
11500 2002-02-19 Jim Blandy <jimb@redhat.com>
11502 * stabsread.c (error_type_complaint): Improve error message.
11504 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11506 * gdbserver/README: Update documentation.
11507 * gdbserver/configure.in: Update configury to match documentation.
11508 * gdbserver/Makefile.in: Likewise.
11509 * gdbserver/configure: Regenerated.
11510 * gdbserver/aclocal.m4: New file, generated by aclocal.
11511 * gdbserver/config.in: New file, generated by autoheader.
11513 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11515 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11518 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11520 * arm-tdep.h (enum arm_float_model): New enum.
11521 (struct gdbarch_tdep): Add fp_model.
11522 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11523 up floating-point conversions until we know the floating-point model
11524 in use by the inferior. Don't complain about being unable to
11525 determine the ABI of the inferior when we don't have one.
11526 (arm_extract_return_value): Support different floating-point models.
11527 (arm_store_return_value): Likewise.
11528 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11530 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11532 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11534 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11535 of ``current_gdbarch''.
11537 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11539 * armnbsd-nat.c : ANSIfy all function declarations.
11540 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11541 (fetch_inferior_registers): Re-implement in terms of above.
11542 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11543 (store_inferior_registers): Re-implement in terms of above.
11545 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11547 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11549 * arm-linux-tdep.c: Likewise.
11550 * config/arm/tm-linux.h: Likewise.
11552 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11554 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11555 * config/arm/nbsd.mt (TM_FILE): Delete.
11556 * config/arm/tm-nbsd.h: Delete.
11558 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11560 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11561 Initialize CALL_DUMMY_LENGTH.
11563 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11565 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11567 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11568 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11569 defines one thing and that is incorrect for this port.
11570 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11572 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11574 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11576 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11578 * win32-nat.c (display_selector): New function. Displays information
11579 about the information returned by GetThreadSelectorEntry API function.
11580 (display_selectors): New function. Displays the infomation of
11581 the selector given as argument, or of CS, DS ans FS selectors
11582 if no argument is given.
11583 ( _initialize_inftarg): Add "w32" as info prefix command.
11584 Add "info w32 selector" as command calling display_selectors.
11586 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11588 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11589 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11592 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11594 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11596 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11598 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11599 (arm_fix_call_dummy): Call it.
11600 (arm_call_dummy_breakpoint_offset): Delete.
11601 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11602 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11604 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11606 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11607 Default to func_frame_chain_valid.
11608 * gdbarch.h, gdbarch.c: Re-generate.
11609 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11611 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11613 * ppc-linux-nat.c: Update copyright.
11614 (fetch_register, store_register): Add tid parameter, don't compute
11616 (fetch_ppc_registers, store_ppc_registers): Add tid
11617 parameter. Pass it along to callees.
11618 (fetch_inferior_registers, store_inferior_registers): Compute tid
11619 here, and pass it to calleed functions.
11620 (fill_gregset, supply_fpregset): Clean up formatting.
11622 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11624 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11625 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11627 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11629 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11630 * gdbarch.c gdbarch.h: Regenerate.
11631 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11633 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11634 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11635 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11637 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11638 * arm-tdep.c (arm_get_longjmp_target): New function.
11639 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11640 this to a positive value register arm_get_longjmp_target as the
11642 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11643 (arm_linux_init_abi): Set up longjmp description in tdep.
11644 * armnbsd-nat.c (get_longjmp_target): Delete.
11645 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11646 description in tdep.
11647 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11648 (get_longjmp_target): Delete declaration.
11649 (GET_LONGJMP_TARGET): Delete.
11650 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11651 (GET_LONGJMP_TARGET): Delete.
11653 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11655 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11656 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11657 of ``current_gdbarch''.
11659 2002-02-17 Tom Tromey <tromey@redhat.com>
11661 * cli/cli-cmds.c (compare_strings): New function.
11662 (complete_command): Only print each unique item once.
11663 * completer.h (complete_line): Declare.
11664 * completer.c (complete_line): New function.
11665 (line_completion_function): Use it.
11667 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11669 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11670 * gdbarch.h, gdbarch.c: Re-generate.
11672 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11674 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11676 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11678 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11679 * valops.c (value_arg_coerce): Don't take the address of a reference
11680 to convert an argument to a reference.
11682 2002-02-15 Christopher Faylor <cgf@redhat.com>
11684 * win32-nat.c (get_image_name): New function.
11685 (handle_load_dll): Use get_image_name function.
11686 (get_child_debug_event): Avoid registering debug events until possibly
11687 execed process is started.
11688 (child_create_inferior): Allow invocation via shell so that command
11689 line redirection, etc. works ok.
11690 (_initialize_inftarg): Add new command: "set shell" to control whether
11691 a shell is used to start a process.
11693 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11695 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11696 instead of find_register_by_number.
11697 (cannot_store_register): Likewise.
11699 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11701 * dwarf2read.c: Replace fprintf (stderr, ...) by
11702 fprintf_unfiltered (gdb_stderr, ...).
11704 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11706 * gdbserver/gdbserver.1: Document --attach.
11708 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11710 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11712 * arm-tdep.c (arm_default_arm_le_breakpoint)
11713 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11714 (arm_default_thumb_be_breakpoint): New. Initialize them from
11715 traditional breakpoint defines.
11716 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11717 (arm_gdbarch_init): Initialize new breakpoint variables.
11718 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11719 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11720 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11721 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11723 (arm_netbsd_init_abi_common): ... here; new function.
11724 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11725 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11726 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11727 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11729 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11731 * arm-tdep.h (enum arm_abi): New enum.
11732 (struct gdbarch_tdep): New structure.
11733 (LOWEST_PC): Provide a default.
11734 (arm_gdbarch_register_os_abi): Declare new function.
11735 * arm-tdep.c (arm_abi_names): New array.
11736 (process_note_abi_tag_sections): New function.
11737 (get_elfosabi): New function.
11738 (arm_gdbarch_register_os_abi): New function.
11739 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11740 support for that ABI has been built in, then call the appropriate
11741 configuration routine. Use gdbarch_num_regs() to get the number
11743 (arm_dump_tdep): New function.
11744 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11745 place-holder functions.
11746 (_initialize_arm_tdep): Register them.
11747 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11749 * armnbsd-tdep.c: New file.
11750 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11751 * config/arm/nbsd.mt (TDEPFILES): Add it.
11752 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11754 * armnbsd-nat.c: Include regcache.h.
11755 * Makefile.in (armnbsd-nat.o): Update dependency list.
11757 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11759 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11761 * gdbserver/Makefile.in: Fix typos in target rules.
11763 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11765 Fix part of PR gdb/267.
11766 * linespec.c (find_methods): Handle constructors specially for now.
11768 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11770 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11772 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11773 standard_coerce_float_to_double().
11775 2002-02-14 Christopher Faylor <cgf@redhat.com>
11777 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11780 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11782 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11783 find_variant_by_name, because it confuses the multiarch
11784 framework. Return NULL if there isn't an architecture with the
11785 user supplied name, instead of forcing a different one without
11786 recording the change with the multiarch machinery.
11787 (find_variant_by_name): Delete.
11789 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11791 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11792 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11794 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11796 * stack.c (print_frame_info_base): When calling
11797 print_frame_info_listing_hook, set current_source_symtab.
11799 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11801 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11802 and remove unused $(INCLUDE_DIR).
11803 Add regcache.c to OBS.
11804 Add generated register protocol files to clean target.
11805 Update dependencies for new objects, obsolete old target code.
11807 * gdbserver/linux-low.c: Remove all platform-specific code to
11808 new files. Remove various dead code. Update to use regcache
11810 * gdbserver/remote-utils.c (fromhex): Add return statement
11812 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11814 (input_interrupt): Add integer parameter to match prototype
11815 of a signal handler.
11816 (outreg): Use register_data ().
11817 (prepare_resume_reply): Use gdbserver_expedite_regs.
11818 * gdbserver/server.c (main): Dynamically allocate own_buf because
11819 PBUFSIZ is no longer constant. Use registers_to_string () and
11820 registers_from_string ().
11821 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11822 for error (), fatal (), and warning (). Update definition of
11823 PBUFSIZ to use regcache functionality. Add include guard.
11824 * gdbserver/utils.c (fatal): Add missing ``const''.
11825 (warning): New function.
11827 * regformats/regdat.sh: Include "regcache.h" in generated files.
11828 Provide init_registers () function.
11829 * regformats/regdef.h: Add prototype for set_register_cache ().
11832 * gdbserver/linux-arm-low.c: New file.
11833 * gdbserver/linux-i386-low.c: New file.
11834 * gdbserver/linux-ia64-low.c: New file.
11835 * gdbserver/linux-m68k-low.c: New file.
11836 * gdbserver/linux-mips-low.c: New file.
11837 * gdbserver/linux-ppc-low.c: New file.
11838 * gdbserver/linux-sh-low.c: New file.
11840 * gdbserver/regcache.c: New file.
11841 * gdbserver/regcache.h: New file.
11843 * gdbserver/low-linux.c: Removed obsolete file.
11845 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11847 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11848 * config/i386/linux.mt: Likewise.
11849 * config/ia64/linux.mt: Likewise.
11850 * config/m68k/linux.mh: Likewise.
11851 * config/powerpc/linux.mh: Likewise.
11852 * config/mips/linux.mt: Likewise.
11854 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11856 * config/i386/i386lynx.mh: Mark gdbserver variables
11857 as (currently) obsolete for this target.
11858 * config/i386/nbsd.mt: Likewise.
11859 * config/i386/nbsdelf.mt: Likewise.
11860 * config/m32r/m32r.mt: Likewise.
11861 * config/m68k/m68klynx.mh: Likewise.
11862 * config/m68k/nbsd.mt: Likewise.
11863 * config/m68k/sun3os4.mh: Likewise.
11864 * config/mips/vr5000.mt: Likewise.
11865 * config/ns32k/nbsd.mt: Likewise.
11866 * config/pa/hppabsd.mh: Likewise.
11867 * config/pa/hppaosf.mh: Likewise.
11868 * config/powerpc/nbsd.mt: Likewise.
11869 * config/rs6000/rs6000lynx.mh: Likewise.
11870 * config/s390/s390.mt: Likewise.
11871 * config/s390/s390x.mt: Likewise.
11872 * config/sparc/sparclynx.mh: Likewise.
11873 * config/sparc/sun4os4.mh: Likewise.
11874 * config/i386/x86-64linux.mt: Likewise.
11875 * config/sparc/linux.mh: Likewise.
11877 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11879 * configure.tgt: Configure gdbserver only for known working
11880 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11881 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11882 SUBDIRS if it is configured. Update comment for ${nativefile}.
11883 * configure: Regenerated.
11885 2002-02-13 Michael Snyder <msnyder@redhat.com>
11887 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11889 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11890 (default_gcore_mach): Just return 0, work around a problem in bfd.
11891 (default_gcore_target): OK to return NULL if exec_bfd is null.
11892 (make_mem_sec): Use a cast, avoid a warning.
11894 * procfs.c (find_memory_regions_callback): Use a cast instead of
11895 calling host_pointer_to_address (which complains if
11896 sizeof (host pointer) != sizeof (target pointer)).
11897 (procfs_make_note_section): Avoid overflow in psargs string.
11899 * procfs.c (procfs_make_note_section): Make the default
11900 implementation return an error.
11902 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
11904 * procfs.c (procfs_make_note_section): Provide a default definition
11905 (for alpha-dec-osf4.0f). Fix typos.
11907 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11909 * linux-proc.c: Add include of regcache.h.
11910 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11912 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11914 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11915 * memattr.c (create_mem_region): Disallow useless empty region.
11916 Regions are half-open intervals, so allow [A..B) [B..C) as
11919 2002-02-13 Michael Chastain <mec@shout.net>
11921 * defs.h: Kill CONST_PTR.
11922 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11923 * c-lang.c (c_builtin_types): Likewise.
11924 * ch-lang.c (ch_builtin_types): Likewise.
11925 * f-lang.c (f_builtin_types): Likewise.
11926 * language.c (unknown_builtin_types): Likewise.
11927 * m2-lang.c (m2_builtin_types): Likewise.
11928 * p-lang.c (pascal_builtin_types): Likewise.
11929 * scm-lang.c (c_builtin_types): Likewise.
11931 2002-02-13 Keith Seitz <keiths@redhat.com>
11933 * arm-tdep.h (arm_get_next_pc): Add declaration.
11935 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
11937 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11938 with other related struct-returning functions.
11939 (arm_extract_struct_value_address): New function.
11940 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11941 initialize float_format, double_format and long_double_format as
11942 appropriate to the endianness of the target.
11943 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11944 (arm_use_struct_convention): Delete declaration.
11945 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11947 2002-02-13 Keith Seitz <keiths@redhat.com>
11949 * defs.h (core_addr_to_string_nz): New function.
11951 2002-02-13 Mark Kettenis <kettenis@gnu.org>
11953 Apply missing bits of 2002-01-15 patch.
11954 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11955 (fill_fpregset): Use i387_fill_fsave.
11957 2002-02-12 Keith Seitz <keiths@redhat.com>
11959 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11960 (core_addr_to_string_nz): New function.
11962 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11964 * arm-linux-nat.c: Really include arm-tdep.h.
11965 * config/arm/tm-linux.h (struct type, struct value): Declare.
11967 2002-02-11 Michael Snyder <msnyder@redhat.com>
11969 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11970 (gcore section): Ifdef for Solaris and Unixware only.
11971 (procfs_do_thread_registers): Unixware needs one lwpstatus
11972 per thread (not one prstatus or pstatus).
11973 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11974 not over all gdb threads. For unixware, call elfcore_write_pstatus
11975 once before iterating over threads.
11977 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11979 * arm-tdep.h: New file.
11980 * arm-tdep.c: Include arm-tdep.h.
11981 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11982 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11983 (arm_print_float_info, arm_register_type, convert_to_extended)
11984 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11985 (arm_extract_return_value, arm_register_name): Make static.
11986 (arm_software_single_step): Similarly. Fix types in declaration.
11987 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11988 (arm_store_return_value, arm_store_struct_return): New functions.
11989 (arm_gdbarch_init): Register the above functions. Also register
11990 call_dummy_start_offset, sizeof_call_dummy_words,
11991 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11992 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
11993 max_register_virtual_size, register_size. Set up
11994 prologue_cache.saved_regs here, rather than ...
11995 (_initialize_arm_tdep): ... here.
11996 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11998 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11999 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12000 (arm_print_float_info, arm_register_type, convert_to_extended)
12001 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12002 (arm_extract_return_value, arm_register_name): Delete declarations.
12003 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12004 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12005 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12006 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12007 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12008 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12009 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12010 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12011 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12012 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12013 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12014 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12016 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12017 * remote-rdi.c remote-rdp.c: Likewise.
12018 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12019 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12020 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12023 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12024 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12025 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12026 from non-ARM_ prefixed definitions.
12027 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12029 * remote-rdi.c remote-rdp.c: Likewise.
12030 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12032 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12034 * arm-tdep.c (arm_frameless_function_invocation)
12035 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12036 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12037 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12038 (arm_pop_frame, arm_get_next_pc): Make static.
12039 (arm_gdbarch_init): Register above in gdbarch structure.
12040 (arm_read_fp): Renamed from arm_target_read_fp.
12041 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12042 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12043 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12044 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12045 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12046 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12047 (arm_pc_is_thumb_dummy): Delete declarations.
12048 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12049 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12050 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12051 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12053 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12055 * symtab.c (compare_search_syms): New function.
12056 (sort_search_symbols): New function.
12057 (search_symbols): Sort symbols after searching rather than
12060 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12062 * NEWS: Linux -> GNU/Linux.
12064 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12066 * gdbarch.sh: For for level one methods, disallow a definition
12067 when partially multi-arched. Add comments explaining rationale.
12068 * gdbarch.h: Re-generate.
12070 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12072 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12073 multi-arch partial.
12075 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12077 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12078 field. Use diff -u.
12079 * gdbarch.c: Re-generate.
12081 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12083 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12084 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12087 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12089 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12090 multi-arch partial.
12091 (PUSH_ARGUMENTS): Switch to using predefault.
12092 * gdbarch.c: Regenerate.
12094 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12096 * valops.c (PUSH_ARGUMENTS): Delete definition.
12097 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12098 partial. Default to default_push_arguments.
12099 * gdbarch.h, gdbarch.c: Regenerate.
12101 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12103 * defs.h (throw_exception): Rename return_to_top_level. Update
12105 * utils.c (error_stream, internal_verror, quit): Ditto.
12106 * top.c (throw_exception, catcher): Ditto.
12107 * sparclet-rom.c (sparclet_load): Ditto.
12108 * remote.c (interrupt_query, minitelnet): Ditto.
12109 * remote-sds.c (interrupt_query): Ditto.
12110 * remote-mips.c (mips_error, mips_kill): Ditto.
12111 * ocd.c (interrupt_query): Ditto.
12112 * monitor.c (monitor_interrupt_query): Ditto.
12113 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12114 * target.h: Update comment.
12116 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12118 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12120 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12121 default_double_format.
12122 * gdbarch.h, gdbarch.c: Re-generate.
12123 * findvar.c (floatformat_unknown): Delete variable definition.
12124 * doublest.h (floatformat_unknown): Delete variable declaration.
12126 2002-02-09 Jim Blandy <jimb@redhat.com>
12128 * stabsread.c (read_type): Add code to parse Sun's syntax for
12129 prototyped function types.
12131 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12133 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12134 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12136 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12138 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12139 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12140 now _initialize_xcoffsolib gets called again and overrides the
12141 commands from solib.c in a native configuration.
12143 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12145 * doublest.c (store_typed_floating): Don't try to return a value.
12148 2002-02-08 Jim Blandy <jimb@redhat.com>
12150 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12151 is prototyped and has no arguments, print its argument list as
12154 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12156 * MAINTAINERS (write-after-approval): Add myself.
12157 (paper-trail): I've escaped!
12159 2002-02-08 Christopher Faylor <cgf@redhat.com>
12161 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12163 (_initialize_check_for_gdb_ini): Ditto.
12165 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12167 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12168 xaprintf -> xasprintf.
12170 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12172 * win32-nat.c: Remove use of printf and sprintf functions.
12174 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12176 * arm-tdep.c (arm_frame_chain_valid): Make static.
12177 (arm_push_arguments): Likewise.
12178 (arm_gdbarch_init): New function.
12179 (_initialize_arm_tdep): Call it.
12180 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12181 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12182 (FRAME_CHAIN_VALID): Delete.
12183 (arm_frame_chain_valid): Delete declaration.
12184 (PUSH_ARGUMENTS): Delete.
12185 (arm_push_arguments): Delete declaration.
12186 (CALL_DUMMY_P): Delete.
12188 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12189 Corinna Vinschen <vinschen@redhat.com>
12191 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12192 on builtin float types.
12194 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12196 * utils.c: Include <curses.h> before "bfd.h".
12197 * tui/tui-hooks.c: Likewise.
12198 * tui/tui.c: Likewise.
12199 * tui/tuiCommand.c: Likewise.
12200 * tui/tuiData.c: Likewise.
12201 * tui/tuiDataWin.c: Likewise.
12202 * tui/tuiDisassem.c: Likewise.
12203 * tui/tuiGeneralWin.c: Likewise.
12204 * tui/tuiIO.c: Likewise.
12205 * tui/tuiLayout.c: Likewise.
12206 * tui/tuiRegs.c: Likewise.
12207 * tui/tuiSource.c: Likewise.
12208 * tui/tuiSourceWin.c: Likewise.
12209 * tui/tuiStack.c: Likewise.
12210 * tui/tuiWin.c: Likewise.
12212 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12214 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12215 to include space for pseudoregs as well. Update loops accordingly.
12216 (sh_fp_frame_init_saved_regs): Ditto.
12217 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12219 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12221 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12222 Add Richard Earnshaw to Arm maintainers.
12224 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12226 * defs.h (warning_begin): Delete declaration.
12228 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12231 2002-02-07 Michael Snyder <msnyder@redhat.com>
12233 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12234 Logic bug, remove misplaced else.
12236 2002-02-07 Klee Dienes <klee@apple.com>
12238 * fork-inferior.c (fork_inferior): Add '!' to the list of
12239 characters that need to be quoted when building a string for the
12240 shell. Quote '!' specifically with a backslash, since CSH chokes
12241 when trying to evaluate "str!str".
12243 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12245 * rdi-share/host.h: Only provide a typedef for bool if it is not
12248 2002-02-04 Michael Snyder <msnyder@redhat.com>
12250 * breakpoint.h (enum bptype): Add new overlay event bp type.
12251 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12253 * breakpoint.c (create_internal_breakpoint): New function.
12254 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12255 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12256 (create_thread_event_breakpoint): Ditto.
12257 (create_solib_event_breakpoint): Ditto.
12258 (create_overlay_event_breakpoint): New function.
12259 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12260 (update_breakpoints_after_exec): Delete and re-initialize
12261 overlay event breakpoints after an exec. Add FIXME comment
12262 about longjmp breakpoint.
12263 (print_it_typical): Ignore overlay event breakpoints.
12264 (print_one_breakpoint): Ditto.
12266 (bpstat_what): Do not stop for overlay event breakpoints.
12267 (delete_breakpoint): Don't delete overlay event breakpoints.
12268 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12269 (breakpoint_re_set): Re-create overlay event breakpoint.
12271 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12272 (overlay_manual_command): Disable overlay breakpoints.
12273 (overlay_off_command): Disable overlay breakpoints.
12275 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12277 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12278 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12279 to here from config/tm-arm.h.
12280 (coff_sym_is_thumb): Make static.
12281 (arm_elf_make_msymbol_special): New function.
12282 (arm_coff_make_msymbol_special): New function.
12283 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12284 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12285 (coff_sym_is_thumb): Delete declaration.
12286 (arm_elf_make_msymbol_special): Declare.
12287 (arm_coff_make_msymbol_special): Declare.
12288 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12289 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12291 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12293 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12295 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12297 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12298 * gdbarch.c gdbarch.h: Regenerate.
12299 * arch-utils.c (default_print_float_info): New function.
12300 * arch-utils.h (default_print_float_info): Prototype it.
12301 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12302 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12303 (PRINT_FLOAT_INFO): Document it.
12305 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12306 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12307 (PRINT_FLOAT_INFO): Define.
12309 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12311 * win32-nat.c (_initialize_check_for_gdb_ini):
12312 Add typecast to sprintf argument to suppress a warning.
12314 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12316 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12317 to allow easier handling of pass state.
12318 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12319 that gives exception name and address.
12320 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12321 and set last_sig value to ourstatus->value.sig. Some missing
12323 (child_continue): Correctly report continue_status.
12324 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12325 TARGET_SIGNAL_0 (new default value).
12326 (child_resume): consider sig argument passed to decide if
12327 the exception should be passed to debuggee or not.
12329 2002-02-05 Michael Snyder <msnyder@redhat.com>
12331 * regcache.c (fetch_register): Call target_fetch_register
12332 only if we don't call FETCH_PSEUDO_REGISTER.
12333 (store_register): Call target_store_register only if we
12334 don't call STORE_PSEUDO_REGISTER.
12336 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12338 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12339 ELF_MAKE_MSYMBOL_SPECIAL.
12340 * gdbarch.c, gdbarch.h: Regenerate.
12341 * arch-utils.c (default_make_msymbol_special): New function.
12342 * arch-utils.h (default_make_msymbol_special): Export.
12343 * elfread.c (elf_symtab_read): Compile use of
12344 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12346 * coffread.c (coff_symtab_read): Ditto, for
12347 COFF_MAKE_MSYMBOL_SPECIAL.
12349 2002-02-05 Jim Blandy <jimb@redhat.com>
12351 * solib-svr4.c (svr4_truncate_ptr): New function.
12352 (svr4_relocate_section_addresses): Do the address arithmetic with
12353 the appropriate truncation for target addresses, even when
12354 CORE_ADDR is larger than a target address.
12356 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12358 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12361 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12363 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12366 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12368 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12370 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12372 * gdbserver/linux-low.c: Remove unused include files.
12374 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12376 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12377 (read_inferior_memory): Use it.
12378 (write_inferior_memory): Likewise.
12380 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12382 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12383 grubbing through sys_errlist.
12385 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12387 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12389 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12390 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12392 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12394 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12395 (do_sfunc, set_cmd_sfunc): New functions.
12397 * command.h (struct cmd_list_element): Add field func.
12398 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12399 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12400 * cli/cli-decode.h: Ditto.
12402 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12403 (help_all, help_cmd_list): Ditto.
12404 (find_cmd, complete_on_cmdlist): Ditto.
12405 * top.c (execute_command): Ditto.
12407 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12410 * infcmd.c (notice_args_read): Fix function signature.
12412 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12413 * cli/cli-decode.c (add_set_cmd): Ditto.
12414 * utils.c (initialize_utils): Ditto.
12415 * maint.c (_initialize_maint_cmds): Ditto.
12416 * infrun.c (_initialize_infrun): Ditto.
12417 * demangle.c (_initialize_demangler): Ditto.
12418 * remote.c (add_packet_config_cmd): Ditto.
12419 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12420 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12421 * proc-api.c (_initialize_proc_api): Ditto.
12422 * kod.c (_initialize_kod): Ditto.
12423 * valprint.c (_initialize_valprint): Ditto.
12424 * top.c (init_main): Ditto.
12425 * infcmd.c (_initialize_infcmd): Ditto.
12426 * corefile.c (_initialize_core): Ditto.
12427 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12428 * arch-utils.c (initialize_current_architecture): Ditto.
12429 (_initialize_gdbarch_utils): Ditto.
12430 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12432 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12433 * wince.c (_initialize_inftarg): Ditto.
12434 * symfile.c (_initialize_symfile): Ditto.
12435 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12436 * language.c (_initialize_language): Ditto.
12437 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12439 2002-02-04 Michael Snyder <msnyder@redhat.com>
12441 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12443 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12445 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12446 Add rules for building the register data files.
12448 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12450 * regformats/regdat.sh: Add braces to the definition of
12451 expedite_regs_${arch}.
12453 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12455 * regformats/regdef.h (struct reg): Add comment describing the
12456 requirements for offset and size fields.
12458 2002-02-04 Andreas Schwab <schwab@suse.de>
12460 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12461 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12463 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12465 * gdbarch.sh (copyright): Update years in generated header.
12466 (SMASH_TEXT_ADDRESS): Add rule.
12467 * gdbarch.h, gdbarch.c: Re-generate.
12468 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12469 * dbxread.c: Likewise.
12470 * dwarfread.c: Likewise.
12471 * elfread.c: Likewise.
12472 * somread.c: Likewise.
12474 * arm-tdep.c (arm_smash_text_address): New function.
12475 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12477 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12479 Add support for hardware watchpoints on win32 native.
12480 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12481 CONTEXT_DEBUG_REGISTERS.
12482 (dr variable): New variable. Static array containing a local copy
12483 of debug registers.
12484 (debug_registers_changed): New variable. Reflects when debug registers
12485 are changed and need to be written to inferior.
12486 (debug_registers_used): New variable. Reflects when any debug register
12487 was set, used when new threads are created.
12488 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12490 (thread_rec): Set dr array if id is the thread of current_event .
12491 (child_continue, child_resume): Change the debug registers for all
12492 threads if debug_registers_changed.
12493 (child_add_thread): Change the debug registers if debug_registers_used.
12494 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12495 Link nm.h to new nm-cygwin.h file.
12496 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12497 of hardware registers.
12499 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12501 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12502 Restore behavour broken by 2002-01-20 Andrew Cagney
12503 <ac131313@redhat.com> IEEE_FLOAT removal.
12505 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12507 * c-valprint.c (c_val_print): Pass a proper valaddr to
12508 cp_print_class_method.
12509 * valops.c (search_struct_method): If there is only one method
12510 and args is NULL, return that method.
12512 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12514 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12515 accessing tag_name directly.
12517 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12519 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12520 of accessing tag_name directly.
12522 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12525 * gdbtypes.c (replace_type): New function.
12526 * gdbtypes.h (replace_type): Add prototype.
12527 * stabsread.c (read_type): Use replace_type.
12529 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12531 * Makefile.in (memattr.o): Add missing dependencies rule.
12533 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12535 * breakpoint.c (break_at_finish_command): Really export.
12536 (break_at_finish_at_depth_command): Ditto.
12537 (tbreak_at_finish_command): Ditto.
12538 * hppa-tdep.c: Include completer.h.
12539 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12540 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12542 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12544 * utils.c (do_write): New function.
12545 (error_stream): Rewrite combining the code from error_begin and
12547 (verror): Rewrite using error_stream.
12548 (error_begin): Delete function.
12550 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12552 * utils.c (error_begin): Make static.
12553 * defs.h (error_begin): Delete declaration.
12555 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12556 (decode_line_1): Use cplusplus_error instead of error_begin,
12557 cplusplus_hint and return_to_top_level.
12558 * coffread.c (coff_symfile_read): Use error instead of error_begin
12559 and return_to_top_level.
12560 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12562 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12564 * language.h (type_error, range_error): Make string parameter
12566 * language.c (warning_pre_print): Delete extern declaration.
12567 * dwarfread.c (warning_pre_print): Ditto.
12568 * language.c (type_error, range_error): Rewrite to use verror and
12569 vwarning instead of warning_begin.
12571 2002-02-01 Michael Snyder <msnyder@redhat.com>
12573 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12574 (set_ignore_count): Move misplaced comment back where it belongs.
12576 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12578 * command.h (NO_FUNCTION): Delete macro.
12579 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12580 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12581 * tracepoint.c (_initialize_tracepoint): Ditto.
12582 * cli/cli-decode.c (add_set_cmd): Ditto.
12583 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12585 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12587 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12588 Update ``this'' pointer when calling virtual functions.
12590 2002-02-01 Michael Snyder <msnyder@redhat.com>
12592 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12593 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12595 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12597 * regformats/reg-arm.dat: New file.
12598 * regformats/reg-i386.dat: New file.
12599 * regformats/reg-ia64.dat: New file.
12600 * regformats/reg-m68k.dat: New file.
12601 * regformats/reg-mips.dat: New file.
12602 * regformats/reg-ppc.dat: New file.
12603 * regformats/reg-sh.dat: New file.
12604 * regformats/regdef.h: New file.
12605 * regformats/regdat.sh: New file.
12607 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12609 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12610 (arm_frame_args_address, arm_frame_locals_address): New functions.
12611 (arm_frame_num_args): New function.
12612 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12613 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12614 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12616 2002-01-31 Michael Snyder <msnyder@redhat.com>
12618 * breakpoint.c (break_at_finish_command): Export.
12619 (break_at_finish_at_depth_command): Export.
12620 (tbreak_at_finish_command): Export.
12621 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12622 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12623 "txbreak" commands, which are HPPA specific.
12625 * printcmd.c (disassemble_command): Remove an ancient
12626 artifact of an old merge.
12628 * symfile.h (enum overlay_debugging_state):
12629 Define enum constant values for overlay mode.
12630 * symfile.c (overlay_debugging): Use enums instead of literals.
12631 (overlay_is_mapped, overlay_auto_command,
12632 overlay_manual_command): Ditto.
12634 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12635 breakpoint_here_p, breakpoint_inserted_here_p,
12636 breakpoint_thread_match, bpstat_stop_status,
12637 describe_other_breakpoints, check_duplicates, clear_command):
12638 Coding standard fixes.
12640 * target.c (target_xfer_memory): Add spaces, coding standard.
12641 (do_xfer_memory): Add missing line to trust-readonly
12642 code: check bfd SEC_READONLY flag for section.
12644 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12646 * PROBLEMS: Fix typo, 5.1->5.1.1.
12648 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12650 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12651 data symbols, since we search based on textlow and texthigh.
12652 (find_pc_sect_symtab): Likewise.
12654 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12656 * defs.h (vwarning): Declare.
12657 * utils.c (vwarning): New function.
12658 (warning): Call vwarning.
12659 (warning_begin): Delete function.
12661 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12662 the warning message.
12663 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12666 2002-01-30 Michael Snyder <msnyder@redhat.com>
12668 * NEWS: Mention "set trust-readonly-sections" command.
12669 Mention generate-core-file command.
12671 2002-01-15 Michael Snyder <msnyder@redhat.com>
12673 * target.c: New command, "set trust-readonly-sections on".
12674 (do_xfer_memory): Honor the suggestion to trust readonly sections
12675 by reading them from the object file instead of from the target.
12676 (initialize_targets): Register command "set trust-readonly-sections".
12678 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12680 * parse.c (target_map_name_to_register): Simplify, search regs and
12681 pseudo-regs using a single loop.
12683 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12685 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12687 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12689 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12690 * config/i386/i386v42mp.mh: Add i387-nat.o .
12691 * i386v4-nat.c: Include i387-nat.h.
12692 (supply_fpregset): Use i387_supply_fsave.
12693 (fill_fpregset): Use i387_fill_fsave.
12695 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12697 * arm-tdep.c (arm_call_dummy_words): Define.
12698 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12699 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12700 (CALL_DUMMY_WORDS): Define.
12701 (arm_call_dummy_words): Declare.
12702 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12703 (arm_linux_call_dummy_words): Declare.
12705 2002-01-30 Andreas Schwab <schwab@suse.de>
12707 * m68klinux-nat.c: Fix last change to use regcache_collect
12708 instead of referencing registers[] directly.
12710 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12712 * parse.c (target_map_name_to_register): Delete code wrapped in
12713 #ifdef REGISTER_NAME_ALIAS_HOOK.
12715 2002-01-28 Michael Snyder <msnyder@redhat.com>
12717 * regcache.c (legacy_read_register_gen): Need to be able to
12718 read pseudo-register as well as real register.
12719 (legacy_write_register_gen): Ditto.
12721 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12723 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12724 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12725 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12726 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12727 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12728 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12729 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12730 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12731 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12732 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12733 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12734 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12735 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12736 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12737 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12738 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12739 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12740 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12741 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12742 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12744 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12746 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12747 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12748 (initialize_current_architecture): Update target_byte_order using
12749 information from BFD.
12750 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12751 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12753 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12755 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12756 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12758 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12759 #ifdef INVALID_FLOAT.
12760 * infcmd.c (do_registers_info): Ditto.
12761 * values.c (unpack_double): Ditto. Add comment.
12763 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12764 already commented out.
12766 2002-01-26 Andreas Schwab <schwab@suse.de>
12768 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12769 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12770 registers and add support for PTRACE_GETREGS.
12772 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12774 GDB 5.1.1 released from 5.1 branch.
12775 * NEWS: Add 5.1.1 news.
12776 * README: Sync with 5.1 branch.
12778 2002-01-23 Fred Fish <fnf@redhat.com>
12780 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12781 stabstring on initial malloc. Reallocing will copy it for us,
12784 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12786 * Makefile.in (hpread_h): Delete.
12787 (HFILES_NO_SRCDIR): Remove hpread.h.
12788 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12789 (hpread.o): Update dependencies.
12790 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12792 * hp-psymtab-read.c: Remove file.
12793 * hp-symtab-read.c: Remove file.
12794 * hpread.h: Remove file.
12796 * hpread.c: Merge all contents of hp-psymtab-read.c,
12797 hp-symtab-read.c and hpread.h into this file, as it was prior to
12800 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12801 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12802 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12803 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12805 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12807 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12808 fill_gregset): Call gdbarch_tdep() just once, assign result to
12809 variable and use that, instead of calling the function several
12812 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12814 * configure.host: Accept sparcv9 as alias for sparc64.
12815 * configure.tgt: Likewise.
12817 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12819 * solib-aix5.c (build_so_list_from_mapfile)
12820 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12821 arguments is not reversed.
12822 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12823 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12825 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
12827 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12828 modified version of obsolete sh_fetch_pseudo_register.
12829 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12830 (sh4_register_read): New function.
12831 (sh_pseudo_register_write): New function. Renamed and modified
12832 version of obsolete sh_store_pseudo_register.
12833 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12834 (sh4_register_write): New function.
12835 (sh_gdbarch_init): Remove setting of gdbarch function
12836 fetch_pseudo_register and store_pseudo_register. Remove setting of
12837 register_convert_to_raw, register_convert_to_virtual,
12838 register_convertible.
12839 (sh_sh4_register_convertible): Delete. No longer needed. All is
12840 taken care by architecture specific functions
12841 register_read/register_write.
12842 (sh_sh4_register_convert_to_virtual): Make static.
12843 (sh_sh4_register_convert_to_raw): Ditto.
12845 2002-01-22 Andrew Cagney <ac131313@redhat.com>
12847 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12848 (floatformat_is_nan, floatformat_mantissa): Ditto.
12850 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12851 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12852 builtin_type_ieee_double_little,
12853 builtin_type_ieee_double_littlebyte_bigword,
12854 builtin_type_m68881_ext, builtin_type_i960_ext,
12855 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12856 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12857 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12858 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12860 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
12862 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12863 parameter. Set frameless flag if it exists and depended of
12864 whether the scanned function is frameless or not.
12865 (xstormy16_skip_prologue): If function is frameless, return
12866 result of xstormy16_scan_prologue().
12867 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12870 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
12872 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12873 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12874 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12875 sh_sh4_register_byte, sh_sh4_register_raw_size,
12876 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12877 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12878 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12879 sh_store_pseudo_register, sh_do_pseudo_register): Call
12880 gdbarch_tdep() just once, assign result to variable and use that,
12881 instead of calling the function several times.
12883 2002-01-20 Mark Kettenis <kettenis@gnu.org>
12885 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12886 macros instead of LAST_FPU_CTRL_REGNUM.
12887 (store_register): Likewise.
12889 2002-01-21 Jim Blandy <jimb@redhat.com>
12891 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12892 is up-to-date before running the program, not just when a program
12895 2002-01-21 Fred Fish <fnf@redhat.com>
12897 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12898 when we have found all instructions we are looking for.
12900 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12902 * arm-tdep.c (arm_register_name): New function.
12903 (arm_registers_names): Make static.
12904 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12905 (arm_register_name): Declare.
12906 (REGISTER_NAME): Use it.
12908 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12909 Kevin Buettner <kevinb@redhat.com>
12911 Convert arm targets to new FRAME interface.
12912 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12913 (arm_frame_find_save_regs): Delete.
12914 (arm_frame_init_saved_regs): New.
12915 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12916 Allocate extra_info as required. Convert all uses of fsr.regs
12917 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12919 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12920 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12921 (check_prologue_cache, save_prologue_cache): Likewise.
12922 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12923 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12924 (FRAME_FIND_SAVED_REGS): Delete.
12925 (arm_frame_find_saved_regs): Delete prototype.
12926 (arm_frame_init_saved_regs): New prototype.
12927 (FRAME_INIT_SAVED_REGS): Define.
12929 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12931 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12933 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12935 From Jeff Law <law@redhat.com>:
12936 * infttrace.c: Include <sys/pstat.h>.
12937 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12938 exec file if the ttrace equivalent fails.
12940 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12942 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12943 (closeLogFile): Ditto.
12945 2002-01-20 Michael Chastain <mec@shout.net>
12947 * top.c (print_gdb_version): Bump copyright year to 2002.
12949 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12951 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12952 Zannoni and Eli Zaretskii.
12954 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12956 * buildsym.c: Update copyright years.
12957 * c-typeprint.c: Likewise.
12958 * dwarf2read.c: Likewise.
12959 * f-typeprint.c: Likewise.
12960 * gdbtypes.c: Likewise.
12961 * gdbtypes.h: Likewise.
12962 * hp-symtab-read.c: Likewise.
12963 * hpread.c: Likewise.
12964 * mdebugread.c: Likewise.
12965 * p-typeprint.c: Likewise.
12967 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12969 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12970 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12971 byte-order selectable.
12972 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12973 * arch-utils.c: Ditto.
12974 (set_endian): Ditto.
12975 (set_endian_from_file): Ditto.
12976 * gdbserver/low-sim.c (create_inferior): Ditto.
12977 * gdbarch.sh: Ditto.
12978 * gdbarch.h: Re-generate.
12979 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12980 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12981 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12982 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12983 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12984 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12985 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
12986 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12988 * config/mips/tm-wince.h: Remove #undef of macro
12989 TARGET_BYTE_ORDER_SELECTABLE.
12990 * config/sh/tm-wince.h: Ditto.
12992 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12994 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12995 member function fields. Add accessor macro
12996 TYPE_FN_FIELD_ARTIFICIAL.
12997 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12998 * c-typeprint.c (c_type_print_base): Skip artificial member
13001 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13003 * f-typeprint.c: Delete unused function f_type_print_args.
13004 * p-typeprint.c: Delete unused function pascal_type_print_args.
13006 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13008 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13009 comment. Add ``artificial'' to ``union field_location''.
13011 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13013 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13014 * mdebugread.c (parse_symbol): Likewise.
13015 * stabsread.c (define_symbol): Likewise.
13016 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13017 initializing TYPE_FIELD_BITPOS to n (obsolete).
13018 (hpread_doc_function_type): Likewise.
13019 * hpread.c (hpread_function_type): Likewise.
13021 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13023 * configure.in (host_makefile_frag): Only require a host makefile
13024 fragment when a native build.
13025 * configure: Re-generate.
13027 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13029 * doublest.h (floatformat_from_type): Declare.
13030 * doublest.c (floatformat_from_type): New function.
13031 (convert_typed_floating): Use.
13033 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13034 call to function floatformat_from_type.
13036 * gdbarch.sh (IEEE_FLOAT): Delete.
13037 * gdbarch.h, gdbarch.c: Re-generate.
13038 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13039 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13040 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13041 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13042 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13043 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13044 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13045 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13046 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13047 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13048 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13049 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13051 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13052 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13053 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13054 * sh-tdep.c (sh_gdbarch_init): Ditto.
13055 * mips-tdep.c (mips_gdbarch_init): Ditto.
13056 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13057 * cris-tdep.c (cris_gdbarch_init): Ditto.
13059 2002-01-20 Jiri Smid <smid@suse.cz>
13061 * configure.host, configure.tgt: Support x86-64.
13062 * NEWS: Note new target x86-64.
13064 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13065 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13066 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13067 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13068 x86-64-linux-nat.o): Fix dependencies.
13070 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13072 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13073 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13074 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13075 * config/sparc/xm-sun4os4.h: Delete file.
13076 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13078 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13080 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13081 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13082 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13083 * config/i386/i386lynx.mh (XM_FILE): Delete.
13084 * config/rs6000/xm-rs6000ly.h: Delete file.
13085 * config/sparc/xm-sparclynx.h: Delete file.
13086 * config/m68k/xm-m68klynx.h: Delete file.
13087 * config/i386/xm-i386lynx.h: Delete file.
13088 * config/xm-lynx.h: Delete file.
13089 * config/djgpp/fnchange.lst: Update.
13091 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13093 * alpha-tdep.c (alpha_register_byte): New function.
13094 (alpha_register_raw_size): Ditto.
13095 (alpha_register_virtual_size): Ditto.
13096 (alpha_skip_prologue_internal): Renamed from
13097 alpha_skip_prologue.
13098 (alpha_skip_prologue): New version that calls
13099 alpha_skip_prologue_internal.
13100 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13101 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13102 second argument from alpha_skip_prologue.
13103 (REGISTER_BYTE): Use alpha_register_byte.
13104 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13105 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13106 (FRAMELESS_FUNCTION_INVOCATION): Use
13107 generic_frameless_function_invocation_not.
13108 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13109 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13111 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13113 * config/mips/xm-news-mips.h: Delete file.
13114 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13116 * config/m88k/xm-m88k.h: Delete file.
13117 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13118 * config/m88k/xm-delta88v4.h: Ditto.
13119 * config/m88k/xm-delta88.h: Ditto.
13121 * config/alpha/xm-fbsd.h: Delete file.
13122 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13124 * config/sparc/xm-sparc.h: Delete file.
13125 * Makefile.in (xm-sun4os4.h): Delete dependency.
13126 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13127 * config/sparc/xm-sun4os4.h: Ditto.
13128 * config/sparc/xm-linux.h: Ditto.
13130 * config/i386/xm-windows.h: Delete file.
13132 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13134 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13135 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13137 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13139 * alpha-tdep.c (alpha_call_dummy_words): New.
13140 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13141 (CALL_DUMMY_P): Define.
13142 (CALL_DUMMY_WORDS): Define.
13143 (SIZEOF_CALL_DUMMY_WORDS): Define.
13145 2002-01-19 Per Bothner <per@bothner.com>
13147 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13148 isn't NULL, which can happen with some gcj-3.x-produced code.
13150 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13152 * alpha-tdep.c (alpha_register_virtual_type): New function.
13153 (alpha_init_frame_pc_first): Ditto.
13154 (alpha_fix_call_dummy): Ditto.
13155 (alpha_store_struct_return): Ditto.
13156 (alpha_extract_struct_value_address): Ditto.
13157 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13158 alpha_register_virtual_type.
13159 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13160 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13161 alpha_extract_struct_value_address.
13162 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13163 (INIT_FRAME_PC): Use init_frame_pc_noop.
13164 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13166 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13168 * i386gnu-nat.c: Include "i386-tdep.h".
13169 (fetch_fpregs): Simplify code dealing with uninitialized floating
13170 point states such that it doesn't require FP7_REGNUM.
13172 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13174 * alpha-tdep.c (frame_extra_info): New.
13175 (alpha_find_saved_regs): Make static. Use
13177 (alpha_frame_init_saved_regs): New function.
13178 (alpha_frame_saved_pc): Use frame->extra_info.
13179 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13180 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13181 (init_extra_frame_info): Rename to...
13182 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13183 (alpha_print_extra_frame_info): New function.
13184 (alpha_frame_locals_address): Ditto.
13185 (alpha_frame_args_address): Ditto.
13186 (alpha_pop_frame): Use frame->extra_info.
13187 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13188 alpha_frame_args_address.
13189 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13190 (alpha_find_saved_regs): Remove prototype.
13191 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13192 (EXTRA_FRAME_INFO): Remove.
13193 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13194 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13196 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13198 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13199 (alpha_cannot_fetch_register): Ditto.
13200 (alpha_cannot_store_register): Ditto.
13201 (alpha_register_convertible): Ditto.
13202 (alpha_use_struct_convention): Ditto.
13203 * config/alpha/tm-alpha.h: Update copyright years.
13204 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13205 (INNER_THAN): Use core_addr_lessthan.
13206 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13207 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13208 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13209 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13210 (FRAME_CHAIN): Remove unnecessary cast.
13212 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13214 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13217 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13219 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13220 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13221 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13222 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13223 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13224 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13225 * x86-64-linux-nat.c: Ditto.
13227 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13229 * alpha-tdep.c (alpha_register_name): New function.
13230 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13231 (REGISTER_NAME): Define.
13233 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13235 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13237 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13239 * alpha-tdep.c: Update copyright years.
13240 (alpha_next_pc): New function.
13241 (alpha_software_single_step): Ditto.
13242 * config/alpha/tm-alpha.h: Add prototype for
13243 alpha_software_single_step.
13245 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13247 * alphabsd-nat.c: Update copyright years.
13248 (fill_gregset): Use regcache_collect.
13249 (fill_fpregset): Likewise.
13250 (fetch_inferior_registers): Only fetch integer registers
13251 if requested to do so.
13252 (store_inferior_registers): Only store integer registers
13253 if requested to do so.
13255 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13257 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13258 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13259 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13260 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13261 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13262 * config/arm/linux.mh (XDEPFILES): Delete.
13263 * config/arm/nbsd.mh (XDEPFILES): Delete.
13264 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13265 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13266 * config/i386/i386m3.mh (XDEPFILES): Delete.
13267 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13268 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13269 * config/i386/fbsd.mh (XDEPFILES): Delete.
13270 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13271 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13272 * config/i386/i386v4.mh (XDEPFILES): Delete.
13273 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13274 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13275 * config/i386/i386aix.mh (XDEPFILES): Delete.
13276 * config/i386/go32.mh (XDEPFILES): Delete.
13277 * config/i386/cygwin.mh (XDEPFILES): Delete.
13278 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13279 * config/i386/i386mach.mh (XDEPFILES): Delete.
13280 * config/i386/i386v32.mh (XDEPFILES): Delete.
13281 * config/i386/linux.mh (XDEPFILES): Delete.
13282 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13283 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13284 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13285 * config/i386/i386sco.mh (XDEPFILES): Delete.
13286 * config/i386/i386v.mh (XDEPFILES): Delete.
13287 * config/i386/nbsd.mh (XDEPFILES): Delete.
13288 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13289 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13290 * config/i386/symmetry.mh (XDEPFILES): Delete.
13291 * config/i386/obsd.mh (XDEPFILES): Delete.
13292 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13293 * config/ia64/linux.mh (XDEPFILES): Delete.
13294 * config/ia64/aix.mh (XDEPFILES): Delete.
13295 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13296 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13297 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13298 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13299 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13300 * config/m68k/linux.mh (XDEPFILES): Delete.
13301 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13302 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13303 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13304 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13305 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13306 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13307 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13308 * config/m88k/delta88.mh (XDEPFILES): Delete.
13309 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13310 * config/m88k/m88k.mh (XDEPFILES): Delete.
13311 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13312 * config/mips/linux.mh (XDEPFILES): Delete.
13313 * config/mips/irix6.mh (XDEPFILES): Delete.
13314 * config/mips/irix5.mh (XDEPFILES): Delete.
13315 * config/mips/irix4.mh (XDEPFILES): Delete.
13316 * config/mips/irix3.mh (XDEPFILES): Delete.
13317 * config/mips/decstation.mh (XDEPFILES): Delete.
13318 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13319 (NATDEPFILES): Move core-aout.o to here.
13320 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13321 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13322 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13323 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13324 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13325 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13326 * config/pa/hpux11.mh (XDEPFILES): Delete.
13327 * config/powerpc/aix.mh (XDEPFILES): Delete.
13328 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13329 * config/powerpc/linux.mh (XDEPFILES): Delete.
13330 * config/romp/rtbsd.mh: Rename XDEPFILES.
13331 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13332 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13333 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13334 * config/s390/s390.mh (XDEPFILES): Delete.
13335 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13336 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13337 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13338 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13339 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13340 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13341 * config/sparc/linux.mh (XDEPFILES): Delete.
13342 * config/vax/vaxult.mh (XDEPFILES): Delete.
13343 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13344 * Makefile.in (DEPFILES): Remove XDEPFILES.
13346 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13348 * utils.c (internal_verror): Fix comments, default is yes not no.
13349 Update queries to match. Default to quit and dump core.
13351 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13353 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13355 * defs.h, event-top.c, gdbcmd.h: Ditto.
13356 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13357 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13358 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13359 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13360 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13361 * mi/mi-main.c:Ditto.
13363 * stack.c, symfile.c: Update copyright.
13365 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13367 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13368 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13369 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13370 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13372 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13374 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13375 * gdbserver/low-lynx.c (myattach): Likewise.
13376 * gdbserver/low-nbsd.c (myattach): Likewise.
13377 * gdbserver/low-sim.c (myattach): Likewise.
13378 * gdbserver/low-sparc.c (myattach): Likewise.
13379 * gdbserver/low-sun3.c (myattach): Likewise.
13381 * gdbserver/low-linux.c (myattach): New function.
13383 * gdbserver/server.c (attach_inferior): New function.
13384 (main): Handle "--attach".
13386 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13388 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13391 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13393 * c-typeprint.c (is_type_conversion_operator): Add additional
13394 check for non-conversion operators.
13396 2002-01-15 Michael Snyder <msnyder@redhat.com>
13398 * linux-proc.c: Add "info proc" command, a la procfs.c.
13399 (read_mapping): New function, abstract and re-use code.
13400 (linux_find_memory_regions): Use new func read_mapping.
13401 (linux_info_proc_cmd): New function, implement "info proc".
13402 (_initialize_linux_proc): Add new command "info proc".
13404 2002-01-15 Michael Snyder <msnyder@redhat.com>
13406 * symfile.c (generic_load): Use bfd_map_over_sections method
13407 instead of manipulating bfd structure members directly.
13408 (add_section_size_callback): New function, bfd sections callback
13409 used by generic_load.
13410 (load_sections_callback): New function, bfd sections callback
13411 used by generic_load.
13413 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13415 [Based on work by Jim Blandy]
13416 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13417 (builtin_type_vec128): Export.
13418 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13420 (builtin_type_vec128): New builtin type for 128 bit vector
13422 (build_gdbtypes): Initialize builtin_type_v16qi and
13423 builtin_type_v8hi. Create the vec128 register builtin type
13425 (build_builtin_type_vec128): New function.
13426 (_initialize_gdbtypes): Register builtin_type_v16qi and
13427 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13428 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13429 AltiVec register to new builtin type.
13431 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13433 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13436 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13438 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13439 CLEAN_UP_REGISTER_VALUE.
13440 * regcache.c (supply_register): Update only call.
13442 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13444 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13445 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13446 a29k-*-vxworks* targets as obsolete.
13448 2002-01-14 Michael Snyder <msnyder@redhat.com>
13450 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13451 until we can resolve portability issues.
13452 * gregset.h: Remove references to fpxregs.
13453 * gcore.c (gcore_command): Initialize note_sec to NULL.
13455 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13457 * signals.c (target_signal_to_name): Rewrite. Only use
13458 signals[].name when in bounds and non-NULL.
13460 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13462 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13463 * signals.c (target_signal_to_name): Verify that SIG is within the
13464 bounds of the signals array.
13466 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13468 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13470 2002-01-13 Keith Seitz <keiths@redhat.com>
13472 * stack.c (print_frame_info_base): Print the frame's pc
13473 only if when print_frame_info_listing_hook is not defined.
13475 2002-01-13 Keith Seitz <keiths@redhat.com>
13477 * varobj.c (varobj_set_value): Make sure that there were no
13478 errors evaluating the object before attempting to set its
13480 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13481 so this offset adjustment is no longer necessary.
13482 (create_child): Don't set the error flag if the child is
13483 a CPLUS_FAKE_CHILD.
13484 (value_of_child): If value_fetch_lazy fails, return NULL
13485 so that callers will be notified that an error occurred.
13486 (c_value_of_variable): Delay check of variable's validity
13487 until later. We actually want all structs and unions to have
13489 Do not return "???" for variables which could not be evaluated.
13490 This error condition must be returned to the caller so that it
13491 can get the error condition from gdb.
13492 (cplus_name_of_child): Adjust index for vptr before figuring
13493 out the name of the child.
13494 (cplus_value_of_child): If a child's (real) parent is not valid,
13495 don't even bother trying to give a value for it. Just return
13496 an error. Change all instances in this function.
13497 (cplus_type_of_child): If our parent is one of the "fake"
13498 parents, we need to get at the type of the real parent, and
13499 derive the child's true type using this information.
13501 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13503 From 2002-01-09 John Marshall <johnm@falch.net>:
13504 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13505 sources.redhat.com, and tweak some related URLs which had
13506 suffered from linkrot.
13508 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13511 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13512 structures passed in registers.
13514 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13516 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13517 white space which prevented compilation. Reported by DSK
13518 <dsk@student.unsw.edu.au>.
13520 2002-01-11 Michael Snyder <msnyder@redhat.com>
13522 * symfile.c (build_section_addr_info_from_section_tab):
13523 Use bfd access method instead of manipulating bfd directly.
13524 (syms_from_objfile): Ditto.
13525 (simple_overlay_update_1): Ditto.
13526 (simple_overlay_update): Ditto.
13527 (generic_load): Ditto.
13528 (overlay_unmapped_address): FIXME comment, bfd access methods.
13529 (sections_overlap): FIXME comment, bfd access methods.
13530 (pc_in_mapped_range): FIXME comment, bfd access methods.
13531 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13532 (section_is_mapped): FIXME comment, bfd access methods.
13533 (section_is_overlay): FIXME comment, bfd access methods.
13535 * symfile.c (generic_load): Whitespace and long line cleanups.
13536 Remove duplicate variable, change several local variables to
13537 more appropriate data types.
13538 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13540 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13542 From Peter Schauer:
13543 * language.c (longest_local_hex_string_custom): Use phex_nz to
13544 convert NUM to a hex string.
13546 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13548 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13550 Update Copyright year.
13552 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13554 * language.c (longest_raw_hex_string): Delete unused function.
13556 2002-01-11 Petr Sorfa <petrs@caldera.com>
13558 * MAINTAINERS (write-after-approval): Add myself.
13559 * dwarf2read.c (read_tag_string_type): Handling of
13561 (read_tag_string_type): FORTRAN fix to prevent propagation of
13563 (set_cu_language): Handling of DW_LANG_Fortran95
13565 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13567 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13568 GETPID(inferior_ptid).
13569 (store_inferior_registers): Likewise.
13571 2002-01-10 Jason Merrill <jason@redhat.com>
13573 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13576 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13578 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13579 and bfd/elf32-sh-nbsd.c.
13581 2002-01-10 Michael Snyder <msnyder@redhat.com>
13583 * NEWS: Mention --pid and corefile/proc-id behavior change.
13585 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13586 * gcore.c: Include cli/cli-decode.h instead of command.h.
13588 * main.c (captured_main): Add new command line option "--pid".
13589 If the second command line argument (following the symbol-file)
13590 begins with a digit, try to attach to it before trying to open
13592 (print_gdb_help): Document the "--pid" argument.
13594 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13596 * completer.c (command_completer): New function.
13598 * completer.h <command_completer>: Add prototype.
13600 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13601 completer for the "help" command.
13603 2002-01-09 Jason Merrill <jason@redhat.com>
13605 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13607 2002-01-09 Michael Snyder <msnyder@redhat.com>
13609 * i386-linux-nat.c (fill_fpxregset): Make global.
13610 (store_fpxregset): Ditto.
13612 * gregset.h (gdb_fpxregset_t): Define.
13613 (supply_fpxregset): Prototype.
13614 (fill_fpxregset): Prototype.
13616 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13618 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13620 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13621 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13622 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13624 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13626 * MAINTAINERS: Update target maintainer rules so that any
13627 Maintainer can approve a tested patch for a maintenance-only
13630 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13632 * MAINTAINERS (write-after-approval): Add myself.
13634 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13637 2002-01-08 Michael Snyder <msnyder@redhat.com>
13639 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13640 real name of the executable, rather than the /proc name.
13642 2002-01-03 Michael Snyder <msnyder@redhat.com>
13644 Implement a "generate-core-file" command in gdb, save target state.
13645 * gcore.c: New file. Implement new command 'generate-core-file'.
13646 Save a corefile image of the current state of the inferior.
13647 * linux-proc.c: Add linux-specific code for saving corefiles.
13648 * target.h (struct target_ops): Add new target vectors for saving
13649 corefiles; to_find_memory_regions and to_make_corefile_notes.
13650 (target_find_memory_regions): New macro.
13651 (target_make_corefile_notes): New macro.
13652 * target.c (update_current_target): Inherit new target methods.
13653 (dummy_find_memory_regions): New place-holder method.
13654 (dummy_make_corefile_notes): New place-holder method.
13655 (init_dummy_target): Initialize new dummy target vectors.
13656 * exec.c (exec_set_find_memory_regions): New function.
13657 Allow the exec_ops vector for memory regions to be taken over.
13658 (exec_make_note_section): New function, target vector method.
13659 * defs.h (exec_set_find_memory_regions): Export prototype.
13660 * procfs.c (proc_find_memory_regions): New function, corefile method.
13661 (procfs_make_note_section): New function, corefile method.
13662 (init_procfs_ops): Set new target vector pointers.
13663 (find_memory_regions_callback): New function.
13664 (procfs_do_thread_registers): New function.
13665 (procfs_corefile_thread_callback): New function.
13666 * sol-thread.c (sol_find_memory_regions): New function.
13667 (sol_make_note_section): New function.
13668 (init_sol_thread_ops): Initialize new target vectors.
13669 * inftarg.c (inftarg_set_find_memory_regions): New function.
13670 Allow to_find_memory_regions vector to be taken over.
13671 (inftarg_set_make_corefile_notes): New function.
13672 Allow to_make_corefile_notes vector to be taken over.
13673 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13674 interface layer if not target_has_execution (may be a corefile).
13675 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13676 * config/sparc/sun4sol2.mh: Ditto.
13677 * config/alpha/alpha-linux.mh: Ditto.
13678 * config/arm/linux.mh: Ditto.
13679 * config/i386/x86-64linux.mh: Ditto.
13680 * config/ia64/linux.mh: Ditto.
13681 * config/m68k/linux.mh: Ditto.
13682 * config/mips/linux.mh: Ditto.
13683 * config/powerpc/linux.mh: Ditto.
13684 * config/sparc/linux.mh: Ditto.
13686 2002-01-07 Michael Snyder <msnyder@redhat.com>
13688 * arm-linux-nat.c: Remove references to regcache.c internal data
13689 (registers[] and register_valid[]).
13691 2002-01-07 Michael Snyder <msnyder@redhat.com>
13693 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13694 so that attaching to a pid will automatically read the process's
13695 symbol file and shlibs.
13696 * Makefile.in: Add rule for linux-proc.o.
13697 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13698 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13699 * config/arm/linux.mh: Ditto.
13700 * config/i386/linux.mh: Ditto.
13701 * config/i386/x86-64linux.mh: Ditto.
13702 * config/ia64/linux.mh: Ditto.
13703 * config/m68k/linux.mh: Ditto.
13704 * config/mips/linux.mh: Ditto.
13705 * config/powerpc/linux.mh: Ditto.
13706 * config/sparc/linux.mh: Ditto.
13708 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13710 * win32-nat.c: Add i386-tdep.h dependency.
13712 2002-01-07 Michael Snyder <msnyder@redhat.com>
13714 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13715 instead of bfd_get_arch_size. Don't bail out just because
13716 there's no exec_bfd.
13718 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13719 * p-valprint.c (pascal_object_print_value): Ditto.
13720 * somread.c (som_symtab_read): Ditto.
13721 * symfile.c (simple_free_overlay_region_table): Ditto.
13722 * valops.c (value_assign): Ditto.
13724 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13725 use tilde_expand and strerror for opening save-tracepoints file.
13727 * thread-db.c (thread_db_new_objfile): Indendation fix.
13729 * infptrace.c (GDB_MAX_ALLOCA): New define.
13730 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13731 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13732 can be overridden with whatever value is appropriate to the host).
13733 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13734 alloca to allocate potentially large buffer.
13735 * rs6000-nat.c (child_xfer_memory): Ditto.
13736 * symm-nat.c (child_xfer_memory): Ditto.
13737 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13739 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13741 From Nick Clifton <nickc@redhat.com>
13742 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13744 2002-01-07 Michael Snyder <msnyder@redhat.com>
13746 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13747 Don't use exec_bfd if it's NULL.
13749 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13751 * valops.c (value_arg_coerce): Fix formatting.
13753 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13755 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13756 * gnu-nat.c: Ditto.
13758 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13760 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13761 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13762 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13763 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13764 z8k-coff have not been multi-arched. Update z8k-coff build
13767 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13769 * MAINTAINERS: Mark a29k target as obsolete.
13770 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13771 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13773 * NEWS: Note that a29k targets are obsolete.
13774 * a29k-tdep.c: Mark as obsolete.
13775 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13776 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13777 a29k-*-vxworks* targets as obsolete.
13778 * remote-adapt.c: Obsolete.
13779 * remote-eb.c: Obsolete.
13780 * remote-mm.c: Obsolete.
13781 * remote-udi.c: Obsolete.
13782 * config/a29k/a29k-udi.mt: Obsolete.
13783 * config/a29k/a29k.mt: Obsolete.
13784 * config/a29k/tm-a29k.h: Obsolete.
13785 * config/a29k/tm-vx29k.h: Obsolete.
13786 * config/a29k/vx29k.mt: Obsolete.
13788 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13790 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13791 with BFD_ENDIAN_BIG.
13793 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13795 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13796 * configure, config.in: Re-generate.
13797 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13798 * defs.h: Do not include <endian.h>.
13800 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13802 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13803 * config.in: Regenerate.
13804 * configure.in: Update copyright years.
13805 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13806 * configure: Regenerate.
13807 * i386bsd-nat.c: Update copyright years.
13808 (fill_gregset): Use regcache_collect.
13809 (fetch_inferior_registers): Only fetch integer registers
13810 if requested to do so. Add support for XMM registers
13811 using PT_GETXMMREGS.
13812 (store_inferior_registers): Only store integer registers
13813 if requested to do so. Add support for XMM registers
13814 using PT_SETXMMREGS.
13815 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13816 (store_inferior_registers): Remove.
13817 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13818 (fetch_elfcore_registers): New function.
13819 (i386nbsd_elfcore_fns): New.
13820 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13821 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13823 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13824 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13825 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13826 * config/i386/tm-nbsd.h: Update copyright years.
13827 (HAVE_SSE_REGS): Define.
13828 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13829 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13830 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13831 (SIGCONTEXT_PC_OFFSET): Remove.
13832 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13834 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13836 * configure.tgt: Remove powerpc-*-macos* target.
13837 * config/m68k/xm-mpw.h: Delete file.
13838 * config/xm-mpw.h: Delete file.
13839 * ser-mac.c: Delete file.
13840 * mpw-make.sed: Delete file.
13841 * mpw-config.in: Delete file.
13842 * mac-xdep.c: Delete file.
13843 * mac-gdb.r: Delete file.
13844 * mac-defs.h: Delete file.
13845 * mac-nat.c: Delete file.
13846 * config/powerpc/macos.mh: Delete file.
13847 * config/powerpc/macos.mt: Delete file.
13848 * config/powerpc/nm-macos.h: Delete file.
13849 * config/powerpc/tm-macos.h: Delete file.
13850 * source.c (openp, open_source_file): Remove obsolete code.
13851 * top.c (gdb_readline): Ditto.
13852 * utils.c (query): Ditto.
13853 * event-top.c (display_gdb_prompt): Ditto.
13854 * Makefile.in (ser-mac.o): Delete obsolete target.
13857 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13859 * defs.h (BIG_ENDIAN): Delete macro definition.
13860 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13861 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13862 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13863 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13864 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13865 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13866 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13867 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13868 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13869 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13870 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13871 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13872 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13873 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13874 * gdbarch.c: Re-generate.
13876 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13878 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13881 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13883 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13885 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13887 * value.h (value_ptr): Delete typedef.
13889 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13891 * i386nbsd-nat.c: Update copyright years.
13892 Include i386-tdep.h.
13894 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
13896 * stabsread.c: Update copyright years.
13898 From Debashis Mahata <debashis.mahata@wipro.com>:
13899 (read_struct_fields): Deal with Sun C compiler erroneous stab
13900 output for structs and unions.
13903 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13905 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13908 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13910 * cp-abi.c: Fix whitespace.
13911 (baseclass_offset): New wrapper function.
13912 * cp-abi.h (baseclass_offset): Add prototype.
13913 (struct cp_abi_ops): Add baseclass_offset pointer.
13915 * valops.c (vb_match): Move to...
13916 * gnu-v2-abi.c (vb_match): here.
13917 * valops.c (baseclass_offset): Move to...
13918 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13920 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13922 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13923 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13924 * hpacc-abi.c (init_hpacc_ops): Likewise.
13926 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13928 * valops.c (find_overload_match): Accept obj as a
13929 reference parameter. Update it before returning.
13930 * value.h (find_overload_match): Update prototype.
13931 * eval.c (evaluate_subexp_standard): Pass object to
13932 find_overload_match by reference.
13934 2002-01-03 Andrew Cagney <ac131313@redhat.com>
13936 * valarith.c: Replace value_ptr with struct value pointer. Remove
13937 register attribute from value declarations.
13940 * scm-lang.c (scm_lookup_name): Ditto.
13942 2002-01-03 Michael Snyder <msnyder@redhat.com>
13944 Abstract the functionality of iterating over mapped memory
13945 regions into a general purpose iterator function.
13946 * procfs.c (iterate_over_mappings): New function, general purpose
13947 iterator for memory sections.
13948 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13949 (solib_mappings_callback): New function, callback for above.
13950 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13951 (info_mappings_callback): New function, callback for above.
13953 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13955 2002-01-01 Mark Kettenis <kettenis@gnu.org>
13957 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13958 * i386-tdep.c: Include "elf-bfd.h".
13959 (process_note_abi_tag_sections): New function.
13960 (i386_gdbarch_init): Add code to recognize various OS/ABI
13963 * maint.c (_initialize_maint_cmds): Add missing \ in
13966 For older changes see ChangeLog-2001
13972 version-control: never