* infcmd.c (construct_inferior_arguments): Handle empty arguments.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
... / ...
CommitLineData
12002-12-03 Andreas Schwab <schwab@suse.de>
2
3 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
4
52002-12-02 Adam Fedor <fedor@gnu.org>
6 Klee Dienes <kdienes@apple.com>
7
8 * objc-lang.c (objc_printstr): Add width arg to match
9 printstr prototype.
10 (compare_selectors): Add 'const' to arg types.
11 (compare_classes): Likewise.
12 (find_imps): Cast msym pointer to avoid compiler warning.
13 (print_object_command): Validate the address before
14 passing it to the print routine.
15 (find_objc_msgcall_submethod): Change function argument to
16 return an int.
17 * objc-lang.h: Add 'extern' to all function declarations.
18 (value_nsstring): Add declaration.
19
202002-12-02 J. Brobecker <brobecker@gnat.com>
21
22 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
23 Fixes a build failure on HP/UX.
24
25 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
26 failure on HP/UX.
27 (hpread_has_name): Advance declaration to avoid a compilation warning.
28 (pst_syms_count): Add missing variable type. By change, the compiler
29 was defaulting to int, which seems a good choice. Fixes a compilation
30 warning.
31 (pst_syms_size): Likewise.
32
332002-12-02 J. Brobecker <brobecker@gnat.com>
34
35 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
36 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
37 later to set the proper gdbarch methods depending on the osabi.
38 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
39
402002-12-02 J. Brobecker <brobecker@gnat.com>
41
42 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
43 * osabi.c (gdb_osabi_name): Add strings images for the two new
44 enum values.
45 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
46
472002-12-02 Andrew Cagney <ac131313@redhat.com>
48
49 * MAINTAINERS (Java): Global maintainers are responible for Java.
50 (Past Maintainers): Mention both Anthony Green and Per Bothner as
51 part Java maintainers.
52
532002-12-02 J. Brobecker <brobecker@gnat.com>
54
55 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
56 Fixes a compilation failure on AiX.
57
582002-12-02 J. Brobecker <brobecker@gnat.com>
59
60 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
61 why aix-thread.o is not listed.
62
632002-12-01 Andrew Cagney <ac131313@redhat.com>
64
65 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
66 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
67 * gdbarch.h, gdbarch.c: Re-generate.
68 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
69 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
70 * config/pa/tm-hppa.h, frame.h: Update.
71 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
72 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
73 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
74 * cris-tdep.c, alpha-tdep.c: Update.
75 * frame.c (set_unwind_by_pc, create_new_frame): Use either
76 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
77 (get_prev_frame): Ditto.
78
792002-11-30 Andrew Cagney <cagney@redhat.com>
80
81 * exec.c (xfer_memory): Replace boolean with int.
82 * p-exp.y: Use 0 instead of false.
83 * corelow.c (gdb_check_format): Change return type to int from
84 boolean.
85 * utils.c: Don't include <curses.h> or <term.h> first.
86
872002-11-29 Stephane Carrez <stcarrez@nerim.fr>
88
89 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
90 (m68hc11_register_byte): Remove.
91 (m68hc11_gdbarch_init): Don't set the above.
92
932002-11-29 Andrew Cagney <cagney@redhat.com>
94
95 * remote-mips.c (mips_initialize): Force a selected frame rebuild
96 by calling get_selected_frame.
97 * ocd.c (ocd_start_remote): Use get_selected frame instead of
98 set_current_frame, create_new_frame, select_frame and
99 get_current_frame.
100 * remote-e7000.c (e7000_start_remote): Ditto.
101 * remote-mips.c (common_open): Ditto
102 * remote-rdp.c (remote_rdp_open): Ditto.
103
1042002-11-29 Andreas Schwab <schwab@suse.de>
105
106 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
107 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
108 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
109 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
110 read_memory_unsigned_integer instead of read_memory_integer when
111 dealing with addresses and instruction opcodes.
112 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
113 (m68k_linux_frame_saved_pc): Likewise.
114
1152002-11-29 Andrew Cagney <ac131313@redhat.com>
116
117 * stack.c (selected_frame, select_frame): Move from here ...
118 * frame.c (selected_frame, select_frame): ... to here. Include
119 "language.h".
120 * Makefile.in (frame.o): Update dependencies.
121 * frame.c (get_selected_frame): New function.
122 * frame.h (get_selected_frame): Declare.
123 (deprecated_selected_frame): Rename selected_frame.
124 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
125 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
126 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
127 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
128 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
129 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
130 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
131 * z8k-tdep.c, cli/cli-cmds.c: Update.
132
1332002-11-29 Andrew Cagney <ac131313@redhat.com>
134
135 * frame.h (get_selected_block): Add comments.
136
1372002-11-28 Andrew Cagney <ac131313@redhat.com>
138
139 * frame.c (pc_notcurrent): New function.
140 (find_frame_sal): New function.
141 * frame.h (find_frame_sal): Declare.
142 (struct symtab_and_line): Add opaque declaration.
143 * stack.c (print_frame_info_base): Use find_frame_sal instead of
144 find_pc_line.
145 (frame_info): Ditto.
146 * ada-lang.c (find_printable_frame): Ditto.
147
1482002-11-28 J. Brobecker <brobecker@gnat.com>
149
150 * configure.in: Check that the pthdebug library is recent enough
151 before enabling thread support on native AiX.
152 * configure: Regenerate.
153
154 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
155 from the list of object files as it is now appended by configure
156 if thread support is enabled.
157 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
158 if thread support is enabled.
159
1602002-11-28 Andrew Cagney <cagney@redhat.com>
161
162 * stack.c (get_selected_block): In-line get_current_block.
163 * frame.h (get_current_block): Delete declaration.
164 * blockframe.c (get_current_block): Delete function.
165
1662002-11-28 Andrew Cagney <ac131313@redhat.com>
167
168 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
169 USE_GENERIC_DUMMY_FRAMES.
170 * gdbarch.h, gdbarch.c: Regenerate.
171 * valops.c, frame.c: Update.
172 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
173 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
174 * config/pa/tm-hppa.h, blockframe.c: Update.
175 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
176 * m68k-tdep.c, alpha-tdep.c: Ditto.
177
178 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
179 * mips-tdep.c: Ditto.
180
1812002-11-27 Andrew Cagney <ac131313@redhat.com>
182
183 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
184 (USE_GENERIC_DUMMY_FRAMES): Default to true.
185 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
186 * gdbarch.c, gdbarch.h: Re-generate.
187 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
188 (CALL_DUMMY_LOCATION): Delete macro definition.
189 (PC_IN_CALL_DUMMY): Delete macro definitions.
190
191 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
192 default is already generic_pc_in_call_dummy.
193 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
194 * v850-tdep.c (v850_gdbarch_init): Ditto.
195 * sh-tdep.c (sh_gdbarch_init): Ditto.
196 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
197 * mips-tdep.c (mips_gdbarch_init): Ditto.
198 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
199 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
200 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
201 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
202 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
203 * avr-tdep.c (avr_gdbarch_init): Ditto.
204
205 * arm-tdep.c (arm_gdbarch_init): Do not set
206 use_generic_dummy_frames, default is already 1.
207 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
208 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
209 * v850-tdep.c (v850_gdbarch_init): Ditto.
210 * sh-tdep.c (sh_gdbarch_init): Ditto.
211 * s390-tdep.c (s390_gdbarch_init): Ditto.
212 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
213 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
214 * mips-tdep.c (mips_gdbarch_init): Ditto.
215 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
216 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
217 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
218 * i386-tdep.c (i386_gdbarch_init): Ditto.
219 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
220 * frv-tdep.c (frv_gdbarch_init): Ditto.
221 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
222 * cris-tdep.c (cris_gdbarch_init): Ditto.
223 * avr-tdep.c (avr_gdbarch_init): Ditto.
224
225 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
226 call_dummy_location, default is already AT_ENTRY_POINT.
227 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
228 * v850-tdep.c (v850_gdbarch_init): Ditto.
229 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
230 * sh-tdep.c (sh_gdbarch_init): Ditto.
231 * s390-tdep.c (s390_gdbarch_init): Ditto.
232 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
233 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
234 * mips-tdep.c (mips_gdbarch_init): Ditto.
235 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
236 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
237 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
238 * i386-tdep.c (i386_gdbarch_init): Ditto.
239 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
240 * frv-tdep.c (frv_gdbarch_init): Ditto.
241 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
242 * cris-tdep.c (cris_gdbarch_init): Ditto.
243 * avr-tdep.c (avr_gdbarch_init): Ditto.
244 * arm-tdep.c (arm_gdbarch_init): Ditto.
245 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
246
2472002-11-28 Andrew Cagney <cagney@redhat.com>
248
249 * frame.h: Update comments on set_current_frame, create_new_frame,
250 flush_cached_frames, reinit_frame_cache, select_frame and
251 selected_frame.
252
2532002-11-27 Andrew Cagney <cagney@redhat.com>
254
255 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
256 deprecated pc_in_call_dummy function.
257 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
258 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
259 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
260 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
261 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
262
2632002-11-26 Martin M. Hunt <hunt@redhat.com>
264
265 * Makefile.in: Remove Tix dependencies.
266 * acinclude.m4: Ditto.
267 * aclocal.m4: Ditto.
268 * configure.in: Ditto.
269 * configure: Regenerated.
270
2712002-11-26 Andrew Cagney <ac131313@redhat.com>
272
273 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
274 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
275 * gdbarch.c: Re-generate.
276
2772002-11-26 Andrew Cagney <ac131313@redhat.com>
278
279 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
280 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
281 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
282 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
283 pc_in_call_dummy_at_entry_point.
284 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
285 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
286 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
287 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
288 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
289 pc_in_call_dummy_on_stack.
290 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
291 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
292 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
293 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
294 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
295
2962002-11-26 Andrew Cagney <ac131313@redhat.com>
297
298 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
299 pc_in_call_dummy_before_text_end
300 (deprecated_pc_in_call_dummy_after_text_end): Rename
301 pc_in_call_dummy_after_text_end.
302 (deprecated_pc_in_call_dummy_on_stack): Rename
303 pc_in_call_dummy_on_stack.
304 (deprecated_pc_in_call_dummy_at_entry_point): Rename
305 pc_in_call_dummy_at_entry_point.
306 * m68k-tdep.c (m68k_gdbarch_init): Update.
307 * s390-tdep.c (s390_gdbarch_init): Update.
308 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
309 * vax-tdep.c (vax_gdbarch_init): Update.
310 * sparc-tdep.c (sparc_gdbarch_init): Update.
311 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
312 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
313 * i386-tdep.c (i386_gdbarch_init): Update.
314 * frv-tdep.c (frv_gdbarch_init): Update.
315 * cris-tdep.c (cris_gdbarch_init): Update.
316 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
317 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
318 (deprecated_pc_in_call_dummy_after_text_end)
319 (deprecated_pc_in_call_dummy_on_stack)
320 (deprecated_pc_in_call_dummy_at_entry_point): Update.
321 * alpha-tdep.c (alpha_gdbarch_init): Update.
322
3232002-11-25 Daniel Jacobowitz <drow@mvista.com>
324
325 * acconfig.h (HAVE_PREAD64): Add.
326 * configure.in: Check for pread64.
327 * config.in: Regenerated.
328 * configure: Regenerated.
329 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
330 * linux-proc.c (linux_proc_xfer_memory): New function.
331 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
332
3332002-11-25 David Carlton <carlton@math.stanford.edu>
334
335 * dwarf2read.c (scan_partial_symbols): Descend into namespace
336 pdi's with no name.
337
3382002-11-25 Andrew Cagney <ac131313@redhat.com>
339
340 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
341 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
342
3432002-11-25 Jim Blandy <jimb@redhat.com>
344
345 * symfile.c (init_objfile_sect_indices): New function.
346 (default_symfile_offsets): Move the section-index-initializing
347 stuff into init_objfile_sect_indices, and call that.
348
349 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
350 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
351
352 * symfile.c (syms_from_objfile): Adjust indentation.
353
354 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
355 || info_verbose isn't true.
356
3572002-11-24 Andrew Cagney <ac131313@redhat.com>
358
359 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
360 default to get_frame_base.
361 * gdbarch.h, gdbarch.c: Regenerate.
362 * arch-utils.c (default_frame_address): Delete function.
363 * arch-utils.h (default_frame_address): Delete declaration
364
3652002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
366
367 * varobj.c (find_frame_addr_in_frame_chain):
368 Use get_frame_base instead of FRAME_FP,
369 obvious fix.
370
3712002-11-19 Andrew Cagney <ac131313@redhat.com>
372
373 * frame.h (FRAME_FP): Delete macro.
374 (get_frame_base): New function declaration.
375 * frame.c (get_frame_base): New function.
376 (get_frame_id): Use ->frame.
377 (frame_find_by_id): Rewrite to use get_frame_id.
378 * blockframe.c: Use get_frame_base instead of FRAME_FP.
379 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
380 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
381 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
382 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
383 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
384 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
385
3862002-11-24 Andrew Cagney <ac131313@redhat.com>
387
388 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
389
3902002-11-24 Andrew Cagney <ac131313@redhat.com>
391
392 * frame.c (set_unwind_by_pc): Revert change below, use
393 PC_IN_CALL_DUMMY.
394 (get_prev_frame): Ditto.
395
3962002-11-24 Andrew Cagney <ac131313@redhat.com>
397
398 * dummy-frame.c (pc_in_dummy_frame): New function.
399 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
400 (find_dummy_frame): Update comment.
401 (generic_pop_current_frame): Use get_frame_type.
402 * dummy-frame.h (pc_in_dummy_frame): Declare.
403 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
404 (create_new_frame): Use pc_in_dummy_frame.
405 (get_prev_frame): Use pc_in_dummy_frame.
406 (frame_saved_regs_register_unwind): Use get_prev_frame.
407 (deprecated_generic_get_saved_register): Use get_prev_frame.
408
4092002-11-23 Andrew Cagney <ac131313@redhat.com>
410
411 * blockframe.c (find_frame_addr_in_frame_chain): Move function
412 from here ...
413 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
414 (varobj_create): Note that frame ID should be used.
415 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
416
4172002-11-23 Andrew Cagney <ac131313@redhat.com>
418
419 * breakpoint.c: Include "gdb_assert.h".
420 (deprecated_frame_in_dummy): Assert that generic dummy frames are
421 not being used.
422 * Makefile.in (breakpoint.o): Update dependencies.
423 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
424 deprecated_frame_in_dummy.
425 * stack.c (print_frame_info_base): Ditto.
426 (frame_info): Ditto.
427 (print_frame_info_base): Ditto. Delete dead code.
428
4292002-11-23 Andreas Schwab <schwab@suse.de>
430
431 * Makefile.in (m68k_tdep_h): Define.
432 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
433 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
434 * m68k-tdep.c: Move register number enum ...
435 * m68k-tdep.h: ... to this new file and rename the constants from
436 E_* to M68K_*. All uses changed.
437 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
438 * abug-rom.c: Include "m68k-tdep.h". Use
439 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
440 * cpu32bug-rom.c: Likewise.
441 * dbug-rom.c: Likewise.
442 * m68k-tdep.c: Likewise.
443 * m68klinux-nat.c: Likewise.
444 * remote-est.c: Likewise.
445 * rom68k-rom.c: Likewise.
446 * config/m68k/tm-linux.h: Likewise.
447
4482002-11-23 Andrew Cagney <ac131313@redhat.com>
449
450 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
451 dummy frame initialization code.
452 * mips-tdep.c (mips_gdbarch_init): Ditto.
453
4542002-11-22 Christopher Faylor <cgf@redhat.com>
455
456 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
457 attach will hang.
458
4592002-11-22 Andrew Cagney <ac131313@redhat.com>
460
461 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
462 to default_frame_address.
463 * gdbarch.h, gdbarch.c: Re-generate.
464
465 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
466 or frame_locals_address to default_frame_address.
467 * m68k-tdep.c (m68k_gdbarch_init): Update.
468 * i386-tdep.c (i386_gdbarch_init): Update.
469 * frv-tdep.c (frv_gdbarch_init): Update.
470 * sh-tdep.c (sh_gdbarch_init): Update.
471 * v850-tdep.c (v850_gdbarch_init): Update.
472 * sparc-tdep.c (sparc_gdbarch_init): Update.
473 * mips-tdep.c (mips_gdbarch_init): Update.
474 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
475 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
476 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
477
478 * cris-tdep.c (cris_frame_args_address): Delete function.
479 (cris_frame_locals_address): Delete function.
480 (cris_gdbarch_init): Do not set frame_args_address or
481 frame_locals_address.
482
4832002-11-22 Michael Snyder <msnyder@redhat.com>
484
485 * thread-db.c (thread_db_load): Tell the user what's going on
486 if dlopen fails on libthread_db.
487
4882002-11-23 Andreas Schwab <schwab@suse.de>
489
490 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
491 invariant return values.
492
4932002-11-22 Andreas Schwab <schwab@suse.de>
494
495 * valops.c (value_slice): Move declaration of `offset' to avoid
496 warning.
497
4982002-11-22 Christopher Faylor <cgf@redhat.com>
499
500 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
501 (struct so_stuff): Add end_addr field.
502 (register_loaded_dll): Calculate and store end address of loaded dll.
503 (solib_address): New function.
504 (child_solib_loaded_library_pathname): Pass carefully constructed
505 section info to safe_symbol_file_add rather than ignoring it.
506 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
507 DLL is loaded.
508 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
509 (child_create_inferior): Fix a compiler warning.
510 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
511 (solib_address): Declare new function.
512
5132002-11-22 Andreas Schwab <schwab@suse.de>
514
515 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
516 and FPS registers.
517
5182002-11-21 Daniel Jacobowitz <drow@mvista.com>
519
520 * maint.c (_initialize_maint_cmds): Fix typo. From
521 Francesco Potorti` <pot@gnu.org>.
522
5232002-11-21 Andrew Cagney <cagney@redhat.com>
524
525 * mips-tdep.c (mips_dump_tdep): Delete references to
526 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
527 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
528 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
529 * printcmd.c (build_address_symbolic): Delete calls to
530 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
531 (address_info): Ditto.
532 Fix PR gdb/773.
533
5342002-11-19 Klee Dienes <kdienes@apple.com>
535 Adam Fedor <fedor@gnu.org>
536
537 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
538 the ability to explicitly specify the quote characters and word
539 break characters; if NULL is specified for either, use the old
540 behavior of using the characters used by the completer.
541 (skip_chars): New function. Convenience wrapper around
542 skip_quoted_chars to provide the original skip_chars behavior.
543 * completer.h (skip_quoted_chars): Add prototype.
544
5452002-11-19 Andrew Cagney <ac131313@redhat.com>
546
547 Problems reported by Paul Eggert.
548 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
549
5502002-11-19 Andreas Schwab <schwab@suse.de>
551
552 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
553 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
554 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
555 (m68k_linux_frame_saved_pc): Move to ...
556 * m68klinux-tdep.c: ... here. New file.
557 * Makefile.in (m68klinux-tdep.o): Add dependencies.
558 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
559
5602002-11-19 Adam Fedor <fedor@gnu.org>
561
562 * objc-exp.y: Revert to old skip_quoted usage.
563
5642002-11-19 Adam Fedor <fedor@gnu.org>
565
566 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
567 (objc_lang_h): Define.
568 (YYFILES): Add objc-exp.tab.c.
569 (local-maintainer-clean): Remove objc-exp.tab.c.
570 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
571
5722002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
573
574 * p-exp.y (typecast rule): Add automatic dereference of
575 pascal classes if needed.
576 (THIS): Set current_type.
577 Automatically dereference pascal classes.
578 (typebase rule): Add ^typebase recognition.
579
5802002-11-18 Adam Fedor <fedor@gnu.org>
581
582 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
583 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
584 (op_name): Handle OP_OBJC_SELF.
585 * Makefile.in (expprint.o): Add additional depends.
586
5872002-11-18 Adam Fedor <fedor@gnu.org>
588
589 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
590 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
591 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
592 * objc-exp.y: Likewise.
593
5942002-11-18 Adam Fedor <fedor@gnu.org>
595
596 * gdb/parser-defs.h: (struct objc_class_str): New structure
597 for parsing ObjC classes.
598
5992002-11-18 Andrew Cagney <ac131313@redhat.com>
600
601 * stack.c (frame_relative_level): Copy function from here ...
602 * frame.c (frame_relative_level): ...to here.
603
6042002-11-18 Andrew Cagney <ac131313@redhat.com>
605
606 * frame.h (enum frame_type): Define.
607 (get_frame_type): Declare.
608 (struct frame_info): Add field `type'. Delete field
609 signal_handler_caller.
610 (deprecated_set_frame_signal_handler_caller): Declare.
611 * frame.c (get_frame_type): New function.
612 (deprecated_set_frame_type): New function.
613 (create_new_frame): Set the frame's type.
614 (get_prev_frame): Similar.
615 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
616 * s390-tdep.c: Ditto.
617 * m68klinux-nat.c: Ditto.
618 * ns32k-tdep.c: Ditto.
619 * x86-64-linux-tdep.c: Ditto.
620 * vax-tdep.c: Ditto.
621 * rs6000-tdep.c: Ditto.
622 * ppc-linux-tdep.c: Ditto.
623 * i386-interix-tdep.c: Ditto.
624 * mips-tdep.c: Ditto.
625 * m68k-tdep.c: Ditto.
626 * hppa-tdep.c: Ditto.
627 * ia64-tdep.c: Ditto.
628 * cris-tdep.c: Ditto.
629 * arm-tdep.c: Ditto.
630 * alpha-tdep.c: Ditto.
631 * i386-tdep.c: Ditto.
632 * stack.c: Ditto.
633 * ada-lang.c: Ditto.
634 * blockframe.c: Update.
635 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
636 deprecated_set_frame_type instead of signal_handler_caller.
637 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
638 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
639 * breakpoint.h: Delete FIXME suggesting get_frame_type.
640
6412002-11-18 Klee Dienes <kdienes@apple.com>
642
643 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
644
6452002-11-18 Klee Dienes <kdienes@apple.com>
646
647 * buildsym.c (pop_context): Add comment.
648
6492002-11-18 Klee Dienes <kdienes@apple.com>
650
651 * buildsym.h (pop_context): Convert to function, defined in
652 buildsym.c.
653 * buildsym.c: Include gdb_assert.h.
654 (pop_context): Implement as C function. Add check for stack
655 underflow.
656 * dbxread.c (process_one_symbol): Complain and stop processing
657 that symbol if we are already at the top of the context stack for
658 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
659 when processing N_RBRAC.
660
6612002-11-16 Daniel Jacobowitz <drow@mvista.com>
662
663 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
664 define.
665 (struct target_waitstatus): Add opaque definition.
666 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
667 * exec.c (init_exec_ops): Likewise.
668 * fork-child.c (clone_and_follow_inferior): Remove.
669 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
670 * inferior.h (clone_and_follow_inferior): Remove prototype.
671 * infrun.c (follow_fork_mode_both): Remove.
672 (follow_fork_mode_kind_names): Remove commented out "both".
673 (follow_inferior_fork): Remove follow_fork_mode_both support.
674 * inftarg.c (child_clone_and_follow_inferior): Remove.
675 (child_post_follow_inferior_by_clone): Remove.
676 (init_child_ops): Don't set to_clone_and_follow_inferior
677 or to_post_follow_inferior_by_clone.
678 * target.c (default_clone_and_follow_inferior): Remove.
679 (cleanup_target): Don't set to_clone_and_follow_inferior
680 or to_post_follow_inferior_by_clone.
681 (find_default_clone_and_follow_inferior): Remove.
682 (init_dummy_target): Don't set to_clone_and_follow_inferior.
683 (debug_to_clone_and_follow_inferior): Remove.
684 (debug_to_post_follow_inferior_by_clone): Remove.
685 (setup_target_debug): Don't set to_clone_and_follow_inferior
686 or to_post_follow_inferior_by_clone.
687 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
688 and to_post_follow_inferior_by_clone.
689 (child_clone_and_follow_inferior): Remove prototype.
690 (child_post_follow_inferior_by_clone): Remove prototype.
691 (target_clone_and_follow_inferior): Remove macro.
692 (target_post_follow_inferior_by_clone): Remove macro.
693 (find_default_clone_and_follow_inferior): Remove prototype.
694
6952002-11-16 Daniel Jacobowitz <drow@mvista.com>
696
697 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
698 inferior_has_vforked, and inferior_has_execd instead of
699 target_has_forked, target_has_vforked, and target_has_execd.
700 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
701 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
702 (CHILD_WAIT): Define.
703 (child_wait): Add prototype.
704 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
705 Add prototype.
706 (hpux_has_vforked): Likewise, from child_has_vforked.
707 (hpux_has_execd): Likewise, from child_has_execd.
708 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
709 (not_same_real_pid, child_wait): New, copied from inftarg.c.
710 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
711 and hpux_has_syscall_event instead of the target hooks.
712 * infrun.c (inferior_has_forked, inferior_has_vforked)
713 (inferior_has_execd): New functions.
714 * inftarg.c (not_same_real_pid): Remove.
715 (child_wait): Remove references to not_same_real_pid,
716 target_has_forked, target_has_vforked, target_has_execd,
717 and target_has_syscall_event.
718 (child_has_forked, child_has_vforked, child_has_execd)
719 (child_has_syscall_event): Remove.
720 (init_child_ops): Remove references to child_has_forked,
721 child_has_vforked, child_has_execd, and child_has_syscall_event.
722 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
723 (hpux_has_vforked): Likewise, from child_has_vforked.
724 (hpux_has_execd): Likewise, from child_has_execd.
725 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
726 * target.c (cleanup_target): Remove references to
727 to_has_forked, to_has_vforked, to_has_execd, and
728 to_has_syscall_event.
729 (update_current_target): Likewise.
730 (setup_target_debug): Likewise.
731 (debug_to_has_forked): Remove.
732 (debug_to_has_vforked): Remove.
733 (debug_to_has_execd): Remove.
734 (debug_to_has_syscall_event): Remove.
735 * target.h (struct target_ops): Remove to_has_forked.
736 to_has_vforked, to_has_execd, and to_has_syscall_event.
737 (child_has_forked, child_has_vforked, child_has_execd)
738 (child_has_syscall_event): Remove prototypes.
739 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
740 prototypes.
741 (target_has_forked, target_has_vforked, target_has_execd)
742 (target_has_syscall_event): Remove macros.
743
7442002-11-16 Daniel Jacobowitz <drow@mvista.com>
745
746 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
747 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
748 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
749 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
750 * target.c (cleanup_target): Remove reference to
751 to_can_follow_vfork_prior_to_exec.
752 (update_current_target): Likewise.
753 (debug_to_can_follow_vfork_prior_to_exec): Remove.
754 (setup_target_debug): Remove reference to
755 to_can_follow_vfork_prior_to_exec.
756 * target.h (struct target_ops): Remove
757 to_can_follow_vfork_prior_to_exec.
758 (child_can_follow_vfork_prior_to_exec): Remove prototype.
759 (target_can_follow_vfork_prior_to_exec): Remove definition.
760 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
761 define.
762 * infrun.c (follow_vfork_when_exec): Remove.
763 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
764 (follow_exec): Likewise.
765 (handle_inferior_event): Likewise.
766 (keep_going): Likewise.
767
7682002-11-15 Andrew Cagney <cagney@redhat.com>
769
770 * frame.c (generic_unwind_get_saved_register): Make static.
771 * frame.h (generic_unwind_get_saved_register): Delete declaration.
772 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
773 defaults to generic_unwind_get_saved_register.
774 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
775 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
776 * frv-tdep.c (frv_gdbarch_init): Ditto.
777 * i386-tdep.c (i386_gdbarch_init): Ditto.
778 * s390-tdep.c (s390_gdbarch_init): Ditto.
779 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
780 * v850-tdep.c (v850_gdbarch_init): Ditto.
781 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
782 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
783 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
784
7852002-11-15 Andrew Cagney <cagney@redhat.com>
786
787 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
788 i386-tdep.c.
789
7902002-11-15 Andrew Cagney <cagney@redhat.com>
791
792 * frame.h (sigtramp_saved_pc): Delete declaration.
793 * blockframe.c (sigtramp_saved_pc): Delete function.
794 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
795 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
796 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
797 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
798
7992002-11-15 Andrew Cagney <ac131313@redhat.com>
800
801 * frame.c (frame_pc_unwind): New function.
802 (frame_saved_regs_pc_unwind): New function.
803 (frame_register_unwind): Pass unwind_cache instead of
804 register_unwind_cache.
805 (set_unwind_by_pc): Add unwind_pc parameter, set.
806 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
807 (get_prev_frame): Ditto.
808 * frame.h (frame_pc_unwind_ftype): Declare.
809 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
810 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
811 (frame_pc_unwind): Declare.
812 * dummy-frame.c (dummy_frame_pc_unwind): New function.
813 (struct dummy_frame): Add comment mentioning that values are for
814 previous frame.
815 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
816 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
817 (generic_file_frame_chain_valid): Ditto.
818 * stack.c (frame_info): Ditto.
819
8202002-11-15 David Carlton <carlton@math.stanford.edu>
821
822 * linespec.c (locate_first_half): New function.
823 (decode_line_1): Move code into locate_first_half.
824
8252002-11-15 Andrew Cagney <ac131313@redhat.com>
826
827 * complaints.h: Add comment explaining how to eliminate a
828 deprecated_complain call.
829 * complaints.h: Fix spelling errors.
830
8312002-11-15 David Carlton <carlton@math.stanford.edu>
832
833 * printcmd.c: Remove #include "disasm.h".
834
8352002-11-14 Andrew Cagney <ac131313@redhat.com>
836
837 * frame.h: Move the most relevant interface functions to the start
838 of the file.
839
8402002-11-14 Andrew Cagney <ac131313@redhat.com>
841
842 * regcache.h (deprecated_registers): Rename registers.
843 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
844 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
845 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
846 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
847 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
848 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
849 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
850 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
851 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
852 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
853 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
854 * v850ice.c: Update.
855
856Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
857
858 * utils.c (gdb_realpath): Add comment mentioning realpath with a
859 NULL buffer.
860
8612002-11-13 Andrew Cagney <cagney@redhat.com>
862
863 * regcache.h (deprecated_read_register_bytes): Rename
864 read_register_bytes.
865 (deprecated_write_register_bytes): Rename write_register_bytes.
866 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
867 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
868 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
869 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
870 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
871 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
872 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
873 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
874 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
875 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
876 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
877 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
878 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
879 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
880
8812002-11-13 Jim Blandy <jimb@redhat.com>
882
883 * findvar.c (read_var_value): Doc fix.
884
8852002-11-13 Andrew Cagney <cagney@redhat.com>
886
887 * regcache.c (struct regcache): Replace passthough_p with
888 readonly_p.
889 (regcache_xmalloc): Initialize readonly_p.
890 (build_regcache): Initialize readonly_p.
891 (regcache_save): New function.
892 (regcache_restore): New function.
893 (regcache_cpy): Re-implement using regcache_save and
894 regcache_restore.
895 (regcache_raw_read): Update.
896 (regcache_cooked_read): When a read-only cache, checked for cached
897 pseudo register values.
898 (regcache_raw_write): Assert that the cache is not read-only.
899 Remove code handling a non-passthrough cache.
900 * regcache.h (regcache_save): Declare.
901 (regcache_restore): Declare.
902
9032002-11-13 Andrew Cagney <cagney@redhat.com>
904
905 * regcache.c (struct regcache_descr): Add fields
906 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
907 (init_legacy_regcache_descr): Compute the size of a cooked
908 register cache and then assign that to sizeof_raw_registers. Set
909 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
910 (init_legacy_regcache_descr): Ditto.
911
9122002-11-13 Andrew Cagney <cagney@redhat.com>
913
914 * regcache.c (register_buffer): Move to near start of file, update
915 description.
916 (regcache_raw_read): Use.
917 (regcache_raw_write): Use.
918 (struct regcache): Rename raw_registers to registers and
919 raw_register_valid_p to register_valid_p.
920 (regcache_xmalloc): Update.
921 (regcache_xfree): Update.
922 (register_buffer): Update.
923 (regcache_cpy): Update.
924 (regcache_cpy_no_passthrough): Update.
925 (regcache_valid_p): Update.
926 (deprecated_grub_regcache_for_registers): Update.
927 (deprecated_grub_regcache_for_register_valid): Update.
928 (set_register_cached): Update.
929 (regcache_raw_write): Update.
930
9312002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
932
933 * p-exp.y (name_not_typename): Use copy_name to
934 set current_type variable for fields of THIS.
935
9362002-11-12 Daniel Jacobowitz <drow@mvista.com>
937
938 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
939 * monitor.c (init_base_monitor_ops): Likewise.
940 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
941 * remote-array.c (init_array_ops): Likewise.
942 * remote-e7000.c (init_e7000_ops): Likewise.
943 * remote-es.c (init_es1800_ops): Likewise.
944 (init_es1800_child_ops): Likewise.
945 * remote-rdp.c (init_remote_rdp_ops): Likewise.
946 * remote-sim.c (init_gdbsim_ops): Likewise.
947 * remote-st.c (init_st2000_ops): Likewise.
948 * sol-thread.c (init_sol_core_ops): Likewise.
949 (init_sol_thread_ops): Likewise.
950 * v850ice.c (init_850ice_ops): Likewise.
951 * win32-nat.c (init_child_ops): Likewise.
952 * wince.c (init_child_ops): Likewise.
953
9542002-11-12 Andrew Cagney <ac131313@redhat.com>
955
956 * utils.c (gdb_realpath): Make rp a constant pointer.
957
9582002-11-12 Andrew Cagney <ac131313@redhat.com>
959
960 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
961 a constant buffer; cannonicalize_file_name(); realpath() with a
962 pathconf() defined buffer, xstrdup().
963
9642002-11-12 Andrew Cagney <ac131313@redhat.com>
965
966 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
967 to hang2.C; hang3.c to hang3.C.
968
9692002-11-11 Elena Zannoni <ezannoni@redhat.com>
970
971 * findvar.c (read_var_value): Reenable TLS code.
972
9732002-11-11 Elena Zannoni <ezannoni@redhat.com>
974 Jim Blandy <jimb@redhat.com>
975
976 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
977 * target.c (update_current_target): Add
978 to_get_thread_local_address.
979 * target.h (to_get_thread_local_address): Export.
980 (target_get_thread_local_address): Define.
981 (target_get_thread_local_address_p): Define.
982 * thread-db.c: Include solib-svr4.h.
983 (td_thr_tls_get_addr_p): Define.
984 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
985 (thread_db_get_thread_local_address): New function.
986 (init_thread_db_ops): Initialize to_get_thread_local_address.
987 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
988 * configure: Regenerate.
989 * config.in: Regenerate.
990
9912002-11-11 David Carlton <carlton@math.stanford.edu>
992
993 * linespec.c (set_flags): New function.
994 (decode_line_1): Move code into set_flags.
995
9962002-11-11 David Carlton <carlton@math.stanford.edu>
997
998 * linespec.c (decode_line_1): Move chunks of code to separate
999 functions.
1000 (initialize_defaults): New function.
1001 (decode_indirect): New function.
1002
10032002-11-11 Andrew Cagney <ac131313@redhat.com>
1004
1005 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1006 instead of void_code_ptr.
1007 (sigtramp_saved_pc): Ditto.
1008
1009 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1010 i386_fp_regnum_p.
1011
10122002-11-10 Daniel Jacobowitz <drow@mvista.com>
1013
1014 * gdbtypes.h (struct main_type): Move artificial flag out of
1015 loc. New member of ``struct field'' named static_kind. Reduce
1016 overloaded meaning of bitsize.
1017 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1018 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1019 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1020
1021 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1022 new fields.
1023 (template_to_fixed_record_type, template_to_static_fixed_type)
1024 (to_record_with_fixed_variant_part): Likewise.
1025 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1026 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1027 * dwarfread.c (struct_type, enum_type): Likewise.
1028 * hpread.c (hpread_read_enum_type)
1029 (hpread_read_function_type, hpread_read_doc_function_type)
1030 (hpread_read_struct_type): Likewise.
1031 * mdebugread.c (parse_symbol): Likewise.
1032
10332002-11-10 Andrew Cagney <ac131313@redhat.com>
1034
1035 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1036 * stack.c (print_frame_info_base): Update.
1037 (print_frame_info_base, frame_info): Update.
1038 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1039 (sparc_frame_saved_pc): Update.
1040 * ada-lang.c (find_printable_frame): Update.
1041 * breakpoint.c (deprecated_frame_in_dummy): Update.
1042
10432002-11-09 Mark Kettenis <kettenis@gnu.org>
1044
1045 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1046 defined.
1047 (regmap): Extend to cover all registers.
1048 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1049 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1050 definitions.
1051 (fetch_register, sore_register): Simplify.
1052 (old_fetch_inferior_registers, old_store_inferior_registers):
1053 Remove functions.
1054 (cannot_fetch_register, cannot_store_register): Change
1055 implementation to use regmap array to decide which registers
1056 cannot be fetched/stored. This removes $orig_eax from the
1057 registers that cannot be fetched/stored.
1058 (fetch_inferior_registers): Call fetch_register directly instead
1059 of calling old_fetch_inferior_registers.
1060 (store_inferior_registers): Call store_register directly instead
1061 of calling old_store_inferior_registers.
1062 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1063 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1064 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1065
10662002-11-09 Klee Dienes <kdienes@apple.com>
1067
1068 * i387-tdep.c (i387_supply_register): When called with NULL as a
1069 buffer, mark the register as not provided (to mirror the behavior
1070 of supply_register).
1071 (i387_supply_fxsave): Ditto.
1072 (i387_supply_fsave): Ditto (inherits the behavior from
1073 i387_supply_register).
1074
10752002-11-09 Klee Dienes <kdienes@apple.com>
1076
1077 * blockframe.c (sigtramp_saved_pc): Use
1078 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1079 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1080 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1081
10822002-11-09 Andrew Cagney <ac131313@redhat.com>
1083
1084 * frame.c (get_prev_frame): Test prev_p to identify a previously
1085 unwound frame. Initialize prev_p.
1086 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1087 comment.
1088
10892002-11-09 Andrew Cagney <ac131313@redhat.com>
1090
1091 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1092 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1093 more comments. Zap dead code.
1094
10952002-11-09 Mark Kettenis <kettenis@gnu.org>
1096
1097 * infcmd.c (print_vector_info, print_float_info): Move code that
1098 checks whether the target has any registers and whether there is a
1099 selected frame up, such that it is also used if a target provides
1100 multi-arch definitions of these functions.
1101
11022002-11-08 Andrew Cagney <ac131313@redhat.com>
1103
1104 * Makefile.in (DESTDIR): Define.
1105 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1106 prefix.
1107
1108 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1109 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1110
11112002-11-08 Andrew Cagney <ac131313@redhat.com>
1112
1113 * i386-linux-tdep.c: Include "reggroups.h".
1114 (i386_linux_register_reggroup_p): New function.
1115 (i386_linux_init_abi): Set register_reggroup_p to
1116 i386_linux_register_reggroup_p.
1117 * i386-tdep.h (i386_register_reggroup_p): Declare.
1118 * i386-tdep.c: Include "reggroups.h".
1119 (i386_init_reggroups): New function.
1120 (i386_add_reggroups): New function.
1121 (i386_register_reggroup_p): New function.
1122 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1123 (_initialize_i386_tdep): Call i386_init_reggroups.
1124 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1125 specific reggroups.
1126
11272002-11-09 Mark Kettenis <kettenis@gnu.org>
1128
1129 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1130 request that's available in *BSD.
1131
1132 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1133
1134 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1135 FDOFF_REGNUM.
1136
11372002-11-08 Andrew Cagney <ac131313@redhat.com>
1138
1139 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1140 * dummy-frame.c (find_dummy_frame): Rename
1141 generic_find_dummy_frame, make static. Return the dummy frame
1142 instead of the regcache.
1143 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1144 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1145 (dummy_frame_register_unwind): Rename
1146 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1147 * dummy-frame.h (dummy_frame_register_unwind): Rename
1148 generic_call_dummy_register_unwind.
1149
11502002-11-08 Mark Kettenis <kettenis@gnu.org>
1151
1152 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1153 except the inclusion of "i386/tm-i386.h", to...
1154 * config/i386/nm-i386v42mp.h: ...here.
1155 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1156
11572002-11-08 Andrew Cagney <ac131313@redhat.com>
1158
1159 * Makefile.in (frame.o): Update dependencies.
1160 * blockframe.c (current_frame, frame_obstack_alloc)
1161 (frame_saved_regs_zalloc, get_current_frame)
1162 (set_current_frame, create_new_frame)
1163 (set_unwind_by_pc, get_next_frame)
1164 (flush_cached_frames, reinit_frame_cache)
1165 (frame_saved_regs_register_unwind)
1166 (deprecated_generic_get_saved_register)
1167 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1168 (_initialize_blockframe): Move frame code from here...
1169 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1170 "annotate.h" and "dummy-frame.h".
1171 (_initialize_frame): New function.
1172
11732002-11-08 Jim Blandy <jimb@redhat.com>
1174
1175 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1176 when we finish a function a context.
1177 * buildsym.h (outermost_context_p): New macro.
1178 (Bug analyzed by David Edelsohn.)
1179
11802002-11-08 Andrew Cagney <ac131313@redhat.com>
1181
1182 * blockframe.c: Include "dummy-frame.h".
1183 (struct dummy_frame, dummy_frame_stack)
1184 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1185 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1186 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1187 (generic_save_call_dummy_addr, generic_pop_current_frame)
1188 (generic_pop_dummy_frame, generic_fix_call_dummy)
1189 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1190 dummy frame code from here...
1191 * dummy-frame.c: ...to here. New file.
1192 * dummy-frame.h: New file.
1193 (generic_call_dummy_register_unwind): Declare.
1194 (generic_find_dummy_frame): Declare.
1195 * Makefile.in (SFILES): Add dummy-frame.c.
1196 (dummy-frame.o): Specify dependencies.
1197 (dummy_frame_h): Define.
1198 (COMMON_OBS): Add dummy-frame.o.
1199 (blockframe.o): Update dependencies.
1200
12012002-11-08 Jim Blandy <jimb@redhat.com>
1202
1203 * dwarf2read.c (read_func_scope): Restore local_symbols and
1204 param_symbols after we finish the function context. (Based on a
1205 patch from David Edelsohn.)
1206
12072002-11-08 David Carlton <carlton@math.stanford.edu>
1208
1209 * linespec.c (symbol_found): New function.
1210 (minsym_found): New function.
1211 (decode_line_1): Separate out some code into separate functions.
1212
12132002-11-08 Joel Brobecker <brobecker@gnat.com>
1214
1215 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1216 the benefit of the interix target.
1217 * i386-tdep.h (i386_frameless_signal_p): Declare.
1218
12192002-11-08 Andrew Cagney <ac131313@redhat.com>
1220
1221 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1222 declaration that snuck in from change below.
1223
12242002-11-06 Andrew Cagney <cagney@redhat.com>
1225
1226 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1227 all callers.
1228 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1229 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1230 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1231 (i386_mxcsr_regnum_p): new function. Use instead of
1232 MXCSR_REGNUM_P.
1233 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1234 (i386_sse_regnum_p): Declare.
1235 (i386_mxcsr_regnum_p): Declare.
1236 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1237 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1238 (IS_FP_REGNUM): Update definition.
1239 (IS_FPU_CTRL_REGNUM): Update definition..
1240 (IS_SSE_REGNUM): Update definition..
1241 * i386v-nat.c (register_u_addr): Update.
1242 * go32-nat.c (fetch_register): Update.
1243 (store_register): Update.
1244
12452002-11-07 Joel Brobecker <brobecker@gnat.com>
1246
1247 Preparation work to convert the hppa targets to multiarch partial.
1248
1249 * hppa-tdep.c: Add new functions replacing macro bodies from
1250 config/pa/tm-hppa.h. These function will be used to initialize
1251 the gdbarch structure. Import some comments from tm-hppa.h,
1252 and place them where appropriate, to avoid loosing them when
1253 we cleanup this file.
1254 (hppa_reg_struct_has_addr): New function.
1255 (hppa_inner_than): New function.
1256 (hppa_stack_align): New function.
1257 (hppa_pc_requires_run_before_use): New function.
1258 (hppa_instruction_nullified): New function.
1259 (hppa_register_byte): New function.
1260 (hppa_register_virtual_type): New function.
1261 (hppa_store_struct_return): New function.
1262 (hppa_cannot_store_register): New function.
1263 (hppa_frame_args_address): New function.
1264 (hppa_frame_locals_address): New function.
1265 (hppa_smash_text_address): New function.
1266 (hppa_coerce_float_to_double): New function. Requires the inclusion
1267 of "language.h".
1268
1269 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1270
1271 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1272 gdbarch-eligible macro to a call to the new associated function
1273 created in hppa-tdep.c.
1274 (INNER_THAN): Likewise.
1275 (STACK_ALIGN): Likewise.
1276 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1277 (INSTRUCTION_NULLIFIED): Likewise.
1278 (REGISTER_BYTE): Likewise.
1279 (REGISTER_VIRTUAL_TYPE): Likewise.
1280 (STORE_STRUCT_RETURN): Likewise.
1281 (CANNOT_STORE_REGISTER): Likewise.
1282 (FRAME_ARGS_ADDRESS): Likewise.
1283 (FRAME_LOCALS_ADDRESS): Likewise.
1284 (SMASH_TEXT_ADDRESS): Likewise.
1285 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1286 (ABOUT_TO_RETURN): Delete, as no longer used.
1287
12882002-11-07 Fernando Nasser <fnasser@redhat.com>
1289
1290 * printcmd.c (disassemble_command): Remove obsolete function.
1291 (_initialize_printcmd): Do not create disassemble command here.
1292 * cli/cli-cmds.c (disassemble_command): New function. Implements
1293 disassemble command.
1294 (init_cli_cmds): Create disassemble command here instead.
1295
12962002-11-07 Andrew Cagney <ac131313@redhat.com>
1297
1298 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1299
13002002-11-07 Andrew Cagney <ac131313@redhat.com>
1301
1302 * regcache.h (regcache_cooked_read_using_offset_hack)
1303 (regcache_cooked_write_using_offset_hack): Delete declarations.
1304 (register_changed): Delete declaration.
1305 * regcache.c (regcache_cooked_read_using_offset_hack)
1306 (regcache_cooked_write_using_offset_hack): Delete functions.
1307 (cooked_xfer_using_offset_hack): Delete function.
1308 (register_changed): Delete function.
1309
13102002-11-07 Jim Blandy <jimb@redhat.com>
1311
1312 * macroscope.c: #include "complaints.h".
1313 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1314 but not in the macro table.
1315 * Makefile.in (macroscope.o): Record dependency.
1316
13172002-11-07 Joel Brobecker <brobecker@gnat.com>
1318
1319 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1320
13212002-11-07 Andrew Cagney <ac131313@redhat.com>
1322
1323 * regcache.c (deprecated_registers_fetched): Update.
1324 * regcache.h (deprecated_registers_fetched): Rename
1325 registers_fetched.
1326 * remote-vxsparc.c (vx_read_register): Update.
1327 * remote-vxmips.c (vx_read_register): Update.
1328 * remote-vx68.c (vx_read_register): Update.
1329 * irix5-nat.c (fetch_core_registers): Update.
1330 * mipsm3-nat.c (fetch_inferior_registers): Update.
1331 * sun3-nat.c (fetch_inferior_registers): Update.
1332 * symm-nat.c (fetch_inferior_registers): Update.
1333 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1334 (fetch_core_registers): Update.
1335 (fetch_kcore_registers): Update.
1336 * mips-nat.c (fetch_inferior_registers): Update.
1337 * corelow.c (get_core_registers): Update.
1338 * a68v-nat.c (fetch_inferior_registers): Update.
1339
13402002-11-06 Joel Brobecker <brobecker@gnat.com>
1341
1342 Put in place the framework necessary for multiarching the hppa targets.
1343 * hppa-tdep.c (hppa_gdbarch_init): New function.
1344 (hppa_dump_tdep): New function.
1345 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1346 tdep structure dumper.
1347 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1348 until the multi-arching conversion has partially been completed.
1349
13502002-11-06 Andrew Cagney <ac131313@redhat.com>
1351
1352 * valops.c (value_assign): Merge lval_register case into
1353 lval_reg_frame_relative. Use frame_register and
1354 regcache_cooked_write instead of get_saved_register and
1355 write_register_bytes. After flushing the register cache, try to
1356 re-select the selected frame.
1357
13582002-11-06 Andrew Cagney <ac131313@redhat.com>
1359
1360 * regcache.h (deprecated_register_valid): Rename register_valid.
1361 * regcache.c: Update.
1362 * ia64-aix-nat.c: Update.
1363 * i386gnu-nat.c: Update.
1364 * alpha-nat.c: Update.
1365 * sparc-nat.c: Update.
1366 * lynx-nat.c: Update.
1367 * remote-mips.c: Update.
1368
13692002-11-06 Joel Brobecker <brobecker@gnat.com>
1370
1371 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1372 to end of file, to be more consistent with the pratice followed
1373 by other targets.
1374
13752002-11-06 Andrew Cagney <ac131313@redhat.com>
1376
1377 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1378 (print_float_info): Print registers in float_reggroup.
1379 (print_vector_info): Print registers in vector_reggroup.
1380 (default_print_registers_info): When all, print registers in
1381 all_reggroup. Otherwize, print registers in general_reggroup.
1382 (registers_info): Rewrite. Add support for register groups.
1383 Eliminate a goto.
1384
13852002-11-06 Elena Zannoni <ezannoni@redhat.com>
1386
1387 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1388 ages.
1389 (symtab_symbol_info): Remove eons old ifdeffed out code.
1390 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1391 command.
1392
13932002-11-06 Theodore A. Roth <troth@openavr.org>
1394
1395 * c-exp.y: Add missing semi-colons.
1396 * f-exp.y: Add missing semi-colons.
1397 * m2-exp.y: Add missing semi-colons.
1398 * p-exp.y: Add missing semi-colons.
1399 Add empty action to start rule to avoid a type clash error when
1400 building with bison >= 1.50.
1401
14022002-11-06 Jim Blandy <jimb@redhat.com>
1403
1404 * macrotab.h (struct macro_source_file): Doc fix.
1405
14062002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1407
1408 * varobj.c (child_exists, cplus_number_of_children): Change
1409 STREQ macro references to strcmp.
1410 (cplus_name_of_child): Change code to handle the fact that
1411 fields are not necessarily contiguous with regards to their
1412 access control. This is a fix for PR gdb/792.
1413
14142002-11-05 Andrew Cagney <ac131313@redhat.com>
1415
1416 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1417 * gdbarch.h, gdbarch.c: Regnerate.
1418 * frame.h (frame_register): Declare.
1419 * frame.c (frame_register): New function.
1420 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1421 GET_SAVED_REGISTER, otherwize call
1422 generic_unwind_get_saved_register.
1423 (frame_register_read): Use frame_register instead of
1424 get_saved_register.
1425
14262002-11-05 Elena Zannoni <ezannoni@redhat.com>
1427
1428 From Jim Ingham <jingham@apple.com>:
1429 * event-top.c (gdb_disable_readline): New function.
1430 (_initialize_event_loop): Move comment.
1431
14322002-11-05 Elena Zannoni <ezannoni@redhat.com>
1433
1434 * event-loop.c (start_event_loop): Add comment.
1435 Update copyright.
1436
14372002-11-05 Andrew Cagney <ac131313@redhat.com>
1438
1439 * infcmd.c (default_print_registers_info): Do not call
1440 PRINT_REGISTER_HOOK.
1441
14422002-11-05 Andrew Cagney <ac131313@redhat.com>
1443
1444 * sparc-tdep.c (sparc_print_register_hook): Make static.
1445 (sparc_print_registers_info): New function.
1446 (sparc_do_registers_info): New function.
1447 (sparclet_print_registers_info): New function.
1448 (sparclet_do_registers_info): New function.
1449 (do_sparc_print_registers_info): New function.
1450 (sparc_print_registers): New static function, clone of infcmd.c's
1451 default_print_registers_info.
1452 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1453 (sparclet_do_registers_info): Declare.
1454 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1455 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1456 Re-define.
1457 (sparc_do_registers_info): Declare.
1458 (PRINT_REGISTER_HOOK): Delete macro.
1459 (sparc_print_register_hook): Delete declaration.
1460
14612002-11-05 David Carlton <carlton@math.stanford.edu>
1462
1463 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1464 functions.
1465 (lookup_symbol_aux_local): New function.
1466 (lookup_symbol_aux_symtabs): New function.
1467 (lookup_symbol_aux_psymtabs): New function.
1468
14692002-11-05 David Carlton <carlton@math.stanford.edu>
1470
1471 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1472 previous values of 'objfile' and 'block'.
1473
14742002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1475
1476 * values.c (value_change_enclosing_type): Set
1477 enclosing_type field correctly also for the case where
1478 more memory needs to be allocated.
1479
14802002-11-03 Mark Kettenis <kettenis@gnu.org>
1481
1482 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1483 of puts_filtered.
1484
1485 * i387-tdep.c (i387_print_float_info): Replace calls to
1486 register_read and deprecated_read_register_gen with calls to
1487 frame_register_read, and make the necessary adjustments to the
1488 surrounding code.
1489
14902002-11-02 Andrew Cagney <ac131313@redhat.com>
1491
1492 * gdbarch.sh (register_reggroup_p): Allow default value.
1493 * gdbarch.h, gdbarch.c: Regenerate.
1494
14952002-11-02 Andrew Cagney <ac131313@redhat.com>
1496
1497 * regcache.h: Add coment indicating replacements for deprecated
1498 functions.
1499
15002002-11-02 Andrew Cagney <cagney@redhat.com>
1501
1502 * reggroups.h, reggroups.c: New files.
1503 * regcache.c: Include "reggroups.h".
1504 (enum regcache_dump_what): Add `regcache_dump_groups'.
1505 (regcache_dump): Contract size of the "Type" column. When
1506 specified, dump the register's groups.
1507 (maintenance_print_register_groups): New function.
1508 (_initialize_regcache): Add command `maint print register-groups'.
1509 * Makefile.in (COMMON_OBS): Add reggroups.o
1510 (SFILES): Add reggroups.c.
1511 (reggroups_h): Define.
1512 (regcache.o, gdbarch.o): Update dependencies.
1513 (reggroups.o): Specify dependencies.
1514 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1515 Add opaque declaration for `struct reggroup' in generated .h file.
1516 Include "reggroups.h" in generated .c file.
1517 gdbarch.h, gdbarch.c: Re-generate.
1518
15192002-11-02 Andrew Cagney <cagney@redhat.com>
1520
1521 * regcache.h (deprecated_read_register_gen): Rename
1522 read_register_gen.
1523 (deprecated_write_register_gen): Rename write_register_gen.
1524 * i387-tdep.c: Update.
1525 * x86-64-linux-nat.c: Update
1526 * wince.c: Update.
1527 * thread-db.c: Update.
1528 * win32-nat.c: Update.
1529 * mips-tdep.c: Update.
1530 * d10v-tdep.c: Update.
1531 * cris-tdep.c: Update.
1532 * remote-sim.c: Update.
1533 * remote-rdi.c: Update.
1534 * remote-rdp.c: Update.
1535 * frame.c: Update.
1536 * target.c: Update.
1537 * blockframe.c: Update.
1538 * x86-64-tdep.c: Update.
1539 * xstormy16-tdep.c: Update.
1540 * sh-tdep.c: Update.
1541 * s390-tdep.c: Update.
1542 * rs6000-tdep.c: Update.
1543 * sparc-tdep.c: Update.
1544 * i386-tdep.c: Update.
1545 * dwarf2cfi.c: Update.
1546 * regcache.c: Update.
1547
15482002-11-01 Joel Brobecker <brobecker@gnat.com>
1549
1550 New interix-specific files:
1551 * config/i386/nm-interix.h: New file.
1552 * config/i386/interix.mh: New file.
1553 * config/i386/interix.mt: New file.
1554 * i386-interix-nat.c: New file.
1555 * i386-interix-tdep.c: New file.
1556
15572002-11-01 Andrew Cagney <cagney@redhat.com>
1558
1559 * frame.h (deprecated_generic_get_saved_register): Rename
1560 generic_get_saved_register.
1561 * blockframe.c (deprecated_generic_get_saved_register): Update.
1562 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1563 (xstormy16_frame_saved_register): Update.
1564 * sh-tdep.c (sh_gdbarch_init): Update.
1565 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1566 * ia64-tdep.c (ia64_get_saved_register): Update.
1567 * cris-tdep.c (cris_gdbarch_init): Update.
1568 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1569 * arm-tdep.c (arm_gdbarch_init): Update.
1570
15712002-10-31 Daniel Jacobowitz <drow@mvista.com>
1572
1573 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1574
15752002-10-31 Daniel Jacobowitz <drow@mvista.com>
1576
1577 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1578 trampolines in sigaction.
1579
15802002-10-31 Andrew Cagney <cagney@redhat.com>
1581
1582 * h8300-tdep.c: Include "gdb_assert.h".
1583 (h8300_print_register): Add gdbarch, file and frame parameters.
1584 Use frame_read_unsigned_register to read the register's value.
1585 Use fprintf_filtered to display output.
1586 (h8300_print_registers_info): Replace h8300_do_registers_info.
1587 (h8300_gdbarch_init): Set print_registers_info.
1588
15892002-10-31 Andrew Cagney <cagney@redhat.com>
1590
1591 * frame.c (frame_read_unsigned_register): New function.
1592 (frame_read_signed_register): New function.
1593 * frame.h (frame_read_unsigned_register): Declare.
1594 (frame_read_signed_register): Declare.
1595
15962002-10-31 Andrew Cagney <cagney@redhat.com>
1597
1598 * h8500-tdep.c (h8500_print_registers_info): New static function,
1599 clone of infcmd.c's default_print_registers_info.
1600 (h8500_do_registers_info): New funtion.
1601 (h8500_print_register_hook): Rename print_register_hook, make
1602 static.
1603
1604 * config/h8500/tm-h8500.h: Update copyright.
1605 (DEPRECATED_DO_REGISTERS_INFO): Define.
1606 (h8500_do_registers_info: Declare.
1607 (PRINT_REGISTER_HOOK): Delete macro.
1608 (print_register_hook): Delete function.
1609
16102002-10-31 Andrew Cagney <cagney@redhat.com>
1611
1612 * z8k-tdep.c (z8k_print_register_hook): Make static.
1613 (z8k_print_registers_info): New static function, clone of
1614 infcmd.c's default_print_registers_info.
1615 (z8k_do_registers_info): New function. Wrap
1616 z8k_print_registers_info.
1617 * config/z8k/tm-z8k.h: Update copyright.
1618 (PRINT_REGISTER_HOOK): Delete macro.
1619 (z8k_print_register_hook): Delete declaration.
1620 (DEPRECATED_DO_REGISTERS_INFO): Define.
1621 (z8k_do_registers_info): Declare.
1622
16232002-10-30 Joel Brobecker <brobecker@gnat.com>
1624
1625 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1626 as this is already provided by value.h, and was actually causing
1627 a compilation error because of a conflict in parameter type
1628 declaration due to a missing const keyword.
1629 (low_text_segment_addres): Fix a compilation warning.
1630
16312002-10-29 Daniel Jacobowitz <drow@mvista.com>
1632
1633 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1634 registers without a name.
1635 (mips_linux_cannot_store_register): Don't store registers without
1636 a name.
1637
16382002-10-28 David Carlton <carlton@math.stanford.edu>
1639
1640 * symtab.c (find_addr_symbol): Delete. (It was already commented
1641 out.)
1642 * symtab.h: Delete prototype for find_addr_symbol.
1643
16442002-10-26 Andrew Cagney <cagney@redhat.com>
1645
1646 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1647 DO_REGISTERS_INFO.
1648 gdbarch.h, gdbarch.c: Re-generate.
1649 * infcmd.c (default_print_registers_info): Update reference.
1650 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1651 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1652 * sh-tdep.c (sh_gdbarch_init): Ditto.
1653 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1654 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1655
16562002-10-26 Mark Kettenis <kettenis@gnu.org>
1657
1658 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1659 cfi_init_extra_frame_info.
1660 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1661 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1662
1663 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1664 target where necessary. Add more comments and remove the ones
1665 that don't provide any useful information.
1666
1667 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1668 deprecated_read_register_dummy with
1669 frame_unwind_unsigned_register.
1670
1671 * i386-tdep.c (i386_extract_struct_value_address): Use
1672 regcache_raw_read_unsigned instead of
1673 regcache_cooked_read_unsigned since we know that the register
1674 we're reading isn't a pseudo register. Rename variable 'val' into
1675 the more descriptive 'addr'.
1676
1677 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1678 (x86_64_push_return_address): Add comment.
1679 (x86_64_pop_frame): Make static.
1680 (examine_argument): Clarify comment.
1681 (x86_64_skip_prologue): Make prolog_expact variable static.
1682
1683 * dwarf2cfi.c: Fix some formatting problems.
1684 (context_cpy, read_encoded_pointer): Clarify comments.
1685
1686 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1687 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1688 i386 target back into x86_64_gdbarch_init. Add some comments and
1689 remove meaningless ones.
1690
16912002-10-25 Andrew Cagney <cagney@redhat.com>
1692
1693 * complaints.h (struct deprecated_complaint): Rename `struct
1694 complaint'.
1695 * complaints.c (complain): Update.
1696 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1697 incorrect comment indicating that "symfile.h" was being included
1698 for the `struct complaint' definition.
1699 * remote-vx.c: Update.
1700 * objc-lang.c: Update.
1701 * xcoffread.c: Update.
1702 * hpread.c: Update.
1703 * mdebugread.c: Update.
1704 * stabsread.c: Update.
1705 * dwarf2read.c: Update.
1706 * dwarfread.c: Update.
1707 * elfread.c: Update.
1708 * coffread.c: Update.
1709 * stabsread.h: Update.
1710 * dbxread.c: Update.
1711 * buildsym.c: Update.
1712 * gdbtypes.c: Update.
1713 * macrotab.c: Update.
1714
17152002-10-25 Mark Kettenis <kettenis@gnu.org>
1716
1717 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1718 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1719 (x86_64_init_abi): ...new function.
1720
1721 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1722 * i386v-nat.c: Include "i386-tdep.h".
1723
17242002-10-25 Andrew Cagney <cagney@redhat.com>
1725
1726 * gdbtypes.c (address_space_name_to_int): Update.
1727 (address_space_int_to_name): Update.
1728 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1729 multi-arch predicate.
1730 (address_class_name_to_type_flags): Ditto.
1731 * gdbarch.h, gdbarch.c: Re-generate.
1732
1733 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1734
17352002-10-24 Martin M. Hunt <hunt@redhat.com>
1736
1737 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1738
17392002-10-24 Elena Zannoni <ezannoni@redhat.com>
1740
1741 * symtab.h (INIT_SAL): Delete macro.
1742 (init_sal): Export.
1743 * symtab.c (init_sal): New function.
1744
1745 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1746 to init_sal function call.
1747 (find_sal_from_funcs_and_line): Ditto.
1748 (all_sals_for_line): Ditto.
1749 * breakpoint.c (create_internal_breakpoint): Ditto.
1750 (create_fork_vfork_event_catchpoint): Ditto.
1751 (create_exec_event_catchpoint): Ditto.
1752 (parse_breakpoint_sals): Ditto.
1753 (watch_command_1): Ditto.
1754 (handle_gnu_4_16_catch_command): Ditto.
1755 (clear_command): Ditto.
1756 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1757 * infcmd.c (run_stack_dummy): Ditto.
1758 * infrun.c (process_event_stop_test): Ditto.
1759 (check_sigtramp2): Ditto.
1760 (step_over_function): Ditto.
1761 * linespec.c (decode_line_2): Ditto.
1762 (decode_line_1): Ditto.
1763 * source.c (line_info): Ditto.
1764 * symtab.c (find_pc_sect_line): Ditto.
1765
17662002-10-24 Michal Ludvig <mludvig@suse.cz>
1767
1768 * dwarf2cfi.c (struct context)
1769 (struct context_reg): Moved to dwarf2cfi.h
1770 (context_alloc, frame_state_alloc, context_cpy):
1771 Made extern instead of static, removed prototypes.
1772 * dwarf2cfi.h (struct context)
1773 (struct context_reg): New, moved from dwarf2cfi.c
1774 (context_alloc, frame_state_alloc, context_cpy):
1775 New prototypes.
1776 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1777 Changed from static to extern.
1778 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1779 (LINUX_SIGCONTEXT_FP_OFFSET)
1780 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1781 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1782 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1783 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1784 set_gdbarch_*() calls now use x86-64 specific functions
1785 instead of DWARF2 CFI ones.
1786 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1787 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1788 (x86_64_init_extra_frame_info): New prototypes.
1789
17902002-10-23 David Carlton <carlton@math.stanford.edu>
1791
1792 * linespec.c: #include "parser-defs.h".
1793 Delete prototype for find_template_name_end.
1794 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1795
17962002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1797
1798 * NEWS: add recent mi fixes.
1799 * varobj.c (struct varobj): Add new "updated" flag.
1800 (new_variable): Default "updated" flag to 0.
1801 (varobj_set_value): Set "updated" flag to 1 if value
1802 changes.
1803 (varobj_update): Check varobj "updated" flag before
1804 comparing old and refreshed values. Fix for
1805 PR gdb/702.
1806
18072002-10-23 David Carlton <carlton@math.stanford.edu>
1808
1809 * parse.c (parse_exp_1): Use BLOCK_START.
1810 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1811 SYMBOL_BLOCK_VALUE.
1812 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1813
18142002-10-23 David Carlton <carlton@math.stanford.edu>
1815
1816 * symtab.c: Delete cplusplus_hint.
1817 Delete prototype for find_template_name_end.
1818
18192002-10-23 Elena Zannoni <ezannoni@redhat.com>
1820
1821 * symtab.h: Update comment.
1822
18232002-10-23 Michael Snyder <msnyder@redhat.com>
1824
1825 * printcmd.c (address_info): Restore quotes in output.
1826 * valops.c (value_of_local): Restore quotes in error message.
1827
18282002-10-23 Elena Zannoni <ezannoni@redhat.com>
1829
1830 * symtab.c (symbol_demangled_name): New function.
1831 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1832 turning most of it into a function.
1833 (symbol_demangled_name): Export.
1834
18352002-10-23 Michael Snyder <msnyder@redhat.com>
1836
1837 * valops.c (value_of_local): Restore quotes in error message.
1838
18392002-10-23 Elena Zannoni <ezannoni@redhat.com>
1840
1841 * symtab.c (symbol_init_language_specific): New function.
1842 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1843 turning most of it into a function.
1844 (symbol_init_language_specific): Export.
1845
18462002-10-23 David Carlton <carlton@math.stanford.edu>
1847
1848 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1849 (dwarf_attr_name): Ditto.
1850 (dwarf_type_encoding_name): Ditto.
1851 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1852 (process_die): Handle DW_TAG_namespace,
1853 DW_TAG_imported_declaration, DW_TAG_imported_module.
1854 (read_namespace): New function.
1855
18562002-10-22 Joel Brobecker <brobecker@gnat.com>
1857
1858 * configure.in: Define NEW_PROC_API on Interix too.
1859 * configure: Regenerate.
1860
18612002-10-21 Joel Brobecker <brobecker@gnat.com>
1862
1863 * configure: Regenerate using the proper version of autoconf.
1864
18652002-10-21 Elena Zannoni <ezannoni@redhat.com>
1866
1867 * findvar.c (read_var_value): Temporarily disable TLS code, until
1868 complete TLS support is added.
1869
18702002-10-21 Jim Blandy <jimb@redhat.com>
1871 Elena Zannoni <ezannoni@redhat.com>
1872
1873 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1874 for thread local storage locations.
1875 (struct symbol): Add objfile field.
1876 (SYMBOL_OBJFILE): Define.
1877 * dwarf2read.c (is_thread_local): New static variable.
1878 (new_symbol): If variable is in thread local fill in address class
1879 and objfile appropriately.
1880 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1881 stack operation.
1882 * printcmd.c (address_info): Print the information for thread
1883 local storage variable.
1884 * findvar.c (read_var_value): In case of thread local variable,
1885 defer to the target vector code to compute address.
1886
18872002-10-21 Elena Zannoni <ezannoni@redhat.com>
1888
1889 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1890 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1891
18922002-10-21 Elena Zannoni <ezannoni@redhat.com>
1893
1894 * symtab.h (address_class): Rename
1895 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1896 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1897 * printcmd.c (address_info): Ditto.
1898 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1899
19002002-10-20 Mark Kettenis <kettenis@gnu.org>
1901
1902 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1903 DBREG_DRX macro to acces debug registers.
1904
1905 * Makefile.in (i386obsd-tdep.o): New target.
1906
1907 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1908 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1909
1910 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1911 * config/i386/obsd.mt: New file.
1912 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1913 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1914 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1915 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1916 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1917 * i386obsd-tdep.c: New file.
1918
19192002-10-19 Adam Fedor <fedor@gnu.org>
1920
1921 * objc-exp.y (name_not_typename): Fix invalid comment.
1922
19232002-10-20 Mark Kettenis <kettenis@gnu.org>
1924
1925 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1926 to allocate partial syms and macro byte caches.
1927
19282002-10-18 David Carlton <carlton@math.stanford.edu>
1929
1930 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1931
19322002-10-18 Adam Fedor <fedor@gnu.org>
1933
1934 * stabsread.c (find_name_end): New function.
1935 (define_symbol): Use it.
1936
19372002-10-18 Daniel Jacobowitz <drow@mvista.com>
1938
1939 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1940 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1941 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1942 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1943
19442002-10-17 David Carlton <carlton@math.stanford.edu>
1945
1946 * symfile.h: Add opaque declaration for struct obstack.
1947 Declare obsavestring to take a const char *.
1948 * symfile.c (obsavestring): Make first argument a const char *.
1949
19502002-10-16 Adam Fedor <fedor@gnu.org>
1951
1952 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1953 names when matching breakpoints in current file.
1954
19552002-10-16 Kevin Buettner <kevinb@redhat.com>
1956
1957 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1958 (read_tag_pointer_type): Add address class support.
1959 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1960 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1961 New methods.
1962 * gdbarch.h, gdbarch.c: Regenerate.
1963 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1964 (make_type_with_address_space, recursive_type_dump): Add address
1965 class support.
1966 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1967 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1968 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1969
19702002-10-16 Klee Dienes <kdienes@apple.com>
1971
1972 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1973 to get the last character of a char[] buffer, not
1974 name[sizeof(vptr_name)-1].
1975
19762002-10-14 Adam Fedor <fedor@gnu.org>
1977
1978 * symtab.h: New objc_specific struct.
1979 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1980 (SYMBOL_DEMANGLED_NAME): Likewise.
1981
19822002-10-14 Adam Fedor <fedor@gnu.org>
1983
1984 * symfile.c (init_filename_language_table): Add ObjC file extension.
1985
19862002-10-14 Adam Fedor <fedor@gnu.org>
1987
1988 * utils.c (puts_filtered_tabular): New function.
1989 (fprintf_symbol_filtered): Get ObjC demangled name.
1990 * defs.h (puts_filtered_tabular): Declared.
1991
19922002-10-14 Kevin Buettner <kevinb@redhat.com>
1993
1994 * c-lang.h (c_type_print_varspec_prefix): Delete.
1995 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1996 ``need_post_space'' parameter. Adjust all callers.
1997
19982002-10-14 Daniel Jacobowitz <drow@mvista.com>
1999
2000 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2001 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2002 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2003 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2004
20052002-10-13 Adam Fedor <fedor@gnu.org>
2006
2007 * source.c (print_source_lines): Update comments.
2008
20092002-10-13 Adam Fedor <fedor@gnu.org>
2010
2011 * valops.c (value_of_local): New function.
2012 (value_of_this): Use it.
2013 * value.h (value_of_local): Declared.
2014
20152002-10-13 Adam Fedor <fedor@gnu.org>
2016
2017 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2018 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2019
20202002-10-12 Adam Fedor <fedor@gnu.org>
2021
2022 * language.c (binop_result_type): Add language_objc to case.
2023 (integral_type): Likewise.
2024 (character_type): Likewise.
2025 (string_type): Likewise.
2026 (boolean_type): Likewise.
2027 (structured_type): Likewise.
2028 (binop_type_check): Likewise.
2029
20302002-10-11 Adam Fedor <fedor@gnu.org>
2031
2032 * printcmd.c (address_info): Print 'self' for ObjC.
2033
20342002-10-11 Adam Fedor <fedor@gnu.org>
2035
2036 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2037 OP_SELF.
2038
20392002-10-11 Adam Fedor <fedor@gnu.org>
2040
2041 * language.h (CAST_IS_CONVERSION): Add language_objc.
2042
20432002-10-11 Adam Fedor <fedor@gnu.org>
2044
2045 * defs.h (enum language): Add language_objc.
2046
20472002-10-11 Klee Dienes <kdienes@apple.com>
2048
2049 * corefile.c (read_memory_typed_address): New function.
2050 * gdbcore.h (read_memory_typed_address): Add prototype.
2051 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2052 to read a value destined for a CORE_ADDR, not read_memory_integer.
2053 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2054 (f77_get_dynamic_lowerbound): Ditto.
2055
20562002-10-11 Martin M. Hunt <hunt@redhat.com>
2057
2058 * utils.c (string_to_core_addr): After turning string into
2059 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2060 which will do necessary sign-extension, etc.
2061
20622002-10-11 Daniel Jacobowitz <drow@mvista.com>
2063
2064 * c-exp.y (THIS): Delete token and grammar rule.
2065 (yylex): Don't return THIS.
2066 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2067 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2068 * demangle.c (cplus_markers): Update comment. Put '$'
2069 first. Remove CPLUS_MARKER.
2070 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2071 * jv-exp.y (THIS): Delete token and grammar rule.
2072 (yylex): Don't return THIS.
2073 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2074 * objc-exp.y (THIS): Delete token and grammar rule.
2075 (yylex): Don't return THIS.
2076 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2077 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2078 (read_member_functions): Likewise for opname.
2079 (read_tilde_fields): Use is_cplus_marker.
2080
2081 * defs.h (CPLUS_MARKER): Don't define.
2082 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2083 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2084 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2085 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2086 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2087
2088 * config/i386/tm-i386v4.h: Delete file.
2089 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2090 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2091 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2092 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2093 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2094 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2095 * config/i386/i386v4.mt (TM_FILE): Likewise.
2096 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2097
20982002-10-10 Marko Mlinar <markom@opencores.org>
2099
2100 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2101 accidentially not commited 2002-10-09
2102 * gdbarch.h, gdbarch.c: Re-generate.
2103
21042002-10-09 Marko Mlinar <markom@opencores.org>
2105
2106 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2107 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2108 * gdbarch.h, gdbarch.c: Re-generate.
2109
21102002-10-08 Petr Sorfa <petrs@caldera.com>
2111
2112 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2113
2114 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2115 so we can work on more than one compilation unit at a time. This
2116 helps prepare GDB to handle inter-CU die references.
2117 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2118 the code to be defined before struct comp_unit_head.
2119 (comp_unit_head): Added new members - offset, cu_head,
2120 begin_die, next and dwarf2_abbrevs.
2121 (dwarf2_abbrevs): Removed single static var; now member of
2122 struct comp_unit_head.
2123 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2124 members.
2125 (psymtab_to_symtab_1): Changed to work with the new
2126 struct comp_unit_head.
2127 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2128 constructs the dwarf2_abbrevs[] inside the cu_header.
2129 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2130 dwarf2_abbrev table to clean up.
2131 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2132 handling of dwarf2_abbrevs inside the cu_header.
2133 (read_partial_die): Now supports the call to the new
2134 dwarf2_lookup_abbrev.
2135 (read_full_die): Now supports the call to the new
2136 dwarf2_lookup_abbrev.
2137
21382002-10-06 Christopher Faylor <cgf@redhat.com>
2139
2140 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2141 insure that shell variables, such as "transformed_name" are propagated
2142 to later shell statements in rule.
2143
21442002-10-06 Mark Kettenis <kettenis@gnu.org>
2145
2146 * config/i386/nm-i386sco.h: Add protection against
2147 multiple-inclusion. Include "i386/nm-i386v.h".
2148 (REGISTER_U_ADDR): Remove define.
2149 (i386_register_u_addr): Remove prototype.
2150
21512002-10-04 Michael Snyder <msnyder@redhat.com>
2152
2153 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2154 before treating it as a single-step event.
2155
21562002-10-03 Adam Fedor <fedor@gnu.org>
2157
2158 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2159 (objc_demangle): Remove assignment in if statements, Replace
2160 free with xfree.
2161 (add_msglist): Likewise.
2162 (end_msglist): Likewise.
2163 (complare_selectors): Likewise.
2164 (selectors_info): Likewise.
2165 (compare_classes): Likewise.
2166 (classes_info): Likewise.
2167 (print_object_command): Likewise.
2168 (find_objc_msgcall_submethod): Replace PTR with void *.
2169 * objc-lang.h: Remove check for __STDC__.
2170
21712002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2172
2173 * ui-out.h (ui_out_field_fmt_int): New prototype.
2174 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2175 of field width and alignment.
2176 * stack.c (print_frame_info_base): When printing frame level, use
2177 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2178 PR gdb/192
2179
21802002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2181
2182 * MAINTAINERS: Add self to Write After Approval list.
2183
21842002-10-02 Elena Zannoni <ezannoni@redhat.com>
2185
2186 * infcmd.c (interrupt_target_command_wrapper): Delete.
2187 (interrupt_target_command): Make non static.
2188 (nofp_registers_info): Make static.
2189 * stack.c (return_command_wrapper): Delete.
2190 (return_command): Make non static.
2191
21922002-10-02 Elena Zannoni <ezannoni@redhat.com>
2193
2194 * event-top.c (gdb_setup_readline): New function. Code moved from
2195 _initialize_event_loop().
2196 (_initialize_event_loop): Call gdb_setup_readline().
2197
21982002-10-02 Andrew Cagney <ac131313@redhat.com>
2199
2200 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2201 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2202 * gdbarch.h, gdbarch.c: Re-generate.
2203
22042002-10-02 Daniel Jacobowitz <drow@mvista.com>
2205
2206 Fix PR gdb/778
2207 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2208 before recursing.
2209 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2210 of fill_in_vptr_fieldno.
2211
22122002-10-02 Elena Zannoni <ezannoni@redhat.com>
2213
2214 * inferior.h (registers_info, stepi_command, nexti_command,
2215 continue_command, interrupt_target_command): Export from infcmd.c.
2216 * frame.h (args_info, selected_frame_level_changed_hook,
2217 return_command): Export from stack.c.
2218 * v850ice.c (stepi_command, nexti_command, continue_command): use
2219 prototypes from inferior.h.
2220 * tracepoint.c (registers_info, args_info, locals_info): Use
2221 prototypes from frame.h and inferior.h.
2222 * Makefile.in (mi-main.o): Add dependency on frame.h.
2223
22242002-10-02 Andrew Cagney <ac131313@redhat.com>
2225
2226 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2227 value in register 3 adjusted by ppc_gp0_regnum.
2228
2229 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2230
22312002-10-02 Marko Mlinar <markom@opencores.org>
2232
2233 * MAINTAINERS: Add myself to the Write After Approval list.
2234
22352002-10-01 Alexandre Oliva <aoliva@redhat.com>
2236
2237 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2238 of the section for the N64 ABI, fixed.
2239
2240 * config/mips/tm-irix6.h: Include solib.h.
2241
22422002-10-01 Elena Zannoni <ezannoni@redhat.com>
2243
2244 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2245 GNU operators.
2246
22472002-10-01 Andrew Cagney <ac131313@redhat.com>
2248
2249 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2250 and that "mi0" syntax has been removed.
2251
22522002-09-30 David Carlton <carlton@math.stanford.edu>
2253
2254 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2255 * ppc-sysv-tdep.c: #include "gdb_string.h".
2256 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2257 pacify GCC.
2258
22592002-10-01 Andrew Cagney <ac131313@redhat.com>
2260
2261 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2262 "vrsave"'s register number.
2263
22642002-09-30 Andrew Cagney <ac131313@redhat.com>
2265
2266 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2267 use frame_unwind_signed_register to obtain the PC.
2268 (mips_frame_chain): Handle a generic dummy frame.
2269 (mips_init_extra_frame_info): When a generic dummy frame, don't
2270 re-compute the frame base.
2271 (mips_pop_frame): Handle generic dummy frames.
2272 (mips_gdbarch_init): When generic dummy frames, set
2273 use_generic_dummy_frames, push_dummy_frame to
2274 generic_push_dummy_frame, pc_in_call_dummy to
2275 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2276 generic_save_dummy_frame_tos.
2277
22782002-09-30 Andrew Cagney <ac131313@redhat.com>
2279
2280 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2281 against TOP when TOP was explictly set.
2282 (generic_push_dummy_frame): Set TOP to zero.
2283
22842002-09-30 Elena Zannoni <ezannoni@redhat.com>
2285
2286 * event-loop.c (start_event_loop): Rename variable 'result' to
2287 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2288
22892002-09-30 Keith Seitz <keiths@redhat.com>
2290
2291 * gdb-events.sh (selected_thread_changed): New event.
2292 * gdb-events.c: Regenerated.
2293 * gdb-events.h: Regenerated.
2294
22952002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2296
2297 * MAINTAINERS: Add self to Write After Approval list.
2298
22992002-09-30 Fernando Nasser <fnasser@redhat.com>
2300
2301 * disasm.c: New file.
2302 * disasm.h: New file.
2303 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2304 (compare_lines): Ditto.
2305 (dump_insns): Ditto.
2306 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2307 argument.
2308 (do_assembly_only): Ditto.
2309 (do_disassembly): Renamed to gdb_disassembly and moved to
2310 disasm.c. Sdded uiout argument.
2311 * Makefile.in: Add new files. Reorder SFILES list. Update
2312 dependencies. Include libgdb.a later in the insight executable.
2313
23142002-09-29 Andrew Cagney <ac131313@redhat.com>
2315
2316 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2317 bfd/elf64-alpha-fbsd.c.
2318
23192002-09-29 Andrew Cagney <ac131313@redhat.com>
2320
2321 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2322 i386gnu-tdep.c.
2323
23242002-09-29 Andrew Cagney <ac131313@redhat.com>
2325
2326 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2327 __FUNCTION__.
2328 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2329 function name.
2330 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2331 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2332 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2333 (S_msg_sig_post_reply): Ditto.
2334
23352002-09-28 Corinna Vinschen <vinschen@redhat.com>
2336
2337 * sh-tdep.c (sh_use_struct_convention): Use definition according
2338 to ABI.
2339 (sh_push_arguments): Store in register with correct endianess.
2340 (sh_default_store_return_value): Ditto.
2341 (sh_gdbarch_init): Set sizeof long double to 8.
2342
23432002-09-27 Mark Kettenis <kettenis@gnu.org>
2344
2345 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2346 Fix some whitespace problems.
2347
23482002-09-27 David Carlton <carlton@math.stanford.edu>
2349
2350 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2351 (mcore-tdep.o): Ditto.
2352 (ns32k-tdep.o): Ditto.
2353 (ns32knbsd-tdep.o): Ditto.
2354 (sh3-rom.o): Ditto.
2355 (vax-tdep.o): Ditto.
2356 * cris-tdep.c: #include "gdb_string.h"
2357 * mcore-tdep.c: Ditto.
2358 * ns32k-tdep.c: Ditto.
2359 * ns32knbsd-tdep.c: Ditto.
2360 * sh3-rom.c: Ditto.
2361 * vax-tdep.c: Ditto.
2362
23632002-09-27 David Carlton <carlton@math.stanford.edu>
2364
2365 * config/djgpp/fnchange.lst: Add entries for
2366 gdb/testsuite/gdb.c++/m-static files.
2367
23682002-09-27 Jim Wilson <wilson@redhat.com>
2369
2370 * MAINTAINERS: Add myself to the Write After Approval list.
2371
23722002-09-26 Martin M. Hunt <hunt@redhat.com>
2373
2374 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2375
2376
23772002-09-26 Andrew Cagney <ac131313@redhat.com>
2378
2379 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2380 frame.
2381
23822002-09-26 Andrew Cagney <ac131313@redhat.com>
2383
2384 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2385 (rs6000_struct_return_address): Delete variable.
2386 (rs6000_store_struct_return): Update.
2387 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2388 deprecated_extract_struct_value_address.
2389 (rs6000_frame_align): New function.
2390 (rs6000_gdbarch_init): Set frame_align.
2391
23922002-09-26 Andrew Cagney <ac131313@redhat.com>
2393
2394 From Grace Sainsbury <graces@redhat.com>:
2395 * Makefile.in (gdbtk-main.o): New target.
2396 (gdb.o): New target.
2397 (main_h): Define.
2398 (main.o): Update dependencies.
2399 (gdb$(EXEEXT)): Add gdb.o.
2400 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2401 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2402 (SUBDIR_GDBTK_CLEAN): Set.
2403 (install-gdbtk): Install the insight binary.
2404 (uninstall-gdbtk): New target.
2405 (all-gdbtk, clean-gdbtk): New rule.
2406 * top.c (use_windows): Default to zero.
2407 * main.c: Include "main.h".
2408 (main): Delete.
2409 (struct captured_main_args): Delete.
2410 (gdb_main): New function.
2411 * main.h: New file.
2412 * gdb.c: New File.
2413
24142002-09-25 Andrew Cagney <cagney@redhat.com>
2415
2416 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2417 (frame_map_regnum_to_name): New function.
2418 (frame_map_name_to_regnum): New function.
2419 * frame.h (frame_map_name_to_regnum): Declare.
2420 (frame_map_regnum_to_name): Declare.
2421 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2422 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2423 * parse.c: Do not include "builtin-regs.h".
2424 (target_map_name_to_register): Delete function.
2425 (write_dollar_variable): Use frame_map_name_to_regnum.
2426 * parser-defs.h (target_map_name_to_register): Delete declaration.
2427 * expprint.c: Include "frame.h".
2428 (print_subexp): Use frame_map_regnum_to_name.
2429 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2430 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2431
24322002-09-25 Andrew Cagney <ac131313@redhat.com>
2433
2434 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2435 wasn't saved, and the next innermost frame is a dummy, return the
2436 dummy frame's link register.
2437
24382002-09-24 Jim Blandy <jimb@redhat.com>
2439
2440 Fix from Paul Breed:
2441 * main.c (captured_main): Add a `break' after the case for 'b'.
2442
24432002-09-24 Keith Seitz <keiths@redhat.com>
2444
2445 * varobj.c (c_type_of_child): Use get_target_type instead
2446 of TYPE_TARGET_TYPE.
2447
24482002-09-22 Fernando Nasser <fnasser@redhat.com>
2449
2450 * source.c (get_current_or_default_source_symtab_and_line): Remove
2451 function.
2452 (set_default_source_symtab_and_line): New function. Attempts to
2453 determine a source file to list lines from if one is not currently
2454 defined.
2455 (get_current_source_symtab_and_line): Initialize sal.pc and
2456 sal.end fields.
2457 (set_current_source_symtab_and_line): Mark argument as const.
2458 * source.h: Update declarations and comments.
2459 * linespec.c (decode_line_1): Replace call to removed routine above.
2460 * stack.c (print_frame_info_base): Ditto.
2461 * cli/cli-cmds.c (edit_command): Ditto.
2462 (list_command): Ditto.
2463
24642002-09-22 Fernando Nasser <fnasser@redhat.com>
2465
2466 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2467 sal.pc and sal.end fields.
2468 (get_current_or_default_source_symtab_and_line): Ditto.
2469 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2470 so we do not cause a new source symtab to be searched for (reverting an
2471 unintentional change from the 2002-09-20 patch).
2472 * scm-lang.c (scm_unpac): Ditto.
2473
24742002-09-21 Andrew Cagney <cagney@redhat.com>
2475
2476 * complaints.c (symfile_explanations): Remove new-line from
2477 ``isolated_message''.
2478 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2479 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2480
24812002-09-20 Nick Clifton <nickc@redhat.com>
2482
2483 * NEWS: Announce that V850EA ISA is no longer supported.
2484 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2485
24862002-09-20 David Carlton <carlton@math.stanford.edu>
2487
2488 * Makefile.in (c-lang.o): Correct dependencies.
2489 (utils.o): Gather dependencies.
2490 (charset.o): Move.
2491 * c-lang.c: #include "gdb_string.h"
2492
24932002-09-20 Fernando Nasser <fnasser@redhat.com>
2494
2495 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2496 * cli/cli-cmds.c (list_command): New function. Implements the new
2497 cli edit command.
2498 (_init_cli_cmds): Add new command definition.
2499 * gdb.1: Document edit command.
2500 * doc/gdb.texinfo: Document edit command.
2501
25022002-09-20 Fernando Nasser <fnasser@redhat.com>
2503
2504 * source.c: Make global variables current_source_symtab and
2505 current_source_line static.
2506 (list_command): Moved to cli/cli-cmds.c.
2507 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2508 (get_first_line_listed): New accessor function.
2509 (get_lines_to_list): New accessor function.
2510 (get_current_source_symtab_and_line): New function. Retrieves the
2511 position in the source code that we consider current.
2512 (get_current_or_default_source_symtab_and_line): New function.
2513 Like the above but attempts to determine a default position if one
2514 is not currently defined.
2515 (set_current_source_symtab_and_line): New function. Sets the source
2516 code position considered current and returns the previously set one.
2517 (clear_current_source_symtab_and_line): Reset stored information about
2518 a current source line.
2519 (_initialize_source): Remove registration for the "list" command and
2520 its alias.
2521 * source.h: Add declarations for the new functions above.
2522 * symtab.h: Remove declarations for the global variables mentioned
2523 above.
2524 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2525 obtain current source line.
2526 * linespec.c (decode_line_1): Ditto.
2527 * macroscope.c (default_macro_scope): Ditto.
2528 * scm-lang.c (scm_unpac): Ditto.
2529 * stack.c (print_frame_info_base): Ditto.
2530 * symfile.c (clear_symtab_users): Ditto.
2531 * symtab.c (decode_line_spec): Ditto.
2532 * cli/cli-cmds.c (list_command): Moved here from source.c.
2533 (ambiguous_line_spec): Moved here from source.c.
2534 (_init_cli_cmds): Add definition for "list" and its alias.
2535 * Makefile.in: Update dependencies.
2536
25372002-09-20 Corinna Vinschen <vinschen@redhat.com>
2538
2539 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2540 with what gcc thinks is correct.
2541
25422002-09-20 Corinna Vinschen <vinschen@redhat.com>
2543
2544 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2545 multiple register push instruction.
2546
25472002-09-19 Jim Blandy <jimb@redhat.com>
2548
2549 Add support for distinct host and target character sets.
2550 * charset.c, charset.h: New files.
2551 * c-exp.y: #include "charset.h".
2552 (yylex): Convert character and string literals to the target
2553 character set, before returning them as the semantic value of the
2554 token.
2555 * c-lang.c: #include "charset.h".
2556 (c_emit_char): Use charset-specific methods to recognize
2557 characters with backslash escape forms, to decide which characters
2558 to print literally and which to print using numeric escape
2559 sequences, and to convert target characters to host characters
2560 before printing.
2561 * utils.c: #include "charset.h".
2562 (no_control_char_error): New function.
2563 (parse_escape): Use charset-specific methods to recognize
2564 backslash escapes, parse `control character' notation, and convert
2565 characters from the host character set to the target character set.
2566 * configure.in: Set the default host character set.
2567 Check where to find iconv, and what its argument types might be.
2568 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2569 * Makefile.in (SFILES): List charset.c.
2570 (COMMON_OBS): List charset.o.
2571 (charset.o): New rule.
2572 (charset_h): New header dependency variable.
2573 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2574 (LIBICONV): New variable, set by configure.
2575 (CLIBS): Include $(LIBICONV) here.
2576 * aclocal.m4, config.in, configure: Regenerated.
2577
25782002-09-19 Joel Brobecker <brobecker@gnat.com>
2579
2580 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2581 bison 1.35 warning.
2582
25832002-09-19 Richard Earnshaw <rearnsha@arm.com>
2584
2585 * gdb_mbuild.sh: New file.
2586
25872002-09-19 Andrew Cagney <ac131313@redhat.com>
2588
2589 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2590
25912002-09-18 Andrew Cagney <ac131313@redhat.com>
2592
2593 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2594 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2595 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2596 valops.c, value.h: Revert previous change.
2597
25982002-09-18 Michael Snyder <msnyder@redhat.com>
2599
2600 Preliminary support for Objective-C:
2601 * defs.h (language_objc): New enum value.
2602 (puts_filtered_tabular): Declaration only, exported from utils.c.
2603 (skip_quoted): Delete, declared in completer.h.
2604 * c-exp.y: Include completer.h.
2605 * p-exp.y: Ditto.
2606 * jv-exp.y: Ditto.
2607 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2608 New operator enum values.
2609 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2610 * language.c (binop_result_type): Handle language_objc case.
2611 (integral_type, character_type, string_type, boolean_type,
2612 structured_type, binop_type_check): Ditto.
2613 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2614 (struct objc_specific): Add to general_symbol_info.
2615 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2616 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2617 * parser-defs.h (struct objc_class_str): New struct type.
2618 (start_msglist, end_msglist, add_msglist): Declaration only,
2619 exported from objc-lang.c.
2620 * value.h (value_of_local, value_nsstring,
2621 call_function_by_hand_expecting_type): Exported from valops.c.
2622 * valops.c (find_function_addr): Export.
2623 (call_function_by_hand_expecting_type): New function.
2624 (value_of_local): New function.
2625 * symfile.c (init_filename_language_table): Add ".m" extension
2626 for Objective-C.
2627 * utils.c (puts_filtered_tabular): New function.
2628 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2629 (set/show demangle): Extend help-string to refer to ObjC.
2630 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2631 * stabsread.c (symbol_reference_defined): Objective-C symbols
2632 may contain colons: make allowances when scanning stabs strings
2633 for colons.
2634 (objc_find_colon): New function.
2635 * printcmd.c (address_info): If language == objc then print
2636 "self" instead of "this".
2637 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2638 OP_NSSTRING, and OP_SELF.
2639 (prefixify_subexp): Ditto.
2640 * source.c (print_source_lines): Mention objc in comment.
2641 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2642 method names.
2643
26442002-09-18 Andrew Cagney <ac131313@redhat.com>
2645
2646 * complaints.h: Update copyright.
2647 (struct complaints): Declare.
2648 (struct complaint): Make `message' constant.
2649 (internal_complaint): Declare.
2650 (complaint): Declare.
2651 (complaint_root): Delete declaration.
2652 (symfile_complaints): Delete declaration.
2653 (struct complaints): Add opaque declaration.
2654 (clear_complaints): Add a complaints parameter.
2655 * complaints.c: Update copyright.
2656 (enum complaint_series): Define.
2657 (complaint_root): Delete.
2658 (struct complaints): Define.
2659 (complaint_sentinel, symfile_complaint_book): New variables.
2660 (symfile_explanations, symfile_complaints): New variables.
2661 New variables.
2662 (get_complaints): New function.
2663 (vcomplaint): New function.
2664 (complaint): New function.
2665 (internal_complaint): New function.
2666 (complain): Call vcomplain with symfile_complaint.
2667 (clear_complaints): Rewrite.
2668 (_initialize_complaints): Use add_setshow_command.
2669 * Makefile.in (complaints.o): Update dependencies.
2670 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2671 to call to clear_complaints.
2672 (new_symfile_objfile, reread_symbols): Ditto.
2673 (oldsyms_complaint): Delete.
2674 (empty_symtab_complaint, unknown_option_complaint): Delete.
2675 (free_named_symtabs): Use complaint instead of complain.
2676
26772002-09-18 Michael Snyder <msnyder@redhat.com>
2678
2679 Contributed by Apple Computer, Inc. Merged with current sources
2680 by Adam Fedor <fedor@doc.com> [cagney].
2681
2682 * objc-lang.c: First clean-up round: comments, indentation.
2683 * objc-lang.h: Ditto.
2684 * objc-lang.y: Ditto.
2685
26862002-09-18 Andrew Cagney <ac131313@redhat.com>
2687
2688 * maint.c (maintenance_internal_error): Print the parameter as the
2689 error message.
2690 (maintenance_internal_warning): New function.
2691 (_initialize_maint_cmds): Add command `maint internal-warning'.
2692
2693 * defs.h (internal_warning, internal_vwarning): Declare.
2694 * utils.c (struct internal_problem): Define.
2695 (internal_vproblem): New function.
2696 (internal_warning): New function.
2697 (internal_vwarning): New function.
2698 (internal_warning_problem, internal_error_problem): New variables.
2699 (internal_verror): Just call internal_vproblem.
2700
27012002-09-18 Michael Snyder <msnyder@redhat.com>
2702
2703 * objc-lang.c: New file, support for Objective-C.
2704 Preliminary check-in, not yet integrated into gdb.
2705 * objc-lang.h: New file.
2706 * objc-exp.y: New file.
2707
27082002-09-18 Andrew Cagney <ac131313@redhat.com>
2709
2710 * infrun.c (signal_stop_update): Convert definition to ISO C.
2711 (signal_print_update): Ditto.
2712 (signal_pass_update): Ditto.
2713 * inflow.c (terminal_save_ours): Ditto.
2714
2715 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2716 comments.
2717
2718 * config/djgpp/fnchange.lst: Handle name clashes between
2719 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2720 bfd/coff-tic80.c.
2721
2722 * i386-linux-tdep.h: Fix tipo.
2723
27242002-09-18 Adam Fedor <fedor@gnu.org>
2725
2726 * MAINTAINERS: Add myself to the Write After Approval list.
2727
27282002-09-18 Jim Blandy <jimb@redhat.com>
2729
2730 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2731 texthigh and textlow to reader-specific structs caused
2732 objfile_relocate to miss them. This is fixable, but the work that
2733 the change was supposed to prepare GDB for never got done anyway.
2734
27352002-09-18 David Carlton <carlton@math.stanford.edu>
2736
2737 * MAINTAINERS: Alphabetize Write After Approval list.
2738
27392002-09-18 Daniel Jacobowitz <drow@mvista.com>
2740
2741 Fix PR gdb/709
2742 * values.c (value_static_field): Call read_var_value.
2743
27442002-09-18 Andrew Cagney <ac131313@redhat.com>
2745
2746 * valops.c (hand_function_call): Align the initial stack pointer
2747 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2748 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2749 return value.
2750 * mips-tdep.c (mips_frame_align): New function.
2751 (mips_gdbarch_init): Set frame_align.
2752 * gdbarch.sh (FRAME_ALIGN): New method.
2753 * gdbarch.h, gdbarch.c: Re-generate.
2754
27552002-09-18 Michal Ludvig <mludvig@suse.cz>
2756
2757 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2758 registers.
2759
27602002-09-17 Andrew Cagney <ac131313@redhat.com>
2761
2762 * NEWS: Mention that MIPS $fp behavior changed.
2763 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2764 reference to FP_REGNUM.
2765 (mipsnbsd_cannot_store_register): Ditto.
2766 * mips-linux-nat.c: Update copyright.
2767 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2768 (mips_linux_cannot_store_register): Ditto.
2769 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2770 * config/mips/tm-mips.h: Update copyright.
2771 (FP_REGNUM): Delete macro.
2772 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2773 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2774 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2775 (mips_r3041_reg_names, mips_r3051_reg_names)
2776 (mips_r3081_reg_names): Replace "fp" with "".
2777 Fix PR gdb/480.
2778
27792002-09-17 Theodore A. Roth <troth@verinet.com>
2780
2781 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2782 generic_read_register_dummy() (PR gdb/703).
2783 (avr_push_return_address): #if 0 out unused vars.
2784 (avr_gdbarch_init): Enable use of avr_push_return_address().
2785
27862002-09-17 Michael Snyder <msnyder@redhat.com>
2787
2788 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2789 RTE will take care of it.
2790
27912002-09-17 Andrew Cagney <ac131313@redhat.com>
2792
2793 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2794 invalid, return SP_REGNUM.
2795
27962002-09-17 Michael Snyder <msnyder@redhat.com>
2797
2798 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2799 point registers without sign extension.
2800
28012002-09-17 Andrew Cagney <cagney@redhat.com>
2802
2803 * blockframe.c (deprecated_read_register_dummy): Rename
2804 generic_read_register_dummy.
2805 * frame.c (frame_unwind_signed_register): New function.
2806 (frame_unwind_unsigned_register): New function.
2807 * frame.h (frame_unwind_signed_register): Declare.
2808 (frame_unwind_unsigned_register): Declare.
2809 (deprecated_read_register_dummy): Rename
2810 generic_read_register_dummy.
2811
2812 * h8300-tdep.c (h8300_frame_chain): Update.
2813 (h8300_frame_saved_pc): Update.
2814 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2815 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2816 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2817 (s390_frame_chain): Update.
2818 * v850-tdep.c (v850_find_callers_reg): Update.
2819 (v850_frame_saved_pc): Update.
2820 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2821 (m32r_find_callers_reg): Update.
2822 (m32r_frame_saved_pc): Update.
2823 * sh-tdep.c (sh_find_callers_reg): Update.
2824 (sh64_get_saved_pr): Update.
2825 (sh_init_extra_frame_info): Update.
2826 (sh_init_extra_frame_info): Update.
2827 (sh64_init_extra_frame_info): Update.
2828 (sh64_init_extra_frame_info): Update.
2829 * mcore-tdep.c (mcore_find_callers_reg): Update.
2830 (mcore_frame_saved_pc): Update.
2831 (mcore_init_extra_frame_info): Update.
2832 * i386-tdep.c (i386_frame_saved_pc): Update.
2833 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2834 (ia64_init_extra_frame_info): Update.
2835 (ia64_init_extra_frame_info): Update.
2836 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2837 * cris-tdep.c (cris_init_extra_frame_info): Update.
2838 * avr-tdep.c (avr_frame_chain): Update.
2839 (avr_init_extra_frame_info): Update.
2840 (avr_frame_saved_pc): Update.
2841 * arm-tdep.c (arm_find_callers_reg): Update.
2842 (arm_init_extra_frame_info): Update.
2843 (arm_frame_saved_pc): Update.
2844
28452002-09-17 Tom Tromey <tromey@redhat.com>
2846
2847 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2848 is "'".
2849
28502002-09-17 Corinna Vinschen <vinschen@redhat.com>
2851
2852 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2853 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2854 NEXT_PROLOGUE_INSN.
2855 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2856 NEXT_PROLOGUE_INSN.
2857
28582002-09-16 Joel Brobecker <brobecker@gnat.com>
2859
2860 * osfsolib.c: Remove file, replaced by solib-osf.c.
2861 * Makefile.in: Remove compilation rules for osfsolib.c.
2862
28632002-09-16 David Carlton <carlton@math.stanford.edu>
2864
2865 * cp-valprint.c (cp_print_class_method): Correct args to
2866 check_stub_method_group.
2867
28682002-09-16 Corinna Vinschen <vinschen@redhat.com>
2869
2870 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2871 `set architecture'. Unify naming convention of functions.
2872 (h8300_skip_prologue): Improve prologue analysis.
2873 (h8300_push_arguments): Rewritten to more closely match GCC's
2874 bizarre argument-passing behavior, along with the comment describing
2875 said behavior.
2876 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2877 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2878 sim, remote-e7000.c, remote-hms.c and remote.c
2879
28802002-09-15 Mark Kettenis <kettenis@gnu.org>
2881
2882 * i386-tdep.c (gdb_print_insn_i386): Removed.
2883 (i386_print_insn): New function.
2884 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2885 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2886 tm_print_insn_info.
2887
28882002-09-14 Mark Kettenis <kettenis@gnu.org>
2889
2890 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2891 zero.
2892
28932002-09-14 Corinna Vinschen <vinschen@redhat.com>
2894
2895 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2896 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2897 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2898
28992002-09-13 Christopher Faylor <cgf@redhat.com>
2900
2901 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2902
29032002-09-13 Daniel Jacobowitz <drow@mvista.com>
2904
2905 * gdbtypes.c (check_stub_method): Make static.
2906 (check_stub_method_group): New function.
2907 * gdbtypes.h: Update prototypes.
2908 * cp-support.c: New file.
2909 * cp-support.h: New file.
2910
2911 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2912 (update_method_name_from_physname): New function.
2913 (read_member_functions): Correct method names for operators
2914 and v3 constructors/destructors. Separate v2 constructors and
2915 destructors.
2916 * Makefile.in (stabsread.o): Update dependencies.
2917 (SFILES): Add cp-support.c.
2918 (COMMON_OBS): Add cp-support.o.
2919 (cp_support_h, cp-support.o): Add.
2920
2921 * cp-valprint.c (cp_print_class_method): Call
2922 check_stub_method_group instead of check_stub_method. Remove
2923 extraneous QUITs.
2924 * p-valprint.c (pascal_object_print_class_method): Likewise.
2925 * valops.c (search_struct_method): Likewise.
2926 (find_method_list, value_struct_elt_for_reference): Likewise.
2927
29282002-09-13 Andrew Cagney <cagney@redhat.com>
2929
2930 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2931 * gdbarch.h, gdbarch.c: Regenerate.
2932
29332002-09-13 Andrew Cagney <ac131313@redhat.com>
2934
2935 * frame.c (find_saved_register): Delete function.
2936 * frame.h (find_saved_register): Delete declaration.
2937 Fix PR gdb/631.
2938
2939Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2940
2941 * mips-tdep.c (read_next_frame_reg): Re-hack using
2942 frame_register_unwind.
2943
2944Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2945
2946 * mips-tdep.c (mips_get_saved_register): Re-hack using
2947 frame_register_unwind.
2948
29492002-09-12 Joel Brobecker <brobecker@gnat.com>
2950
2951 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2952 vector. Will be useful for Interix.
2953 * gdbarch.h, gdbarch.c: Regenerate.
2954
2955 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2956 name of the malloc function by NAME_OF_MALLOC.
2957
29582002-09-12 Joel Brobecker <brobecker@gnat.com>
2959
2960 * value.h (find_function_in_inferior): Add const keyword to
2961 one of the parameters. Allows us to invoke this function with
2962 a const char *.
2963 * valops.c (find_function_in_inferior): Likewise.
2964
29652002-09-12 Joel Brobecker <brobecker@gnat.com>
2966
2967 * exec.c (xfer_memory): Fix compilation warning with old versions
2968 of GCC.
2969 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2970
29712002-09-12 David Carlton <carlton@math.stanford.edu>
2972
2973 * symtab.h: Run through gdb_indent.h.
2974 Add 2002 to Copyright year list.
2975
29762002-09-12 Alan Modra <amodra@bigpond.net.au>
2977
2978 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2979 mach constants.
2980 * MAINTAINERS: Add myself to write after approval list.
2981
29822002-09-11 J. Brobecker <brobecker@gnat.com>
2983
2984 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2985
29862002-09-11 J. Brobecker <brobecker@gnat.com>
2987
2988 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2989 Interix.
2990
29912002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2992
2993 * procfs.c (do_detach): Clear current signal, not just fault.
2994 Corrects problem with breakpoint trap signal leaking to detached
2995 process on Tru64.
2996
29972002-09-10 Michael Snyder <msnyder@redhat.com>
2998
2999 * buildsym.c (finish_block): Protect against null pointer.
3000
30012002-09-10 Andrew Cagney <cagney@redhat.com>
3002
3003 * infcmd.c (default_print_registers_info): Send all output to
3004 ``file'' instead of ``gdb_stdout''.
3005
30062002-09-10 Michael Snyder <msnyder@redhat.com>
3007
3008 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3009 LONGEST, and use signed register read (addresses are sign-
3010 extended for mips).
3011
30122002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3013
3014 * event-loop.c (gdb_do_one_event): Make public.
3015 * event-loop.h (gdb_do_one_event): Declare.
3016
30172002-09-10 Jeff Law <law@redhat.com>
3018
3019 * infttrace.c (child_resume): Simplify and rework to avoid
3020 TT_PROC_CONTINUE.
3021
30222002-09-09 Fred Fish <fnf@intrinsity.com>
3023
3024 * printcmd.c (print_scalar_formatted): "len" is the number of
3025 target bytes, NOT the number of target bits.
3026
30272002-09-09 Elena Zannoni <ezannoni@redhat.com>
3028
3029 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3030 * top.c (init_main): Set rl_terminal_name.
3031
30322002-09-08 Aidan Skinner <aidan@velvet.net>
3033
3034 * ada-lang.c (ada_array_bound, ada_type_match,
3035 _initialize_ada_language): Fix K&R definitions.
3036 * ada-tasks.c (get_current_task): Fix K&R definitions.
3037 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3038
30392002-09-07 Christopher Faylor <cgf@redhat.com>
3040
3041 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3042 Add XP.
3043
30442002-09-06 Mark Kettenis <kettenis@gnu.org>
3045
3046 * i386-tdep.c (i386_register_virtual_type,
3047 i386_register_convertible, i386_register_convert_to_virtual,
3048 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3049 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3050 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3051 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3052 Don't set push_arguments twice.
3053
3054 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3055 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3056 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3057 sigtramp_end to NULL.
3058 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3059 defines.
3060 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3061
3062 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3063 whitespace.
3064
3065 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3066 * gdbarch.h, gdbarch.c: Re-generate.
3067 * blockframe.c (find_pc_sect_partial_function): Convert to use
3068 SIGTRAMP_START_P predicate.
3069
30702002-09-05 Michael Snyder <msnyder@redhat.com>
3071
3072 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3073 generic_dummy_frame method and old method. Also distinguish
3074 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3075 (arm_extract_return_value): Use new regcache method.
3076
3077 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3078 adjustment that doesn't conform to the ABI.
3079 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3080 saved regcache, not from current regcache.
3081
30822002-09-05 Andrew Cagney <ac131313@redhat.com>
3083
3084 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3085 * README: Update.
3086
30872002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3088
3089 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3090 if arm_apcs_32 is false.
3091
30922002-09-04 Andrew Cagney <ac131313@redhat.com>
3093
3094 GDB 5.3 branch created.
3095
30962002-09-03 Theodore A. Roth <troth@verinet.com>
3097
3098 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3099 generic_unwind_get_saved_register.
3100
31012002-09-03 David Carlton <carlton@math.stanford.edu>
3102
3103 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3104 argument (PR gdb/653). Update call to smash_to_method_type.
3105 (read_structure_scope): Update call to dwarf2_add_member_fn.
3106
31072002-09-03 Michal Ludvig <mludvig@suse.cz>
3108
3109 * x86-64-linux-tdep.c: Include gdb_string.h
3110 * x86-64-linux-nat.c: Ditto.
3111
31122002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3113
3114 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3115 when YYDEBUG is set to 1.
3116 * c-exp.y: Likewise.
3117 * f-exp.y: Likewise.
3118 * jv-exp.y: Likewise.
3119 * m2-exp.y: Likewise.
3120 * p-exp.y: Likewise.
3121
31222002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3123
3124 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3125 dependency list.
3126 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3127 solib_svr4_fetch_link_map_offsets to
3128 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3129 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3130 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3131 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3132 solib-svr4.o, and solib-legacy.o.
3133 * config/i386/tm-nbsd.h: Include solib.h.
3134
31352002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3136
3137 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3138 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3139 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3140 comment noting that this needs its own target configuration.
3141 * config/i386/nbsd.mt: New file.
3142 * config/i386/nbsdaout.mt: Remove.
3143 * config/i386/nbsdelf.mt: Ditto.
3144 * config/i386/tm-nbsdaout.h: Ditto.
3145
31462002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3147
3148 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3149 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3150 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3151 tdep->sigtramp_end.
3152 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3153 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3154 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3155
31562002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3157
3158 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3159 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3160 * i386-tdep.h (i386bsd_init_abi): New prototype.
3161 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3162 function declaration.
3163 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3164 for NetBSD-a.out or NetBSD-ELF.
3165 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3166 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3167 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3168 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3169 and nbsd-tdep.h.
3170 (i386nbsd_pc_in_sigtramp): New function.
3171 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3172 i386nbsd_pc_in_sigtramp.
3173 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3174 and i386nbsdelf_init_abi OS ABI handlers.
3175 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3176 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3177
31782002-09-02 Mark Kettenis <kettenis@gnu.org>
3179
3180 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3181 registers if the target really has them.
3182
31832002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3184
3185 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3186 than nbsd-tdep.h.
3187
31882002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3189
3190 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3191 list.
3192 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3193 (alphanbsd_skip_sigtramp_frame): New functions.
3194 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3195 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3196 to alphanbsd_sigcontext_addr.
3197
31982002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3199
3200 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3201 list.
3202 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3203 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3204 nbsd_pc_in_sigtramp.
3205 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3206 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3207 * nbsd-tdep.c: Include gdb_string.h.
3208 (nbsd_pc_in_sigtramp): New function.
3209 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3210 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3211 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3212 ppcnbsd_pc_in_sigtramp.
3213 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3214 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3215 shnbsd_pc_in_sigtramp.
3216 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3217 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3218 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3219
32202002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3221
3222 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3223 watchpoints to NULL.
3224 (insert_breakpoints): set val field of watchpoints if NULL.
3225
3226
32272002-08-29 Jim Blandy <jimb@redhat.com>
3228
3229 * symtab.c (lookup_symbol_aux): In the cases where we find a
3230 minimal symbol of an appropriate name and use its address to
3231 select a symtab to read and search, use `name' (as passed to us)
3232 as the demangled name when searching the symtab's global and
3233 static blocks, not the minsym's name.
3234
32352002-08-29 Keith Seitz <keiths@redhat.com>
3236
3237 * stack.c (print_frame_info_base): Always set current_source_symtab
3238 and current_source_line.
3239
32402002-08-29 Donn Terry <donnte@microsoft.com>
3241
3242 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3243
32442002-08-28 Keith Seitz <keiths@redhat.com>
3245
3246 * stack.c (select_frame): Add FIXME concerning selected-frame
3247 events.
3248 (select_frame_command): Send selected-frame-level-changed
3249 event notification, but only if the level actually changed.
3250 (up_silently_base): Add selected-frame-level-changed event
3251 notification.
3252 (down_silently_base): Likewise.
3253
32542002-08-28 Andrew Cagney <ac131313@redhat.com>
3255
3256 * Makefile.in: Update dependencies for all gdb/*.c files.
3257
32582002-08-27 Tom Tromey <tromey@redhat.com>
3259
3260 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3261 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3262 Update dependencies.
3263 * i387-tdep.c: Include gdb_string.h.
3264 * osabi.c: Likewise.
3265 * i386-linux-nat.c: Likewise.
3266 * lin-lwp.c: Likewise.
3267 * ax-gdb.c: Likewise.
3268 * signals/signals.c: Likewise.
3269 * jv-valprint.c: Likewise.
3270 * p-lang.c: Likewise.
3271 * c-valprint.c: Likewise.
3272 * cp-abi.c: Likewise.
3273
32742002-08-27 Elena Zannoni <ezannoni@redhat.com>
3275
3276 * cli/cli-script.h (copy_command_lines): Export.
3277 * breakpoint.c: Include cli/cli-script.h.
3278 * Makefile.in (breakpoint.o): Update dependencies.
3279
32802002-08-26 Michael Snyder <msnyder@redhat.com>
3281
3282 * breakpoint.c (insert_breakpoints): Protect all references
3283 to 'process_warning'. Shorten long lines.
3284
32852002-08-26 Joel Brobecker <brobecker@gnat.com>
3286
3287 * cli/cli-script.c (copy_command_lines): New function.
3288 * defs.h (copy_command_lines): Export.
3289 * testsuite/gdb.base/commands.exp: New tests for commands
3290 attached to a temporary breakpoint, and for commands that
3291 delete the breakpoint they are attached to.
3292
32932002-08-26 Michael Snyder <msnyder@redhat.com>
3294
3295 * breakpoint.c (bpstat_stop_status): Instead of copying the
3296 pointer to the breakpoint commands struct, make a new copy
3297 of the struct and point to that.
3298 (bpstat_clear): Free the commands struct.
3299 (bpstat_clear_actions): Free the commands struct.
3300 (bpstat_do_actions): Free the command actions. Also execute
3301 the local cleanups, instead of deleting them.
3302 (delete_breakpoint): Leave the commands field of the bpstat
3303 chain alone -- it will be freed later.
3304
33052002-08-26 Kevin Buettner <kevinb@redhat.com>
3306
3307 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3308 deleted in 2002-08-20 commit. This function is still used by
3309 ppc-linux-nat.c.
3310
33112002-08-26 Keith Seitz <keiths@redhat.com>
3312
3313 * gdb-events.sh: Add selected-frame-level-changed event.
3314 * gdb-events.c: Regenerated.
3315 * gdb-events.h: Regenerated.
3316
33172002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3318
3319 Fix PR gdb/393:
3320 * inflow.c (terminal_save_ours): New function to save terminal
3321 settings.
3322 * inferior.h (terminal_save_ours): Declare.
3323 * target.c (debug_to_terminal_save_ours): New function.
3324 (cleanup_target): Defaults to_terminal_save_ours.
3325 (update_current_target): Inherit to_terminal_save_ours.
3326 (setup_target_debug): Set to_terminal_save_ours.
3327 * target.h (target_terminal_save_ours): New to save terminal settings.
3328 (target_ops): New member to_terminal_save_ours.
3329 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3330 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3331 * inftarg.c (init_child_ops): Likewise.
3332 * m3-nat.c (init_m3_ops): Likewise.
3333 * procfs.c (init_procfs_ops): Likewise.
3334 * wince.c (init_child_ops): Likewise.
3335 * win32-nat.c (init_child_ops): Likewise.
3336 * sol-thread.c (init_sol_thread_ops): Likewise.
3337
33382002-08-26 Mark Kettenis <kettenis@gnu.org>
3339
3340 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3341 use regcache_* functions.
3342 (i386_gdbarch_init): Set store_return_value instead of
3343 deprecated_store_return_value.
3344
3345 * regcache.c (regcache_raw_write_signed,
3346 regcache_raw_write_unsigned): New functions.
3347 * regcache.h (regcache_raw_write_signed,
3348 regcache_raw_write_unsigned): New prototypes.
3349
33502002-08-25 Andrew Cagney <ac131313@redhat.com>
3351
3352 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3353 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3354 source file dependencies. Cleanup corresponding generator rules.
3355
33562002-08-25 Andrew Cagney <ac131313@redhat.com>
3357
3358 * regcache.h (register_offset_hack): Declare.
3359 (regcache_cooked_read_using_offset_hack): Declare.
3360 (regcache_cooked_write_using_offset_hack): Declare.
3361
3362 * regcache.c (register_offset_hack): New function.
3363 (regcache_cooked_read_using_offset_hack): New function.
3364 (regcache_cooked_write_using_offset_hack): New function.
3365 (regcache_dump): Check that the registers, according to their
3366 offset, are packed hard against each other.
3367 (cooked_xfer_using_offset_hack): New function.
3368
33692002-08-25 Andrew Cagney <ac131313@redhat.com>
3370
3371 * regcache.c (struct regcache_descr): Add field register_type.
3372 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3373 in as a parameter
3374 (init_regcache_descr): Initialize register_type. Pass the descr
3375 to init_legacy_regcache_descr. Use register_type instead of
3376 REGISTER_VIRTUAL_TYPE.
3377 (register_type): New function.
3378 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3379 * regcache.h (register_type): Declare.
3380
33812002-08-25 Andrew Cagney <ac131313@redhat.com>
3382
3383 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3384 instead of deprecated_store_return_value. Fix fallout from
3385 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3386
33872002-08-25 Andrew Cagney <ac131313@redhat.com>
3388
3389 * regcache.c (max_register_size): New function.
3390 (init_legacy_regcache_descr): Ensure that max_register_size is
3391 large enough for REGISTER_VIRTUAL_SIZE.
3392 * regcache.h (max_register_size): Declare.
3393
33942002-08-24 Andrew Cagney <ac131313@redhat.com>
3395
3396 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3397 store_return_value.
3398 (e500_extract_return_value): Change type of valbuf pointer to
3399 void.
3400
34012002-08-24 Mark Kettenis <kettenis@gnu.org>
3402
3403 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3404 workaround.
3405
3406 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3407 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3408 long long) to prevent compiler warning on 64-bit systems.
3409
34102002-08-23 Andrew Cagney <cagney@redhat.com>
3411
3412 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3413 (DEPRECATED_STORE_RETURN_VALUE): New method.
3414 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3415 * gdbarch.h, gdbarch.c: Re-generate.
3416
3417 * values.c (set_return_value): Pass current_regcache to
3418 STORE_RETURN_VALUE.
3419 * arch-utils.h (legacy_store_return_value): Declare.
3420 * arch-utils.c (legacy_store_return_value): New function.
3421 (legacy_extract_return_value): Update parameters.
3422
3423 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3424 STORE_RETURN_VALUE.
3425 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3426 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3427 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3428 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3429 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3430 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3431 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3432 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3433 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3434 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3435
3436 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3437 * i386-tdep.c (i386_extract_return_value): Update.
3438 * arch-utils.c (legacy_extract_return_value): Update.
3439 * frv-tdep.c (frv_gdbarch_init): Update.
3440 * cris-tdep.c (cris_gdbarch_init): Update.
3441 * d10v-tdep.c (d10v_gdbarch_init): Update.
3442 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3443 * m68k-tdep.c (m68k_gdbarch_init): Update.
3444 * mcore-tdep.c (mcore_gdbarch_init): Update.
3445 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3446 * s390-tdep.c (s390_gdbarch_init): Update.
3447 * sparc-tdep.c (sparc_gdbarch_init): Update.
3448 * sh-tdep.c (sh_gdbarch_init): Update.
3449 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3450 * v850-tdep.c (v850_gdbarch_init): Update.
3451 * avr-tdep.c (avr_gdbarch_init): Update.
3452 * ia64-tdep.c (ia64_gdbarch_init): Update.
3453 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3454 * vax-tdep.c (vax_gdbarch_init): Update.
3455 * alpha-tdep.c (alpha_gdbarch_init): Update.
3456 * arm-tdep.c (arm_gdbarch_init): Update.
3457 * mips-tdep.c (mips_gdbarch_init): Update.
3458 * i386-tdep.c (i386_gdbarch_init): Update.
3459
34602002-08-23 Andrew Cagney <ac131313@redhat.com>
3461
3462 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3463 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3464
34652002-08-24 Mark Kettenis <kettenis@gnu.org>
3466
3467 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3468 problems.
3469
34702002-08-23 Joel Brobecker <brobecker@gnat.com>
3471
3472 * infrun.c (handle_inferior_event): Move a comment outside of a
3473 function call, in order to avoid indent reformatting this part
3474 of the code in an unreadable way.
3475
34762002-08-23 Grace Sainsbury <graces@redhat.com>
3477
3478 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3479 when breakpoints fail. Move general breakpoint error messages to
3480 insert_breakpoints.
3481 * breakpoint.c (insert_breakpoints): Change warnings when
3482 breakpoints are nto inserted to specify the type. Remove call to
3483 memory_error when hardware breakpoints can't be inserted. Remove
3484 multiple calls to warning so all messages are sent to the user at
3485 once.
3486 (delete_breakpoints): Make insert error messsages more explicit.
3487
34882002-08-23 Daniel Jacobowitz <drow@mvista.com>
3489
3490 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3491 gdbserver/ChangeLog.
3492
34932002-08-23 Mark Kettenis <kettenis@gnu.org>
3494
3495 * i386-tdep.c: Include "objfiles.h".
3496 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3497 skip_trampoline_code.
3498 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3499 (CPLUS_MARKER): Define to '.'.
3500
3501 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3502 member.
3503 (linux_corefile_thread_callback): Increase args->num_notes.
3504 (linux_make_note_section): Initialize thread_args.num_notes, and
3505 use it to determine whether notes for any threads were created.
3506
35072002-08-23 Donn Terry <donnte@microsoft.com>
3508
3509 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3510 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3511 and PCUNKILL.
3512 (write_with_trace): Conditionalize out the switch branch handling
3513 PCSHOLD if the corresponding macro is not defined. Likewise for
3514 PRSABORT and PRSTOP.
3515 This change will be needed by the Interix port.
3516
35172002-08-22 Elena Zannoni <ezannoni@redhat.com>
3518
3519 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3520 write_register wherever possible instead of manipulating the
3521 register bytes directly.
3522 Assign VALUE_CONTENTS to a variable and use that.
3523 The GPR numbers are now dependent on the architecture.
3524
35252002-08-22 Elena Zannoni <ezannoni@redhat.com>
3526
3527 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3528 ev_offset fields.
3529 (skip_prologue): Add support for BookE/e500 instructions.
3530 (e500_extract_return_value): New function.
3531 (frame_get_saved_regs): Add support for saving ev registers and
3532 pseudo gpr's.
3533 (e500_store_return_value): New function.
3534 (rs6000_gdbarch_init): Move up default intializations of
3535 deprecated_extract_return_value and store_return_value. Overwrite
3536 init of store_return_value with e500 specific version.
3537 Set extract_return_value for e500.
3538
35392002-08-22 Elena Zannoni <ezannoni@redhat.com>
3540
3541 * blockframe.c (generic_call_dummy_register_unwind): Use
3542 regcache_cooked_read to catch cases in which the variable is
3543 stored in a pseudo register.
3544
35452002-08-22 Andrew Cagney <cagney@redhat.com>
3546
3547 * NEWS: Mention that the i960 has been made obsolete.
3548 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3549 i960-tdep.c
3550 (remote-nrom.o): Obsolete target.
3551 (remote-nindy.o, i960-tdep.o): Ditto.
3552 * remote-nrom.c: Make file obsolete.
3553 * remote-nindy.c, remote-vx960.c: Ditto.
3554 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3555 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3556 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3557 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3558 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3559 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3560 i960-*-vxworks* obsolete.
3561 * MAINTAINERS: Note that the i960 is obsolete.
3562
35632002-08-21 Corinna Vinschen <vinschen@redhat.com
3564
3565 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3566 detach to allow reinitialization.
3567
35682002-08-22 Andrew Cagney <ac131313@redhat.com>
3569
3570 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3571 attempt).
3572
35732002-08-22 Jim Blandy <jimb@redhat.com>
3574
3575 * coffread.c (coff_symfile_read): Don't try to read the line
3576 number table from disk if the image file doesn't have a symbol
3577 table; we'll never actually look at the info anyway, and Windows
3578 ships DLL's with bogus file offsets for the line number data.
3579
35802002-08-21 Elena Zannoni <ezannoni@redhat.com>
3581
3582 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3583 an e500 executable.
3584
35852002-08-21 Michael Snyder <msnyder@redhat.com>
3586
3587 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3588 (MSYMBOL_SIZE): Replace macro with function.
3589 (DEFAULT_MIPS_TYPE): Delete unused macro.
3590 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3591 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3592
35932002-08-21 Jim Blandy <jimb@redhat.com>
3594
3595 * valops.c (value_cast): Simplify and correct logic for doing a
3596 static cast from a pointer to a base class to a pointer to a
3597 derived class.
3598
35992002-08-21 Andrew Cagney <ac131313@redhat.com>
3600
3601 * infcmd.c (default_print_registers_info): Replace
3602 do_registers_info.
3603 (registers_info): Use gdbarch_print_registers_info instead of
3604 DO_REGISTERS_INFO.
3605 * inferior.h (default_print_registers_info): Replace
3606 do_registers_info.
3607 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3608 (DO_REGISTERS_INFO): Change to a predicate function.
3609 * gdbarch.h, gdbarch.c: Regenerate.
3610
36112002-08-21 Keith Seitz <keiths@redhat.com>
3612
3613 * gdb-events.sh: Add target-changed event.
3614 * gdb-events.c: Regenerated.
3615 * gdb-events.c: Regenerated.
3616 * valops.c (value_assign): Add target-changed event notification
3617 to inlval_register, lval_memory, and lval_reg_frame_relative.
3618
36192002-08-21 Joel Brobecker <brobecker@gnat.com>
3620
3621 * NEWS: Add an entry regarding the improvement of the next/step
3622 operation on Alpha Tru64 multi-processor machines.
3623
36242002-08-21 Andrew Cagney <ac131313@redhat.com>
3625
3626 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3627 directores.
3628 * Makefile.in: Update all _h macro definitions.
3629 * Makefile.in (install-gdbtk): Move to install section.
3630 (rdi-share/libangsd.a): Move to end of file.
3631
36322002-08-19 Andrew Cagney <ac131313@redhat.com>
3633
3634 * frame.c (frame_register_unwind): When a register, set addrp to
3635 the register's byte.
3636
36372002-08-20 Michael Snyder <msnyder@redhat.com>
3638
3639 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3640 used locally, so move them from the target machine header to here.
3641 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3642 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3643 Make static.
3644 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3645
36462002-08-20 Andrew Cagney <cagney@redhat.com>
3647
3648 * NEWS: Mention that the Apollo line was made obsolete.
3649 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3650 m68*-hp-hpux* obsolete.
3651 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3652 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3653 * buildsym.c (make_blockvector): Make static.
3654 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3655 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3656 (ALLDEPFILES): Remove dstread.c.
3657 (dstread.o): Obsolete make rule.
3658 * dstread.c: Makefile obsolete.
3659 * dst.h: Ditto.
3660 * config/m68k/hp300hpux.mt: Ditto.
3661 * config/m68k/hp300hpux.mh: Ditto.
3662 * config/m68k/hp300bsd.mt: Ditto.
3663 * config/m68k/hp300bsd.mh: Ditto.
3664 * config/m68k/apollo68b.mt: Ditto.
3665 * config/m68k/apollo68v.mh: Ditto.
3666 * config/m68k/apollo68b.mh: Ditto.
3667
36682002-08-20 Michael Snyder <msnyder@redhat.com>
3669
3670 * mips-tdep.c (mips_in_return_stub): Make static.
3671 (mips_gdbarch_init): Set in_solib_return_trampoline.
3672 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3673
36742002-08-20 Michael Snyder <msnyder@redhat.com>
3675
3676 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3677 * gdbarch.c, gdbarch.h: Regenerate.
3678 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3679 Add.
3680 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3681
36822002-08-20 Michael Snyder <msnyder@redhat.com>
3683
3684 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3685 (mips_gdbarch_init): Set skip_trampoline_code,
3686 in_solib_call_trampoline.
3687 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3688 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3689
36902002-08-20 Elena Zannoni <ezannoni@redhat.com>
3691
3692 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3693
3694 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3695 vector type for ev registers.
3696 (e500_pseudo_register_read): New function.
3697 (e500_pseudo_register_write): New function.
3698 (e500_dwarf2_reg_to_regnum): New function.
3699 (PPC_UISA_NOFP_SPRS): New macro.
3700 (PPC_EV_REGS): New macro.
3701 (PPC_GPRS_PSEUDO_REGS): New macro.
3702 (registers_e500): New register set for e500.
3703 (variants): Add e500 variant.
3704 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3705 before setting architectural dependent variations. Initialize ev
3706 registers numbers. Add case for e500 architecture. Set the
3707 number of pseudo registers.
3708
37092002-08-20 Elena Zannoni <ezannoni@redhat.com>
3710
3711 * rs6000-tdep.c: Clean up comments.
3712
37132002-08-20 Andrew Cagney <cagney@redhat.com>
3714
3715 * h8300-tdep.c: Re-indent file.
3716
37172002-08-20 Jim Blandy <jimb@redhat.com>
3718
3719 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3720 default for this.
3721
37222002-08-20 Keith Seitz <keiths@redhat.com>
3723
3724 * breakpoints.c (watch_command_1): Use internal breakpoint
3725 when setting a watchpoint_scope breakpoint.
3726
37272002-08-20 Elena Zannoni <ezannoni@redhat.com>
3728
3729 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3730 (build_builtin_type_vec64i): Ditto.
3731 (build_builtin_type_vec128): Ditto.
3732 (build_builtin_type_vec128i): Ditto.
3733
37342002-08-19 Michael Snyder <msnyder@redhat.com>
3735
3736 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3737 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3738 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3739 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3740 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3741 CALL_DUMMY_ADDRESS): Delete.
3742 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3743 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3744 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3745 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3746 push_return_address.
3747 (mips_register_raw_size, mips_eabi_use_struct_convention,
3748 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3749 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3750 mips_init_extra_frame_info, mips_eabi_push_arguments,
3751 mips_n32n64_push_arguments, mips_push_return_address,
3752 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3753 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3754
37552002-08-19 Michael Snyder <msnyder@redhat.com>
3756
3757 * mips-tdep.c (mips_frame_num_args): New function.
3758 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3759 frame_saved_pc, frame_args_address, frame_locals_address,
3760 frame_num_args, and frame_args_skip.
3761 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3762 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3763 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3764 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3765
37662002-08-20 Michael Snyder <msnyder@redhat.com>
3767
3768 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3769 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3770 * mips-tdep.c (mips_store_struct_return): New function.
3771 (mips_extract_struct_value_address): New function.
3772 (mips_gdbarch_init): Set store_struct_return and
3773 extract_struct_value_address.
3774
37752002-08-20 David Carlton <carlton@math.stanford.edu>
3776
3777 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3778 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3779 (read_file_scope): Check that line_header is nonzero before
3780 decoding macro information.
3781
37822002-08-20 Mark Kettenis <kettenis@gnu.org>
3783
3784 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3785 flag the general-purpose registers as floating-point on targets
3786 that don't support the floating-point registers.
3787
37882002-08-20 Elena Zannoni <ezannoni@redhat.com>
3789
3790 * rs6000-tdep.c (altivec_register_p): Delete.
3791 (rs6000_do_altivec_registers): Delete.
3792 (rs6000_altivec_registers_info): Delete.
3793 (rs6000_do_registers_info): Delete.
3794 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3795 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3796
37972002-08-20 Elena Zannoni <ezannoni@redhat.com>
3798
3799 * infcmd.c (do_registers_info): Print vector registers in hex
3800 format only.
3801 (print_vector_info): Check that printing registers
3802 makes sense.
3803 (print_float_info): Ditto.
3804
38052002-08-20 Andrew Cagney <ac131313@redhat.com>
3806
3807 * mips-tdep.c (mips_gdbarch_init): Update.
3808 (mips_o32_extract_return_value): Rewrite.
3809 (mips_o32_store_return_value): Rewrite.
3810 (mips_o32_xfer_return_value): New function.
3811 (mips_xfer_register): Tweak debug print message. Allow for
3812 buf_offset when dumping the value transfered.
3813
38142002-08-20 Andrew Cagney <ac131313@redhat.com>
3815
3816 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3817 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3818 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3819 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3820 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3821
38222002-08-14 Michael Snyder <msnyder@redhat.com>
3823
3824 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3825
38262002-08-19 Elena Zannoni <ezannoni@redhat.com>
3827
3828 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3829 register.
3830 (P): New macro to define a register as a pseudo register.
3831 (R, R4, R8, R16, FR32, R64, R0): Updated.
3832 (struct variant): Add new fields for number of pseudo registers
3833 and number of total registers.
3834 (tot_num_registers): New macro replacing....
3835 (num_registers): ...deleted macro.
3836 (num_registers): New function.
3837 (num_pseudo_registers): New function.
3838 (variants): Update all variants to intialize new fields correctly.
3839 Postpone initialization of number of pseudo regs and real regs.
3840 (init_variants): New function.
3841 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3842 registers offsets.
3843
38442002-08-19 David Carlton <carlton@math.stanford.edu>
3845
3846 * valops.c (search_struct_field): Change error message to treat
3847 return value of 0 from value_static_field as meaning that field is
3848 optimized out.
3849 (value_struct_elt_for_reference): Ditto.
3850 * values.c (value_static_field): Treat an unresolved location the
3851 same as a nonexistent symbol. Fix PR gdb/635.
3852 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3853 enclosed. Fix PR gdb/574.
3854 * MAINTAINERS: Add self to Write After Approval list.
3855
38562002-08-19 Andrew Cagney <ac131313@redhat.com>
3857
3858 * mips-tdep.c (mips_xfer_register): New function.
3859 (mips_n32n64_extract_return_value): Rewrite.
3860 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3861 instead of deprecated_extract_return_value.
3862
38632002-08-19 Elena Zannoni <ezannoni@redhat.com>
3864
3865 * rs6000-tdep.c (TDEP): Delete macro.
3866 (branch_dest): Replace use of TDEP macro with its body.
3867 (rs6000_pop_frame): Ditto.
3868 (rs6000_push_arguments): Ditto.
3869 (rs6000_skip_trampoline_code): Ditto.
3870 (rs6000_frame_saved_pc): Ditto.
3871 (rs6000_frame_chain): Ditto.
3872 (rs6000_register_name): Ditto.
3873 (rs6000_register_byte): Ditto.
3874 (rs6000_register_raw_size): Ditto.
3875 (rs6000_register_virtual_type): Ditto.
3876 (rs6000_register_convertible): Ditto.
3877 (rs6000_convert_from_func_ptr_addr): Ditto.
3878
38792002-08-19 Daniel Jacobowitz <drow@mvista.com>
3880
3881 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3882 conditionally.
3883 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3884 MIPS_LINUX_JB_ELEMENT_SIZE.
3885 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3886 for MAX_REGISTER_RAW_SIZE arrays.
3887 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3888 MIPS_LINUX_JB_ELEMENT_SIZE.
3889
38902002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3891
3892 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3893
38942002-08-19 Aidan Skinner <aidan@velvet.net>
3895
3896 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3897 ada-valprint.c ada-tasks.c.
3898 (YYFILES): Add ada-exp.y.
3899 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3900 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3901 (ada-exp.tab.o): New target.
3902
39032002-08-18 Andrew Cagney <ac131313@redhat.com>
3904
3905 * regcache.c (regcache_xfer_part): New function.
3906 (regcache_raw_read_part): New function.
3907 (regcache_raw_write_part): New function.
3908 (regcache_cooked_read_part): New function.
3909 (regcache_cooked_write_part): New function.
3910 * regcache.h (regcache_raw_read_part): Declare.
3911 (regcache_raw_write_part): Declare.
3912 (regcache_cooked_read_part): Declare.
3913 (regcache_cooked_write_part): Declare.
3914
39152002-08-18 Daniel Jacobowitz <drow@mvista.com>
3916
3917 * remote.c (remote_open_1): Add async_p.
3918 (remote_async_open_1): Delete.
3919 (open_remote_target): Delete.
3920 (remote_open, extended_remote_open): Update calls to remote_open_1.
3921 (remote_async_open, extended_remote_async_open): Call
3922 remote_open_1 instead of remote_async_open_1.
3923
39242002-08-19 Mark Kettenis <kettenis@gnu.org>
3925
3926 * blockframe.c: Fix a few coding standard violations.
3927
39282002-08-19 Mark Kettenis <kettenis@gnu.org>
3929
3930 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3931 here from ...
3932 * config/i386/tm-i386sco5.h: ... here. File removed.
3933 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3934
3935 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
3936 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3937 (TM_FILE): Set to tm-i386.h.
3938 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3939 * config/i386/tm-i386v.h: Remove file.
3940 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3941 instead of "i386/tm-i386v.h".
3942 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3943 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3944 "i386/tm-i386v.h".
3945 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3946 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3947 "i386/tm-i386.h".
3948
39492002-08-18 Mark Kettenis <kettenis@gnu.org>
3950
3951 * config/i386/nm-i386v.h: Add protection against
3952 multiple-inclusion.
3953 (i386_register_u_addr): Remove prototype.
3954 (register_u_addr): New prototype.
3955 (REGISTER_U_ADDR): Redefine accordingly.
3956 * i386v-nat.c: Improve several comments.
3957 (i386_register_u_addr): Change signature and rename to
3958 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3959 ubase variable.
3960
39612002-08-18 Andrew Cagney <ac131313@redhat.com>
3962
3963 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3964 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3965 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3966 deprecated_extract_return_value.
3967 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3968 rename mips_o32o64_push_arguments.
3969 (mips_gdbarch_init): Update.
3970 (mips_extract_return_value): Delete.
3971 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3972 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3973 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3974 (mips_n32n64_extract_return_value): Clone
3975 mips_extract_return_value.
3976 (mips_store_return_value): Delete.
3977 (mips_o32_store_return_value): Clone mips_store_return_value.
3978 (mips_o64_store_return_value): Clone mips_store_return_value.
3979 (mips_eabi_store_return_value): Clone mips_store_return_value.
3980 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3981
39822002-08-18 Aidan Skinner <aidan@velvet.net>
3983
3984 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3985 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3986
39872002-08-18 Aidan Skinner <aidan@velvet.net>
3988
3989 * ada-lang.c: Run through gdb_indent.sh.
3990 * ada-lang.h: Run through gdb_indent.sh.
3991 * ada-tasks.c: Run through gdb_indent.sh.
3992 * ada-typeprint.c: Run through gdb_indent.sh.
3993 * ada-valprint.c: Run through gdb_indent.sh.
3994
39952002-08-18 Andrew Cagney <ac131313@redhat.com>
3996
3997 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3998 ABI.
3999
40002002-08-18 Mark Kettenis <kettenis@gnu.org>
4001
4002 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4003
4004 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4005 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4006
4007 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4008 write_register_gen instead of write_register_bytes.
4009
4010 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4011 i[3456]-*-osf1mk* configurations have been made obsolete.
4012 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4013 i[3456]86-*-osf1mk* hosts obsolete.
4014 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4015 targets obsolete.
4016 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4017 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4018 config/i386/i386m3.mt, config/i386/nm-m3.h,
4019 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4020 config/i386/i386mk.mh, config/i386/i386mk.mt,
4021 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4022 obsolete.
4023 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4024 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4025 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4026
40272002-08-18 Andrew Cagney <ac131313@redhat.com>
4028
4029 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4030 (hppa_value_returned_from_stack): Declare.
4031 (hppa_extract_return_value): Declare.
4032 * config/pa/hppa.mt: New file.
4033 * configure.tgt: Recognize hppa*-*-*.
4034 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4035
40362002-08-18 Mark Kettenis <kettenis@gnu.org>
4037
4038 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4039 comment.
4040
40412002-08-17 Mark Kettenis <kettenis@gnu.org>
4042
4043 * top.c (gdb_rl_operate_and_get_next): Make sure
4044 operate-and-get-next functions correctly even when the history
4045 list is completely filled.
4046
40472002-08-18 Andrew Cagney <ac131313@redhat.com>
4048
4049 * MAINTAINERS (Target Instruction Set Architectures): Rename
4050 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4051 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4052 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4053 already listed under Host/Native.
4054
4055 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4056 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4057 mips*-*-*.
4058
40592002-08-17 Andrew Cagney <ac131313@redhat.com>
4060
4061 * config/ia64/ia64.mt: New file.
4062 * config/alpha/alpha.mt: New file.
4063 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4064 ia64-linux-gnu. Mention that ia64-elf is broken.
4065 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4066
40672002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4068
4069 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4070 generic_func_frame_valid instead of func_frame_valid.
4071
40722002-08-16 Joel Brobecker <brobecker@gnat.com>
4073
4074 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4075 procfs appears to be broken when debugging on multi-processor
4076 machines. So enable software single stepping in order to avoid
4077 using the procfs interface to do next/step operations, using
4078 internal breakpoints instead.
4079
4080 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4081 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4082 make this pc address equal to the value it would have if the
4083 system stepping capability was used. Also set a new flag used
4084 to ensure that we don't readjust the PC one more time later.
4085
4086 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4087 address by DECR_PC_AFTER_BREAK when software single step is
4088 in use for this architecture, as this has already been taken
4089 care of in handle_inferior_event().
4090
40912002-08-16 Joel Brobecker <brobecker@gnat.com>
4092
4093 * infrun.c (handle_inferior_event): Minor reformatting, to make
4094 a rather long condition expression easier to read.
4095
40962002-08-16 Andrew Cagney <ac131313@redhat.com>
4097
4098 * Makefile.in (gdbtk.o): Move to end of file.
4099 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4100 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4101 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4102 (gdbtk-wrapper.o, gdbres.o): Ditto.
4103
41042002-08-16 Andrew Cagney <ac131313@redhat.com>
4105
4106 * Makefile.in (copying.o): Separate out compile rule.
4107 (hpux-thread.o, procfs.o, signals.o): Ditto.
4108 (v850ice.o, z8k-tdep.o): Ditto.
4109 (tui-file.o): Move to TUI section.
4110 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4111 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4112
41132002-08-16 Joel Brobecker <brobecker@gnat.com>
4114
4115 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4116 skip_trampoline_code, for better namespace-proofing.
4117
4118 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4119
41202002-08-16 Joel Brobecker <brobecker@gnat.com>
4121
4122 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4123
41242002-08-16 Joel Brobecker <brobecker@gnat.com>
4125
4126 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4127 signal, check whether we hit a breakpoint before checking for a
4128 single step breakpoint. Otherwise, GDB fails to notice that a
4129 breakpoint has been hit when stepping onto a breakpoint.
4130
41312002-08-16 Keith Seitz <keiths@redhat.com>
4132
4133 * gdb-events.sh (clear_gdb_event_hooks): New function.
4134 * gdb-events.c: Regenerate.
4135 * gdb-events.h: Regenerate.
4136
41372002-08-16 Andrew Cagney <ac131313@redhat.com>
4138
4139 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4140 not_a_sw_breakpoint.
4141 * breakpoint.h (bpstat_stop_status): Add parameter names.
4142
41432002-08-16 Grace Sainsbury <graces@redhat.com>
4144
4145 * remote.c (remote_insert_hw_breakpoint)
4146 (remote_remove_hw_breakpoint): Fix calculation of length field
4147 for Z-packet.
4148
41492002-08-15 Michael Snyder <msnyder@redhat.com>
4150
4151 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4152 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4153 (supply_fpregset): Ditto.
4154
4155 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4156 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4157 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4158 (TARGET_READ_SP): Delete.
4159 (DO_REGISTERS_INFO): Delete.
4160 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4161 Delete.
4162 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4163 from macros to functions.
4164
4165 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4166 (mips_register_convertible, mips_register_convert_to_virtual,
4167 mips_register_convert_to_raw): Make static.
4168 (mips_read_sp): New function.
4169 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4170 (mips_do_registers_info): Make static.
4171 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4172 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4173 (mips_register_convert_from_type, mips_register_convert_to_type):
4174 New functions.
4175 (mips_gdbarch_init): Set up function_start_offset,
4176 register_virtual_size, pc_in_sigtramp.
4177
41782002-08-15 Andrew Cagney <ac131313@redhat.com>
4179
4180 * infcmd.c (vector_info): New function.
4181 (_initialize_infcmd): Add command "info vector".
4182 (print_vector_info): New function.
4183
4184 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4185 * gdbarch.h, gdbarch.c: Regenerate.
4186
41872002-08-15 Andrew Cagney <ac131313@redhat.com>
4188
4189 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4190 ``print_all''. Only print vector registers when ``print_all''.
4191
41922002-08-15 Andrew Cagney <ac131313@redhat.com>
4193
4194 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4195 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4196
4197 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4198 Add `args' parameter.
4199 * gdbarch.h, gdbarch.c: Regenerate.
4200
4201 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4202
4203 * infcmd.c (float_info): Call print_float_info.
4204 (print_float_info): New function. By default, print the
4205 floating-point registers.
4206
4207 * arch-utils.h (default_print_float_info): Delete declaration.
4208 * arch-utils.c (default_print_float_info): Delete function.
4209
42102002-08-16 Mark Kettenis <kettenis@gnu.org>
4211
4212 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4213 out define.
4214
4215 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4216 FRAME.
4217
4218 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4219 * configure.host: Make i[3456]86-*-aix host obsolete.
4220 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4221 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4222 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4223 config/i386/xm-i386aix.h: Make files obsolete.
4224 * i386aix-nat.c: Make file obsolete.
4225 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4226 (i386aix-nat.o): Make target obsolete.
4227
4228 * config/i386/nm-gnu.h: Removed.
4229 * config/i386/nm-i386gnu.h: New file.
4230 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4231 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4232 Moved here from ...
4233 * config/i386/tm-i386gnu.h: ... here. Removed.
4234 * config/i386/xm-i386gnu.h: Removed.
4235 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4236 (NAT_FILE): Set to nm-i386gnu.h.
4237 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4238 * i386-tdep.c: New file.
4239 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4240 (i386gnu-tdep.o): Specify dependencies.
4241
42422002-08-15 Mark Kettenis <kettenis@gnu.org>
4243
4244 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4245 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4246 Adjust a few comments to reflect reality a bit closer.
4247 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4248 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4249 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4250 target_insert_watchpoint, target_remove_watchpoint):
4251 Move defines to ...
4252 * config/i386/nm-i386sco5.h: ... here.
4253 (kernel_u_size): Add prototype. Improve a few comments and add
4254 protection against multiple inclusion.
4255
4256 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4257 out define.
4258
4259 * uw-thread.c (SP_ARG0): Define if not already defined.
4260 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4261
4262 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4263
4264 * config/i386/tm-i386.h: Don't include "regcache.h".
4265
4266 * i387-tdep.h (i387_print_float_info): New prototype.
4267 * i387-tdep.c (print_i387_value, print_i387_ext,
4268 print_i387_status_word, print_i387_control_word): Add `struct
4269 ui_file *' argument and use it for output.
4270 (i387_print_float_info): Renamed from i387_float_info. Add
4271 `struct gdbarch *' and `struct ui_file *' arguments and use the
4272 latter for output.
4273 * i386-tdep.c: Include "i387-tdep.h".
4274 (i386_gdbarch_init): Set print_float_info.
4275 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4276 (FLOAT_INFO): Remove define.
4277
42782002-08-13 Michael Snyder <msnyder@redhat.com>
4279
4280 * mips-tdep.c (mips_push_arguments): Rename to
4281 mips_eabi_push_arguments, and tune for EABI.
4282 (MIPS_REGS_HAVE_HOME_P): Delete.
4283 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4284 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4285 Delete references to mips_regs_have_home_p.
4286
42872002-08-14 Keith Seitz <keiths@redhat.com>
4288
4289 * Makefile.in (install-gdbtk): Create insight plugin directory.
4290 Install plugins.tcl file.
4291
42922002-08-14 Keith Seitz <keiths@redhat.com>
4293
4294 * configure.in: Move SUBDIRS to near top of the file so that
4295 --enable options may add things to it.
4296 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4297 * configure: Regenerate.
4298
42992002-08-13 Michael Snyder <msnyder@redhat.com>
4300
4301 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4302 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4303 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4304
43052002-08-13 Andrew Cagney <ac131313@redhat.com>
4306
4307 * vax-tdep.c (vax_get_saved_register): Delete function.
4308 (vax_gdbarch_init): Update.
4309 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4310 (ns32k_gdbarch_init): Update.
4311 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4312 (alpha_gdbarch_init): Update.
4313
43142002-08-13 Andrew Cagney <cagney@redhat.com>
4315
4316 * regcache.c (init_regcache_descr): Overallocate the
4317 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4318 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4319 nr_raw_registers.
4320 (set_register_cached): Add range checking assertions. Use
4321 current_regcache.
4322
43232002-08-13 Mark Kettenis <kettenis@gnu.org>
4324
4325 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4326 numbers for MMX registers.
4327
43282002-08-13 Andrew Cagney <cagney@redhat.com>
4329
4330 * i386-tdep.c (i386_gdbarch_init): Use
4331 generic_unwind_get_saved_register.
4332
43332002-08-13 Kevin Buettner <kevinb@redhat.com>
4334
4335 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4336 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4337 target vector.
4338 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4339 Delete. Add comment regarding this now-deleted target method.
4340
43412002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4342
4343 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4344 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4345 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4346 real PC and the page number (if it's within the memory bank window).
4347 (m68hc11_pseudo_register_write): Likewise when saving.
4348 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4349 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4350 (m68hc11_register_raw_size): And use 32-bit for it.
4351 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4352 16K memory bank is used by the prog; also use the virtual pc.
4353
43542002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4355
4356 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4357 (m68hc11_gdbarch_init): Install it in gdbarch.
4358 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4359 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4360 (MSYMBOL_SIZE): New for documentation.
4361 (insn_return_kind): Enum to specify how a function returns.
4362 (frame_extra_info): Cleanup and record the return mode.
4363 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4364 register in address computation.
4365 (m68hc11_get_return_insn): New to obtain the return instruction used
4366 by the function.
4367 (m68hc11_frame_init_saved_regs): Take into account the return
4368 instruction used by the function for far and interrupt functions.
4369 (m68hc11_init_extra_frame_info): Take into account page register.
4370 (m68hc11_frame_args_address): Adjust according to the return mode.
4371 (show_regs): Print page register only when it's used.
4372
43732002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4374
4375 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4376 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4377 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4378 registers.
4379 (m68hc11_register_raw_size): Likewise.
4380
43812002-08-13 Andrew Cagney <cagney@redhat.com>
4382
4383 * i386-tdep.c (i386_register_name): Handle mmx registers.
4384 (mmx_regnum_p): New function.
4385 (i386_mmx_names): New array.
4386 (mmx_num_regs): New variable.
4387 (i386_pseudo_register_read): New function.
4388 (i386_pseudo_register_write): New function.
4389 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4390
4391 * regcache.c (regcache_raw_read_unsigned): New function.
4392 (regcache_raw_read_signed): New function.
4393 * regcache.h (regcache_raw_read_unsigned): Declare.
4394 (regcache_raw_read_signed): Declare.
4395
43962002-08-13 Andrew Cagney <cagney@redhat.com>
4397
4398 * regcache.c (regcache_raw_read_as_address): Delete function.
4399 (regcache_cooked_read_signed): New function.
4400 (regcache_cooked_read_unsigned): New function.
4401 * regcache.h (regcache_cooked_read_signed): Declare.
4402 (regcache_cooked_read_unsigned): Declare.
4403 (regcache_raw_read_as_address): Delete declaration.
4404
4405 * blockframe.c (generic_read_register_dummy): Use
4406 regcache_cooked_read_unsigned.
4407 * i386-tdep.c (i386_extract_struct_value_address): Use
4408 regcache_cooked_read_unsigned.
4409
44102002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4411
4412 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4413 double sizes according to ELF ABI flags.
4414 (gdbarch_tdep): Record elf_flags.
4415
44162002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4417
4418 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4419 (m6812_prolog): They can appear in 68HC12 function prologue.
4420 (m68hc11_frame_chain): Cleanup.
4421
44222002-08-12 Andrew Cagney <cagney@redhat.com>
4423
4424 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4425 declarations.
4426 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4427 (i386_linux_register_raw_size): Delete function.
4428 (i386_linux_init_abi): Update.
4429 * i386-tdep.c (i386_register_raw_size): Delete function.
4430 (i386_register_byte): Delete function.
4431 (i386_gdbarch_init): Update.
4432 (i386_register_size): Delete array.
4433 (i386_register_offset): Delete array.
4434
4435 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4436 (REGISTER_RAW_SIZE): Delete macro.
4437 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4438 (REGISTER_BYTE): Delete macro.
4439
44402002-08-11 Aidan Skinner <aidan@velvet.net>
4441
4442 * ada-lang.c (ada_lookup_partial_symbol)
4443 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4444 prototype names so that grep ^func works properly.
4445
4446 * ada-lang.c (ada_array_element_type)
4447 (ada_lookup_partial_symbol): Fix typos in parameter list.
4448
4449 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4450 Fix prototype names so that grep ^func works properly.
4451
44522002-08-10 Andrew Cagney <cagney@redhat.com>
4453 Elena Zannoni <ezannoni@redhat.com>
4454 Martin M. Hunt <hunt@redhat.com>
4455
4456 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4457 (build_builtin_type_vec128i): Set the vector bit.
4458 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4459 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4460 (build_builtin_type_vec64): New function.
4461 (build_builtin_type_vec64i): New function.
4462 (build_gdbtypes): Initialize builtin_type_vec64 and
4463 builtin_type_vec64i.
4464
44652002-08-09 Andrew Cagney <cagney@redhat.com>
4466
4467 * regcache.c (regcache_dump): Compare the register offset
4468 with REGISTER_BYTE.
4469 * arch-utils.c (generic_register_byte): New function.
4470 * arch-utils.h (generic_register_byte): Declare.
4471 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4472 * gdbarch.h, gdbarch.c: Regenerate.
4473
44742002-08-09 Andrew Cagney <cagney@redhat.com>
4475
4476 * regcache.c: Include "gdbcmd.h"
4477 (_initialize_regcache): Add commands "maintenance print
4478 registers", "maintenance print raw-registers" and "maintenance
4479 print cooked-registers".
4480 (enum regcache_dump_what): Define.
4481 (dump_endian_bytes): New function.
4482 (regcache_dump): New function.
4483 (regcache_print): New function.
4484 (maintenance_print_registers): New function.
4485 (maintenance_print_raw_registers): New function.
4486 (maintenance_print_cooked_registers): New function.
4487 * Makefile.in (regcache.o): Update dependencies.
4488
44892002-08-09 Michael Snyder <msnyder@redhat.com>
4490
4491 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4492 (mips_push_arguments): Correct some comments. Use paddr_nz
4493 for printing addresses in debug output. Replace static
4494 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4495 (mips_n32n64_push_arguments): New function, cloned from
4496 mips_push_arguments and tuned for the n32/n64 ABI.
4497 (mips_push_register): Buffer needs dynamic allocation.
4498 (mips_print_register): Ditto.
4499 (do_gp_register_row): Ditto.
4500 (mips_store_return_value): Ditto.
4501 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4502
45032002-08-09 Don Howard <dhoward@redhat.com>
4504
4505 * memattr.c (mem_info_command): Print special case of upper bound
4506 as max CORE_ADDR + 1.
4507
45082002-08-08 Michael Snyder <msnyder@redhat.com>
4509
4510 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4511 returns structs by ref if they're too big to fit in two registers.
4512
45132002-08-09 Kevin Buettner <kevinb@redhat.com>
4514
4515 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4516 saved regs value.
4517 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4518 mips_find_saved_regs().
4519 (mips_pop_frame): Likewise.
4520
45212002-08-09 Kevin Buettner <kevinb@redhat.com>
4522
4523 * blockframe.c (frame_saved_regs_register_unwind): Revise
4524 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4525 frames are in use.
4526
45272002-08-09 Grace Sainsbury <graces@redhat.com>
4528
4529 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4530 T-packets; the 'a' is not taken as a register number.
4531 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4532 (remote_stopped_data_address): New functions; add to target
4533 vector.
4534 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4535 prototypes to match other implementations of this
4536 function. replace integer argument with pointer -- the length
4537 field in the Z-packet is the length of what is pointed to or 1 if
4538 pointer is null. Add to target vector.
4539 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4540 target vector.
4541
4542 From Mark Salter:
4543 * remote.c (remote_wait): Add support to extract optional
4544 watchpoint information from T-packet. Ignore unrecognized
4545 optional info in T-packet.
4546 (remote_async_wait): Ditto.
4547
45482002-08-09 Corinna Vinschen <vinschen@redhat.com>
4549
4550 * cli/cli-dump.c: Change fopen modes to use binary open modes
4551 as defined in include/fopen-bin.h throughout.
4552
45532002-08-08 Michael Snyder <msnyder@redhat.com>
4554
4555 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4556
45572002-08-08 Kevin Buettner <kevinb@redhat.com>
4558
4559 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4560 assertion failure by returning early after a warning.
4561
45622002-08-08 Kevin Buettner <kevinb@redhat.com>
4563
4564 * mips-tdep.c (mips_find_saved_regs): Make static.
4565 (mips_frame_init_saved_regs): New function.
4566 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4567 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4568 (mips_find_saved_regs): Delete declaration.
4569
45702002-08-08 Grace Sainsbury <graces@redhat.com>
4571
4572 * remote.c (remote_wait, remote_async_wait): Change
4573 thread_num from int to ULONGEST.
4574 (unpack_varlen_hex): Change result parameter from
4575 int * to ULONGEST *.
4576
45772002-08-08 Andrew Cagney <ac131313@redhat.com>
4578
4579 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4580 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4581 powerpc*-*-*.
4582 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4583
45842002-08-08 Andrew Cagney <cagney@redhat.com>
4585
4586 * gcore.c (override_derive_stack_segment): Delete variable.
4587 (preempt_derive_stack_segment): Delete function.
4588 (derive_stack_segment): Delete function.
4589 (default_derive_stack_segment): Renamed to derive_stack_segment.
4590 (override_derive_heap_segment): Delete variable.
4591 (preempt_derive_heap_segment): Delete function.
4592 (derive_heap_segment): Delete function.
4593 (default_derive_heap_segment): Rename to derive_heap_segment.
4594
45952002-08-06 Michael Snyder <msnyder@redhat.com>
4596
4597 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4598 * mips-tdep.c (mips_EABI_use_struct_convention,
4599 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4600 New functions. (mips_use_struct_convention): Delete.
4601 (mips_gdbarch_init): set use_gdbarch_convention.
4602
46032002-08-06 Michael Snyder <msnyder@redhat.com>
4604
4605 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4606 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4607 mips_o32_reg_struct_has_addr): New functions.
4608 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4609
46102002-08-07 Andrew Cagney <ac131313@redhat.com>
4611
4612 * regcache.c (pseudo_register): Delete function.
4613 (fetch_register): Delete function.
4614 (store_register): Delete function.
4615 (regcache_raw_read, legacy_read_register_gen): Use
4616 target_fetch_registers instead of fetch_register.
4617 (legacy_write_register_gen, regcache_raw_write): Use
4618 target_store_register instead of store_register.
4619 (write_register_bytes): Ditto.
4620
4621 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4622 (STORE_PSEUDO_REGISTER): Delete.
4623 * gdbarch.h, gdbarch.c: Regenerate.
4624
46252002-08-06 Corinna Vinschen <vinschen@redhat.com>
4626
4627 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4628 write dump file binary.
4629
46302002-08-05 Michael Snyder <msnyder@redhat.com>
4631
4632 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4633 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4634 (mips_gdbarch_init): Set N32 target to be mips64.
4635
46362002-08-06 Kevin Buettner <kevinb@redhat.com>
4637
4638 * frame.c (find_saved_register): Break out of loop once saved
4639 register address is found. Don't mention sparc in loop comment
4640 anymore.
4641
46422002-08-06 Kevin Buettner <kevinb@redhat.com>
4643
4644 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4645 mips_default_saved_regsize to 8.
4646
46472002-08-06 Andrew Cagney <ac131313@redhat.com>
4648
4649 * gcore.c: Do not include <sys/procfs.h>.
4650 * Makefile.in (gcore.o): Update dependencies.
4651
46522002-08-06 Andrew Cagney <cagney@redhat.com>
4653
4654 * configure.tgt: Make arc-*-* obsolete.
4655 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4656 * MAINTAINERS: Make arc-elf obsolete.
4657 * arc-tdep.c: Make file obsolete.
4658 * config/arc/arc.mt: Ditto.
4659 * config/arc/tm-arc.h: Ditto.
4660
46612002-08-05 Theodore A. Roth <troth@verinet.com>
4662
4663 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4664
46652002-08-05 Andrew Cagney <ac131313@redhat.com>
4666
4667 * mcore-tdep.c (mcore_gdbarch_init): Use
4668 generic_unwind_get_saved_register instead of
4669 generic_get_saved_register.
4670 * v850-tdep.c (v850_gdbarch_init): Ditto.
4671 * frv-tdep.c (frv_gdbarch_init): Ditto.
4672 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4673 * s390-tdep.c (s390_gdbarch_init): Ditto.
4674 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4675 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4676 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4677
46782002-08-05 Joel Brobecker <brobecker@gnat.com>
4679
4680 * objfiles.h: Add missing #include "symfile.h"
4681
4682 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4683
46842002-08-04 Andrew Cagney <ac131313@redhat.com>
4685
4686 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4687 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4688 of FIELD_BITSIZE.
4689
46902002-08-04 Daniel Jacobowitz <drow@mvista.com>
4691
4692 * NEWS: Cleanup and nitpick.
4693
46942002-08-03 Andrew Cagney <ac131313@redhat.com>
4695
4696 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4697
46982002-08-03 Andrew Cagney <ac131313@redhat.com>
4699
4700 * Makefile.in (gdbtk-bp.o): Update dependencies.
4701 (gdbtk-register.o): Ditto.
4702 (gdbtk-varobj.o): Ditto.
4703
47042002-08-03 Andrew Cagney <cagney@redhat.com>
4705
4706 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4707 m68hc11_fetch_pseudo_register.
4708 (m68hc11_pseudo_register_write): Replace
4709 m68hc11_store_pseudo_register.
4710 (m68hc11_gdbarch_init): Update.
4711
4712Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4713
4714 * gdbarch.sh: Include "gdb_string.h".
4715 * gdbarch.c: Regenerate.
4716
4717 * regcache.c: Include "gdb_string.h".
4718 * ax-general.c: Ditto.
4719 * varobj.c: Ditto.
4720 * std-regs.c: Ditto.
4721 * fbsd-proc.c: Ditto.
4722 * thread.c: Ditto.
4723
4724 * Makefile.in (regcache.o): Update dependencies.
4725 (thread.o, gdbarch.o): Ditto.
4726 (ax-general.o, gdbarch.o): Ditto.
4727 (varobj.o, std-regs.o): Ditto.
4728 (fbsd-proc.o): Specify dependencies.
4729
47302002-08-02 Andrew Cagney <cagney@redhat.com>
4731
4732 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4733 regnum.
4734 (regcache_cooked_write): Ditto.
4735
47362002-08-02 Andrew Cagney <ac131313@redhat.com>
4737
4738 * regcache.c (regcache_cooked_read): New function.
4739 (regcache_cooked_write): New function.
4740 (read_register_gen): Rewrite using regcache_cooked_read.
4741 (write_register_gen): Rewrite using regcache_cooked_write.
4742
4743 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4744 Declare.
4745
47462002-08-02 Andrew Cagney <cagney@redhat.com>
4747
4748 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4749 Replace the architecture methods register_read and register_write.
4750 * gdbarch.h, gdbarch.c: Regenerate.
4751 * regcache.c (init_regcache_descr): Update.
4752 (read_register_gen): Update.
4753 (write_register_gen): Update.
4754 (supply_register): Update comment.
4755
4756 * sh-tdep.c (sh_gdbarch_init): Update.
4757 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4758 `regcache' and `gdbarch' parameters. Make `buffer' a void
4759 pointer. Update code.
4760 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4761 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4762 void pointer. Update code.
4763 (sh64_register_write): Delete.
4764 (sh4_register_read): Delete.
4765 (sh64_register_read): Delete.
4766 (sh4_register_write): Delete.
4767 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4768 void pointer, `to' parameter a void pointer.
4769 (sh_sh64_register_convert_to_raw): Ditto.
4770
47712002-08-01 Kevin Buettner <kevinb@redhat.com>
4772
4773 * mips-tdep.c (mips_register_virtual_type): Use architecture
4774 invariant return values.
4775
47762002-08-01 Andrew Cagney <cagney@redhat.com>
4777
4778 * linux-proc.c: Include "gdb_string.h".
4779 * Makefile.in (linux-proc.o): Update dependency list.
4780
47812002-08-01 Kevin Buettner <kevinb@redhat.com>
4782
4783 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4784 comment.
4785
47862002-08-01 Grace Sainsbury <graces@redhat.com>
4787
4788 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4789 to_insert_watchpoint, to_remove_watchpoint,
4790 to_stopped_by_watchpoint, to_stopped_data_address,
4791 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4792 target vecctor. Define their corresponding macros so they call
4793 them.
4794
4795 * target.c: Add default and debug versions of for
4796 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4797 to_insert_watchpoint, to_remove_watchpoint,
4798 to_stopped_by_watchpoint, to_stopped_data_address,
4799 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4800
48012002-08-01 Kevin Buettner <kevinb@redhat.com>
4802
4803 * mips-tdep.c (mips_register_virtual_type): New function.
4804 (mips_gdbarch_init): Register mips_register_virtual_type()
4805 with gdbarch machinery.
4806 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4807 this file instead of tm-bigmips.h.
4808 (MIPS_REGSIZE): Delete this macro.
4809 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4810 multiarch version in mips-tdep.c will be found.
4811
48122002-08-01 Andrew Cagney <cagney@redhat.com>
4813
4814 * NEWS: Menion that CHILL has been made obsolete.
4815
4816 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4817 * stabsread.c (read_range_type): Ditto.
4818 * gdbtypes.h: Ditto.
4819 * language.c (binop_type_check): Ditto.
4820 (binop_result_type): Ditto.
4821 (integral_type): Ditto.
4822 (character_type): Ditto.
4823 (string_type): Ditto.
4824 (boolean_type): Ditto.
4825 (structured_type): Ditto.
4826 (lang_bool_type): Ditto.
4827 (binop_type_check): Ditto.
4828 * language.h (_LANG_chill): Ditto.
4829 * dwarfread.c (set_cu_language): Ditto.
4830 * dwarfread.c (CHILL_PRODUCER): Ditto.
4831 * dwarfread.c (handle_producer): Ditto.
4832 * expression.h (enum exp_opcode): Ditto.
4833 * eval.c: Ditto for comments.
4834 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4835 * expprint.c (print_subexp): Ditto.
4836 (print_subexp): Ditto.
4837 * valops.c (value_cast): Ditto.
4838 (search_struct_field): Ditto.
4839 * value.h (COERCE_VARYING_ARRAY): Ditto.
4840 * symfile.c (init_filename_language_table): Ditto.
4841 (add_psymbol_with_dem_name_to_list): Ditto.
4842 * valarith.c (value_binop): Ditto.
4843 (value_neg): Ditto.
4844 * valops.c (value_slice): Ditto.
4845 * symtab.h (union language_specific): Ditto.
4846 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4847 (SYMBOL_DEMANGLED_NAME): Ditto.
4848 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4849 * defs.h (enum language): Ditto.
4850 * symtab.c (got_symtab): Ditto.
4851 * utils.c (fprintf_symbol_filtered): Ditto.
4852
4853 * ch-typeprint.c: Make file obsolete.
4854 * ch-valprint.c: Make file obsolete.
4855 * ch-lang.h: Make file obsolete.
4856 * ch-exp.c: Make file obsolete.
4857 * ch-lang.c: Make file obsolete.
4858
4859 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4860 CHILL_LIB.
4861 (TARGET_FLAGS_TO_PASS): Ditto.
4862 (CHILLFLAGS): Obsolete.
4863 (CHILL): Obsolete.
4864 (CHILL_FOR_TARGET): Obsolete.
4865 (CHILL_LIB): Obsolete.
4866 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4867 ch-valprint.c.
4868 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4869 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4870 ch-lang.o.
4871 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4872 targets.
4873
48742002-07-31 Joel Brobecker <brobecker@gnat.com>
4875
4876 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4877 This does not change anything at the moment, but will be helpful
4878 later when full Ada support is integrated.
4879
48802002-07-31 Kevin Buettner <kevinb@redhat.com>
4881
4882 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4883 help message.
4884
48852002-07-31 Kevin Buettner <kevinb@redhat.com>
4886
4887 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4888 and save it in a local variable. Use variable in later test.
4889
48902002-07-31 Kevin Buettner <kevinb@redhat.com>
4891
4892 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4893 test. (Thanks to Daniel Jacobowitz.)
4894
48952002-07-31 Kevin Buettner <kevinb@redhat.com>
4896
4897 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4898 (mips_abi_strings): Add "n64".
4899 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4900
49012002-07-31 Kevin Buettner <kevinb@redhat.com>
4902
4903 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4904 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4905
49062002-07-31 Kevin Buettner <kevinb@redhat.com>
4907
4908 * utils.c (host_pointer_to_address, address_to_host_pointer):
4909 Use gdb_assert() instead of explicit call to internal_error().
4910
49112002-07-30 Kevin Buettner <kevinb@redhat.com>
4912
4913 * Makefile.in (rs6000-nat.o): Update dependencies.
4914
4915 From Nicholas Duffek:
4916 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4917 (aix-thread.o): New rule.
4918 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4919 * config/powerpc/aix432.mh: New file.
4920
49212002-07-30 Daniel Jacobowitz <drow@mvista.com>
4922
4923 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4924 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4925 (fetch_core_registers, ppc_linux_supply_gregset)
4926 (ppc_linux_supply_fpregset): New functions.
4927 (ppc_linux_regset_core_fns): New.
4928 (_initialize_ppc_linux_tdep): Call add_core_fns.
4929 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4930 and ppc_linux_supply_gregset.
4931 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4932 (supply_fpregset): Call ppc_linux_supply_fpregset.
4933 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4934 corelow.o.
4935 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4936
49372002-07-30 Daniel Jacobowitz <drow@mvista.com>
4938
4939 * symtab.c (lookup_symbol): Demangle before lowercasing.
4940
49412002-07-30 Andrew Cagney <ac131313@redhat.com>
4942
4943 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4944 declaration.
4945 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4946 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4947 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4948 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4949 "gdb_string.h".
4950 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4951 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4952 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4953 (avr-tdep.o, mon960-rom.o): Ditto.
4954 (aout_stabs_gnu_h): Define.
4955 (symtab_h): Remove $(gdb_obstack_h).
4956
49572002-07-30 Jim Blandy <jimb@redhat.com>
4958
4959 Patch from David Carlton <carlton@math.stanford.edu>:
4960 * gdbinit.in: Move the `dir' commands that add GDB's own source
4961 directory to the search path to the end, so that the `gdb' source
4962 directory will be searched first.
4963
49642002-07-29 Andrew Cagney <ac131313@redhat.com>
4965
4966 * gdb_obstack.h: New file.
4967 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4968 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4969 * objfiles.h: Include "gdb_obstack.h".
4970 * Makefile.in (gdb_obstack_h): Define.
4971 (symtab_h): Add $(gdb_obstack_h).
4972 (objfiles_h): Add $(gdb_obstack_h).
4973
4974 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4975 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4976 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4977 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4978 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4979 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4980 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4981 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4982
4983 * Makefile.in (bcache.o): Update dependencies.
4984 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4985 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4986 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4987 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4988 (stabsread.o, symfile.o, symmisc.o): Ditto.
4989 (symtab.o, typeprint.o, macroexp.o): Ditto.
4990 (macrotab.o, mdebugread.o): Ditto.
4991 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4992 (coff_ecoff_h, aout_aout64_h): Define.
4993 (aout_stabs_gnu_h, libaout_h): Define.
4994
49952002-07-29 Andrew Cagney <cagney@redhat.com>
4996
4997 * regcache.c (struct regcache_descr): Rename nr_registers to
4998 nr_cooked_registers. Revise comments describing the structure
4999 member fields.
5000 (init_regcache_descr): Update.
5001 (init_legacy_regcache_descr): Update.
5002 (read_register_gen, write_register_gen): When a cooked register in
5003 the raw register range, directly access the value from the raw
5004 register cache.
5005
50062002-07-29 Andrew Cagney <ac131313@redhat.com>
5007
5008 * z8k-tdep.c: Do not include "obstack.h".
5009 * h8300-tdep.c, h8500-tdep.c: Ditto.
5010 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5011 * valprint.c, v850-tdep.c: Ditto.
5012 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5013 * mn10200-tdep.c: Ditto.
5014
5015 * Makefile.in (z8k-tdep.o): Update dependencies.
5016 (m68hc11-tdep.o, valprint.o): Ditto.
5017 (v850-tdep.o, d10v-tdep.o): Ditto.
5018 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5019 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5020 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5021 (sh_opc_h, gdb_sim_sh_h): Define.
5022 (elf_sh_h, elf_bfd_h): Define.
5023 (opcode_m68hc11_h): Define.
5024 (OPCODES_SRC, OPCODES_DIR): define.
5025 (OPCODES): Use $(OPCODES_DIR).
5026 (gdb_sim_d10v_h): Rename sim_d10v_h.
5027 (gdb_sim_arm_h): Rename sim_arm_h.
5028
50292002-07-26 Kevin Buettner <kevinb@redhat.com>
5030
5031 * utils.c (host_pointer_to_address, address_to_host_pointer):
5032 Change internal_error() message to indicate function responsible
5033 for the error.
5034
50352002-07-26 Kevin Buettner <kevinb@redhat.com>
5036
5037 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5038 calls to local_hex_string_custom().
5039
50402002-07-26 Kevin Buettner <kevinb@redhat.com>
5041
5042 * irix5-nat.c: Move IRIX shared library support from here...
5043 * solib-irix.c: ...to here. Revised substantially to work with
5044 generic solib framework.
5045
5046 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5047 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5048 * mips-irix-tdep.c: New file.
5049
5050 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5051 (mips-irix-tdep.o, solib-irix.o): New rules.
5052 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5053 solib-irix.o.
5054 * config/mips/irix6.mt (TDEPFILES): Likewise.
5055 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5056
50572002-07-26 Kevin Buettner <kevinb@redhat.com>
5058
5059 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5060 disabled (via ``#if 0'') includes.
5061
50622002-07-26 Kevin Buettner <kevinb@redhat.com>
5063
5064 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5065 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5066 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5067 Add support for the fpscr register.
5068 * rs6000-nat.c (regmap, fetch_inferior_registers)
5069 (store_inferior_registers, fetch_core_registers): Likewise.
5070
50712002-07-26 Kevin Buettner <kevinb@redhat.com>
5072
5073 * rs6000-nat.c (language.h): Include.
5074 (special_regs): Delete this array.
5075 (regmap): New function.
5076 (fetch_register, store_register): Use regmap() to map gdb
5077 register numbers to ptrace register numbers. Also, use
5078 outputs from regmap() to make decisions regarding type of
5079 ptrace() call to make. In particular, don't compare against
5080 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5081 (fetch_inferior_registers, store_inferior_registers): Where
5082 possible, obtain register numbers from tdep struct. Don't
5083 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5084 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5085 (LAST_UISA_SP_REGNUM): Delete.
5086
50872002-07-25 Kevin Buettner <kevinb@redhat.com>
5088
5089 * rs6000-nat.c (ppc-tdep.h): Include.
5090 (fetch_registers, store_register, fetch_core_registers): Don't
5091 access registers[] directly. Instead, use supply_register() or
5092 regcache_collect() as appropriate.
5093 (find_toc_address): Format hex address with local_hex_string().
5094
50952002-07-25 Andrew Cagney <ac131313@redhat.com>
5096
5097 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5098 bfd/elf32-frv.c.
5099
51002002-07-24 Tom Tromey <tromey@redhat.com>
5101
5102 * jv-exp.y: Marked all strings with _().
5103 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5104 internal_error.
5105 (MethodInvocation, CastExpression, parse_number, yyerror,
5106 java_type_from_name, push_expression_name, yylex): Typo fixes.
5107
51082002-07-24 Daniel Jacobowitz <drow@mvista.com>
5109
5110 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5111 (tee_file_flush, tee_file_write, tee_file_fputs)
5112 (tee_file_isatty): New.
5113 * ui-file.h (tee_file_new): Add prototype.
5114
51152002-07-24 Aidan Skinner <aidan@velvet.net>
5116
5117 * ada-lang.c: Change k&r style function definitions to prototyped
5118 form.
5119 * ada-typeprint.c: Change k&r style function definitions to prototyped
5120 form.
5121 * ada-valprint.c: Change k&r style function definitions to prototyped
5122 form.
5123
51242002-07-24 Andrew Cagney <cagney@redhat.com>
5125
5126 * README: Remove reference to remote-bug.
5127 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5128 remote-bug.c.
5129 (m88k-nat.o): Delete rule.
5130 (m88k-tdep.o): Delete rule.
5131 (remote-bug.o): Delete rule.
5132 * MAINTAINERS: Mark as obsolete.
5133 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5134 * m88k-tdep.c: Make file obsolete.
5135 * config/m88k/m88k.mh: Ditto.
5136 * config/m88k/delta88v4.mh: Ditto.
5137 * config/m88k/delta88v4.mt: Ditto.
5138 * config/m88k/delta88.mt: Ditto.
5139 * config/m88k/delta88.mh: Ditto.
5140 * remote-bug.c: Ditto.
5141 * config/m88k/tm-delta88.h: Ditto.
5142 * config/m88k/nm-delta88v4.h: Ditto.
5143 * config/m88k/xm-delta88.h: Ditto.
5144 * config/m88k/xm-dgux.h: Ditto.
5145 * config/m88k/tm-m88k.h: Ditto.
5146 * config/m88k/nm-m88k.h: Ditto.
5147 * config/m88k/tm-delta88v4.h: Ditto.
5148 * m88k-nat.c: Ditto.
5149 * cxux-nat.c: Ditto.
5150 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5151 and m88*-*-* obsolete.
5152 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5153 m88*-*-* obsolete.
5154
51552002-07-24 Andrew Cagney <cagney@redhat.com>
5156
5157 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5158 constant. Same for local pointer variables.
5159 (extract_signed_integer): Ditto.
5160 * defs.h (extract_unsigned_integer): Update.
5161 (extract_signed_integer): Update.
5162
51632002-07-24 Andrew Cagney <cagney@redhat.com>
5164
5165 * regcache.c (regcache_raw_write): Change buf parameter to a
5166 constant void pointer.
5167 (regcache_raw_read): Change buf parameter to a void pointer.
5168 (legacy_write_register_gen): Change myaddr parameter a constant
5169 void pointer.
5170 (supply_register): Change val parameter to a const void pointer.
5171 * regcache.h (regcache_raw_write): Update declaration.
5172 (regcache_raw_read): Update declaration.
5173 (supply_register): Update declaration.
5174
51752002-07-24 Tom Tromey <tromey@redhat.com>
5176
5177 * defs.h (gdb_readline_wrapper): Declare.
5178 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5179 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5180 * top.c (gdb_readline_wrapper): New function.
5181 (command_line_input): Use it.
5182
51832002-07-24 Andrew Cagney <cagney@redhat.com>
5184
5185 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5186 regcache_read and regcache_write.
5187 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5188 * regcache.c: Update.
5189 * sh-tdep.c (sh64_push_arguments): Update comment.
5190 (sh_pseudo_register_read): Update.
5191 (sh_pseudo_register_write): Update.
5192 (sh4_register_read): Update.
5193 (sh4_register_write): Update.
5194 (sh64_pseudo_register_read): Update.
5195 (sh64_pseudo_register_write): Update.
5196 (sh64_register_read): Update.
5197 (sh64_register_write): Update.
5198 * i386-tdep.c (i386_extract_return_value): Update.
5199 (i386_extract_struct_value_address): Update.
5200 (i386_extract_return_value): Update.
5201 * blockframe.c (generic_read_register_dummy): Update.
5202 (generic_call_dummy_register_unwind): Update
5203 * infrun.c (write_inferior_status_register): Update.
5204
52052002-07-23 Jim Blandy <jimb@redhat.com>
5206
5207 * parser-defs.h (expression_context_pc): Make this extern.
5208 (Thanks to Michael Snyder.)
5209
52102002-07-23 Andrew Cagney <ac131313@redhat.com>
5211
5212 GDB 5.2.1 released from 5.2 branch.
5213 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5214 * README: Update to mention 5.2.1.
5215
52162002-07-23 Mark Salter <msalter@redhat.com>
5217
5218 * remote.c (remote_read_bytes): Fix check for error.
5219
52202002-07-22 Kevin Buettner <kevinb@redhat.com>
5221
5222 * aix-thread.c (language.h): Include.
5223 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5224 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5225 Print newlines at end of debug messages.
5226 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5227 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5228
52292002-07-22 Kevin Buettner <kevinb@redhat.com>
5230
5231 * aix-thread.c (ppc-tdep.h): Include.
5232 (special_register_p): New function.
5233 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5234 (store_regs_user_thread): Use register number information from
5235 gdbarch_tdep struct instead of hardcoded offsets relative to
5236 FIRST_UISA_SP_REGNUM.
5237 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5238 special_register_p() instead of using FPLAST_REGNUM and
5239 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5240 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5241 will be MQ's register number.
5242
52432002-07-22 Michael Snyder <msnyder@redhat.com>
5244
5245 * aix-thread.c (ops): Rename to aix_thread_ops.
5246 (base_ops): Rename to base_target.
5247 (ops_attach): Rename to aix_thread_attach.
5248 (ops_detach): Rename to aix_thread_detach.
5249 (ops_resume): Rename to aix_thread_detach.
5250 (ops_wait): Rename to aix_thread_wait.
5251 (ops_kill): Rename to aix_thread_kill.
5252 (init_ops): Rename to init_aix_thread_ops.
5253 (ops_fetch_register): Rename to aix_thread_fetch_register.
5254 (ops_store_register): Rename to aix_thread_store_register.
5255 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5256 (ops_thread_alive): Rename to aix_thread_thread_alive.
5257 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5258 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5259 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5260 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5261 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5262 (store_regs_lib): Rename to store_regs_user_thread.
5263 (store_regs_kern): Rename to store_regs_kernel_thread.
5264
52652002-07-22 Michael Snyder <msnyder@redhat.com>
5266
5267 * aix-thread.c (ops_prepare_to_store): Eliminate.
5268 (init_ops): Don't initialize ops.prepare_to_store.
5269 (store_regs_kern): Pre-fetch register buffers from child,
5270 because some registers may not be in the cache. Copy
5271 regs from register cache only if they are cached.
5272 (store_regs_lib): Copy regs from register cache only
5273 if they are cached.
5274 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5275 fill_gprs64): Ditto.
5276
52772002-07-22 Kevin Buettner <kevinb@redhat.com>
5278
5279 * aix-thread.c (gdb_assert.h): Include.
5280 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5281 register sizes (from register cache) match size of buffer holding
5282 register data.
5283 (fill_sprs32): Change parameter types to match those in the ptrace()
5284 buffer.
5285 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5286 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5287
52882002-07-22 Michael Snyder <msnyder@redhat.com>
5289
5290 * aix-thread.c (supply_sprs64): Cosmetic change.
5291 (supply_sprs32): Cosmetic change.
5292 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5293 (fill_sprs64): Use regcache_collect instead of read_register.
5294 (store_regs_lib): Use regcache_collect instead of
5295 read_register. Use fill_sprs32 instead of fill_sprs64,
5296 if debugging a 32-bit architecture.
5297 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5298 out of the register cache, instead of passing a pointer into
5299 the register cache directly to ptrace. Use regcache_collect
5300 insteaad of read_register.
5301 (ops_prepare_to_store): Use target_read_registers instead
5302 of read_register_bytes.
5303
53042002-07-20 Aidan Skinner <aidan@velvet.net>
5305
5306 * MAINTAINERS: Add self under write after approval.
5307
53082002-07-20 Aidan Skinner <aidan@velvet.net>
5309
5310 * ada-tasks.c: Change k&r style function definitions to prototyped
5311 form.
5312
53132002-07-19 Andrew Cagney <ac131313@redhat.com>
5314
5315 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5316 * x86-64-tdep.c: Include "objfiles.h".
5317 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5318 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5319
53202002-07-17 Michal Ludvig <michal@suse.cz>
5321
5322 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5323 (update_context): Initialise cfa variable.
5324
53252002-07-17 Michael Snyder <msnyder@redhat.com>
5326
5327 * aix-thread.c: Shorten some long lines.
5328 Bring comments into line with code spec.
5329
53302002-07-18 Joel Brobecker <brobecker@gnat.com>
5331
5332 * infrun.c: Re-indent using gdb_indent.sh.
5333
53342002-07-18 Joel Brobecker <brobecker@gnat.com>
5335
5336 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5337 Leave the indentation temporarily untouched, to minimize the diffs.
5338
53392002-07-18 Elena Zannoni <ezannoni@redhat.com>
5340
5341 * stabsread.c: Make os9k sections of the code obsolete,
5342 for real this time.
5343 * stabsread.h: Make os9k sections of the code obsolete.
5344
53452002-07-18 Michal Ludvig <mludvig@suse.cz>
5346
5347 * linux-low.c (regsets_store_inferior_registers): Add free()
5348 at the end of a loop to prevent memory leak.
5349 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5350 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5351 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5352 line a comment.
5353 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5354
53552002-07-17 Jim Blandy <jimb@redhat.com>
5356
5357 * macrocmd.c (info_macro_command): Remove newline from error
5358 message.
5359
53602002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5361
5362 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5363 (sh_gdbarch_init): Use it for sh-dsp.
5364
53652002-07-16 Kevin Buettner <kevinb@redhat.com>
5366
5367 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5368 64-bit DWARF2 format.
5369
53702002-07-16 Joel Brobecker <brobecker@gnat.com>
5371
5372 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5373 <sys/proc.h> when not available.
5374
53752002-07-16 Andrew Cagney <ac131313@redhat.com>
5376
5377 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5378 * stabsread.c: Make os9k sections of the code obsolete.
5379 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5380 * config/i386/i386os9k.mt: Make file obsolete.
5381 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5382 (COMMON_OBS): Remove os9kread.o
5383 (SFILES): Remove os9kread.c.
5384 (os9kread.o, remote-os9k.o): Make target obsolete.
5385 * remote-os9k.c: Make file obsolete.
5386 * os9kread.c: Make file obsolete.
5387 * Makefile.in
5388
53892002-07-16 Andrew Cagney <ac131313@redhat.com>
5390
5391 * NEWS: Mention that the FR30 has been made obsolete.
5392 * fr30-tdep.c: Make file obsolete.
5393 * config/fr30/tm-fr30.h: Ditto.
5394 * config/fr30/fr30.mt: Ditto.
5395 * configure.tgt: Make fr30-*-elf obsolete.
5396 * MAINTAINERS: Make fr30-elf obsolete.
5397
53982002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5399
5400 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5401 found is not inside a section.
5402
54032002-07-15 Kevin Buettner <kevinb@redhat.com>
5404
5405 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5406 strerror().
5407 (pdc_realloc): Use xrealloc() instead of realloc().
5408
54092002-07-15 Kevin Buettner <kevinb@redhat.com>
5410
5411 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5412 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5413 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5414 macros.
5415
54162002-07-15 Kevin Buettner <kevinb@redhat.com>
5417
5418 * aix-thread.c (ptrace_check): Eliminate goto.
5419 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5420 problem.
5421
54222002-07-15 Kevin Buettner <kevinb@redhat.com>
5423
5424 * aix-thread.c (gdbcmd.h): Include.
5425 (DEBUG, DBG, DBG2, dbg): Eliminate.
5426 (debug_aix_thread): New static global.
5427 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5428 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5429 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5430 invocations to DBG and DBG2 macros to test against
5431 ``debug_aix_thread'' and call fprintf_unfiltered().
5432 (_initialize_aix_thread): Add new command "set debug aix-thread".
5433
54342002-07-15 Andrew Cagney <ac131313@redhat.com>
5435
5436 From Gerhard Tonn <TON@de.ibm.com>:
5437 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5438 instead of supply_register.
5439
54402002-07-15 Andrew Cagney <ac131313@redhat.com>
5441
5442 * dwarf2cfi.c: Include "gdb_assert.h".
5443 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5444 non-NULL.
5445 (update_context): Do not use __func__. Add missing ``break''.
5446 (update_context): Do not use __func__.
5447
54482002-07-15 Elena Zannoni <ezannoni@redhat.com>
5449
5450 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5451 and its setting. Set gdbarch instruction printing functions
5452 directly. For non-rs6000 case use new function
5453 gdb_print_insn_powerpc.
5454 (gdb_print_insn_powerpc): New function.
5455
54562002-07-13 Andrew Cagney <ac131313@redhat.com>
5457
5458 * NEWS: Mention that the d30v has been marked obsolete.
5459 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5460 * configure.tgt: Mark d30v-*-* as obsolete.
5461 * d30v-tdep.c: Mark file as obsolete.
5462 * config/d30v/d30v.mt: Ditto.
5463 * config/d30v/tm-d30v.h: Ditto.
5464
54652002-07-13 Aidan Skinner <aidan@velvet.net>
5466
5467 * ada-tasks.c (add_task_entry): replace calls to
5468 malloc() with xmalloc
5469 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5470
5471 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5472 ada_finish_decode_line_1, all_sals_for_line
5473 ada_breakpoint_rewrite): replace calls to free() with xfree()
5474
54752002-07-12 Kevin Buettner <kevinb@redhat.com>
5476
5477 From Nicholas Duffek (with minor changes by Martin Hunt,
5478 Louis Hamilton, and Kevin Buettner):
5479 * aix-thread.c: New file.
5480
54812002-07-12 Petr Sorfa <petrs@caldera.com>
5482
5483 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5484 complaint for invalid attribute class or form.
5485 (read_func_scope): DW_AT_frame_base
5486 better handling of DW_AT_block*.
5487 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5488 better handling of DW_AT_block*.
5489 (read_common_block): DW_AT_location
5490 better handling of DW_AT_block*.
5491 (read_partial_die): DW_AT_location better handling
5492 of DW_AT_block*.
5493 (new_symbol): DW_AT_external better handling of
5494 DW_AT_block*. Proper initialization of variable
5495 "addr".
5496 (attr_form_is_block): New function that returns true
5497 if the attribute's form is of DW_FORM_block*.
5498
54992002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5500
5501 * valops.c (find_method_list): Remove comment about
5502 removed STATIC_MEMFUNCP argument.
5503 (value_find_oload_method_list): Likewise.
5504
55052002-07-12 Kevin Buettner <kevinb@redhat.com>
5506
5507 From Nicholas Duffek:
5508 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5509 target_new_objfile_hook.
5510
55112002-07-12 Kevin Buettner <kevinb@redhat.com>
5512
5513 From Nicholas Duffek:
5514 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5515 csect.
5516
55172002-07-12 Andrew Cagney <cagney@redhat.com>
5518
5519 * MAINTAINERS: Mention --enable-sim-build-warnings.
5520 (m68hc11-elf): Disable sim build warnings.
5521 (m32r-elf): Mark as broken obsolete candidate.
5522 (x86_64-linux-gnu): Mark as buildable with -Werror.
5523 (arm-elf): Change -w to ``,'' which enables warnings but not
5524 -Werror.
5525
55262002-07-12 Andrew Cagney <ac131313@redhat.com>
5527
5528 * bcache.h: Update copyright.
5529 (struct bstring, struct bcache): Move definition to "bcache.c".
5530 Replaced by opaque declaration.
5531 (bcache_xfree): Replace free_bcache.
5532 (bcache_xmalloc, bcache_memory_used): Declare.
5533
5534 * bcache.c: Update copyright.
5535 (struct bstring, struct bcache): Moved to here from "bcache.h".
5536 Update comments.
5537 (bcache_xmalloc, bcache_memory_used): New functions.
5538 (bcache_xfree): Replace function free_bcache.
5539
5540 * Makefile.in (objfiles.o): Add $(bcache_h).
5541 (objfiles_h): Remove $(bcache_h).
5542 (symfile.o): Add $(bcache_h).
5543
5544 * symmisc.c: Update copyright.
5545 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5546 (print_objfile_statistics): Use bcache_memory_used.
5547
5548 * symfile.c: Include "bcache.h".
5549 (reread_symbols): Use bcache_xfree.
5550 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5551 (add_psymbol_to_list): Pass psymbol_cache by value.
5552 (add_psymbol_with_dem_name_to_list): Ditto.
5553
5554 * objfiles.h: Update copyright.
5555 (struct bcache): Declare opaque. Do not include "bcache.h".
5556 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5557 bcache'' pointers.
5558 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5559
5560 * objfiles.c: Include "bcache.h". Update copyright.
5561 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5562 macro_cache.
5563 (free_objfile): Use bcache_xfree.
5564
55652002-07-11 Grace Sainsbury <graces@redhat.com>
5566
5567 * monitor.c (monitor_fetch_register): Make name a constant.
5568 (monitor_store_register): Same.
5569
55702002-07-11 Daniel Jacobowitz <drow@mvista.com>
5571
5572 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5573 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5574 (finish_block) For non-function blocks, hash the symbol table. For
5575 function blocks, mark the symbol table as unhashed.
5576 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5577 (msymbol_hash_iw): Likewise.
5578 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5579 value.
5580 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5581 (lookup_minimal_symbol): Likewise for both.
5582 * symtab.h (struct block): Add `hashtable' flag. Comment the
5583 hashtable.
5584 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5585 (ALL_BLOCK_SYMBOLS): Update.
5586 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5587 (struct symbol): Add `hash_next' pointer.
5588 * symtab.c (lookup_block_symbol): Search using the hash table when
5589 possible.
5590 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5591 (search_symbols, find_addr_symbol): Likewise.
5592
5593 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5594 (read_dst_symtab): Likewise.
5595 * jv-lang.c (get_java_class_symtab): Likewise.
5596 * mdebugread.c: Include "gdb_assert.h".
5597 (shrink_block): Assert that the block being modified is not hashed.
5598 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5599 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5600 symbols.
5601 (dump_symtab): Recognize hashed blocks.
5602 * printcmd.c (print_frame_args): Assert that function blocks do not
5603 have hashed symbol tables.
5604 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5605 (fill_in_ada_prototype, debug_print_block): Likewise.
5606 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5607
56082002-07-11 Corinna Vinschen <vinschen@redhat.com>
5609
5610 * stack.c (print_frame): Use result of frame_address_in_block()
5611 instead of fi->pc when evaluating symbols.
5612 (backtrace_command_1): Ditto.
5613
56142002-07-11 Andrew Cagney <cagney@redhat.com>
5615
5616 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5617 Make static.
5618
5619 * arm-tdep.c (arm_register_name): Make return type constant.
5620
56212002-07-10 Andrew Cagney <ac131313@redhat.com>
5622
5623 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5624 prototype.
5625 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5626 * s390-tdep.c (s390_fp_regnum): Ditto.
5627 (s390_read_fp): Ditto.
5628 (s390_pop_frame): Ditto.
5629 (_initialize_s390_tdep): Ditto.
5630 * remote.c (get_remote_state): Ditto.
5631 * procfs.c (mappingflags): Ditto.
5632 * memattr.c (_initialize_mem): Ditto.
5633 * mcore-tdep.c (mcore_pop_frame): Ditto.
5634 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5635 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5636 * language.c (set_case_str): Ditto.
5637 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5638 * frv-tdep.c (new_variant): Ditto.
5639 (frv_stopped_data_address): Ditto.
5640 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5641 (context_alloc): Ditto.
5642 (frame_state_alloc): Ditto.
5643 (unwind_tmp_obstack_init): Ditto.
5644 (unwind_tmp_obstack_free): Ditto.
5645 (cfi_read_fp): Ditto.
5646 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5647 (cris_pop_frame): Ditto.
5648 * c-lang.c (scanning_macro_expansion): Ditto.
5649 (finished_macro_expansion): Ditto.
5650 (c_preprocess_and_parse): Ditto.
5651 * gdbarch.sh: Ditto.
5652 * gdbarch.h, gdbarch.c: Regenerate.
5653 * config/mn10200/tm-mn10200.h: Adjust indentation.
5654 * target.c: Adjust indentation.
5655 * symtab.h: Adjust indentation.
5656 * stabsread.h: Adjust indentation.
5657 * remote-es.c: Adjust indentation.
5658 * os9kread.c: Adjust indentation.
5659
56602002-07-10 Andrew Cagney <ac131313@redhat.com>
5661
5662 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5663 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5664
56652002-07-10 Grace Sainsbury <graces@redhat.com>
5666
5667 * NEWS: Mention m68k, mcore multi-arching.
5668 * MAINTAINERS: Change status of m68k, mcore to reflect
5669 multi-arching.
5670
56712002-07-10 Daniel Jacobowitz <drow@mvista.com>
5672
5673 * valops.c (find_overload_match): Free oload_syms.
5674
56752002-07-09 Joel Brobecker <brobecker@gnat.com>
5676
5677 Define HAVE_SYS_PROC_H if sys/proc.h exists
5678 * configure.in: Add check for sys/proc.h
5679 * config.in: Regenerate.
5680 * configure: Regenerate.
5681
56822002-07-09 Grace Sainsbury <graces@redhat.com>
5683
5684 * config/m68k/tm-m68k.h: Remove macros wrapped in
5685 #if !GDB_MULTI_ARCH.
5686
56872002-07-08 Andrew Cagney <ac131313@redhat.com>
5688
5689 * config.in, configure: Regenerate.
5690
56912002-07-08 Mark Kettenis <kettenis@gnu.org>
5692
5693 * dwarf2cfi.c: Include "gcore.h".
5694 (execute_stack_op): Fix implementation of the
5695 DW_OP_deref and DW_OP_deref_size operators by letting do their
5696 lookup in the target.
5697
56982002-07-07 Mark Kettenis <kettenis@gnu.org>
5699
5700 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5701 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5702 tdep->sc_sp_offset.
5703
57042002-07-05 Daniel Jacobowitz <drow@mvista.com>
5705
5706 Fix PR gdb/595, gdb/602
5707 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5708 Don't call value_cast, just read the vtable pointer; update comments
5709 to match.
5710
57112002-07-05 Grace Sainsbury <graces@redhat.com>
5712
5713 * config/mcore/tm-mcore.h: Remove file.
5714 * config/mcore/mcore.mt: Remove definition of TM_FILE
5715 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5716
57172002-07-05 Mark Kettenis <kettenis@gnu.org>
5718
5719 * i386bsd-tdep.c: Include "gdb_string.h".
5720
57212002-07-04 Grace Sainsbury <graces@redhat.com>
5722
5723 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5724 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5725 mcore-tdep.
5726 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5727 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5728 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5729 (RETVAL_REGNUM): Move macros from tm-mcore.h
5730 (mcore_reg_struct_has_addr): New function.
5731 (mcore_gdbarch_init): Added initializations for the macros removed
5732 from tm-mcore.h.
5733
57342002-07-04 Mark Kettenis <kettenis@gnu.org>
5735
5736 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5737 traditonal string branding within the ELF header.
5738
57392002-07-04 Daniel Jacobowitz <drow@mvista.com>
5740
5741 * symtab.c (remove_params): New function.
5742 (make_symbol_overload_list): Use it instead of cplus_demangle.
5743 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5744
57452002-07-04 Mark Kettenis <kettenis@gnu.org>
5746
5747 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5748
5749 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5750 New variables.
5751 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5752 and tdep->sigtramp_end.
5753 * i386obsd-nat.c: New file.
5754 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5755
5756 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5757 Don't call get_current_frame().
5758
57592002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5760
5761 * i386-nat.c (child_post_startup_inferior): New function
5762 calling i386_cleanup_dregs if
5763 I386_USE_GENERIC_WATCHPOINTS is defined.
5764 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5765 conditional to acknowledge that i386-nat.c has its
5766 own child_post_startup_inferior function.
5767
57682002-07-04 Mark Kettenis <kettenis@gnu.org>
5769
5770 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5771 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5772 instead of MAX_REGISTER_RAW_SIZE.
5773 (i386_extract_return_value, i386_extract_struct_value_address):
5774 Convert to use regcache.
5775 (i386_gdbarch_init): Set max_register_raw_size and
5776 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5777 Set extract_return_value and extract_struct_value_address instead
5778 of their deprecated variants.
5779
5780 Convert i386 target to generic dummy frames.
5781 * i386-tdep.c: Include "symfile.h".
5782 (i386_frameless_signal_p): Consider a function to be frameless if
5783 the pc points at the first instruction of the function.
5784 (i386_frame_chain): Handle (generic) call dummies.
5785 (i386_frame_saved_pc): Likewise.
5786 (i386_frame_init_saved_regs): Remove code dealing with call
5787 dummies on the stack.
5788 (i386_push_dummy_frame): Removed.
5789 (i386_call_dummy_words): Removed.
5790 (i386_fix_call_dummy): Removed.
5791 (i386_push_return_address): New function.
5792 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5793 parameter, and don't call get_current_frame.
5794 (i386_pop_frame): New function.
5795 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5796 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5797 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5798 call_dummy_length to 0, set call_dummy_words to NULL, set
5799 sizeof_call_dummy_words to 0, set fix_call_dummy to
5800 generic_fix_call_dummy, set pc_in_call_dummy to
5801 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5802 generic_push_dummy_frame, set push_return_address to
5803 i386_push_return_address and set frame_chain_valid to
5804 generic_file_frame_chain_valid.
5805
58062002-07-03 Andrew Cagney <ac131313@redhat.com>
5807
5808 * gdbarch.sh (struct regcache): Add opaque declaration.
5809 (EXTRACT_RETURN_VALUE): New architecture method.
5810 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5811 * gdbarch.h, gdbarch.c: Regenerate.
5812 * arch-utils.c (legacy_extract_return_value): New function.
5813 * arch-utils.h (legacy_extract_return_value): Declare.
5814 * values.c (value_being_returned): Re-enable code handling
5815 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5816 deprecated_grub_regcache_for_registers call to block handling
5817 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5818 (EXTRACT_RETURN_VALUE): Do not define.
5819
58202002-07-03 Grace Sainsbury <graces@redhat.com>
5821
5822 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5823 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5824 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5825 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5826 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5827 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5828 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5829 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5830 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5831 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5832 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5833 argument so the function fits the prototype in the architecture
5834 vector.
5835 (mcore_pop_frame): Remove argument so the function fits the
5836 prototype. Use get_current_frame instead of the argument.
5837 (mcore_push_arguments): Change type of struct_return so the
5838 function can be used in the architecture vector.
5839 (mcore_store_struct_return): Add.
5840 (mcore_frame_init_saved_regs): Add.
5841 (mcore_gdbarch_init): Add function calls to replace the macros
5842 removed from tm-mcore.h
5843
58442002-07-03 Andrew Cagney <ac131313@redhat.com>
5845
5846 * infcmd.c (print_return_value): Remove compatibility code calling
5847 deprecated_grub_regcache_for_registers.
5848
5849 * values.c: Include "regcache.h".
5850 (value_being_returned): Update. Use
5851 deprecated_grub_regcache_for_registers to extract the register
5852 buffer address.
5853 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5854 ``struct regcache''.
5855 * Makefile.in (values.o): Add dependency on $(regcache_h).
5856
5857 * inferior.h (run_stack_dummy): Change type of second parameter to
5858 a ``struct regcache''.
5859 * valops.c (hand_function_call): Change type of retbuf to ``struct
5860 regcache''. Allocate using regcache_xmalloc, clean using
5861 make_cleanup_regcache_xfree.
5862 * infcmd.c (run_stack_dummy): Update. Use
5863 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5864
5865 * regcache.c (do_regcache_xfree): New function.
5866 (make_cleanup_regcache_xfree): New function.
5867 * regcache.h (make_cleanup_regcache_xfree): Declare.
5868
58692002-07-03 Martin M. Hunt <hunt@redhat.com>
5870
5871 * event-top.c (command_line_handler): Don't read past
5872 beginning of buffer.
5873
58742002-07-03 Martin M. Hunt <hunt@redhat.com>
5875
5876 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5877 struct frame_id.
5878 (varobj_create): Store frame_id for root.
5879 (varobj_gen_name): Use xasprintf.
5880 (varobj_update): Save and restore frame using get_frame_id() and
5881 frame_find_by_id().
5882 (create_child): Use xasprintf.
5883 (new_root_variable): Initialize frame_id.
5884 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5885 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5886 to prevent memory leak.
5887
58882002-07-03 Andrew Cagney <ac131313@redhat.com>
5889
5890 * valops.c (hand_function_call): Move declaration of retbuf to
5891 start of function, allocate using malloc, add a cleanup but before
5892 the inf_status cleanup, cleanup the buffer. Rename local variable
5893 old_chain to inf_status_cleanup.
5894
58952002-07-03 Martin M. Hunt <hunt@redhat.com>
5896
5897 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5898
5899 * cli/cli-decode.c (cmd_func_p): New function.
5900 (cmd_func): New function.
5901
5902 * command.h: Add cmd_func() and cmd_func_p().
5903
59042002-07-03 Grace Sainsbury <graces@redhat.com>
5905
5906 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5907 (REGISTER_SIZE): Remove.
5908 (MAX_REGISTER_RAW_SIZE): Remove.
5909 (REGISTER_VIRTUAL_TYPE): Remove.
5910 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5911 (REGISTER_NAME): Remove.
5912 (USE_GENERIC_DUMMY_FRAMES): Remove.
5913 (CALL_DUMMY): Remove.
5914 (CALL_DUMMY_START_OFFSET): Remove.
5915 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5916 (CALL_DUMMY_LOCATION): Remove.
5917 (FIX_CALL_DUMMY): Remove.
5918 (CALL_DUMMY_ADDRESS): Remove.
5919 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5920 (SAVE_DUMMY_FRAME_TOS): Remove.
5921 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5922 (mcore_register_virtual_type): New function.
5923 (mcore_register_byte): New function.
5924 (mcore_register_size): New function.
5925 (mcore_register_name): New function.
5926 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5927 macros removed from tm-mcore.h.
5928 (mcore_dump_tdep): Add.
5929 (_initialize_mcore_tdep): Add gdbarch_register call.
5930
59312002-07-03 Mark Kettenis <kettenis@gnu.org>
5932
5933 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5934 frameless_look_for_prologue, such that we actually call this
5935 function.
5936
59372002-07-02 Joel Brobecker <brobecker@gnat.com>
5938
5939 * frame.h (frame_address_in_block): New function.
5940
5941 * blockframe.c (frame_address_in_block): New function extracted
5942 from get_frame_block().
5943 (get_frame_block): Use frame_address_in_block().
5944 (block_innermost_frame): Use frame_address_in_block() to match
5945 the frame pc address against the block boundaries rather than
5946 the frame pc directly. This prevents a failure when a frame pc
5947 is actually a return-address pointing immediately after the end
5948 of the given block.
5949
59502002-07-02 Grace Sainsbury <graces@redhat.com>
5951
5952 * MAINTAINERS: Add self under write after approval.
5953
59542002-07-02 Grace Sainsbury <graces@redhat.com>
5955
5956 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5957 used in architecture vector. The default is
5958 m68k_local_breakpoint_from_pc.
5959 (m68k_local_breakpoint_from_pc): Add.
5960 (enum): Add register numbers from tm-m68k.h.
5961 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5962 vector.
5963 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5964 GDB_MULTI_ARCH_PARTIAL.
5965 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5966 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5967 m68k-tdep.c.
5968 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5969 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5970 to enum in m68k-tdep.c
5971
59722002-07-02 Joel Brobecker <brobecker@gnat.com>
5973
5974 * solib-osf.c (open_map): Compute the list of shared libraries
5975 loaded by the inferior, rather than the list of libraries loaded
5976 by GDB itself. Otherwise, GDB ends up reading the symbols from
5977 the wrong shared libraries...
5978
59792002-07-02 Mark Kettenis <kettenis@gnu.org>
5980
5981 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5982 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5983 macros.
5984 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5985 Remove functions.
5986 (FRAMELESS_SIGNAL): Remove function.
5987 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5988 i386_linux_saved_pc_after_call): Removed.
5989 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5990 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5991 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5992
5993 * i386-tdep.c (i386_frameless_signal_p): New function.
5994 (i386_frame_chain): Deal with frameless signals.
5995 (i386_sigtramp_saved_sp): New function.
5996 (i386_frame_saved_pc): Deal with frameless signals.
5997 (i386_saved_pc_after_call): Make sure the correct value is
5998 returned just after entry into a sigtramp.
5999 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6000 i386fbsd4_sc_sp_offset): New variables.
6001 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6002 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6003 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6004 similiar to what we already did for sc_pc_offset.
6005 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6006 tdep->sc_sp_offset.
6007
6008 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6009
60102002-07-02 Michal Ludvig <mludvig@suse.cz>
6011
6012 * config/i386/tm-x86-64linux.h: New.
6013 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6014 definitions.
6015 * config/i386/nm-x86-64.h: Rename to ...
6016 * config/i386/nm-x86-64linux.h: ... this one.
6017 * config/i386/x86-64linux.mh: Reflect the above change.
6018
60192002-07-01 Mark Kettenis <kettenis@gnu.org>
6020
6021 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6022 with sigcontext_addr. Add sc_sp_offset.
6023 (i386bsd_sigtramp_saved_pc): Remove prototype.
6024 (i386bsd_sicontext_addr): Add prototype.
6025 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6026 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6027 (i386_svr4_sigtramp_saved_pc): Removed.
6028 (i386_svr4_sigcontext_addr): New function.
6029 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6030 Initialize tdep->sigcontext_addr instead. Initialize
6031 tdep->sc_pc_offset and tdep->sc_sp_offset.
6032 (i386_gdbarch_init): Likewise.
6033 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6034 any more.
6035 (i386bsd_sigtramp_saved_pc): Remove function.
6036 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6037 Initialize tdep->sigcontext_addr instead. Initialize
6038 tdep->sc_pc_offset.
6039 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6040 of tdep->sigtramp_saved_pc.
6041 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6042 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6043 instead.
6044
6045 * i386-tdep.c (i386_frameless_function_invocation,
6046 i386_frame_num_args, i386_frame_init_saved_regs,
6047 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6048 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6049 i386_extract_return_value, i386_store_return_value,
6050 i386_extract_struct_value_address, i386_register_virtual_type,
6051 i386_register_convertible, i386_register_convert_to_virtual,
6052 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6053 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6054 static.
6055
60562002-07-01 Mark Kettenis <kettenis@gnu.org>
6057
6058 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6059
6060 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6061 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6062 this macro. Include "value.h".
6063
60642002-06-30 Aidan Skinner <aidan@velvet.net>
6065
6066 * ada-exp.tab.c: remove as it's a generated file
6067 * ada-lex.c: remove as it's a generated file
6068
60692002-06-30 Mark Kettenis <kettenis@gnu.org>
6070
6071 * config/i386/tm-i386.h (struct frame_info, struct
6072 frame_saved_regs, struct value, struct type): Remove forward
6073 declarations.
6074
6075 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6076 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6077 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6078 (FILL_FPXREGSET): Define.
6079
6080 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6081
6082 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6083 i[3456]86-*-netbsd* case.
6084 * config/i386/tm-obsd.h: Removed.
6085 * config/i386/obsd.mt: Removed.
6086 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6087 core-aout.o.
6088 (MH_CFLAGS): Add -DYYDEBUG=0.
6089
6090 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6091 i386nbsd_sc_pc_offset on OpenBSD too.
6092
6093 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6094 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6095 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6096 define.
6097 * i386bsd-tdep.c: Include "arch-utils.h".
6098 (i386bsd_aout_in_solib_call_trampoline): New function.
6099 (i386bsd_init_abi): Set in_solib_call_trampoline to
6100 i386bsd_aout_in_solib_call_trampoline.
6101 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6102 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6103
61042002-06-28 Andrew Cagney <ac131313@redhat.com>
6105
6106 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6107 (struct obstack, struct bcache): Add opaque declarations.
6108 * Makefile.in (macrotab_h): Update
6109
61102002-06-28 Andrew Cagney <ac131313@redhat.com>
6111
6112 * blockframe.c (generic_find_dummy_frame): Change return type to
6113 ``struct regcache''.
6114 (struct dummy_frame): Replace field ``registers'' with regcache, a
6115 struct regcache object.
6116 (generic_find_dummy_frame): Update.
6117 (generic_push_dummy_frame): Update. Use regcache_xfree,
6118 regcache_xmalloc and regcache_cpy.
6119 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6120 regcache_xfree.
6121 (deprecated_generic_find_dummy_frame): Update.
6122 (generic_read_register_dummy): Update. Use
6123 regcache_read_as_address.
6124 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6125 (generic_get_saved_register): Update. Use regcache_read.
6126
61272002-06-28 Andrew Cagney <ac131313@redhat.com>
6128
6129 * Makefile.in (objfiles_h): Add $(bcache_h).
6130 * objfiles.h: Include "bcache.h".
6131
6132 * Makefile.in (symtab_h): Remove $(bcache_h).
6133 * symtab.h: Do not include "bcache.h".
6134
61352002-06-28 Andrew Cagney <ac131313@redhat.com>
6136
6137 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6138 generic_func_frame_chain_valid.
6139
61402002-06-28 David O'Brien <obrien@FreeBSD.org>
6141
6142 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6143 * config/i386/tm-fbsd.h: Likewise.
6144
61452002-06-28 Andrew Cagney <ac131313@redhat.com>
6146
6147 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6148 generic_unwind_get_saved_register.
6149
61502002-06-27 Andrew Cagney <ac131313@redhat.com>
6151
6152 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6153 * regcache.c (supply_register): Add missing argument to
6154 register_buffer call.
6155
61562002-06-27 Andrew Cagney <ac131313@redhat.com>
6157
6158 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6159 Solaris /bin/grep does not not like it. From Peter Schauer.
6160
61612002-06-26 Tom Tromey <tromey@redhat.com>
6162
6163 * command.h (add_setshow_cmd): Declare.
6164 (add_setshow_cmd_full): Declare.
6165 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6166 returns void. Use add_setshow_cmd_full.
6167 (add_setshow_cmd_full): New function.
6168 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6169 (add_setshow_boolean_cmd): Likewise.
6170
61712002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6172
6173 * config/vax/tm-vax.h: Protect from multiple inclusion.
6174 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6175 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6176 * config/vax/tm-vaxbsd.h: ...here. New file.
6177 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6178
61792002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6180
6181 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6182 (BELIEVE_PCC_PROMOTION): Remove.
6183 (AP_REGNUM): Move to...
6184 * config/vax/nm-vax.h: ...here.
6185 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6186 (vax_breakpoint_from_pc): New function.
6187 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6188 and gdbarch_believe_pcc_promotion.
6189
61902002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6191
6192 * Makefile.in (vax_tdep_h): Define.
6193 (vax-tdep.o): Use $(vax_tdep_h).
6194 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6195 (vax_dump_tdep): New function.
6196 (_initialize_vax_tdep): Register vax_dump_tdep.
6197 * vax-tdep.h: Include osabi.h.
6198 (struct gdbarch_tdep): New.
6199
62002002-06-26 Andrew Cagney <cagney@redhat.com>
6201
6202 * frame.h (deprecated_generic_find_dummy_frame): Rename
6203 generic_find_dummy_frame.
6204 * blockframe.c (generic_find_dummy_frame): Make static.
6205 (deprecated_generic_find_dummy_frame): New function.
6206 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6207 generic_find_dummy_frame with deprecated_find_dummy_frame.
6208 (sh64_nofp_frame_init_saved_regs): Ditto.
6209 (sh_fp_frame_init_saved_regs): Ditto.
6210 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6211 (s390_frame_chain): Ditto.
6212 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6213
62142002-06-26 Grace Sainsbury <graces@redhat.com>
6215
6216 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6217 gdbarch vector are at the top.
6218 (NUM_REGS): Remove.
6219 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6220 (FRAME_ARGS_ADDRESS): Remove.
6221 (FRAME_LOCALS_ADDRESS): Remove.
6222 (FRAME_NUM_ARGS): Remove.
6223 (FRAME_ARGS_SKIP): Remove.
6224 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6225 (m68k_gdbarch_init): Add gdbarch initializations for macros
6226 undefined in tm-m68k.h
6227
62282002-06-26 Grace Sainsbury <graces@redhat.com>
6229
6230 * monitor.h: Add the function regname to monitor_ops
6231 structure. This way NUM_REGS does not have to be a constant.
6232 * monitor.c (monitor_fetch_register): Added support for regname
6233 function. The function is called if the array regnames is NULL.
6234 (monitor_store_register): Same.
6235 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6236 regnames array.
6237 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6238 cpu32bug_cmds.regname to point to new function.
6239 * abug-rom.c (abug_regname): Same as above.
6240 (init_abug_cmds): Same.
6241 * dbug-rom.c (dbug_regname): Same as above.
6242 (init_dbug_cmds): Same.
6243 * remote-est.c (est_regname): Same.
6244 (init_est_cmds): Same.
6245 * rom68k-rom.c (rom68k_regname): Same.
6246 (init_rom68k_cmds): Same.
6247
62482002-06-25 Tom Tromey <tromey@redhat.com>
6249
6250 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6251
62522002-06-25 Andrew Cagney <cagney@redhat.com>
6253
6254 * infrun.c (stop_registers): Change variable's type to ``struct
6255 regcache'''.
6256 (xmalloc_inferior_status): Delete function.
6257 (free_inferior_status): Delete function.
6258 (normal_stop): Use regcache_cpy.
6259 (struct inferior_status): Change type of fields ``stop_registers''
6260 and ``registers'' to ``struct regcache''.
6261 (write_inferior_status_register): Use regcache_write.
6262 (save_inferior_status): Instead of calling
6263 xmalloc_inferior_status, allocate the inf_status buffer directly.
6264 Use regcache_dup_no_passthrough and regcache_dup to save the
6265 buffers.
6266 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6267 Replace the stop_registers regcache instead of overriding it. Use
6268 regcache_xfree. Instead of calling free_inferior_status, xfree
6269 the buffer directly.
6270 (discard_inferior_status): Use regcache_xfree. Instead of calling
6271 free_inferior_status, xfree the buffer directly.
6272 (build_infrun): Use regcache_xmalloc.
6273 (_initialize_infrun): Delete redundant call to build_infrun.
6274
6275 * Makefile.in (infcmd.o): Add $(regcache_h).
6276
6277 * infcmd.c: Include "regcache.h".
6278 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6279 obtain the address of `stop_registers' register buffer.
6280 (print_return_value): Ditto.
6281
6282 * inferior.h (struct regcache): Add opaque declaration.
6283 (stop_registers): Change variable's declared type to ``struct
6284 regcache''.
6285
62862002-06-24 Tom Tromey <tromey@redhat.com>
6287
6288 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6289 * target.c (initialize_targets): Fixed typo in
6290 trust-readonly-sections `show' documentation.
6291
6292 * main.c: Marked all strings with _().
6293
62942002-06-24 Don Howard <dhoward@redhat.com>
6295
6296 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6297 that means max CORE_ADDR+1.
6298 (lookup_mem_region): Ditto.
6299 (mem_info_command): Ditto.
6300
63012002-06-24 Grace Sainsbury <graces@redhat.com>
6302
6303 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6304 (REGISTER_BYTES_OK): Remove.
6305 (REGISTER_BYTES): Remove.
6306 (STORE_STRUCT_RETURN): Remove.
6307 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6308 (STORE_RETURN_VALUE): Remove.
6309 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6310 (FRAME_CHAIN): Remove.
6311 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6312 (FRAME_SAVED_PC): Remove.
6313 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6314 (m68k_store_struct_return): Add.
6315 (m68k_deprecated_extract_return_value): Add.
6316 (m68k_deprecated_extract_struct_value_address): Add.
6317 (m68k_store_return_value): Add.
6318 (m68k_frame_chain): Add.
6319 (m68k_frameless_function_invocation): Add.
6320 (m68k_frame_saved_pc): Add.
6321 (m68k_gdbarch_init): added set_gdbarch calls for new
6322 functions and deleted macros.
6323
63242002-06-23 Tom Tromey <tromey@redhat.com>
6325
6326 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6327 (ALLDEPFILES): Likewise.
6328 (udiheaders): Removed.
6329 (udip2soc.o): Likewise.
6330 (udi2go32.o): Likewise.
6331 (udr.o): Likewise.
6332 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6333
63342002-06-22 Andrew Cagney <ac131313@redhat.com>
6335
6336 * infrun.c (_initialize_infrun): Delete unnecessary call to
6337 build_infrun.
6338
6339 * regcache.h: Update comments describing the regcache_cpy family
6340 of functions.
6341 (regcache_save, regcache_restore): Delete declaration.
6342 (regcache_save_no_passthrough): Delete declaration.
6343 (regcache_restore_no_passthrough): Delete declaration.
6344 * regcache.c (regcache_save): Delete function.
6345 (regcache_save_no_passthrough): Delete function.
6346 (regcache_restore): Delete function.
6347 (regcache_restore_no_passthrough): Delete function.
6348
63492002-06-21 Andrew Cagney <ac131313@redhat.com>
6350
6351 * config/m68k/tm-m68k.h: Fix typo.
6352 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6353 (m68k_frame_init_saved_regs): Declare.
6354
63552002-06-21 Jim Blandy <jimb@redhat.com>
6356
6357 Remove some vestiges of Harris 88k support.
6358 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6359 register numbering quirk.
6360 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6361 odd symbols occurring in Harris 88k ELF targets.
6362
63632002-06-21 Tom Tromey <tromey@redhat.com>
6364
6365 * gdb_locale.h: New file.
6366 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6367 (defs_h): Added gdb_locale.h.
6368 * configure, config.in: Rebuilt.
6369 * configure.in (PACKAGE): Define.
6370 * defs.h: Include gdb_locale.h.
6371 * main.c (captured_main): Call setlocale, bindtextdomain,
6372 textdomain.
6373
63742002-06-21 Dave Brolley <brolley@redhat.com>
6375
6376 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6377 * config/frv/frv.mt: New file.
6378 * config/frv/tm-frv.h: New file.
6379 * configure.tgt: Support frv-*-*.
6380 * Makefile.in (frv-tdep.o): New target.
6381 * frv-tdep.c: New file.
6382 * NEWS: Mention frv.
6383
63842002-06-21 Dave Brolley <brolley@redhat.com>
6385
6386 * MAINTAINERS: Add self to "Write After Approval" list.
6387
63882002-06-21 Grace Sainsbury <graces@redhat.com>
6389
6390 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6391 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6392 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6393 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6394 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6395
6396 * m68k-tdep.c: Include arch-utils.h
6397 (m68k_register_raw_size): Add.
6398 (m68k_register_virtual_size): Add.
6399 (m68k_register_virtual_type): Add.
6400 (m68k_register_name): Add.
6401 (m68k_stack_align): Add.
6402 (m68k_register_byte): Add.
6403 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6404 tm-m68k.h.
6405
64062002-06-21 Grace Sainsbury <graces@redhat.com>
6407
6408 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6409 m68k_find_saved_regs.
6410 (m68k_pop_frame): Removed saved_regs structure, and replaced
6411 references to it with frame->saved_regs.
6412 (m68k_gdbarch_init): Added function calls to initialize the
6413 gdbarch structure.
6414 (m68k_fix_call_dummy): Add.
6415 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6416 (CALL_DUMMY): Remove.
6417 (CALL_DUMMY_LENGTH): Remove.
6418 (CALL_DUMMY_START_OFFSET): Remove.
6419 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6420 (FIX_CALL_DUMMY): Remove.
6421 (PUSH_DUMMY_FRAME): Remove.
6422 (POP_FRAME): Remove.
6423
64242002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6425
6426 * parse.c (parse_fprintf): New function used to avoid calls to
6427 fprintf in bison parser generated debug code.
6428 * parser-defs.h: Declaration of new parse_fprintf function.
6429 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6430 Set YYDEBUG to 1 by default.
6431 Set YYFPRINTF as parse_fprintf.
6432
64332002-06-21 Michal Ludvig <mludvig@suse.cz>
6434
6435 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6436 encoding anymore.
6437 (pointer_encoding, enum ptr_encoding): New.
6438 (execute_cfa_program): Take care about pointer encoding.
6439 (dwarf2_build_frame_info): Only call parse_frame_info for
6440 .debug_frame and .eh_frame.
6441 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6442 fixed augmentation handling, added relative addressing,
6443 ignore duplicate FDEs. Added comments.
6444 * dwarf2cfi.c: Reindented.
6445
64462002-06-20 Elena Zannoni <ezannoni@redhat.com>
6447
6448 * event-top.c (command_handler): Don't use space_at_cmd_start
6449 unless there is sbrk() on the host. Assign time and space data
6450 to union fields of the appropriate length.
6451
64522002-06-20 Michal Ludvig <mludvig@suse.cz>
6453
6454 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6455 x86_64_register_name. Return type changed to 'const char *'.
6456 (x86_64_register_name2nr): Rename to x86_64_register_number.
6457 (x86_64_gdbarch_init): Update to reflect the change.
6458 * x86-64-tdep.h: Ditto.
6459 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6460 (supply_fpregset): Ditto.
6461
64622002-06-19 Andrew Cagney <cagney@redhat.com>
6463
6464 * regcache.h: Update copyright.
6465 (struct regcache, struct gdbarch): Add opaque declarations.
6466 (current_regcache): Declare global variable.
6467 (regcache_read, regcache_write): Add gdbarch parameter.
6468 (regcache_save, regcache_save_no_passthrough)
6469 (regcache_restore, regcache_restore_no_passthrough)
6470 (regcache_dup, regcache_dup_no_passthrough)
6471 (regcache_cpy, regcache_cpy_no_passthrough)
6472 (deprecated_grub_regcache_for_registers)
6473 (deprecated_grub_regcache_for_register_valid)
6474 (regcache_valid_p): Add function declarations.
6475
6476 * regcache.c: Update copyright.
6477 (regcache_descr_handle): New global variable.
6478 (struct regcache_descr): Define.
6479 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6480 (regcache_descr, xfree_regcache_descr): New functions.
6481 (struct regcache): Define.
6482 (regcache_xmalloc, regcache_xfree): New functions.
6483 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6484 (regcache_dup, regcache_dup_no_passthrough): New functions.
6485 (regcache_valid_p, regcache_read_as_address): New functions.
6486 (deprecated_grub_regcache_for_registers): New function.
6487 (deprecated_grub_regcache_for_register_valid): New function.
6488 (current_regcache): New global variable.
6489 (register_buffer): Add regcache parameter. Update calls.
6490 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6491 (read_register_gen, write_register_gen): Update register_buffer
6492 call. Test for legacy_p instead of gdbarch_register_read_p or
6493 gdbarch_register_write_p.
6494 (regcache_collect): Update register_buffer call.
6495 (build_regcache): Rewrite. Use deprecated grub functions.
6496 (regcache_save, regcache_save_no_passthrough): New functions.
6497 (regcache_restore, regcache_restore_no_passthrough): New
6498 functions.
6499 (_initialize_regcache): Create the regcache_data_handle. Swap
6500 current_regcache global variable.
6501
6502 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6503 parameter to regcache_read and regcache_write calls.
6504 (sh4_register_read): Ditto.
6505 (sh64_pseudo_register_read): Ditto.
6506 (sh64_register_read): Ditto.
6507 (sh_pseudo_register_write): Ditto.
6508 (sh4_register_write): Ditto.
6509 (sh64_pseudo_register_write): Ditto.
6510 (sh64_register_write): Ditto.
6511
6512 * defs.h (XCALLOC): Define.
6513
65142002-06-19 Grace Sainsbury <graces@redhat.com>
6515
6516 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6517 * m68k-tdep.c (m68k_gdbarch_init): Added.
6518 (m68k_dump_tdep): Added.
6519
65202002-06-19 Daniel Jacobowitz <drow@mvista.com>
6521
6522 * ada-lang.c (fill_in_ada_prototype): Update comment.
6523
65242002-06-19 Daniel Jacobowitz <drow@mvista.com>
6525
6526 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6527 MIPS_ABI_LAST.
6528 (mips_abi_string, mips_abi_strings): New.
6529 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6530 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6531 tdep->mips_abi_string. Honor mips_abi_string. Default to
6532 O32 if no ABI is found.
6533 (mips_dump_tdep): Use mips_abi_strings.
6534 (mips_abi_update): New function.
6535 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6536 ``set mips abi'' and ``show mips abi''. Check the size of
6537 mips_abi_strings.
6538
65392002-06-19 Andrew Cagney <cagney@redhat.com>
6540
6541 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6542 constant.
6543
65442002-06-18 Joel Brobecker <brobecker@gnat.com>
6545
6546 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6547 current frame using only the first stack size adjustment. All
6548 subsequent size adjustments are not considered to be part of
6549 the "static" part of the current frame.
6550 Compute the address of the saved registers relative to the
6551 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6552 in use in this frame.
6553
65542002-06-18 Don Howard <dhoward@redhat.com>
6555
6556 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6557 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6558 suggesting this solution.
6559
65602002-06-18 Andrew Cagney <ac131313@redhat.com>
6561
6562 * config/romp/xm-rtbsd.h: Delete file.
6563 * config/romp/rtbsd.mh: Delete file.
6564
65652002-06-18 Keith Seitz <keiths@redhat.com>
6566
6567 * breakpoint.c (condition_command): Post breakpoint_modify
6568 when a condition is added to an existing breakpoint.
6569 (commands_command): Likewise for commands.
6570 (set_ignore_count): Likewise for ignore counts.
6571 If no tty, do not simply return, still need to send event
6572 notification.
6573 (ignore_command): Only print a newline if the command came
6574 from a tty.
6575 Don't call breakpoints_changed, since this is now properly
6576 handled by set_ignore_count.
6577
65782002-06-18 Andrew Cagney <cagney@redhat.com>
6579
6580 * MAINTAINERS: Note that cris-elf target can be compiled with
6581 -Werror.
6582 * cris-tdep.c (cris_register_name): Make return type constant.
6583 (cris_breakpoint_from_pc): Ditto.
6584
65852002-06-18 Michal Ludvig <mludvig@suse.cz>
6586
6587 * frame.h (struct frame_info): Change type of context to
6588 'struct context'.
6589
65902002-06-17 Andrew Cagney <cagney@redhat.com>
6591
6592 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6593 pointer.
6594 * gdbarch.h, gdbarch.c: Regenerate.
6595 * config/mips/tm-mips.h (mips_register_name): Update.
6596 * i386-tdep.h (i386_register_name): Update.
6597 * mips-tdep.c (mips_register_name): Update
6598 * alpha-tdep.c (alpha_register_name): Update.
6599 * arch-utils.c (legacy_register_name): Update.
6600 * arch-utils.h (legacy_register_name): Update.
6601 * avr-tdep.c (avr_register_name): Update.
6602 * ia64-tdep.c (ia64_register_name): Update.
6603 * i386-tdep.c (i386_register_name): Update.
6604 * sparc-tdep.c (sparc32_register_name): Update.
6605 (sparc64_register_name): Update.
6606 (sparclite_register_name): Update.
6607 (sparclet_register_name): Update.
6608 * sh-tdep.c (sh_generic_register_name): Update.
6609 (sh_sh_register_name): Update.
6610 (sh_sh3_register_name): Update.
6611 (sh_sh3e_register_name): Update.
6612 (sh_sh_dsp_register_name): Update.
6613 (sh_sh3_dsp_register_name): Update.
6614 (sh_sh4_register_name): Update.
6615 (sh_sh64_register_name): Update.
6616 * s390-tdep.c (s390_register_name): Update.
6617 * rs6000-tdep.c (rs6000_register_name): Update.
6618 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6619 (ns32k_register_name_32382): Update.
6620 * d10v-tdep.c (d10v_ts2_register_name): Update.
6621 (d10v_ts3_register_name): Update.
6622 * xstormy16-tdep.c (xstormy16_register_name): Update.
6623 * vax-tdep.c (vax_register_name): Update.
6624 * v850-tdep.c (v850_register_name): Update.
6625 * m68hc11-tdep.c (m68hc11_register_name): Update.
6626 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6627 (am33_register_name): Update.
6628
66292002-06-17 Grace Sainsbury <graces@redhat.com>
6630
6631 * m68k-tdep.c: Reindented.
6632
66332002-06-17 Andrew Cagney <ac131313@redhat.com>
6634
6635 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6636 list of predefined types.
6637
66382002-06-16 Mark Kettenis <kettenis@gnu.org>
6639
6640 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6641 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6642 REGISTER_CONVERT_TO_RAW): Remove defines.
6643 (i386_register_virtual_type, i386_register_convertible,
6644 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6645 Remove prototypes.
6646 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6647 macros mentioned above.
6648
6649 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6650 (i386lynx_saved_pc_after_call): Remove prototype.
6651 * i386ly-tdep.c: Include "i386-tdep.h".
6652 (i386lynx_saved_pc_after_call): Make static. Use
6653 read_memory_nobpt instead of read_memory. Use
6654 read_memory_unsigned_integer instead of read_memory_integer.
6655 (i386lynx_init_abi): New function.
6656 (i386lynx_coff_osabi_sniffer): New function.
6657 (_initialize_i386bsd_tdep): New function.
6658
6659 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6660 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6661 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6662 (i386_fix_call_dummy): Remove prototype.
6663 * i386-tdep.c (i386_call_dummy_words): New variable.
6664 (i386_gdbarch_init): Adjust for removal of the
6665 macros mentioned above.
6666
66672002-06-15 Andrew Cagney <ac131313@redhat.com>
6668
6669 * command.h (add_setshow_auto_boolean_cmd): Replace
6670 add_set_auto_boolean_cmd.
6671 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6672 add_set_auto_boolean_cmd.
6673 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6674 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6675 mask-address'' command.
6676 (show_mask_address): Add cmd parameter.
6677 * remote.c (add_packet_config_cmd): Update. Change type of
6678 set_func and show_func to cmd_sfunc_ftype.
6679 (_initialize_remote): Update `set remote Z-packet'
6680 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6681 (show_remote_protocol_e_packet_cmd): Ditto.
6682 (show_remote_protocol_E_packet_cmd): Ditto.
6683 (show_remote_protocol_P_packet_cmd): Ditto.
6684 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6685 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6686 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6687 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6688 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6689 (show_remote_protocol_Z_packet_cmd): Ditto.
6690 (show_remote_protocol_binary_download_cmd): Ditto.
6691 (show_remote_cmd): Pass NULL to all of above.
6692
66932002-06-15 Mark Kettenis <kettenis@gnu.org>
6694
6695 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6696 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6697 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6698 POP_FRAME): Remove defines.
6699 (i386_push_arguments, i386_store_struct_return,
6700 i386_extract_return_value, i386_store_return_value,
6701 i386_extract_struct_value_address, i386_push_dummy_frame,
6702 i386_pop_frame): Renove prototypes.
6703 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6704 macros mentioned above.
6705
67062002-06-15 Andrew Cagney <ac131313@redhat.com>
6707
6708 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6709 add_set_boolean_cmd.
6710 (add_setshow_cmd): New function.
6711 * command.h (add_setshow_boolean_cmd): Replace
6712 add_set_boolean_cmd.
6713 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6714 and ``set rdiromatzero''.
6715 * maint.c (_initialize_maint_cmds): Update commented out code.
6716 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6717 * target.c (initialize_targets): Update `set
6718 trust-readonly-sections'.
6719 * remote.c (_initialize_remote): Update `set remotebreak'.
6720
67212002-06-15 Mark Kettenis <kettenis@gnu.org>
6722
6723 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6724 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6725 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6726 fit into multi-arch framework.
6727 (i386_breakpoint_from_pc): New function.
6728 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6729 above.
6730
6731 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6732 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6733 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6734 (i386_frameless_function_invocation, i386_frame_num_args,
6735 i386_frame_init_saved_regs): Remove prototypes.
6736 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6737 macros mentioned above.
6738
67392002-06-15 Andrew Cagney <ac131313@redhat.com>
6740
6741 * cli/cli-decode.c (set_cmd_cfunc): Update.
6742 (set_cmd_sfunc): Update.
6743 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6744 (set_cmd_sfunc, set_cmd_cfunc): Update.
6745 * cli/cli-decode.h: Update.
6746
67472002-06-15 Mark Kettenis <kettenis@gnu.org>
6748
6749 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6750 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6751
67522002-06-15 Andrew Cagney <ac131313@redhat.com>
6753
6754 * defs.h (auto_boolean): Declare enum.
6755 * command.h (cmd_auto_boolean): Delete enum.
6756 * mips-tdep.c (mask_address_var): Update.
6757 (mips_mask_address_p): Update.
6758 (show_mask_address): Update.
6759 * remote.c (struct packet_config): Update.
6760 (update_packet_config): Update.
6761 (show_packet_config_cmd): Update.
6762 (packet_ok): Update.
6763 (add_packet_config_cmd): Update.
6764 (_initialize_remote):
6765 * command.h: Update.
6766 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6767 (do_setshow_command): Update.
6768 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6769 * cli/cli-decode.h: Update.
6770
67712002-06-15 Mark Kettenis <kettenis@gnu.org>
6772
6773 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6774 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6775 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6776 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6777 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6778 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6779
6780 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6781 list of DJGPP COFF targets.
6782
6783 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6784 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6785 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6786 (FP0_REGNUM): Remove define.
6787 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6788 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6789 (i386_register_virtual_size): Remove protoype.
6790 * i386-tdep.c (i386_register_virtual_size): Removed.
6791 (i386_extract_return_value, i386_store_return_value): Use
6792 FP0_REGNUM instead of NUM_FREGS to determine whether the
6793 floating-point registers are available.
6794 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6795 Adjust for removal of macros mentioned above.
6796
67972002-06-15 Mark Kettenis <kettenis@gnu.org>
6798
6799 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6800 comments.
6801 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6802 Remove prototypes.
6803 (supply_gregset, fill_gregset): Remove use of register keyword and
6804 remove declaration for regmap. Use I386_NUM_GREGS instead of
6805 NUM_REGS and NUM_FREGS.
6806 (FPREGSET_FSAVE_OFFSET): Remove.
6807 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6808 NUM_FREGS to determine whether the floating-point registers are
6809 available.
6810
6811 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6812 gnu_store_registers): Replace usage of NUM_GREGS with
6813 I386_NUM_GREGS.
6814
6815 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6816 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6817 usage of NUM_GREGS with I386_NUM_GREGS.
6818
6819 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6820
6821 * i386bsd-nat.c: Include "i386-tdep.h".
6822 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6823 I386_NUM_GREGS.
6824
6825 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6826 and associated comment. They no longer make any sense, since we
6827 don't use this file anymore on Linux.
6828
6829 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6830 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6831 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6832 elements in these arrays.
6833 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6834 MAX_NUM_REGS.
6835
68362002-06-15 Mark Kettenis <kettenis@gnu.org>
6837
6838 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6839 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6840
68412002-06-14 Andrew Cagney <cagney@redhat.com>
6842
6843 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6844 EXTRACT_RETURN_VALUE.
6845 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6846 EXTRACT_STRUCT_VALUE_ADDRESS.
6847 * gdbarch.h, gdbarch.c: Regenerate.
6848
6849 * values.c (value_being_returned): Handle
6850 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6851 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6852
6853 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6854 * arm-tdep.c (arm_gdbarch_init): Update.
6855 * avr-tdep.c (avr_gdbarch_init): Update.
6856 * cris-tdep.c (cris_gdbarch_init): Update.
6857 * d10v-tdep.c (d10v_gdbarch_init): Update.
6858 * ia64-tdep.c (ia64_gdbarch_init): Update.
6859 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6860 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6861 * s390-tdep.c (s390_gdbarch_init): Update.
6862 * sh-tdep.c (sh_gdbarch_init): Update.
6863 * s390-tdep.c (s390_gdbarch_init): Update.
6864 * sparc-tdep.c (sparc_gdbarch_init): Update.
6865 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6866 * v850-tdep.c (v850_gdbarch_init): Update.
6867 * vax-tdep.c (vax_gdbarch_init): Update.
6868 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6869 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6870
6871 * config/arc/tm-arc.h: Update.
6872 * config/d30v/tm-d30v.h: Update.
6873 * config/fr30/tm-fr30.h: Update.
6874 * config/h8300/tm-h8300.h: Update.
6875 * config/h8500/tm-h8500.h: Update.
6876 * config/i386/tm-i386.h: Update.
6877 * config/i386/tm-ptx.h: Update.
6878 * config/i386/tm-symmetry.h: Update.
6879 * config/i960/tm-i960.h: Update.
6880 * config/m32r/tm-m32r.h: Update.
6881 * config/m68k/tm-delta68.h: Update.
6882 * config/m68k/tm-linux.h: Update.
6883 * config/m68k/tm-m68k.h: Update.
6884 * config/m88k/tm-m88k.h: Update.
6885 * config/mcore/tm-mcore.h: Update.
6886 * config/mips/tm-mips.h: Update.
6887 * config/mn10200/tm-mn10200.h: Update.
6888 * config/pa/tm-hppa.h: Update.
6889 * config/pa/tm-hppa64.h: Update.
6890 * config/sparc/tm-sp64.h: Update.
6891 * config/sparc/tm-sparc.h: Update.
6892 * config/sparc/tm-sparclet.h: Update.
6893 * config/z8k/tm-z8k.h: Update.
6894
68952002-06-14 Andrew Cagney <cagney@redhat.com>
6896
6897 * Makefile.in (i386_linux_tdep_h): Define.
6898 (i386_tdep_h, i387_tdep_h): Define.
6899 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6900 $(i386_tdep_h) and $(i387_tdep_h).
6901 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6902
69032002-06-14 Mark Kettenis <kettenis@gnu.org>
6904
6905 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6906 Already covered by the default.
6907
6908 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6909 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6910 (i386_gdbarch_init): Initialize long_double_format and long_double
6911 bit.
6912
6913 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6914 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6915 Move these to ...
6916 * config/i386/i386sol2.mh: ... here.
6917 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6918 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6919 (SIGCONTEXT_PC_OFFSET): Remove define.
6920 (IN_SIGTRAMP): Remove define.
6921 * i386-sol2-tdep.c: New file.
6922
6923 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6924 * config/i386/tm-i386nw.h: Removed.
6925
6926 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6927 USE_STRUCT_CONVENTION): Remove defines.
6928 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6929 (get_longjmp_target): Remove prototype.
6930 (IN_SIGTRAMP): Remove define.
6931 (i386bsd_in_sigtramp): Remove prototype.
6932 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6933 function. Update comment accordingly
6934 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6935 (FRAME_SAVED_PC): Remove define.
6936 (i386bsd_frame_saved_pc): Remove prototype.
6937 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6938 GET_LONGJMP_TARGET): Remove defines.
6939 (get_longjmp_target): Remove prototype.
6940 (IN_SIGTRAMP): Remove define.
6941 (i386bsd_in_sigtramp): Remove prototype.
6942 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6943 function. Update comment accordingly
6944 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6945 (FRAME_SAVED_PC): Remove define.
6946 (i386bsd_frame_saved_pc): Remove prototype.
6947 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6948 Remove prototype.
6949 (USE_STRUCT_CONVENTION): Remove prototype.
6950 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6951 declaration.
6952 (_initialize_i386bsd_nat): Revise logic to determine some
6953 constants at compile time when compiling a native GDB. Warn if
6954 things don't match up with what we expect.
6955 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6956 Remove variables.
6957 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6958 to use date stored in `struct gdbarch_tdep'.
6959 (i386bsd_sigcontext_offset): Remove varaible.
6960 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6961 stored in `struct gdbarch_tdep'.
6962 (i386bsd_frame_saved_pc): Make static.
6963 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6964 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6965 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6966 i386fbsd4_sc_pc_offset): New variables.
6967 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6968 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6969 functions.
6970 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6971 functions.
6972 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6973 Modify the value of i386fbsd_sigtramp_start and
6974 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6975 i386fbsd_sigtramp_end.
6976 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6977 function.
6978
6979 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6980 define to i386-linux-tdep.h.
6981 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6982 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6983 defines.
6984 (i386_linux_register_name, i386_linux_register_byte,
6985 i386_linux_register_raw_size): Remove prototypes.
6986 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6987 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6988 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6989 TARGET_WRITE_PC): Remove defines.
6990 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6991 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6992 i386_linux_write_pc): Remove prototypes.
6993 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6994 (get_longjmp_target): Remove prototype.
6995 * i386-linux-tdep.h: New file.
6996 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6997 * i386-linux-tdep.c: Include "i386-tdep.h" and
6998 "i386-linux-tdep.h".
6999 (i386_linux_register_name, i386_linux_register_byte,
7000 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7001 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7002 Make static.
7003 (i386_linux_init_abi): New function.
7004 (_initialize_i386_linux_tdep): New function.
7005
7006 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7007 (i386_saved_pc_after_call): Remove prototype.
7008 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7009 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7010 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7011 (i386_register_name, i386_stab_reg_to_regnum,
7012 i386_dwarf_reg_to_regnum): Remove prototypes.
7013 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7014 SIZEOF_SSE_REGS): Remove defines.
7015 (REGISTER_BYTES): Remove define.
7016 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7017 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7018 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7019 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7020 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7021 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7022 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7023 (get_longjmp_target): Remove prototype.
7024 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7025 (sigtramp_saved_pc): Remove define.
7026 (i386v4_sigtramp_saved_pc): Remove prototype.
7027 * config/i386/tm-go32.h (FRAME_CHAIN,
7028 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7029 (i386go32_frame_saved_pc): Remove prototype.
7030 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7031 (get_longjmp_target): Remove prototype.
7032 * i386-tdep.h: Include "osabi.h".
7033 (enum i386_abi): Removed.
7034 (enum struct_return): New enum.
7035 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7036 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7037 sc_pc_offset members.
7038 (i386_gdbarch_register_os_abi): Remove prototype.
7039 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7040 I386_SSE_NUM_REGS): New defines.
7041 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7042 I386_SSE_SIZEOF_REGS): New defines.
7043 (i386_register_name, i386_register_byte, i386_register_raw_size):
7044 New prototypes.
7045 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7046 (i386bsd_sigtramp_saved_pc): New prototype.
7047 * i386-tdep.c: Don't include "elf-bfd.h".
7048 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7049 i386_frame_chain, i386_saved_pc_after_call): Make static.
7050 (i386_frame_saved_pc): Rewrite to call architecture dependent
7051 function to deal with signal handlers. Make static.
7052 (i386go32_frame_saved_pc): Removed.
7053 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7054 Removed.
7055 (i386_get_longjmp_target): New function.
7056 (default_struct_convention, pcc_struct_convention,
7057 reg_struct_convention, valid_conventions, struct_convention): New
7058 variables.
7059 (i386_use_struct_convention): New function.
7060 (i386v4_sigtramp_saved_pc): Renamed to
7061 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7062 (i386_pc_in_sigtramp): New function.
7063 (i386_abi_names): Removed.
7064 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7065 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7066 Removed.
7067 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7068 i386_gdbarch_register_os_abi): Removed.
7069 (struct i386_abi_handler): Removed.
7070 (i386_abi_handler_list): Removed.
7071 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7072 functions.
7073 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7074 i386_nw_init_abi): New functions.
7075 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7076 Use set_gdbarch_xxx() calls instead of relying on macros for a
7077 number of calls.
7078 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7079 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7080 Register the various architecture variants defined in this file.
7081
70822002-06-14 Daniel Jacobowitz <drow@mvista.com>
7083
7084 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7085 (struct main_type): Remove arg_types member. Update comments for
7086 struct field.
7087 (TYPE_ARG_TYPES): Remove.
7088 (TYPE_FN_FIELD_ARGS): Update.
7089 (smash_to_method_type): Update prototype.
7090
7091 * c-typeprint.c (cp_type_print_method_args): Take method type
7092 instead of argument list. Use new argument layout. Simplify.
7093 (c_type_print_args): Use new argument layout. Simplify.
7094 (c_type_print_base): Update call to cp_type_print_method_args.
7095 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7096 argument; use die->type instead. Update call to
7097 smash_to_method_type.
7098 (read_structure_scope): Update call to dwarf2_add_member_fn.
7099 * gdbtypes.c (allocate_stub_method): Update comment.
7100 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7101 Use new argument layout.
7102 (check_stub_method): Use new argument layout. Don't count
7103 void as an argument.
7104 (print_arg_types): Update comments. Use new argument layout.
7105 (recursive_dump_type): Don't print arg_types member.
7106 * hpread.c (hpread_read_struct_type): Use new argument layout.
7107 (fixup_class_method_type): Likewise.
7108 (hpread_type_lookup): Likewise.
7109 * stabsread.c (read_type): Update calls to read_args and
7110 smash_to_method_type.
7111 (read_args): Use new argument layout. Simplify.
7112 * valops.c (typecmp): Use new argument layout. Update parameters
7113 and comments. Simplify.
7114 (hand_function_call): Use new argument layout.
7115 (search_struct_method): Update call to typecmp.
7116 (find_overload_match): Use new argument layout.
7117
71182002-06-13 Daniel Jacobowitz <drow@mvista.com>
7119
7120 * NEWS: Mention multithreaded debug support for gdbserver.
7121
71222002-06-13 Daniel Jacobowitz <drow@mvista.com>
7123
7124 * MAINTAINERS: Mention NEWS.
7125
71262002-06-13 Daniel Jacobowitz <drow@mvista.com>
7127
7128 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7129 (struct mips_objfile_private, compare_pdr_entries): New.
7130 (non_heuristic_proc_desc): Read the ".pdr" section if it
7131 is present.
7132
71332002-06-12 Andrew Cagney <ac131313@redhat.com>
7134
7135 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7136 (arm_debug): New static variable.
7137 (_initialize_arm_tdep): Add ``set debug arm'' command.
7138
71392002-06-12 Andrew Cagney <ac131313@redhat.com>
7140
7141 * Makefile.in (sim_arm_h): Define.
7142 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7143 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7144 (arm_register_sim_regno): New function, map an internal REGNUM
7145 onto a simulator register number.
7146 (arm_gdbarch_init): Set register_sim_regno.
7147
71482002-06-09 Aldy Hernandez <aldyh@redhat.com>
7149
7150 * MAINTAINERS: Add self.
7151
71522002-06-11 Jim Blandy <jimb@redhat.com>
7153
7154 * source.c (source_info): Mention whether the symtab has
7155 information about preprocessor macros.
7156
7157 Call the command `info macro', not `show macro'.
7158 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7159 Fix error message.
7160 (_initialize_macrocmd): Register `info_macro_command' in
7161 `infolist', not `showlist'.
7162
71632002-06-11 Daniel Jacobowitz <drow@mvista.com>
7164
7165 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7166 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7167 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7168 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7169 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7170 unconditionally.
7171 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7172 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7173 (_initialize_mips_tdep): Remove dead code.
7174 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7175 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7176 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7177 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7178 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7179 MIPS_LAST_FP_ARG_REGNUM): Remove.
7180
71812002-06-11 Michal Ludvig <mludvig@suse.cz>
7182
7183 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7184 (unwind_tmp_obstack_free, parse_frame_info)
7185 (update_context, cfi_read_fp, cfi_write_fp)
7186 (cfi_frame_chain, cfi_init_extra_frame_info)
7187 (cfi_virtual_frame_pointer): Use the above function.
7188 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7189
71902002-06-11 Corinna Vinschen <vinschen@redhat.com>
7191
7192 * v850-tdep.c (v850_type_is_scalar): New function.
7193 (v850_use_struct_convention): Match current gcc implementation
7194 as close as possible.
7195 (v850_push_arguments): Fix stack_offset handling. Don't write
7196 struct_addr into register. This is done by v850_store_struct_return.
7197 (v850_extract_return_value): Care for structs.
7198 (v850_store_return_value): Ditto.
7199 (v850_store_struct_return): Actually write address.
7200
72012002-06-11 Michal Ludvig <mludvig@suse.cz>
7202
7203 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7204 without debug information too.
7205
72062002-06-10 Andrew Cagney <ac131313@redhat.com>
7207
7208 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7209 Make multi-arch pure.
7210 * gdbarch.h, gdbarch.c: Re-generate.
7211 * arm-tdep.c (arm_print_float_info): Update.
7212 * arch-utils.h (default_print_float_info): Update.
7213 * arch-utils.c (default_print_float_info): Update.
7214 * infcmd.c (float_info): Update call.
7215
72162002-06-10 Andrew Cagney <ac131313@redhat.com>
7217
7218 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7219 the front of the initialize list.
7220
72212002-06-10 Andrew Cagney <ac131313@redhat.com>
7222
7223 * infrun.c (struct inferior_status): Replace fields
7224 selected_frame_address and selected_level with field
7225 selected_frame_id.
7226 (save_inferior_status): Update. Use get_frame_id.
7227 (struct restore_selected_frame_args): Delete.
7228 (restore_selected_frame): Update. Use frame_find_by_id.
7229 (restore_inferior_status): Update.
7230
7231 * breakpoint.h (struct breakpoint): Change type of
7232 watchpoint_frame to frame_id.
7233 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7234 call to get_current_frame.
7235 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7236 get_current_frame.
7237 (watchpoint_check): Use frame_find_by_id.
7238
7239 * frame.h (record_selected_frame): Delete declaration.
7240 * stack.c (record_selected_frame): Delete function.
7241
7242 * frame.h (struct frame_id): Define.
7243 (get_frame_id): Declare.
7244 (frame_find_by_id): Declare.
7245 * frame.c (frame_find_by_id): New function.
7246 (get_frame_id): New function.
7247
72482002-06-10 Andrey Volkov <avolkov@transas.com>
7249
7250 * ser-e7kpc.c: Fix duplicated define and call of
7251 _initialize_ser_e7000pc
7252
72532002-06-09 Daniel Jacobowitz <drow@mvista.com>
7254
7255 * signals/signals.c (target_signal_from_host): Fix #ifdef
7256 SIGRTMIN case.
7257 (do_target_signal_to_host): Likewise.
7258
72592002-06-09 Daniel Jacobowitz <drow@mvista.com>
7260
7261 * mips-tdep.c (mips_find_abi_section): New function.
7262 (mips_gdbarch_init): Call it.
7263
72642002-06-09 Mark Kettenis <kettenis@gnu.org>
7265
7266 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7267 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7268 after Andrew's 2002-06-08 gdbarch change.
7269
72702002-06-09 Mark Kettenis <kettenis@gnu.org>
7271
7272 * i386-linux-nat.c (suppy_gregset): Don't supply
7273 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7274 register cache.
7275 (fill_gregset): Don't fetch it under the same circumstances.
7276
72772002-06-09 Andrew Cagney <cagney@redhat.com>
7278
7279 * Makefile.in (callback_h): Define.
7280 (remote_sim_h): Update path to remote-sim.h.
7281 (remote-rdp.o): Add $(callback_h).
7282 (remote-sim.o): Use $(callback_h).
7283 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7284 * remote-rdp.c: Include "gdb/callback.h".
7285
72862002-06-09 Mark Kettenis <kettenis@gnu.org>
7287
7288 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7289 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7290
72912002-06-08 Andrew Cagney <ac131313@redhat.com>
7292
7293 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7294 * rdi-share/serpardr.c: Ditto.
7295 * rdi-share/unixcomm.c: Ditto.
7296 * rdi-share/serdrv.c: Ditto.
7297 * rdi-share/hostchan.h: Ditto.
7298 * rdi-share/hostchan.c: Ditto.
7299 * rdi-share/host.h: Ditto.
7300 * rdi-share/devsw.c: Ditto.
7301
7302 * objfiles.h: Change type of obj_private to void pointer.
7303 * pa64solib.c: Update copyright. Don't include "assert.h", use
7304 strcmp instead of STREQ, use LONGEST, do not use PTR
7305 * somsolib.c: Ditto.
7306
7307 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7308 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7309 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7310
73112002-06-08 Andrew Cagney <ac131313@redhat.com>
7312
7313 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7314 (default_get_saved_register): Delete function.
7315 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7316 generic_unwind_get_saved_register.
7317 * gdbarch.h, gdbarch.c: Re-generate.
7318
73192002-06-08 Andrew Cagney <ac131313@redhat.com>
7320
7321 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7322 generic_func_frame_chain_valid.
7323 * gdbarch.h, gdbarch.c: Re-generate.
7324 * blockframe.c (generic_func_frame_chain_valid): Only check
7325 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7326 passing FP to PC_IN_CALL_DUMMY.
7327 Fix PR gdb/360.
7328
73292002-06-08 Andrew Cagney <ac131313@redhat.com>
7330
7331 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7332 (register_gdbarch_data): Initialize init_p.
7333 (gdbarch_data): Initialize data pointer using the init function.
7334 (init_gdbarch_data): Delete function.
7335 (gdbarch_update_p): Update.
7336 (initialize_non_multiarch): Update.
7337 (struct gdbarch): Add field initialized_p.
7338 * gdbarch.h, gdbarch.c: Re-generate.
7339
73402002-06-07 Michal Ludvig <mludvig@suse.cz>
7341
7342 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7343 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7344 better do the things actually here.
7345 * x86-64-tdep.c (x86_64_register_name2nr): New.
7346 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7347 (x86_64_gdbarch_init): Respect the above change.
7348 * x86-64-tdep.h (x86_64_register_name2nr)
7349 (x86_64_register_nr2name): Add prototypes.
7350 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7351
73522002-06-06 Michael Snyder <msnyder@redhat.com>
7353
7354 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7355 Delete extra braces and re-indent.
7356 (d10v_store_return_value): Char return values
7357 must be shifted over by one byte in R0.
7358 (d10v_extract_return_value): Delete extra braces, re-indent.
7359
73602002-06-06 Elena Zannoni <ezannoni@redhat.com>
7361
7362 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7363 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7364 (d10v_integer_to_address): Rewrite.
7365 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7366 the d10v specific functions which take care of converting to the
7367 correct space.
7368
73692002-06-06 Elena Zannoni <ezannoni@redhat.com>
7370
7371 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7372 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7373
73742002-06-02 Andrew Cagney <ac131313@redhat.com>
7375
7376 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7377 includes.
7378 * config/tm-linux.h: Ditto.
7379 * config/alpha/tm-alphalinux.h: Ditto.
7380 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7381 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7382 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7383 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7384 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7385 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7386 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7387 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7388 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7389 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7390 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7391 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7392 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7393 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7394 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7395 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7396 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7397 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7398 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7399 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7400 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7401 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7402 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7403 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7404 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7405 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7406 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7407 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7408 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7409 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7410 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7411 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7412 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7413 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7414 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7415 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7416 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7417
74182002-05-04 Aidan Skinner <aidan@velvet.net>
7419
7420 * ada-exp.tab.c: New file
7421 * ada-exp.y: New file
7422 * ada-lang.c: New file
7423 * ada-lang.h: New file
7424 * ada-lex.c: New file
7425 * ada-lex.l: New file
7426 * ada-tasks.c: New file
7427 * ada-typeprint.c: New file
7428 * ada-valprint.c: New file
7429
74302002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7431
7432 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7433 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7434
74352002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7436
7437 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7438 insetead of ppc-linux-tdep.o.
7439 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7440 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7441
74422002-06-02 Andrew Cagney <ac131313@redhat.com>
7443
7444 2002-05-07 Christian Groessler <chris@groessler.org>
7445 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7446 bit register contents for little endian hosts.
7447
74482002-06-01 Andrew Cagney <ac131313@redhat.com>
7449
7450 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7451 any maintainer.
7452
74532002-06-01 Andrew Cagney <ac131313@redhat.com>
7454
7455 * gdbarch.h: Regenerate.
7456
74572002-06-01 Andrew Cagney <ac131313@redhat.com>
7458
7459 * MAINTAINERS: Add everyone to write-after-approval list.
7460
74612002-06-01 Andrew Cagney <ac131313@redhat.com>
7462
7463 * stack.c (frame_info): Use frame_register_unwind instead of
7464 saved_regs. Mention when the SP is on the stack or in a register.
7465
7466 * frame.h (frame_register_unwind_ftype): Define. Document.
7467 (struct frame_info): Add field register_unwind and
7468 register_unwind_cache.
7469 (frame_register_unwind): Declare.
7470 (generic_unwind_get_saved_register): Declare.
7471
7472 * frame.c (frame_register_unwind): New function.
7473 (generic_unwind_get_saved_register): New function.
7474
7475 * blockframe.c (generic_call_dummy_register_unwind): New function.
7476 (frame_saved_regs_register_unwind): New function.
7477 (set_unwind_by_pc): New function.
7478 (create_new_frame): New function.
7479 (get_prev_frame): New function.
7480
74812002-05-30 Andrew Cagney <ac131313@redhat.com>
7482
7483 * a29k-share/: Delete directory.
7484 * remote-vx29k.c: Delete file.
7485
74862002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7487
7488 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7489 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7490
74912002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7492
7493 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7494 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7495 (sparc64nbsd-nat.o)
7496 (sparcnbsd-nat.o)
7497 (sparcnbsd-tdep.o): New dependency lists.
7498 * NEWS: Note new UltraSPARC NetBSD native configuration.
7499 * configure.host (sparc64-*-netbsd*): New host.
7500 * configure.tgt (sparc-*-netbsdelf*)
7501 (sparc-*-netbsd*): Set gdb_target to nbsd.
7502 (sparc64-*-netbsd*): New target.
7503 * sparc64nbsd-nat.c: New file.
7504 * sparcnbsd-nat.c: New file.
7505 * sparcnbsd-tdep.c: New file.
7506 * sparcnbsd-tdep.h: New file.
7507 * config/sparc/nbsd.mt: New file.
7508 * config/sparc/nbsd64.mh: New file.
7509 * config/sparc/nbsd64.mt: New file.
7510 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7511 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7512 (HOST_IPC): Remove.
7513 * config/sparc/nbsdaout.mt: Remove.
7514 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7515 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7516 (HOST_IPC): Remove.
7517 * config/sparc/nbsdelf.mt: Remove.
7518 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7519 sparc-nat.c compatiblity defines.
7520 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7521 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7522 * config/sparc/tm-nbsd64.h: New file.
7523 * config/sparc/tm-nbsdaout.h: Remove.
7524 * config/sparc/xm-nbsd.h: Remove.
7525
75262002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7527
7528 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7529 * sparc-tdep.c: Include osabi.h.
7530 (gdbarch_tdep): Add osabi member.
7531 (_initialize_sparc_tdep): Use gdbarch_register.
7532 (sparc_gdbarch_init): Use generic OS ABI framework.
7533 (sparc_dump_tdep): New function.
7534
75352002-05-30 Kevin Buettner <kevinb@redhat.com>
7536
7537 * corefile.c (do_captured_read_memory_integer): Return non-zero
7538 result.
7539 (safe_read_memory_integer): Copy result of memory read when
7540 status is non-zero. Also, add comments.
7541
75422002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7543
7544 * Makefile.in (ppc_tdep_h): Define.
7545 (ppc-linux-nat.o)
7546 (ppc-linux-tdep.o)
7547 (rs6000-tdep.o): Use $(ppc_tdep_h).
7548 (ppc-sysv-tdep.o)
7549 (ppcnbsd-nat.o)
7550 (ppcnbsd-tdep.o): New dependency lists.
7551 * ppc-tdep.h: Use generic OS ABI framework.
7552 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7553 (ppc_linux_init_abi): New functions.
7554 (ppc_sysv_abi_broken_use_struct_convention)
7555 (ppc_sysv_abi_use_struct_convention)
7556 (ppc_sysv_abi_push_arguments): Move to...
7557 * ppc-sysv-tdep.c: ...here.
7558 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7559 * rs6000-tdep.c (process_note_abi_tag_sections)
7560 (get_elfosabi): Remove.
7561 (rs6000_gdbarch_init): Use generic OS ABI framework.
7562 (rs6000_dump_tdep): New function.
7563 (_initialize_rs6000_tdep): Use gdbarch_register.
7564 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7565 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7566 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7567 of ppc-linux-tdep.o.
7568 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7569 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7570 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7571 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7572 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7573 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7574
75752002-05-29 Jim Blandy <jimb@redhat.com>
7576
7577 * macroscope.c (default_macro_scope): Put `void' in empty argument
7578 list.
7579
75802002-05-29 Andrew Cagney <ac131313@redhat.com>
7581
7582 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7583 * arch-utils.c: Include "sim-regno.h".
7584 * gdbarch.sh: Don't include "sim-regno.h".
7585 * gdbarch.h, gdbarch.c: Regenerate.
7586 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7587 here.
7588 * arch-utils.h (legacy_register_sim_regno): To here.
7589 * remote-sim.c (legacy_register_sim_regno): Move function from
7590 here.
7591 * arch-utils.c (legacy_register_sim_regno): To here.
7592
75932002-05-28 Andrew Cagney <ac131313@redhat.com>
7594
7595 * sim-regno.h: New file.
7596 * Makefile.in (sim_regno_h): Define.
7597 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7598 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7599 (legacy_register_sim_regno): New function.
7600 (one2one_register_sim_regno): New function.
7601 (gdbsim_fetch_register): Rewrite.
7602 (gdbsim_store_register): Only store a register when
7603 REGISTER_SIM_REGNO is valid.
7604 * d10v-tdep.c: Include "sim-regno.h".
7605 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7606 (d10v_ts3_register_sim_regno): Ditto.
7607 * gdbarch.sh: Include "sim-regno.h".
7608 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7609 * gdbarch.h, gdbarch.c: Regenerate.
7610 * arch-utils.h (default_register_sim_regno): Delete declaration.
7611 * arch-utils.c (default_register_sim_regno): Delete function.
7612
76132002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7614
7615 * ppcnbsd-nat.c: Rewrite.
7616 * ppcnbsd-tdep.c: New file.
7617 * ppcnbsd-tdep.h: New file.
7618 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7619 solib.o, and solib-svr4.o.
7620 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7621 nbsd-tdep.o, and corelow.o.
7622
76232002-05-28 Andrew Cagney <ac131313@redhat.com>
7624
7625 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7626 `tr' and `sed'. Mention that `broken' targets are not expected to
7627 build.
7628
76292002-05-27 Michal Ludvig <mludvig@suse.cz>
7630
7631 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7632 Let PC point right after the prologue before looking up symbols.
7633
76342002-05-27 Martin M. Hunt <hunt@redhat.com>
7635
7636 * i386-tdep.c (i386_register_virtual_type): Return
7637 builtin_type_vec128i for SSE registers.
7638
7639 * gdbtypes.h (builtin_type_vec128i): Declare.
7640
7641 * gdbtypes.c (build_builtin_type_vec128i): New function.
7642 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7643 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7644 (build_gdbtypes): Initialize new builtin vector types.
7645 (_initialize_gdbtypes): Register new vector types with gdbarch.
7646
76472002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7648
7649 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7650 since it has been multi-arch'd.
7651 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7652 Move Alpha and VAX multi-arch news entries to same section
7653 as other multi-arch news.
7654
76552002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7656
7657 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7658 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7659 static. Rename some register numbers to put them in ns32k-tdep
7660 private namespace.
7661 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7662 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7663 functions.
7664 (_initialize_ns32k_tdep): Use gdbarch_register.
7665 * ns32k-tdep.h: New file.
7666 * ns32knbsd-tdep.c: New file.
7667 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7668 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7669 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7670 REGISTER_BYTES, REGISTER_BYTE): Remove.
7671 * config/ns32k/tm-ns32k.h: New file.
7672 * config/ns32k/tm-umax.h: Remove.
7673
76742002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7675
7676 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7677 ns32k_store_struct_return, ns32k_extract_return_value,
7678 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7679 functions.
7680 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7681 ns32k_saved_pc_after_call.
7682 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7683 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7684 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7685 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7686 ns32k_extract_struct_value_address.
7687
76882002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7689
7690 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7691 ns32k_fix_call_dummy): New.
7692 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7693 ns32k_call_dummy_words.
7694 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7695 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7696 CALL_DUMMY_NARGS): Remove.
7697 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7698
76992002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7700
7701 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7702 ns32k_frame_saved_pc, ns32k_frame_args_address,
7703 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7704 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7705 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7706 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7707 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7708 (BREAKPOINT): Remove..
7709 (FRAME_CHAIN): Define as ns32k_frame_chain.
7710 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7711 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7712 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7713 (FRAME_FIND_SAVED_REGS): Remove.
7714 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7715 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7716 (POP_FRAME): Define as ns32k_pop_frame.
7717
77182002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7719
7720 * ns32k-tdep.c (ns32k_register_byte_32082,
7721 ns32k_register_byte_32382, ns32k_register_raw_size,
7722 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7723 functions.
7724 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7725 ns32k_register_byte_32382.
7726 * config/ns32k/tm-umax.h: Update copyright years.
7727 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7728 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7729 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7730 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7731 (ns32k_get_enter_addr): Fix prototype.
7732
77332002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7734
7735 * ns32k-tdep.c: Update copyright years.
7736 (ns32k_register_name_32082): New function.
7737 (ns32k_register_name_32382): Ditto.
7738 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7739 (REGISTER_NAME): Define as ns32k_register_name_32382.
7740 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7741 (REGISTER_NAME): Define as ns32k_register_name_32082.
7742
77432002-05-24 Jim Blandy <jimb@redhat.com>
7744
7745 * dwarf2read.c (free_line_header): Use xfree, not free.
7746
77472002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7748
7749 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7750 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7751
77522002-05-23 Andrew Cagney <ac131313@redhat.com>
7753
7754 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7755
77562002-05-23 Andrew Cagney <ac131313@redhat.com>
7757
7758 From Ross Alexander at NEC Europe:
7759 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7760
77612002-05-23 Michael Snyder <msnyder@redhat.com>
7762
7763 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7764 for input, rather than parse_and_eval_address.
7765
77662002-05-23 Andrew Cagney <ac131313@redhat.com>
7767
7768 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7769 * Makefile.in (sim_d10v_h): Update definition.
7770
77712002-05-24 Andrew Cagney <cagney@redhat.com>
7772
7773 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7774 change `2002-05-22 Michael Snyder' below.
7775 (d10v_push_arguments): Ditto.
7776 (d10v_extract_return_value): Ditto.
7777
77782002-05-23 Jim Blandy <jimb@redhat.com>
7779
7780 * macrotab.c (check_for_redefinition): Don't complain if the new
7781 definition is the same as the previous one. Take more arguments
7782 to allow the comparison.
7783 (macro_define_object, macro_define_function): Pass more arguments
7784 to check_for_redefinition.
7785
77862002-05-22 Michael Snyder <msnyder@redhat.com>
7787
7788 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7789 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7790 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7791 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7792 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7793 Add a temp variable to save a call (and a memory read).
7794 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7795 if possible (so that PC_IN_CALL_DUMMY will work).
7796
77972002-05-22 Corinna Vinschen <vinschen@redhat.com>
7798
7799 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7800
78012002-05-22 Michal Ludvig <mludvig@suse.cz>
7802
7803 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7804 fde->cie_ptr.
7805 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7806 (dwarf2_build_frame_info): Add offset to fde->initial_location
7807 so that frames of shared libraries are mapped correctly.
7808 (execute_stack_op): Change type of 'result' from ULONGEST to
7809 CORE_ADDR.
7810
78112002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7812
7813 * config/alpha/tm-nbsd.h: Include solib.h.
7814
78152002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7816
7817 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7818 assumptions about the host's byte order.
7819
78202002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7821
7822 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7823 to dependency list.
7824 * alphanbsd-tdep.c: Include solib-svr4.h.
7825 * shnbsd-tdep.c: Ditto.
7826
78272002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7828
7829 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7830 nbsd-tdep.h to dependency list.
7831 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7832 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7833 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7834 nbsdaout.mh and nbsdelf.mh consistently.
7835 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7836 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7837 nbsdaout.mt and nbsdelf.mh consistently.
7838 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7839 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7840 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7841 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7842 a.out shared library stuff from here...
7843 * config/nm-nbsdaout.h: ...to here.
7844 * config/tm-nbsd.h: Remove.
7845 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7846 * config/arm/nbsd.mh: Remove.
7847 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7848 nbsd-tdep.o.
7849 * config/arm/nbsdaout.mh: New file.
7850 * config/arm/nbsdelf.mh: New file.
7851 * config/arm/nm-nbsdaout.h: New file.
7852 * config/i386/nbsd.mh: Remove.
7853 * config/i386/nbsd.mt: Remove.
7854 * config/i386/nbsdaout.mh: New file.
7855 * config/i386/nbsdaout.mt: New file.
7856 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7857 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7858 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7859 i386_register_u_addr): Remove.
7860 * config/i386/nm-nbsdaout.h: New file.
7861 * config/i386/nm-nbsdelf.h: Remove.
7862 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7863 (USE_STRUCT_CONVENTION): Remove.
7864 * config/i386/tm-nbsdaout.h: New file.
7865 * config/i386/tm-nbsdelf.h: Remove.
7866 * config/m68k/nbsd.mh: Remove.
7867 * config/m68k/nbsd.mt: Remove.
7868 * config/m68k/nbsdaout.mh: New file.
7869 * config/m68k/nbsdaout.mt: New file.
7870 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7871 * config/m68k/nm-nbsdaout.h: New file.
7872 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7873 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7874 * config/ns32k/nbsd.mh: Remove.
7875 * config/ns32k/nbsd.mt: Remove.
7876 * config/ns32k/nbsdaout.mh: New file.
7877 * config/ns32k/nbsdaout.mt: New file.
7878 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7879 * config/ns32k/nm-nbsdaout.h: New file.
7880 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7881 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7882 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7883 (SVR4_SHARED_LIBS): Remove.
7884 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7885 * config/sparc/nbsd.mh: Remove.
7886 * config/sparc/nbsd.mt: Remove.
7887 * config/sparc/nbsdaout.mh: New file.
7888 * config/sparc/nbsdaout.mt: New file.
7889 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7890 * config/sparc/nbsdelf.mt: New file.
7891 * config/sparc/nm-nbsdaout.h: New file.
7892 * config/sparc/nm-nbsdelf.h: Remove.
7893 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7894 * config/sparc/tm-nbsdaout.h: New file.
7895
78962002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7897
7898 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7899 mipsnbsd-tdep.c
7900 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7901
79022002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7903
7904 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7905 shnbsd-nat.c.
7906 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7907
79082002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7909
7910 * NEWS: Note new MIPS NetBSD native configuration.
7911 * configure.host (mips*-*-netbsd*): New host.
7912 * configure.tgt (mips*-*-netbsd*): New target.
7913 * mipsnbsd-nat.c: New file.
7914 * mipsnbsd-tdep.c: New file.
7915 * mipsnbsd-tdep.h: New file.
7916 * config/mips/nbsd.mh: New file.
7917 * config/mips/nbsd.mt: New file.
7918 * config/mips/nm-nbsd.h: New file.
7919 * config/mips/tm-nbsd.h: New file.
7920
79212002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7922
7923 * Makefile.in (SFILES): Add osabi.c.
7924 (COMMON_OBS): Add osabi.o.
7925 (osabi.o): New dependency list.
7926 * osabi.c: New file.
7927 * osabi.h: New file.
7928 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7929
7930 * Makefile.in (alpha_tdep_h): Define and use instead of
7931 alpha-tdep.h.
7932 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7933 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7934 Remove.
7935 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7936 * alpha-tdep.h: Include osabi.h.
7937 (alpha_abi): Remove.
7938 (gdbarch_tdep): Use generic OS ABI framework.
7939 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7940 gdbarch_register_osabi.
7941 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7942 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7943 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7944
7945 * Makefile.in (sh_tdep_h): Add osabi.h.
7946 * sh-tdep.h (sh_osabi): Remove.
7947 (gdbarch_tdep): Use generic OS ABI framework.
7948 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7949 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7950 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7951 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7952
7953 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7954 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7955 gdbarch_register_osabi.
7956 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7957 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7958 (get_elfosabi): Rename to...
7959 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7960 ABI framework support routines.
7961 (arm_gdbarch_init): Use generic OS ABI framework.
7962 (arm_dump_tdep): Likewise.
7963 (_initialize_arm_tdep): Likewise.
7964 * arm-tdep.h: Include osabi.h.
7965 (arm_abi): Remove.
7966 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7967 osabi member.
7968 (arm_gdbarch_register_os_abi): Remove prototype.
7969 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7970 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7971
7972 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7973 * mips-tdep.c: Include osabi.h.
7974 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7975 OS ABI framework.
7976
79772002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7978
7979 * h8300-tdep.c: Fix formatting.
7980
79812002-05-20 Elena Zannoni <ezannoni@redhat.com>
7982
7983 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7984 printing vector registers.
7985
79862002-05-19 Andrew Cagney <ac131313@redhat.com>
7987
7988 From Fernando Nasser:
7989 * remote.c (remote_async_open_1): Re-throw the exception when the
7990 connection fails.
7991 (remote_cisco_open): Ditto.
7992 (remote_open_1): Ditto.
7993
79942002-05-19 Andrew Cagney <ac131313@redhat.com>
7995
7996 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7997 (remote_start_remote): Add uiout parameter. Pass through to
7998 remote_start_remote_dummy.
7999 (remote_open_1): Use catch_exception instead of catch_errors.
8000 (remote_async_open_1): Ditto.
8001 (remote_cisco_open): Ditto.
8002
80032002-05-19 Andrew Cagney <ac131313@redhat.com>
8004
8005 * remote.c (remote_start_remote): Replace PTR with void pointer.
8006 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8007 static.
8008
80092002-05-18 Andrew Cagney <ac131313@redhat.com>
8010
8011 * gdb_indent.sh: Allow the script to be run in the sim directory.
8012
80132002-05-18 Mark Kettenis <kettenis@gnu.org>
8014
8015 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8016 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8017
8018 * corelow.c (core_open): Only call set_gdbarch_from_file if
8019 exec_bfd is NULL.
8020
80212002-05-17 Andrey Volkov <avolkov@transas.com>
8022
8023 * h8300-tdep.c: Add support of EXR register
8024 * config/h8300/tm-h8300.h: Ditto.
8025
80262002-05-17 Andrey Volkov <avolkov@transas.com>
8027
8028 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8029
80302002-05-17 Andrey Volkov <avolkov@transas.com>
8031
8032 * h8300-tdep.c: Change literal regnums to REGNO.
8033
80342002-05-17 Jim Blandy <jimb@redhat.com>
8035
8036 * NEWS: Note addition of macro support.
8037
8038 Expand preprocessor macros in C expressions.
8039 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8040 (scan_macro_expansion, scanning_macro_expansion,
8041 finished_macro_expansion): New function declarations.
8042 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8043 variable declarations.
8044 * parser-defs.h (expression_context_pc): New declaration.
8045 * parse.c (expression_context_pc): New variable.
8046 (parse_exp_1): Set expression_context_pc, as well as
8047 expression_context_block.
8048 * c-exp.y (yylex): If we're not already reading the result of a
8049 macro expansion, try to macro-expand the next token. When we're
8050 done scanning a macro expansion, switch back to the mainline text.
8051 Commas and `if's in a macro's expansion don't terminate the input.
8052 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8053 (macro_original_text, macro_expanded_text,
8054 expression_macro_lookup_func, expression_macro_lookup_baton): New
8055 variables.
8056 (scan_macro_expansion, scanning_macro_expansion,
8057 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8058 c_preprocess_and_parse): New functions.
8059 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8060 c_preprocess_and_parse, instead of c_parse.
8061 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8062 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8063
8064Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8065
8066 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8067 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8068 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8069
80702002-05-17 Corinna Vinschen <vinschen@redhat.com>
8071
8072 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8073
80742002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8075
8076 * Makefile.in (sh_tdep_h): Define and use.
8077 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8078 register enum): Move to...
8079 * * sh-tdep.h: ...here.
8080 * sh-tdep.c: Include sh-tdep.h.
8081 * sh3-rom.c: Likewise.
8082 * shnbsd-tdep.c: Likewise.
8083
80842002-05-16 Michael Snyder <msnyder@redhat.com>
8085
8086 * arm-tdep.c: Spelling fix in comment.
8087
80882002-05-16 Jim Blandy <jimb@redhat.com>
8089
8090 Add commands for manually expanding macros and showing their
8091 definitions.
8092 * macrocmd.c, macroscope.c, macroscope.h: New files.
8093 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8094 (macroscope_h): New variable.
8095 (HFILES_NO_SRCDIR): Add macroscope.h.
8096 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8097 (macroscope.o, macrocmd.o): New rules.
8098
8099 Teach the Dwarf 2 reader to read macro information.
8100 * dwarf2read.c: #include "macrotab.h".
8101 (dwarf_macinfo_buffer): New variable.
8102 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8103 dwarf_macinfo_size.
8104 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8105 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8106 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8107 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8108 dwarf2_macro_spaces_in_definition): New complaints.
8109 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8110 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8111 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8112 the partial symbol table.
8113 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8114 from what's recorded in the partial symbol table.
8115 (read_file_scope): If the compilation unit has a
8116 `DW_AT_macro_info' attribute, read its macro information.
8117 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8118
81192002-05-16 Daniel Jacobowitz <drow@mvista.com>
8120
8121 Fix PR gdb/546
8122 * ser-tcp.c: Don't include <netinet/udp.h>.
8123
81242002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8125
8126 * MAINTAINERS: Update my email address.
8127
81282002-05-16 Richard Earnshaw <rearnsha@arm.com>
8129
8130 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8131 include file of the same name.
8132
81332002-05-16 Corinna Vinschen <vinschen@redhat.com>
8134
8135 * configure.tgt: Mark v850 as multi-arched.
8136 * config/v850/tm-v850.h: Remove file.
8137 * config/v850/v850.mt: Eliminate TM_FILE.
8138
81392002-05-16 Corinna Vinschen <vinschen@redhat.com>
8140
8141 * v850-tdep.c: Full multi-arch.
8142 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8143 Define GDB_MULTI_ARCH to 2.
8144
81452002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8146
8147 * p-exp.y (current_type): New static variable.
8148 Carries the type of the expression at the position that is parsed.
8149 (push_current_type, pop_current_type): Two new functions. Used
8150 to store/restore current_type in expression on specific tokens.
8151 (search_field): New static variable. Set to one after parsing a point
8152 as at that point only a FIELDNAME token should be searched.
8153 (FIELDNAME): New token. After a point only a token belonging to
8154 current_type type definition is allowed.
8155 (all over token rules): reset and change current_type according
8156 to rules.
8157 (exp '[' rule): insert implicit array index field if
8158 exp is a pascal string type.
8159
81602002-05-16 Corinna Vinschen <vinschen@redhat.com>
8161
8162 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8163 frame info. Use frame_info's saved_regs instead of matching member
8164 in extra_frame_info throughout.
8165 (v850_frame_init_saved_regs): New function.
8166 (v850_init_extra_frame_info): Move most functionality into
8167 v850_frame_init_saved_regs().
8168 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8169 (v850_frame_find_saved_regs): Remove declaration.
8170 (FRAME_FIND_SAVED_REGS): Remove definition.
8171 (v850_frame_init_saved_regs): Add declaration.
8172 (FRAME_INIT_SAVED_REGS): Add definition.
8173
81742002-05-16 Corinna Vinschen <vinschen@redhat.com>
8175
8176 * v850-tdep.c: Begin multi-arch'ing v850.
8177 (v850_target_architecture_hook): Remove function.
8178 (v850_gdbarch_init): New function. Add code previously in
8179 v850_target_architecture_hook().
8180 (_initialize_v850_tdep): Don't set target_architecture_hook.
8181 Call register_gdbarch_init() instead.
8182
81832002-05-16 Daniel Jacobowitz <drow@mvista.com>
8184
8185 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8186 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8187 (fixup_class_method_type): Likewise.
8188
81892002-05-15 Jim Blandy <jimb@redhat.com>
8190
8191 Add macro structures to GDB's symbol tables. Nobody puts anything
8192 in them yet.
8193 * symtab.h (struct symtab): New member: `macro_table'.
8194 * buildsym.h (pending_macros): New global variable.
8195 * buildsym.c: #include "macrotab.h".
8196 (buildsym_init): Initialize `pending_macros'.
8197 (end_symtab): If we found macro information while reading a CU's
8198 debugging info, do build a symtab structure for it. Make the
8199 symtab point to the macro information, and clear the
8200 `pending_macros' pointer which held it while we were reading the
8201 debug info.
8202 (really_free_pendings): Free any pending macro table.
8203 * objfiles.h (struct objfile): New member: `macro_cache'.
8204 * objfiles.c (allocate_objfile): Set allocate and free functions
8205 for the macro cache's objstack.
8206 (free_objfile): Empty the macro cache's obstack.
8207 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8208 set new allocate and free functions for it.
8209 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8210 free functions for the macro cache's objstack. (Why is this
8211 function building its own objfile?)
8212 * symmisc.c (print_objfile_statistics): Print statistics on the
8213 macro bcache.
8214 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8215
82162002-05-15 Richard Earnshaw <rearnsha@arm.com>
8217
8218 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8219 (REGISTER_U_ADDR): Delete definition.
8220 (arm_register_u_addr): Delete declaration.
8221
82222002-05-15 Richard Earnshaw <rearnsha@arm.com>
8223
8224 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8225 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8226
82272002-05-14 Andrew Cagney <ac131313@redhat.com>
8228
8229 * regcache.c (register_valid): Revise comments refering to "Not
8230 available" and "unavailable".
8231 * frame.c (frame_register_read): Ditto.
8232 * findvar.c (value_of_register): Ditto.
8233
82342002-05-15 Andrew Cagney <cagney@redhat.com>
8235
8236 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8237 (remote-sim.o): Update dependencies.
8238 (d10v-tdep.o): Specify dependencies.
8239 (sim_d10v_h): Define.
8240
82412002-05-14 Jim Blandy <jimb@redhat.com>
8242
8243 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8244 * macrotab.c (macro_lookup_inclusion, find_definition,
8245 new_macro_table): Same.
8246
8247 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8248 not `! strcmp ()'. This is a dubious improvement.
8249 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8250
8251 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8252 although it's not necessary, to avoid a warning.
8253
82542002-05-14 Daniel Jacobowitz <drow@mvista.com>
8255
8256 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8257 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8258 TYPE_INSTANCE_FLAGS.
8259 (struct main_type): New.
8260 (struct type): Move most members to struct main_type. Change
8261 cv_type and as_type to new type_chain member. Add instance_flags.
8262 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8263 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8264 (finish_cv_type): Remove prototype.
8265 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8266 Set TYPE_CHAIN.
8267 (alloc_type_instance): New function.
8268 (smash_type): New function.
8269 (make_pointer_type, make_reference_type, make_function_type)
8270 (smash_to_member_type, smash_to_method_type): Call smash_type.
8271 (make_qualified_type): New function.
8272 (make_type_with_address_space): Call make_qualified_type.
8273 (make_cv_type): Likewise.
8274 (finish_cv_type): Remove unnecessary function.
8275 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8276 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8277 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8278 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8279 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8280 * hpread.c (hpread_read_struct_type): Likewise.
8281 * stabsread.c (read_struct_type): Likewise.
8282
82832002-05-14 Elena Zannoni <ezannoni@redhat.com>
8284
8285 * configure.tgt: Add a catch all sh* target, for cases like
8286 sh[2,3,4]-elf and sh-hms.
8287
82882002-05-14 Keith Seitz <keiths@redhat.com>
8289
8290 * event-loop.c (create_file_handler): Don't do anything but
8291 update data when we are given a fd which we are already
8292 monitoring.
8293
82942002-05-14 Michal Ludvig <mludvig@suse.cz>
8295
8296 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8297 (update_context): Use __func__ in warnings.
8298
82992002-05-14 Daniel Jacobowitz <drow@mvista.com>
8300
8301 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8302 and tcp_close to net_open and net_close.
8303 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8304 using UDP if requested. Don't try to disable Nagle on UDP
8305 sockets.
8306 * remote.c (remote_serial_open): New function. Warn about UDP.
8307 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8308
83092002-05-13 Elena Zannoni <ezannoni@redhat.com>
8310
8311 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8312
83132002-05-13 Elena Zannoni <ezannoni@redhat.com>
8314
8315 * configure.tgt: Remove sh-hms target.
8316 * MAINTAINERS: Don't list sh-hms as a separate target.
8317
83182002-05-13 Jim Blandy <jimb@redhat.com>
8319
8320 Add first preprocessor macro-expansion files.
8321 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8322 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8323 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8324 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8325 (COMMON_OBS): Add macrotab.o, macroexp.o.
8326 (macroexp.o, macrotab.o): New rules.
8327
83282002-05-13 Andrew Cagney <ac131313@redhat.com>
8329
8330 * config/m88k/tm-m88k.h: Update copyright.
8331 (m88k_target_write_pc): Declare
8332 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8333 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8334 (SHIFT_INST_REGS): Update definition.
8335 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8336 using old definition of TARGET_WRITE_PC.
8337 * regcache.c (generic_target_write_pc): Delete code handling
8338 NNPC_REGNUM.
8339 * gdbarch.sh (NNPC_REGNUM): Delete.
8340 * gdbarch.h, gdbarch.c: Regenerate.
8341
83422002-05-13 Richard Earnshaw <rearnsha@arm.com>
8343
8344 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8345 builtin reg number.
8346
83472002-05-13 Daniel Jacobowitz <drow@mvista.com>
8348
8349 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8350 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8351 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8352 access macros.
8353 * c-typeprint.c (cp_type_print_method_args): Likewise.
8354 (c_type_print_args): Likewise.
8355 * d10v-tdep.c (d10v_push_arguments): Likewise.
8356 (d10v_extract_return_value): Likewise.
8357 * expprint.c (print_subexp): Likewise.
8358 * gdbtypes.c (lookup_primitive_typename): Likewise.
8359 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8360 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8361 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8362 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8363 (TYPE_VECTOR): Likewise.
8364 * hpread.c (hpread_read_struct_type)
8365 (fix_static_member_physnames, fixup_class_method_type)
8366 (hpread_type_lookup): Likewise.
8367 * mdebugread.c (parse_symbol, parse_type): Likewise.
8368 * p-lang.c (is_pascal_string_type): Likewise.
8369 * valops.c (hand_function_call): Likewise.
8370 * x86-64-tdep.c (classify_argument): Likewise.
8371
8372 * hpread.c (hpread_read_function_type)
8373 (hpread_read_doc_function_type): Call replace_type.
8374 * dstread.c (create_new_type): Delete.
8375 (decode_dst_structure, process_dst_function): Call alloc_type.
8376 Use type access macros.
8377
83782002-05-12 Mark Kettenis <kettenis@gnu.org>
8379
8380 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8381 the're not supported by the current architecture.
8382 (i387_fill_fxsave): Likewise.
8383
83842002-05-12 Fred Fish <fnf@redhat.com>
8385
8386 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8387 sect_index_xxx members to index the first slot in section_offsets
8388 if all of the section_offsets are zero.
8389
83902002-05-12 Mark Kettenis <kettenis@gnu.org>
8391
8392 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8393 checked in with last change.
8394
83952002-05-12 Mark Kettenis <kettenis@gnu.org>
8396
8397 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8398 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8399 config.sub.
8400
84012002-05-12 Daniel Jacobowitz <drow@mvista.com>
8402
8403 * Makefile.in: Update dependencies.
8404
84052002-05-11 Andrew Cagney <ac131313@redhat.com>
8406
8407 * language.c (local_hex_string_custom): Simplify. Do not depend
8408 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8409
8410 * memattr.c (mem_info_command): Replace calls to
8411 longest_local_hex_string and longest_local_hex_string_custom.
8412 * buildsym.c (make_blockvector): Ditto.
8413 * solib.c (info_sharedlibrary_command): Ditto.
8414 * tracepoint.c (tracepoints_info): Ditto.
8415 * symtab.c (print_msymbol_info): Ditto.
8416
8417 * language.c (local_hex_string): Delete.
8418 (local_hex_string_custom): Delete.
8419 (longest_local_hex_string): Rename to local_hex_string.
8420 (longest_local_hex_string_custom): Rename to
8421 local_hex_string_custom.
8422 * language.h (local_hex_string): Change parameter type to LONGEST.
8423 (local_hex_string_custom): Ditto.
8424 (longest_local_hex_string): Delete declaration.
8425 (longest_local_hex_string_custom): Ditto.
8426
8427 * solib.c: Update copyright.
8428 * memattr.c: Update copyright.
8429
84302002-05-11 Andrew Cagney <ac131313@redhat.com>
8431
8432 * arch-utils.h (legacy_register_to_value): Declare.
8433 (legacy_value_to_register): Declare.
8434 (legacy_convert_register_p): Declare.
8435 * arch-utils.c (legacy_register_to_value): New function.
8436 (legacy_value_to_register): New function.
8437 (legacy_convert_register_p): New function.
8438
8439 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8440 (VALUE_TO_REGISTER): Define.
8441 (CONVERT_REGISTER_P): Define.
8442 * gdbarch.h, gdbarch.c: Regenerate.
8443
8444 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8445 VALUE_TO_REGISTER.
8446 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8447 CONVERT_REGISTER_P.
8448
84492005-05-11 Daniel Jacobowitz <drow@mvista.com>
8450 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8451
8452 * Makefile.in: Update dependencies for valops.c.
8453 * valops.c: Include "gdb_assert.h".
8454 (typecmp): Skip THIS parameter to methods.
8455 (find_method_list): Remove static_memfuncp argument,
8456 update callers. Check for stub methods.
8457 (find_value_oload_method_list): Don't set *static_memfuncp.
8458 (find_overload_match): Don't check for stub methods. Assert
8459 that methods are not stubbed. Handle static methods.
8460 (value_find_oload_method_list): Remove static_memfuncp argument.
8461 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8462 to the argument list for static stub methods.
8463 * value.h (value_find_oload_method_list): Update prototype.
8464
84652002-05-11 Andrew Cagney <ac131313@redhat.com>
8466
8467 * arch-utils.h (generic_register_size): Declare.
8468 (generic_register_raw_size, generic_register_virtual_size): Delete
8469 declarations.
8470 * arch-utils.c (generic_register_raw_size): Delete.
8471 (generic_register_size): New function.
8472 (generic_register_virtual_size): Delete.
8473
8474 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8475 default generic_register_size.
8476 * gdbarch.h, gdbarch.c: Re-generate.
8477
8478 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8479 register_virtual_size.
8480 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8481 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8482
84832002-05-11 Andrew Cagney <ac131313@redhat.com>
8484
8485 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8486 * gdbarch.h, gdbarch.c: Regenerate.
8487 * gnu-v3-abi.c: Update copyright.
8488 (vtable_address_point_offset): Update.
8489 (gnuv3_rtti_type): Update.
8490 (gnuv3_baseclass_offset): Update.
8491 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8492 (init_fetch_link_map_offsets): Update.
8493 * remote.c (get_remote_state): Update.
8494
84952002-05-11 Daniel Jacobowitz <drow@mvista.com>
8496
8497 * TODO: Remove value_headof/value_from_vtable_info comment.
8498 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8499 * values.c (value_headof, value_from_vtable_info): Delete.
8500 * value.h (value_from_vtable_info): Delete prototype.
8501
85022002-05-11 Andrew Cagney <ac131313@redhat.com>
8503
8504 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8505 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8506 $(gdb_regex_h).
8507 (gdb_assert_h): Define.
8508 (gdb_wait_h): Define.
8509 (gdb_regex_h): Define.
8510
85112002-05-11 Daniel Jacobowitz <drow@mvista.com>
8512
8513 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8514 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8515
85162002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8517
8518 * nbsd-tdep.c: Fix comment.
8519
85202002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8521
8522 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8523 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8524 (nbsd-tdep.o): New dependency list.
8525 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8526 nbsd-tdep.h.
8527 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8528 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8529 * nbsd-tdep.c: New file.
8530 * nbsd-tdep.h: New file.
8531 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8532 nbsd-tdep.h.
8533 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8534 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8535 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8536 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8537
85382002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8539
8540 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8541 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8542 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8543 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8544 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8545 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8546
85472002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8548
8549 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8550 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8551 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8552 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8553 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8554 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8555 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8556
85572002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8558
8559 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8560 fetch_elfcore_registers to...
8561 * i386nbsd-tdep.c: ...here.
8562 (i386nbsd_use_struct_convention): Rename to...
8563 (i386nbsd_aout_use_struct_convention): ...this.
8564 (i386nbsd_supply_reg): New function.
8565 (i386nbsd_fill_reg): New function.
8566 (fetch_core_registers): Use i386nbsd_supply_reg.
8567 (fetch_elfcore_registers): Likewise.
8568 (_initialize_i386nbsd_tdep): New function.
8569 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8570 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8571 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8572 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8573 (i386nbsd_aout_use_struct_convention): ...this.
8574
85752002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8576
8577 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8578 (store_inferior_registers): Use shnbsd_fill_reg.
8579 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8580 sh_nbsd_supply_register): Collapse into...
8581 (shnbsd_supply_reg): ...this.
8582 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8583 (shnbsd_fill_reg): ...this.
8584 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8585 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8586 (fetch_core_registers): Use shnbsd_supply_reg.
8587 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8588 (sh_nbsd_core_fns): Rename to...
8589 (shnbsd_core_fns): ...this.
8590 (sh_nbsd_elfcore_fns): Rename to...
8591 (shnbsd_elfcore_fns): ...this.
8592 (sh_nbsd_init_abi): Rename to...
8593 (shnbsd_init_abi): ...this.
8594 (_initialize_sh_nbsd_tdep): Rename to...
8595 (_initialize_shnbsd_tdep): ...this.
8596 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8597 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8598 sh_nbsd_fill_register): Remove prototypes.
8599 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8600
86012002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8602
8603 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8604 (i387-nat.o): Delete dependency list.
8605 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8606 (x86-64-linux-nat.o): Likewise.
8607 * i387-nat.c: Delete file, moving contents to...
8608 * i387-tdep.c: ...here.
8609 * i387-nat.h: Rename...
8610 * i387-tdep.h: ...to this.
8611 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8612 * i386-linux-nat.c: Likewise.
8613 * i386bsd-nat.c: Likewise.
8614 * i386gnu-nat.c: Likewise.
8615 * i386nbsd-nat.c: Likewise.
8616 * i386v4-nat.c: Likewise.
8617 * x86-64-linux-nat.c: Likewise.
8618 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8619 * config/i386/go32.mh (NATDEPFILES): Likewise.
8620 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8621 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8622 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8623 * config/i386/linux.mh (NATDEPFILES): Likewise.
8624 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8625 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8626 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8627 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8628
86292002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8630
8631 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8632 (alphanbsd-nat.o): Remove dependency list.
8633 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8634 * alphanbsd-nat.c: Delete. Contents moved to...
8635 * alphanbsd-tdep.c: ...here.
8636 (_initialize_alphanbsd_tdep): Register core functions.
8637 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8638
86392002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8640
8641 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8642 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8643 (alphanbsd-nat.o): Likewise.
8644 (alphabsd-tdep.o): New dependency list.
8645 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8646 (fill_gregset): Use alphabsd_fill_reg.
8647 (supply_fpregset): Use alphabsd_supply_fpreg.
8648 (fill_fpregset): Use alphabsd_fill_fpreg.
8649 (fetch_inferior_registers): Use struct reg and struct fpreg
8650 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8651 and alphabsd_supply_fpreg.
8652 (store_inferior_registers): Use struct reg and struct fpreg
8653 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8654 and alphabsd_fill_fpreg.
8655 * alphabsd-tdep.c: New file.
8656 * alphabsd-tdep.h: New file.
8657 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8658 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8659 alphabsd_supply_fpreg.
8660 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8661 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8662
86632002-05-11 Eric Christopher <echristo@redhat.com>
8664
8665 * mips-tdep.c (mips_double_register_type): Fix thinko.
8666 (mips_single_register_type): Ditto.
8667 * MAINTAINERS: Add self.
8668
86692002-05-11 Mark Kettenis <kettenis@gnu.org>
8670
8671 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8672 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8673 right thing on architectures with different endianness and/or
8674 integer sizes.
8675
86762002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8677
8678 From Christian Limpach <chris@Pin.LU>
8679 * configure.in: Change sed expression which comments out
8680 NATDEPFILES to also comment out continuation lines.
8681 * configure: Regenerate.
8682
86832002-05-10 Elena Zannoni <ezannoni@redhat.com>
8684
8685 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8686 big patch.
8687
86882002-05-10 Elena Zannoni <ezannoni@redhat.com>
8689
8690 * sh-tdep.c: Include correct file.
8691
86922002-05-10 Elena Zannoni <ezannoni@redhat.com>
8693
8694 New support for sh64-elf (sh5) target.
8695
8696 * configure.tgt: For sh64-elf target, default to sh-elf.
8697
8698 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8699 (struct gdbarch_tdep): Add new fields for new registers and ABI
8700 info.
8701
8702 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8703 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8704 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8705 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8706 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8707 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8708 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8709 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8710 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8711 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8712 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8713 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8714 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8715 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8716 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8717 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8718 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8719 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8720 sign_extend, sh64_nofp_frame_init_saved_regs,
8721 sh64_init_extra_frame_info, sh64_get_saved_register,
8722 sh64_extract_struct_value_address, sh64_pop_frame,
8723 sh64_push_arguments, sh64_extract_return_value,
8724 sh64_store_return_value, sh64_show_media_regs,
8725 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8726 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8727 sh_sh64_register_virtual_type,
8728 sh_sh64_register_convert_to_virtual,
8729 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8730 sh64_register_read, sh64_pseudo_register_write,
8731 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8732 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8733 sh64_do_pseudo_register, sh_compact_do_registers_info,
8734 sh64_do_registers_info, sh_gdbarch_init): New functions.
8735
87362002-05-10 Elena Zannoni <ezannoni@redhat.com>
8737
8738 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8739
87402002-05-10 Daniel Jacobowitz <drow@mvista.com>
8741
8742 * linespec.c (decode_line_1): Check for a double quote after
8743 a filename correctly.
8744
87452002-05-10 Jim Blandy <jimb@redhat.com>
8746
8747 Properly track the size of the current objfile's .debug_line section.
8748 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8749 (DWARF_LINE_SIZE): New macro.
8750 (dwarf2_build_psymtabs_hard): Record the line section's size in
8751 the partial symbol table.
8752 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8753 symbol table.
8754
87552002-05-10 Petr Sorfa <petrs@caldera.com>
8756
8757 * ia64-tdep.c: Handle breakpoints on L instruction type
8758 in MLX instruction bundle by moving the breakpoint to
8759 the third slot (X instruction type) as L holds only data.
8760
87612002-05-10 Kevin Buettner <kevinb@redhat.com>
8762
8763 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8764 (process_one_symbol): Complain about discarding local symbols
8765 due to a misplaced N_LBRAC entry.
8766
87672002-05-09 Elena Zannoni <ezannoni@redhat.com>
8768
8769 From Daniel Berlin <dan@cgsoftware.com>
8770 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8771 decrease the depth we are at, in the case of templates.
8772
87732002-05-09 Daniel Jacobowitz <drow@mvista.com>
8774
8775 * mips-tdep.c (mips_float_register_type): New function.
8776 (mips_double_register_type): New function.
8777 (mips_print_register): Use them.
8778 (do_fp_register_row): Likewise.
8779
87802002-05-09 Daniel Jacobowitz <drow@mvista.com>
8781
8782 * signals/signals.c (signals): Remove conditional compilation around
8783 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8784 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8785
87862002-05-09 Michael Snyder <msnyder@redhat.com>
8787
8788 * remote-rdp.c (remote_rdp_can_run): Remove.
8789
87902002-05-09 Tom Tromey <tromey@redhat.com>
8791
8792 * jv-valprint.c (java_val_print): Handle `char' as a special case
8793 of TYPE_CODE_INT.
8794
87952002-05-09 Michael Snyder <msnyder@redhat.com>
8796
8797 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8798 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8799 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8800 str r(0123),[sp,#nn].
8801 (arm_skip_prologue): Ditto. Also make disassembly
8802 order-independent by placing it in a loop.
8803
88042002-05-06 Michael Snyder <msnyder@redhat.com>
8805
8806 * stabsread.c (read_type): Add recognition for new attribute:
8807 "@V;" means that an array type is actually a vector.
8808 This is analogous to the vector flag that's been added to dwarf2.
8809
88102002-05-09 Mark Kettenis <kettenis@gnu.org>
8811
8812 * i386-tdep.h (i386_abi): New enum.
8813 (struct gdbarch_tdep): Replace os_ident member with abi.
8814 (i386_gdbarch_register_os_abi): New prototype.
8815 * i386-tdep.c (i386_abi_names): New array.
8816 (process_note_abi_tag_sections): Removed.
8817 (process_note_sections): New function.
8818 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8819 (struct i386_abi_handler): New struct.
8820 (i386_abi_handler_list): New variable.
8821 (i386_gdbarch_register_os_abi): New function.
8822 (i386_gdbarch_init): Adapt for the changes given above.
8823
88242002-05-08 Daniel Jacobowitz <drow@mvista.com>
8825
8826 * gregset.h: Say "GNU/Linux".
8827
88282002-05-08 Elena Zannoni <ezannoni@redhat.com>
8829
8830 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8831 (build_gdbtypes): Build builtin_type_v2_float.
8832 (_initialize_gdbtypes): Register new builtin type.
8833
88342002-05-08 Andrew Cagney <ac131313@redhat.com>
8835
8836 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8837 (clear_gdbarch_swap): New function.
8838 (initialize_non_multiarch): Call.
8839 (gdbarch_update_p): Before calling init(), swap out and clear the
8840 existing architecture.
8841 * gdbarch.c: Regenerate.
8842
88432002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8844
8845 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8846 alphanbsd-tdep.c.
8847
88482002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8849
8850 * sh-nbsd-nat.c: Rename to...
8851 * shnbsd-nat.c: ...this.
8852 * sh-nbsd-tdep.c: Rename to...
8853 * shnbsd-tdep.c: ...this.
8854 * sh-nbsd-tdep.h: Rename to...
8855 * shnbsd-tdep.h: ...this.
8856 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8857 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8858
88592002-05-08 Richard Earnshaw <rearnsha@arm.com>
8860
8861 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8862 concatenation for command help messages.
8863
88642002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8865
8866 * NEWS: Note new sh*-*-netbsdelf* configuration.
8867 * configure.host: Set gdb_host_cpu to sh for all sh*.
8868 (sh*-*-netbsdelf*): New host.
8869 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8870 (sh*-*-netbsdelf*): New target.
8871 * sh-nbsd-nat.c: New file.
8872 * sh-nbsd-tdep.c: New file.
8873 * sh-nbsd-tdep.h: New file.
8874 * config/sh/nbsd.mh: New file.
8875 * config/sh/nbsd.mt: New file.
8876 * config/sh/nm-nbsd.h: New file.
8877 * config/sh/tm-nbsd.h: New file.
8878
88792002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8880
8881 * sh-tdep.c (sh_osabi_names): Declare.
8882 (process_note_abi_tag_sections): New function.
8883 (get_elfosabi): Ditto.
8884 (sh_gdbarch_register_os_abi): Ditto.
8885 (sh_dump_tdep): Ditto.
8886 _initialize_sh_tdep): Use gdbarch_register to register
8887 sh_gdbarch_init and sh_dump_tdep.
8888 * config/sh/tm-sh.h (sh_osabi): Declare.
8889 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8890
88912002-05-07 Andrew Cagney <ac131313@redhat.com>
8892
8893 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8894 (thumb_scan_prologue): Ditto.
8895 (arm_find_callers_reg): Ditto.
8896 (arm_frame_chain): Ditto.
8897 (arm_init_extra_frame_info): Ditto.
8898 (arm_frame_saved_pc): Ditto.
8899 (arm_pop_frame): Ditto.
8900 (arm_push_return_address): New function.
8901 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8902 call_dummy_location, call_dummy_breakpoint_offset_p,
8903 call_dummy_breakpoint_offset, call_dummy_p,
8904 call_dummy_stack_adjust_p, call_dummy_words,
8905 sizeof_call_dummy_words, call_dummy_start_offset,
8906 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8907 call_dummy_address, push_return_address and push_dummy_frame for
8908 generic dummy frames.
8909
89102002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8911
8912 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8913 size computation for alloca.
8914 (sh_fp_frame_init_saved_regs): Likewise.
8915
89162002-05-07 Richard Earnshaw <rearnsha@arm.com>
8917
8918 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8919 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
8920 * arm-tdep.c (arm_store_return_value): Use them.
8921 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8922 * remote-rdp.c (remote_rdp_fetch_register): Use
8923 ARM_MAX_REGISTER_RAW_SIZE.
8924 (remote_rdp_store_register): Likewise.
8925
89262002-05-07 Michal Ludvig <mludvig@suse.cz>
8927
8928 * dwarf2cfi.c: Code cleanup, removed unused variables,
8929 added default labels to switch {} statements.
8930 * x86-64-tdep.c: Ditto.
8931 * x86-64-linux-nat.c: Ditto.
8932
89332002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8934
8935 * solib.h: Protect against multiple inclusion.
8936
89372002-05-06 Jim Blandy <jimb@redhat.com>
8938
8939 Add first preprocessor macro-expansion files.
8940 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8941 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8942 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8943 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8944 (COMMON_OBS): Add macrotab.o, macroexp.o.
8945 (macroexp.o, macrotab.o): New rules.
8946
8947 Separate the job of reading the line number info statement program
8948 header (...expialidocious) out into its own function.
8949 * dwarf2read.c (struct line_head, struct filenames, struct
8950 directories): Replace with...
8951 (struct line_header): New structure, containing the full
8952 contents of the statement program header, including the
8953 include directory and file name tables.
8954 (read_file_scope): If we have line number info, instead of just
8955 calling dwarf_decode_lines to do all the work, call
8956 dwarf_decode_line_header first to get a `struct line_header'
8957 containing the data in the statement program header, and then
8958 pass that to dwarf_decode_lines, which will pick up where that
8959 left off. Be sure to clean up the `struct line_header' object.
8960 (dwarf_decode_line_header, free_line_header, add_include_dir,
8961 add_file_name): New functions.
8962 (dwarf_decode_lines): Move all the code to read the statement
8963 program header into dwarf_decode_line_header. Take the line
8964 header it built as the first argument, instead of the offset to
8965 the compilation unit's line number info. Use the new `struct
8966 line_header' type instead of the old structures. No need to do
8967 cleanups here now, since we don't allocate anything.
8968 (dwarf2_statement_list_fits_in_line_number_section,
8969 dwarf2_line_header_too_long): New complaints.
8970
89712002-05-06 Elena Zannoni <ezannoni@redhat.com>
8972
8973 * gdbtypes.c (init_vector_type): New function.
8974 (build_builtin_type_vec128): Simplify the representation of SIMD
8975 registers.
8976 (build_gdbtypes): Initialize new builtin vector types.
8977 (_initialize_gdbtypes): Register new vector types with gdbarch.
8978 (builtin_type_v4_float, builtin_type_v4_int32,
8979 builtin_type_v8_int16, builtin_type_v16_int8,
8980 builtin_type_v2_int32, builtin_type_v4_int16,
8981 builtin_type_v8_int8): New (renamed) SIMD types.
8982
89832002-05-06 Mark Kettenis <kettenis@gnu.org>
8984
8985 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8986 (i387_fill_fxsave): Likewise.
8987
89882002-05-05 Alexandre Oliva <aoliva@redhat.com>
8989
8990 * alpha-tdep.c (alpha_extract_return_value): Don't use
8991 non-constant array size in prototype.
8992
89932002-05-04 Andrew Cagney <ac131313@redhat.com>
8994
8995 From Brian Taylor <briant at model dot com>:
8996 * ui-out.c (ui_out_field_core_addr): Use the function
8997 longest_local_hex_string_custom'to format addresses > 32 bits
8998 wide.
8999
9000 * ui-out.c (ui_out_field_core_addr): Update comment.
9001
90022002-05-04 Andrew Cagney <ac131313@redhat.com>
9003
9004 * stack.c (select_and_print_frame): Make static. Delete the
9005 parameter `level'.
9006 (func_command): Update call.
9007 (select_frame_command): Delete code computing the frame level.
9008 * frame.h (select_and_print_frame): Delete declaration.
9009
90102002-05-04 Andrew Cagney <ac131313@redhat.com>
9011
9012 * sparc-tdep.c (sparc_get_saved_register): Comment why
9013 get_prev_frame call is safe.
9014
90152002-05-04 Andrew Cagney <ac131313@redhat.com>
9016
9017 * frame.h (select_frame): Delete level parameter.
9018 * stack.c (select_frame): Update. Use frame_relative_level to
9019 obtain the frame's level.
9020 (select_and_print_frame): Update call.
9021 (select_frame_command): Ditto.
9022 (up_silently_base): Ditto.
9023 (down_silently_base): Ditto.
9024 * ocd.c (ocd_start_remote): Ditto.
9025 * remote-rdp.c (remote_rdp_open): Ditto.
9026 * remote-mips.c (mips_initialize): Ditto.
9027 (common_open): Ditto.
9028 * remote-e7000.c (e7000_start_remote): Ditto.
9029 * m3-nat.c (select_thread): Ditto.
9030 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9031 (child_get_current_exception_event): Ditto.
9032 * varobj.c (varobj_create): Ditto.
9033 (varobj_update): Ditto.
9034 (c_value_of_root): Ditto.
9035 * tracepoint.c (finish_tfind_command): Ditto.
9036 * corelow.c (core_open): Ditto.
9037 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9038 * thread.c (info_threads_command): Ditto.
9039 (switch_to_thread): Ditto.
9040 * infrun.c (normal_stop): Ditto.
9041 (restore_selected_frame): Ditto.
9042 (restore_inferior_status): Ditto.
9043 * breakpoint.c (insert_breakpoints): Ditto.
9044 (watchpoint_check): Ditto.
9045 (bpstat_stop_status): Ditto.
9046 (do_enable_breakpoint): Ditto.
9047 * blockframe.c (flush_cached_frames): Ditto.
9048 (reinit_frame_cache): Ditto.
9049
90502002-05-04 Andrew Cagney <ac131313@redhat.com>
9051
9052 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9053 maintainer.
9054
90552002-05-04 Jim Blandy <jimb@redhat.com>
9056
9057 * gdbtypes.c (replace_type): Doc fix.
9058
90592002-05-04 Andrew Cagney <ac131313@redhat.com>
9060
9061 * valprint.c (strcat_longest): Delete commented out function.
9062 Update copyright.
9063
90642002-05-04 Andrew Cagney <ac131313@redhat.com>
9065
9066 * MAINTAINERS: Mark a29k as deleted.
9067 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9068 Move new configurations to the top.
9069 * configure.tgt: Remove a29k.
9070 * config/a29k/tm-vx29k.h: Delete.
9071 * config/a29k/vx29k.mt: Delete.
9072 * config/a29k/tm-a29k.h: Delete.
9073 * config/a29k/a29k-udi.mt: Delete.
9074 * config/a29k/a29k.mt: Delete.
9075 * a29k-tdep.c: Delete.
9076 * remote-udi.c: Delete.
9077 * remote-mm.c: Delete.
9078 * remote-eb.c: Delete.
9079 * remote-adapt.c: Delete.
9080 * Makefile.in: Remove obsolete code.
9081 * config/s390/s390x.mt: Ditto.
9082 * config/s390/s390.mt: Ditto.
9083 * config/sparc/sparclynx.mh: Ditto.
9084 * config/sparc/linux.mh: Ditto.
9085 * config/pa/hppaosf.mh: Ditto.
9086 * config/pa/hppabsd.mh: Ditto.
9087 * config/ns32k/nbsd.mt: Ditto.
9088 * config/mips/vr5000.mt: Ditto.
9089 * config/m68k/sun3os4.mh: Ditto.
9090 * config/m68k/nbsd.mt: Ditto.
9091 * config/m68k/m68klynx.mh: Ditto.
9092 * config/m32r/m32r.mt: Ditto.
9093 * config/i386/x86-64linux.mt: Ditto.
9094 * config/i386/nbsdelf.mt: Ditto.
9095 * config/i386/nbsd.mt: Ditto.
9096 * config/i386/i386lynx.mh: Ditto.
9097
90982002-05-04 Andrew Cagney <ac131313@redhat.com>
9099
9100 * target.c (debug_print_register): New function. Handle oversize
9101 registers.
9102 (debug_to_fetch_registers): Call.
9103 (debug_to_store_registers): Call.
9104
91052002-05-03 Jim Blandy <jimb@redhat.com>
9106
9107 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9108 (read_type): Doc fix.
9109 * gdbtypes.c (replace_type): Doc fix.
9110
9111 * stabsread.c (multiply_defined_struct): New complaint.
9112 (read_struct_type): If the type we were passed isn't empty, or
9113 incomplete, don't read the new struct type into it; complain,
9114 and return the original type unchanged. Take a new `type_code'
9115 argument, which is the type code for the new type.
9116 (read_type): Rather than storing the type's type code here, pass
9117 it as an argument to read_struct_type, and let that take care of
9118 storing it. That way, we don't overwrite the original type code,
9119 so read_struct_type can use it to decide whether we're overwriting
9120 something we shouldn't.
9121 (complain_about_struct_wipeout): New function.
9122
91232002-05-03 Andrew Cagney <ac131313@redhat.com>
9124
9125 * gdbarch.sh: Assert that gdbarch is non-NULL.
9126 * gdbarch.c: Regenerate.
9127
91282002-05-03 Jason Merrill <jason@redhat.com>
9129
9130 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9131 and return NULL.
9132
91332002-05-03 Michal Ludvig <mludvig@suse.cz>
9134
9135 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9136 (x86_64_dwarf2gdb_regno_map_length),
9137 (x86_64_dwarf2_reg_to_regnum): Added.
9138 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9139 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9140 (_initialize_x86_64_tdep): Synced with the change above.
9141 (x86_64_skip_prologue): Reformulated message.
9142
91432002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9144
9145 * f-exp.y: Also use new prev_lexptr variable
9146 to improve error reporting. Based on Michael Snyder
9147 2002-04-24 dated patch to c-exp.y.
9148 * jv-exp.y: Likewise.
9149 * m2-exp.y: Likewise.
9150
91512002-05-02 Elena Zannoni <ezannoni@redhat.com>
9152
9153 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9154 we are dealing with vectors.
9155
91562002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9157
9158 * config/m68k/tm-nbsd.h: Obvious fix,
9159 correct machine name.
9160
91612002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9162
9163 * p-typeprint.c (pascal_type_print_base): Add support
9164 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9165
91662002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9167
9168 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9169 for fondamental pascal 'char' type.
9170
91712002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9172
9173 * p-lang.h (is_pascal_string_type): Declaration changed,
9174 new sixth argument of type char ** added.
9175 * p-lang.c (is_pascal_string_type): Implementation
9176 changed. Args length_pos, length_size, string_pos, char_size
9177 can now be NULL. New argument arrayname set to the field
9178 name of the char array. Return value set to char array
9179 field index plus one.
9180 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9181 is_pascal_string_type function.
9182
91832002-05-02 Andrew Cagney <cagney@redhat.com>
9184
9185 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9186 <cagney@redhat.com> change.
9187 * gdbarch.c: Regenerate.
9188
91892002-05-02 Andrew Cagney <cagney@redhat.com>
9190
9191 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9192 before probing for a new one. Detect errorenous gdbarch_init
9193 functions.
9194 * gdbarch.c: Regenerate.
9195
91962002-05-01 Andrew Cagney <cagney@redhat.com>
9197
9198 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9199 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9200 * config/v850/tm-v850.h: Ditto. Update copyright.
9201
92022002-04-30 Andrew Cagney <ac131313@redhat.com>
9203
9204 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9205 current_gdbarch.
9206
92072002-04-30 Michael Snyder <msnyder@redhat.com>
9208
9209 * arm-tdep.c: Whitespace clean-ups.
9210 (arm_skip_prologue): Fix thinko; two lines
9211 should have been removed as part of 4/24 change.
9212
92132002-04-30 Kevin Buettner <kevinb@redhat.com>
9214
9215 * rs6000-tdep.c: Added comment describing how fpscr register
9216 numbers were chosen.
9217
92182002-04-30 Michael Snyder <msnyder@redhat.com>
9219
9220 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9221
92222002-04-29 Elena Zannoni <ezannoni@redhat.com>
9223
9224 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9225 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9226 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9227
92282002-04-29 Kevin Buettner <kevinb@redhat.com>
9229
9230 From Louis Hamilton <hamilton@redhat.com>:
9231 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9232 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9233 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9234 not bfd-private xcoff data, to determine wordsize.
9235 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9236
92372002-04-29 Andrew Cagney <ac131313@redhat.com>
9238
9239 GDB 5.2 released from 5.2 branch.
9240
92412002-04-29 Michal Ludvig <mludvig@suse.cz>
9242
9243 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9244 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9245 (x86_64_register_info_table): Added comments with register numbers.
9246
92472002-04-29 Elena Zannoni <ezannoni@redhat.com>
9248
9249 * rs6000-tdep.c (rs6000_extract_return_value,
9250 rs6000_store_return_value): Handle returning vectors.
9251 (rs6000_gdbarch_init): Use
9252 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9253 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9254 New function.
9255 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9256 vectors.
9257 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9258 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9259
92602002-04-24 Pierre Muller <ics.u-strasbg.fr>
9261
9262 * hpread.c (hpread_psymtab_to_symtab_1,
9263 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9264 with fprintf_unfiltered (gdb_stderr,...).
9265
92662002-04-24 Pierre Muller <ics.u-strasbg.fr>
9267
9268 * remote-array.c (printf_monitor, write_monitor,
9269 array_insert_breakpoint, array_remove_breakpoint ):
9270 Replace fprintf (stderr,...
9271 with fprintf_unfiltered (gdb_stderr,....
9272 * remote-es.c: Likewise.
9273 * remote-os9k.c: Likewise.
9274 * remote-st.c: Likewise.
9275
92762002-04-28 Andreas Schwab <schwab@suse.de>
9277
9278 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9279 linux-proc.o and gcore.o.
9280
92812002-04-26 Michal Ludvig <mludvig@suse.cz>
9282
9283 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9284 code without frame pointers.
9285
92862002-04-26 Andrew Cagney <ac131313@redhat.com>
9287
9288 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9289 ON_STACK is needed.
9290
92912002-04-26 Ben Elliston <bje@redhat.com>
9292
9293 * target.c (do_xfer_memory): Correct reference to the new option
9294 "trust-readonly-sections".
9295
92962002-04-26 Elena Zannoni <ezannoni@redhat.com>
9297
9298 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9299 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9300 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9301 vectors.
9302 (read_array_type): Record the fact that this array type is really a
9303 vector (i.e. are passed in by value).
9304
93052002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9306
9307 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9308 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9309 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9310 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9311 * alpha-linux-tdep.c: Include frame.h.
9312 (alpha_linux_sigcontext_addr): New function.
9313 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9314 alpha_linux_sigcontext_addr.
9315 * alpha-osf1-tdep.c: Include gdbcore.h.
9316 (alpha_osf1_sigcontext_addr): New function.
9317 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9318 alpha_osf1_sigcontext_addr.
9319 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9320 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9321
93222002-04-26 Andrew Cagney <ac131313@redhat.com>
9323
9324 * stack.c (selected_frame_level):
9325 (select_frame): Do not set selected_frame_level.
9326 * frame.h (selected_frame_level): Delete declaration.
9327
93282002-04-26 Andrew Cagney <ac131313@redhat.com>
9329
9330 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9331 convert_from_func_ptr-addr when AIX / PowerOpen.
9332
93332002-04-25 Andrew Cagney <ac131313@redhat.com>
9334
9335 * valops.c (hand_function_call): Call
9336 generic_save_call_dummy_addr.
9337 * frame.h (generic_save_call_dummy_addr): Declare.
9338 * blockframe.c (struct dummy_frame): Add fields call_lo and
9339 call_hi.
9340 (generic_find_dummy_frame): Check for PC in range call_lo to
9341 call_hi instead of entry_point_address.
9342 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9343 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9344 (generic_save_call_dummy_addr): New function.
9345
93462002-04-24 David S. Miller <davem@redhat.com>
9347
9348 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9349 sparc_skip_prologue.
9350 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9351 information to find prologue when possible.
9352 (sparc_prologue_frameless_p): Call examine_prologue directly.
9353 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9354 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9355 second argument.
9356 (SKIP_PROLOGUE): Likewise.
9357
93582002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9359
9360 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9361 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9362 indicate that the condition it was testing is always true.
9363 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9364 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9365 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9366
93672002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9368
9369 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9370 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9371 tdep->jb_pc and tdep->jb_elt_size.
9372 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9373 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9374 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9375 * alpha-nat.c (get_longjmp_target): Remove.
9376 (JB_ELEMENT_SIZE): Ditto.
9377 (JB_PC): Ditto.
9378 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9379 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9380 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9381 to alpha_get_longjmp_target.
9382 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9383 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9384 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9385
93862002-04-25 Andrew Cagney <ac131313@redhat.com>
9387
9388 * README: Update to GDB 5.2.
9389
93902002-04-25 Andrew Cagney <ac131313@redhat.com>
9391
9392 * gdbarch.sh (LC_ALL): Set to `c'.
9393
93942002-04-25 Theodore A. Roth <troth@verinet.com>
9395
9396 * avr-tdep.c: Ran through gdb_indent.sh.
9397
93982002-04-25 Theodore A. Roth <troth@verinet.com>
9399
9400 * MAINTAINERS: Add myself as AVR maintainer.
9401 * NEWS: Note new target avr.
9402
94032002-04-25 Theodore A. Roth <troth@verinet.com>
9404
9405 * Makefile.in: Add support for AVR target.
9406 * configure.tgt: Add support for AVR target.
9407 * avr-tdep.c: New file
9408 * config/avr/avr.mt: New file.
9409
94102002-04-25 Theodore A. Roth <troth@verinet.com>
9411
9412 * MAINTAINERS: Add myself to write-after-approval.
9413
94142002-04-24 Pierre Muller <ics.u-strasbg.fr>
9415
9416 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9417 with fprintf_unfiltered (gdb_stderr,....
9418
94192002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9420
9421 Fix PR gdb/508.
9422 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9423
94242002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9425
9426 * p-exp.y: Also use new prev_lexptr variable
9427 to improve error reporting. Based on Michael Snyder
9428 2002-04-24 dated patch to c-exp.y.
9429
94302002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9431
9432 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9433 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9434 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9435 to 0.
9436 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9437 and struct value.
9438 (FUNCTION_START_OFFSET): Remove.
9439 (BREAKPOINT): Ditto.
9440
94412002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9442
9443 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9444 * NEWS: Ditto.
9445
94462002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9447
9448 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9449 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9450 alpha_linux_pc_in_sigtramp.
9451 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9452 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9453 alpha_osf1_pc_in_sigtramp.
9454 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9455 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9456 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9457 alphafbsd_pc_in_sigtramp.
9458 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9459 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9460 alphanbsd_pc_in_sigtramp.
9461 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9462 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9463
94642002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9465
9466 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9467
94682002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9469
9470 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9471 alphanbsd-tdep.c.
9472 (alphanbsd-nat.o): New dependency list.
9473 (alphanbsd-tdep.o): Ditto.
9474 * NEWS: Note new native NetBSD/alpha configuration.
9475 * alphanbsd-nat.c: New file.
9476 * alphanbsd-tdep.c: Ditto.
9477 * configure.host (alpha*-*-netbsd*): New host.
9478 * configure.tgt (alpha*-*-netbsd*): New target.
9479 * config/alpha/nbsd.mh: New file.
9480 * config/alpha/nbsd.mt: Ditto.
9481 * config/alpha/nm-nbsd.h: Ditto.
9482 * config/alpha/tm-nbsd.h: Ditto.
9483
94842002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9485
9486 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9487 (alpha-osf1-tdep.o): New dependency list.
9488 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9489 and skip_sigtramp_frame members.
9490 * alpha-linux-tdep.c: Include gdbcore.h.
9491 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9492 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9493 * alpha-osf1-tdep.c: New file.
9494 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9495 alpha-osf1-dep.c.
9496 (alpha_frame_past_sigtramp_frame): New function.
9497 (alpha_dynamic_sigtramp_offset): Ditto.
9498 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9499 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9500 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9501 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9502 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9503 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9504 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9505 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9506 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9507 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9508 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9509 to find_solib_trampoline_target.
9510 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9511 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9512 (SKIP_TRAMPOLINE_CODE): Remove.
9513 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9514 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9515 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9516 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9517 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9518 (PROC_SIGTRAMP_MAGIC): Ditto.
9519 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9520 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9521 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9522 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9523 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9524
95252002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9526
9527 * NEWS: Note that Alpha targets are now multi-arch.
9528
95292002-04-24 Michael Snyder <msnyder@redhat.com>
9530
9531 * parser-defs.h (prev_lexptr): New external variable.
9532 * parse.c (parse_exp_1): Set prev_lexptr to null before
9533 calling the language-specific parser.
9534 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9535 (yyerror): Use prev_lexptr in error reporting.
9536
95372002-04-24 Daniel Jacobowitz <drow@mvista.com>
9538
9539 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9540 * gregset.h: If FILL_FPXREGSET is defined, provide
9541 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9542 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9543 is defined, call fill_fpxregset.
9544
95452002-04-24 Roland McGrath <roland@frob.com>
9546
9547 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9548 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9549 (supply_gregset, supply_fpregset): New functions.
9550
9551 * gnu-nat.c (gnu_find_memory_regions): New function.
9552 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9553 (gnu_xfer_memory): Add a cast.
9554
95552002-04-24 Michael Snyder <msnyder@redhat.com>
9556
9557 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9558 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9559 of argument regs ("str r(0123), [r11, #-nn"]).
9560 (arm_skip_prologue): Better handling for frameless functions.
9561 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9562 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9563
9564Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9565
9566 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9567 NUM_PSEUDO_REGS can be used.
9568
95692002-04-24 Andrew Cagney <ac131313@redhat.com>
9570
9571 * arch-utils.h: Update copyright.
9572
9573 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9574 * gdbarch.h, gdbarch.c: Re-generate.
9575
9576 * inferior.h (IN_SIGTRAMP): Delete definition.
9577 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9578 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9579
9580 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9581 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9582 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9583 (find_proc_framesize): Ditto.
9584 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9585 (alpha_init_extra_frame_info): Ditto.
9586 * infrun.c (handle_inferior_event): Ditto.
9587 (handle_inferior_event): Ditto.
9588 (check_sigtramp2): Ditto.
9589 * blockframe.c (create_new_frame): Ditto.
9590 (get_prev_frame): Ditto.
9591 * ppc-linux-tdep.c: Update comments.
9592 * i386-linux-tdep.c: Update comments.
9593 * breakpoint.c (bpstat_what): Update comment.
9594
95952002-04-24 David S. Miller <davem@redhat.com>
9596
9597 * i960-tdep.c (register_in_window_p): New function.
9598 (i960_find_saved_register): Use it instead of
9599 REGISTER_IN_WINDOW_P.
9600 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9601
9602 * symtab.h (find_stab_function_addr): Kill extern.
9603 * minsyms.c (find_stab_function_addr): Remove from here...
9604 * dbxread.c: ... to here, and mark it static.
9605
96062002-04-20 David S. Miller <davem@redhat.com>
9607
9608 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9609 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9610
96112002-04-21 David S. Miller <davem@redhat.com>
9612
9613 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9614 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9615 (vx_write_register): Likewise.
9616
96172002-04-23 J. Brobecker <brobecker@gnat.com>
9618
9619 * source.c (is_regular_file): New function.
9620 (openp): Check wether file to open is a regular file
9621 to avoid opening directories.
9622
96232002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9624
9625 * findvar.c (extract_signed_integer): Cast printf argument
9626 to suppress format warning.
9627 (extract_unsigned_integer): Likewise.
9628 * infcmd.c (registers_info): Likewise.
9629 * top.c (get_prompt_1): Likewise.
9630 * valops.c (value_assign): Likewise.
9631 * valprint.c (print_decimal): Likewise.
9632
96332002-04-22 H.J. Lu (hjl@gnu.org)
9634
9635 * c-exp.y (typebase): Support
9636
9637 [long|long long|short] [signed|unsigned] [int|]
9638
9639 and
9640
9641 signed [long|long long|short] int
9642
96432002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9644
9645 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9646 and vax-tdep.h.
9647 * vax-tdep.h: New file.
9648 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9649 Make several routines static.
9650 (vax_get_saved_register): New function.
9651 (vax_gdbarch_init): New function.
9652 (_initialize_vax_tdep): Register vax_gdbarch_init.
9653 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9654 Remove macros now under the control of gdbarch.
9655
96562002-04-22 Michael Snyder <msnyder@redhat.com>
9657
9658 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9659 Some whitespace and coding standards tweaks.
9660
96612002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9662
9663 * vax-tdep.c: Include regcache.h.
9664 (vax_call_dummy_words): New.
9665 (sizeof_vax_call_dummy_words): New.
9666 (vax_fix_call_dummy): New function.
9667 (vax_saved_pc_after_call): Ditto.
9668 * config/vax/tm-vax.h: Don't include regcache.h.
9669 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9670 (CALL_DUMMY): Remove.
9671 (CALL_DUMMY_WORDS): Define.
9672 (SIZEOF_CALL_DUMMY_WORDS): Define.
9673 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9674
96752002-04-18 Michael Snyder <msnyder@redhat.com>
9676
9677 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9678
96792002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9680
9681 * vax-tdep.c (vax_frame_chain): New function.
9682 (vax_push_dummy_frame): Ditto.
9683 (vax_pop_frame): Ditto.
9684 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9685 (FRAMELESS_FUNCTION_INVOCATION): Use
9686 generic_frameless_function_invocation_not.
9687 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9688 (POP_FRAME): Use vax_pop_frame.
9689
96902002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9691
9692 * vax-tdep.c (vax_store_struct_return): New function.
9693 (vax_extract_return_value): Ditto.
9694 (vax_store_return_value): Ditto.
9695 (vax_extract_struct_value_address): Ditto.
9696 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9697 vax_store_struct_return.
9698 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9699 (STORE_RETURN_VALUE): Use vax_store_return_value.
9700 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9701
97022002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9703
9704 * vax-tdep.c (vax_frame_saved_pc): New function.
9705 (vax_frame_args_address_correct): Ditto.
9706 (vax_frame_args_address): Ditto.
9707 (vax_frame_locals_address): Ditto.
9708 (vax_frame_num_args): Move code to be in proximity to
9709 other frame-related functions.
9710 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9711 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9712 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9713 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9714 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9715
97162002-04-22 H.J. Lu (hjl@gnu.org)
9717
9718 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9719 includedir.
9720
97212002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9722
9723 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9724 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9725 (FRAME_INIT_SAVED_REGS): New macro.
9726
97272002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9728
9729 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9730
97312002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9732
9733 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9734 where needed.
9735 (fetch_osf_core_registers): Likewise.
9736 (supply_gregset): Likewise.
9737
97382002-04-22 J. Brobecker <brobecker@gnat.com>
9739
9740 * symfile.h (get_section_index): Define.
9741 * symfile.c (get_section_index): New function.
9742 * mdebugread.c (SC_IS_SBSS): New macro.
9743 (SC_IS_BSS): Return true for the scBss storage class only, as
9744 the scSBss storage class refers to the .sbss section.
9745 (parse_partial_symbols): Discard the symbols which associated
9746 section does not exist.
9747 Make sure to use the .sbss section index for symbols which
9748 storage class is scBss, rather than using the .bss section index.
9749
97502002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9751
9752 * vax-tdep.c: Update copyright years.
9753 (vax_register_name): New function.
9754 (vax_register_byte): Ditto.
9755 (vax_register_raw_size): Ditto.
9756 (vax_register_virtual_size): Ditto.
9757 (vax_register_virtual_type): Ditto.
9758 * config/vax/tm-vax.h: Update copyright years.
9759 (REGISTER_NAMES): Remove.
9760 (REGISTER_NAME): Define.
9761 (REGISTER_BYTE): Use vax_register_byte.
9762 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9763 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9764 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9765
97662002-04-21 Andrew Cagney <ac131313@redhat.com>
9767
9768 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9769 declaration
9770 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9771
97722002-04-21 David S. Miller <davem@redhat.com>
9773
9774 * arch-utils.c (generic_prologue_frameless_p): Kill
9775 SKIP_PROLOGUE_FRAMELESS_P code.
9776 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9777 references.
9778 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9779 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9780 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9781 references.
9782 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9783 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9784 (sparc_gdbarch_init): Pass it to
9785 set_gdbarch_prologue_frameless_p.
9786
97872002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9788
9789 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9790 (alphabsd-nat.o): New dependency list.
9791
97922002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9793
9794 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9795 alphafbsd-tdep.c.
9796 (alpha-linux-tdep.o): New dependency list.
9797 (alphafbsd-tdep.o): Likewise.
9798
97992002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9800
9801 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9802 to here...
9803 * alpha-tdep.c: ...from here.
9804 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9805
98062002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9807
9808 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9809 prototype from here...
9810 * alpha-tdep.h: ...to here.
9811
98122002-04-21 Andrew Cagney <ac131313@redhat.com>
9813
9814 * frame.h (selected_frame_level): Document as deprecated.
9815 (frame_relative_level): Declare.
9816 * stack.c (frame_relative_level): New function.
9817 (selected_frame_level): Document as deprecated.
9818 (select_frame): Do not set the selected_frame_level.
9819
9820 * stack.c (frame_info, record_selected_frame): Update.
9821 (frame_command, current_frame_command): Update.
9822 (up_silently_base, up_command, down_silently_base): Update.
9823 (down_command): Update.
9824 * inflow.c (kill_command): Update.
9825 * tracepoint.c (finish_tfind_command): Update.
9826 * corelow.c (core_open): Update.
9827 * thread.c (info_threads_command): Update.
9828 (do_captured_thread_select): Update.
9829 * infcmd.c (finish_command): Update.
9830 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9831
98322002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9833
9834 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9835
98362002-04-21 Andrew Cagney <ac131313@redhat.com>
9837
9838 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9839 type const.
9840
98412002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9842
9843 * alphafbsd-tdep.c: Update copyright years. Include
9844 alpha-tdep.h.
9845 (alphafbsd_use_struct_convention): Make static.
9846 (alphafbsd_init_abi): New function.
9847 (_initialize_alphafbsd_tdep): New function.
9848 * config/alpha/tm-fbsd.h: Update copyright years.
9849 (USE_STRUCT_CONVENTION): Remove.
9850
98512002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9852
9853 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9854 an Alpha ABI variant.
9855 (alpha_abi_handler_list): Declare.
9856 (alpha_gdbarch_register_os_abi): New function.
9857 (alpha_gdbarch_init): Give registered ABI variant handlers a
9858 chance to tweak the gdbarch once we have set up defaults.
9859 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9860
98612002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9862
9863 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9864 to standard_coerce_float_to_double.
9865 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9866
98672002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9868
9869 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9870 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9871 from gdbarch_tdep rather than a constant.
9872 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9873 the default text address for all Alpha Unix ABIs.
9874 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9875 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9876
98772002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9878
9879 * alpha-tdep.h: New file. Includes several Alpha target constants
9880 taken from...
9881 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9882 let gdbarch deal with.
9883 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9884 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9885 to dependency list.
9886 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9887 Alpha target register names.
9888 * alphabsd-nat.c: Likewise.
9889 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9890 Alpha target register names. Make serveral routines static.
9891 (alpha_get_saved_register): New function.
9892 (alpha_abi_names): New.
9893 (process_note_abi_tag_sections): New function.
9894 (get_elfosabi): New function.
9895 (alpha_gdbarch_init): New function.
9896 (alpha_dump_tdep): New function.
9897 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9898
98992002-04-21 Andrew Cagney <ac131313@redhat.com>
9900
9901 * frame.c (find_saved_register): Delete #ifdef
9902 HAVE_REGISTER_WINDOWS code.
9903 * config/sparc/tm-sparc.h: Update comments.
9904 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9905
99062002-04-21 Andrew Cagney <ac131313@redhat.com>
9907
9908 * i960-tdep.c (i960_find_saved_register): New function.
9909 (i960_get_saved_register): New function.
9910 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9911 (i960_get_saved_register): Declare.
9912 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9913
99142002-04-20 David S. Miller <davem@redhat.com>
9915
9916 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9917
99182002-04-20 Andrew Cagney <ac131313@redhat.com>
9919
9920 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9921 instead of NUM_PSEUDO_REGS.
9922
99232002-04-20 David S. Miller <davem@redhat.com>
9924
9925 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9926 GDB_MULTI_ARCH_PARTIAL
9927 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9928 define, let tm-sp64.h do it.
9929
99302002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9931
9932 * frame.c (find_saved_register): Avoid a NULL pointer
9933 dereference and actually walk the frame list.
9934
99352002-04-20 Andrew Cagney <ac131313@redhat.com>
9936
9937 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9938 sorted in most most-recent-used order. Document.
9939 * gdbarch.h, gdbarch.c: Regenerate.
9940
99412002-04-19 Andrew Cagney <ac131313@redhat.com>
9942
9943 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9944 instead of ->prev.
9945 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9946 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9947 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9948 instead of ->prev.
9949
99502002-04-19 Elena Zannoni <ezannoni@redhat.com>
9951
9952 Fix PR gdb/471.
9953 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9954 (build_builtin_type_vec128): Ditto.
9955 (append_composite_type_field): Fix calculation of type length in
9956 union case.
9957
99582002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9959
9960 * config/djgpp/README: Update.
9961
9962 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9963 compiler warnings.
9964
99652002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9966
9967 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9968 (alpha_setup_arbitrary_frame): ...to this.
9969 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9970 for alpha_setup_arbitrary_frame.
9971
99722002-04-18 Andrew Cagney <cagney@redhat.com>
9973
9974 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9975 * gdbarch.h, gdbarch.c: Regenerate.
9976
9977 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9978 * target.h (memory_breakpoint_from_pc): Update declaration.
9979 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9980
9981 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9982 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9983 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9984 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9985 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9986 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9987 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9988 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9989 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9990 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9991 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9992 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9993
9994 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9995 const pointer.
9996 * monitor.c (monitor_insert_breakpoint): Ditto.
9997 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9998
9999 * config/mcore/tm-mcore.h: Update copyright.
10000 * mem-break.c: Ditto.
10001 * xstormy16-tdep.c: Ditto.
10002
100032002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10004
10005 * p-exp.y: Add precedence rule for '^' token.
10006 This removes the shift/reduce conflicts.
10007 Remove the comment concerning these shift/reduce conflicts.
10008
100092002-04-18 Elena Zannoni <ezannoni@redhat.com>
10010
10011 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10012 (registers_powerpc_nofp): New register set for processors
10013 without floating point unit.
10014
100152002-04-18 David S. Miller <davem@redhat.com>
10016
10017 * MAINTAINERS: Add myself to write-after-approval.
10018
100192002-04-17 Michael Snyder <msnyder@redhat.com>
10020
10021 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10022
100232002-04-17 Andrew Cagney <ac131313@redhat.com>
10024
10025 * rs6000-tdep.c (frame_initial_stack_address): Use
10026 frame_register_read to read the alloca_reg.
10027
100282002-04-17 Andrew Cagney <ac131313@redhat.com>
10029
10030 * frame.c (find_saved_register): Find saved registers in the next
10031 not prev frame.
10032 Fix PR gdb/365.
10033
100342002-04-17 Andrew Cagney <ac131313@redhat.com>
10035
10036 * gdbarch.sh (LANG): Set to ``c''.
10037
100382002-04-15 Andrew Cagney <ac131313@redhat.com>
10039
10040 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10041
100422002-04-15 Andrew Cagney <ac131313@redhat.com>
10043
10044 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10045 Update copyright.
10046
10047 * hpread.c (hpread_get_lntt): Add declaration.
10048 Also fix PR gdb/391.
10049
100502002-04-14 Andrew Cagney <ac131313@redhat.com>
10051
10052 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10053 * aclocal.m4, configure: Re-generate.
10054 Fix PR gdb/391.
10055
100562002-04-14 Elena Zannoni <ezannoni@redhat.com>
10057
10058 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10059 instead of tm_print_insn.
10060
100612002-04-14 Elena Zannoni <ezannoni@redhat.com>
10062
10063 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10064
100652002-04-14 Andrew Cagney <ac131313@redhat.com>
10066
10067 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10068 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10069 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10070
100712002-04-12 Don Howard <dhoward@redhat.com>
10072
10073 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10074 max_user_call_depth.
10075 (init_cmd_lists): Initialize the new value;
10076 * cli/cli-script.c (execute_user_command): Limit the call depth of
10077 user defined commands. This avoids a core-dump when user commands
10078 are infinitly recursive.
10079
100802002-04-12 Kevin Buettner <kevinb@redhat.com>
10081
10082 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10083 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10084 from tdep struct instead of DEFAULT_LR_SAVE.
10085 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10086 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10087 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10088
100892002-04-12 Michael Snyder <msnyder@redhat.com>
10090
10091 * Remote.c: Spelling fix.
10092 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10093 If no symbol found for "sbrk", try "_sbrk".
10094 (make_output_phdrs): Use bfd_section_name.
10095 (gcore_copy_callback): Use bfd_section_name.
10096 * eval.c: Indentation fix-ups.
10097 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10098 in case it gets applied to an address that is already
10099 in the instruction space.
10100 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10101 * symfile.c: Fix indentation, long lines.
10102 * source.c: White space fix-up.
10103
101042002-04-12 Andrew Cagney <cagney@redhat.com>
10105
10106 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10107 * frame.c (frame_register_read): New function. Return non-zero on
10108 success.
10109 (read_relative_register_raw_bytes_for_frame): Delete.
10110 (read_relative_register_raw_bytes): Delete.
10111 * frame.h (frame_register_read): Declare.
10112 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10113 * sh-tdep.c: Ditto.
10114 * infcmd.c (do_registers_info): Ditto.
10115 * hppa-tdep.c: Ditto.
10116 * rs6000-tdep.c: Ditto.
10117 * h8500-tdep.c: Ditto.
10118 * mips-tdep.c: Ditto.
10119 * h8300-tdep.c: Ditto.
10120 * z8k-tdep.c: Ditto.
10121
101222002-04-12 Kevin Buettner <kevinb@redhat.com>
10123
10124 From Jimi X <jimix@watson.ibm.com>:
10125 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10126 64-bit SysV ABI.
10127
101282002-04-12 Kevin Buettner <kevinb@redhat.com>
10129
10130 From Jimi X <jimix@watson.ibm.com>:
10131 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10132 bfd info.
10133
101342002-04-12 Kevin Buettner <kevinb@redhat.com>
10135
10136 From Jimi X <jimix@watson.ibm.com>:
10137 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10138 register sets for these processor variants.
10139
101402002-04-11 Daniel Jacobowitz <drow@mvista.com>
10141
10142 * regformats/reg-ppc.dat: Support FPSCR.
10143
101442002-04-11 Kevin Buettner <kevinb@redhat.com>
10145
10146 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10147 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10148 Add fpscr as an invalid/unfetchable register.
10149 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10150 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10151 (fill_fpregset): Add support for register fpscr.
10152 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10153 (fill_gregset): Account for the fact that register ``mq'' might
10154 not exist.
10155 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10156 (registers_power): Add fpscr to register set at slot 71.
10157 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10158 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10159
101602002-04-11 Michael Snyder <msnyder@redhat.com>
10161
10162 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10163 * configure: Regenerate.
10164 * config.in: Regenerate.
10165 * acconfig.h: Add define for _SYSCALL32.
10166 * core-sol2.c: Remove #define _SYSCALL32.
10167 * solib-legacy.c: Remove #define _SYSCALL32.
10168
101692002-04-10 Andrew Cagney <ac131313@redhat.com>
10170
10171 * stack.c (select_frame): Cleanup internal error message, do not
10172 use %p.
10173
101742002-04-10 Andrew Cagney <ac131313@redhat.com>
10175
10176 * stack.c (select_frame): Check that selected_frame and the
10177 specified level are as expected.
10178 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10179 Update copyright.
10180 * frame.h (struct frame_info): Add field `level'. Update
10181 copyright.
10182 Work-in-progress PR gdb/464.
10183
101842002-04-10 Andrew Cagney <ac131313@redhat.com>
10185
10186 * maint.c (maint_print_section_info): Rename print_section_info.
10187 (print_bfd_section_info, print_objfile_section_info): Update.
10188 * inferior.h (struct gdbarch): Add opaque declaration.
10189 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10190 * gdbarch.h: Regenerate.
10191
101922002-04-10 Michal Ludvig <mludvig@suse.cz>
10193
10194 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10195 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10196 (kernel_u_size): Added.
10197 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10198 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10199
102002002-04-04 Jim Ingham <jingham@apple.com>
10201
10202 * valarith.c (find_size_for_pointer_math): New function, either returns
10203 the size for a pointer's target, returns 1 for void *, or errors for
10204 incomplete types.
10205 (value_add, value_sub): use find_size_for_pointer_math.
10206
102072002-04-09 Daniel Jacobowitz <drow@mvista.com>
10208
10209 * linux-low.c (linux_look_up_symbols): New hook.
10210 (linux_target_ops): Add linux_look_up_symbols.
10211 * remote-utils.c (decode_address): New function.
10212 (look_up_one_symbol): New function.
10213 * server.c (handle_query): Call target look_up_symbols hook.
10214 * server.h (look_up_one_symbol): Add prototype.
10215 * target.h (struct target_ops): Add look_up_symbols hook.
10216
102172002-04-09 Andrew Cagney <ac131313@redhat.com>
10218
10219 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10220 override FP_REGNUM with frame->fp. Update copyright.
10221 * parse.c (num_std_regs, std_regs): Delete.
10222 (target_map_name_to_register): Do not search std_regs. Update
10223 function description.
10224 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10225 declarations. Update copyright.
10226 Fix PR gdb/251.
10227
102282002-04-09 Daniel Jacobowitz <drow@mvista.com>
10229
10230 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10231 after the last symbol in a block.
10232
102332002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10234
10235 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10236 is non zero as a found symbol.
10237
102382002-04-08 Andrew Cagney <ac131313@redhat.com>
10239
10240 * findvar.c: Include "builtin-regs.h".
10241 (value_of_register): Call value_of_builtin_reg when applicable.
10242 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10243 (target_map_name_to_register): Call
10244 builtin_reg_map_name_to_regnum.
10245 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10246 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10247 (builtin_regs_h): Define.
10248 (builtin-regs.o): New target.
10249 (findvar.o): Add $(builtin_regs_h).
10250 * builtin-regs.c, builtin-regs.h: New files.
10251 * std-regs.c: New file.
10252 Partial fix for PR gdb/251.
10253
102542002-04-08 Kevin Buettner <kevinb@redhat.com>
10255
10256 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10257 it's no longer required.
10258
102592002-04-08 Andrew Cagney <ac131313@redhat.com>
10260
10261 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10262
102632002-04-08 Kevin Buettner <kevinb@redhat.com>
10264
10265 From Jimi X <jimix@watson.ibm.com>:
10266 * rs6000-tdep.c (rs6000_software_single_step): Use
10267 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10268 and size. Use target_insert_breakpoint() and
10269 target_remove_breakpoint() to insert and remove breakpoints
10270 instead of explicit memory reads and writes.
10271
102722002-04-08 Kevin Buettner <kevinb@redhat.com>
10273
10274 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10275 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10276 ELF_OBJECT_FORMAT ifdef.
10277
102782002-04-08 Kevin Buettner <kevinb@redhat.com>
10279
10280 From Jimi X <jimix@watson.ibm.com>:
10281 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10282
102832002-04-08 Kevin Buettner <kevinb@redhat.com>
10284
10285 From Jimi X <jimix@watson.ibm.com>:
10286 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10287 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10288
102892002-04-07 Mark Kettenis <kettenis@gnu.org>
10290
10291 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10292 s/asprintf/xasprintf/.
10293 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10294
102952002-04-07 Andrew Cagney <ac131313@redhat.com>
10296
10297 I believe Jeff Law denies responsability for this one:
10298 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10299 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10300 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10301 Work-around for PR gdb/366.
10302
103032002-04-07 Elena Zannoni <ezannoni@redhat.com>
10304
10305 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10306 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10307 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10308
103092002-04-07 Elena Zannoni <ezannoni@redhat.com>
10310
10311 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10312 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10313 information.
10314
103152002-04-07 Andrew Cagney <ac131313@redhat.com>
10316
10317 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10318 maintainer.
10319
103202002-04-07 Andrew Cagney <ac131313@redhat.com>
10321
10322 * README (Reporting Bugs in GDB): Document the bug web page as the
10323 prefered way of submitting bugs.
10324 Fix PR gdb/402.
10325
103262002-04-06 Andrew Cagney <ac131313@redhat.com>
10327
10328 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10329 -1. Update comment.
10330 * gdbarch.h, gdbarch.c: Re-generate.
10331
103322002-04-07 Andreas Schwab <schwab@suse.de>
10333
10334 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10335 buffer to regcache_collect.
10336
103372002-04-06 Andrew Cagney <ac131313@redhat.com>
10338
10339 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10340 * gdbarch.c, gdbarch.h: Re-generate.
10341
103422002-04-06 Andrew Cagney <ac131313@redhat.com>
10343
10344 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10345 declaration. Fix -Werror.
10346
103472002-04-05 Daniel Jacobowitz <drow@mvista.com>
10348
10349 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10350 * gdbarch.c: Regenerate.
10351
103522002-04-05 Michael Snyder <msnyder@redhat.com>
10353
10354 * breakpoint.c (clear_command): Rewrite middle section to
10355 combine two loops with identical control conditions.
10356 Add a cleanup to eliminate a memory leak.
10357 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10358
103592002-04-05 H.J. Lu (hjl@gnu.org)
10360
10361 * solib-svr4.c (bkpt_names): Add "__start".
10362
103632002-04-04 Andrew Cagney <ac131313@redhat.com>
10364
10365 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10366 as test for 64 bit target.
10367
103682002-04-05 Andrew Cagney <ac131313@redhat.com>
10369
10370 * h8500-tdep.c (h8500_write_fp): Delete function.
10371 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10372 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10373 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10374 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10375 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10376 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10377 (s390_write_fp):
10378 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10379 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10380 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10381 (d10v_write_fp): Delete function.
10382 * inferior.h (write_fp, generic_target_write_fp): Delete
10383 declarations.
10384 * regcache.c (generic_target_write_fp): Delete function.
10385 (write_fp): Delete function.
10386 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10387 * gdbarch.h, gdbarch.c: Regenerate.
10388 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10389 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10390 (sparc64_write_fp): Delete declaration.
10391 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10392 (h8500_write_fp): Delete declaration.
10393
103942002-04-04 Andrew Cagney <ac131313@redhat.com>
10395
10396 * sparc-tdep.c (sparc64_write_fp): Delete.
10397 (sparc_push_dummy_frame): Replace write_fp call with code to store
10398 the FP directly.
10399 (sparc_gdbarch_init): Do not initialize write_fp.
10400
104012002-04-05 Kevin Buettner <kevinb@redhat.com>
10402
10403 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10404 clause.
10405
104062002-03-29 Jim Blandy <jimb@redhat.com>
10407
10408 * stack.c (get_selected_block): Add new argument `addr_in_block',
10409 used to return the exact code address we used to select the block,
10410 not just the block.
10411 * blockframe.c (get_frame_block, get_current_block): Same.
10412 * frame.h (get_frame_block, get_current_block,
10413 get_selected_block): Update declarations.
10414 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10415 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10416
104172002-04-05 Michael Snyder <msnyder@redhat.com>
10418
10419 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10420 warning message.
10421
104222002-04-05 J. Brobecker <brobecker@gnat.com>
10423
10424 * utils.c (xfullpath): New function.
10425 * defs.h (xfullpath): Add declaration.
10426 * source.c (openp): Use xfullpath in place of gdb_realpath to
10427 avoid resolving the basename part of filenames when the
10428 associated file is a symbolic link. This fixes a potential
10429 inconsistency between the filenames known to GDB and the
10430 filenames it prints in the annotations.
10431 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10432 to be able to match a filename with either the real filename, or
10433 the name of any symbolic link to this file.
10434 (lookup_partial_symtab): Ditto.
10435
104362002-04-04 Michael Snyder <msnyder@redhat.com>
10437
10438 * breakpoint.c: Add support for hardware breakpoints in overlays.
10439 (overlay_events_enabled): New state variable.
10440 (insert_breakpoints): Use overlay_events_enabled to decide
10441 whether to attempt to set a breakpoint at the overlay load addr.
10442 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10443 (remove_breakpoint): Use overlay_events_enabled to decide
10444 whether breakpoints need to be removed from overlay load addr.
10445 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10446 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10447 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10448 disable_overlay_breakpoints): Update overlay_events_enabled.
10449
104502002-04-04 Daniel Jacobowitz <drow@mvista.com>
10451
10452 * dwarf2read.c (struct function_range): New.
10453 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10454 (check_cu_functions): New.
10455 (read_file_scope): Initialize global function lists.
10456 Call dwarf_decode_line after processing children.
10457 (read_func_scope): Add to global function list.
10458 (dwarf_decode_lines): Call check_cu_functions everywhere
10459 record_line is called. Call record_line with a linenumber
10460 of 0 to mark sequence ends.
10461
104622002-04-04 Michal Ludvig <mludvig@suse.cz>
10463
10464 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10465 change sync with glibc.
10466
104672002-04-03 Jim Blandy <jimb@redhat.com>
10468
10469 * configure.in: Call AC_C_INLINE.
10470 * configure: Regenerated.
10471
104722002-04-01 Daniel Jacobowitz <drow@mvista.com>
10473
10474 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10475 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10476
104772002-03-31 Mark Kettenis <kettenis@gnu.org>
10478
10479 * NEWS: Mention gcore support on FreeBSD/i386.
10480
10481 * fbsd-proc.c: New file.
10482 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10483 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10484
10485 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10486 while statement.
10487
104882002-03-29 Jim Blandy <jimb@redhat.com>
10489
10490 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10491 unescaped newlines in string literals, but newer ones don't. So
10492 escape them.
10493
104942002-03-26 Michael Snyder <msnyder@redhat.com>
10495 Andrew Cagney <cagney@redhat.com>
10496
10497 * cli/cli-dump.c: New file. Dump memory to file,
10498 restore file to memory.
10499 * cli/cli-dump.h: New file.
10500 * Makefile.in: Add rules, dependencies for cli-dump.o.
10501 * NEWS: Mention new commands.
10502
105032002-03-28 Michael Snyder <msnyder@redhat.com>
10504
10505 * symfile.c (symbol_file_add): Move test for null symbols to later.
10506
105072002-03-27 Andrew Cagney <ac131313@redhat.com>
10508
10509 From veksler at il.ibm.com:
10510 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10511 the xstrduped original path.
10512 Fix PR gdb/417.
10513
105142002-03-27 Michael Snyder <msnyder@redhat.com>
10515
10516 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10517 * infcmd.c (_initialize_infcmd): Ditto.
10518 * language.c (_initialize_language): Ditto.
10519 * symfile.c (_initialize_symfile): Ditto.
10520 * top.c (_init_main): Ditto.
10521 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10522
105232002-03-27 Elena Zannoni <ezannoni@redhat.com>
10524
10525 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10526 vector registers handling.
10527 (skip_prologue): Handle new AltiVec instructions. Fill in new
10528 fields of frame data.
10529 (frame_get_saved_regs): Fill in information for AltiVec registers.
10530
105312002-03-27 Jim Blandy <jimb@redhat.com>
10532
10533 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10534 a function; leave this macro here to invoke that function.
10535 (symbol_init_mangled_name): Declaration for that function.
10536 * symtab.c (symbol_init_mangled_name): New function.
10537
105382002-03-27 Andrew Cagney <ac131313@redhat.com>
10539
10540 * valarith.c: Replace strerror with safe_strerror.
10541 * tracepoint.c: Ditto.
10542 * lin-lwp.c: Ditto.
10543 * go32-nat.c: Ditto.
10544 * inflow.c: Ditto.
10545 * gnu-nat.c: Ditto.
10546
105472002-03-27 Andreas Schwab <schwab@suse.de>
10548
10549 * event-top.c (command_line_handler): Remove useless if.
10550
105512002-03-27 Andreas Jaeger <aj@suse.de>
10552
10553 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10554 comment.
10555
105562002-03-27 Michal Ludvig <mludvig@suse.cz>
10557
10558 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10559 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10560 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10561 (x86_64_linux_dr_get_status, supply_gregset),
10562 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10563 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10564 (x86_64_register_info_table): Add.
10565 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10566 (x86_64_register_raw_size, x86_64_register_virtual_type),
10567 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10568 general x86_64_register_info_table.
10569 (i386_gdbarch_init): gdbarch_register_bytes is now set
10570 dynamicaly during initialization.
10571 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10572 * gdbserver/linux-x86-64-low.c: Ditto.
10573
105742002-03-27 Daniel Jacobowitz <drow@mvista.com>
10575
10576 * gdbserver/server.c (main): Call target_signal_to_host_p
10577 and target_signal_to_host on signals received from the remote.
10578 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10579 target_signal_from_host on signals sent to the remote.
10580 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10581 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10582
105832002-03-27 Daniel Jacobowitz <drow@mvista.com>
10584
10585 * signals/signals.c: Include "server.h" in gdbserver build.
10586 (target_signal_from_name): Don't use STREQ.
10587 (_initialize_signals): Likewise. Don't include function in
10588 gdbserver build.
10589
105902002-03-27 Daniel Jacobowitz <drow@mvista.com>
10591
10592 * signals.c: Moved to...
10593 * signals/signals.c: Here.
10594 * Makefile (signals.o): Update.
10595
105962002-03-26 Jeff Law (law@redhat.com)
10597
10598 * somread.c (som_symtab_read): Remove some commented out code and
10599 updated related comments. Do not set the minimal symbol table to
10600 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10601 in a dynamic executable.
10602 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10603 where we are unable to find the minimal symbol for the given
10604 PC value.
10605
106062002-03-25 Jeff Law (law@redhat.com)
10607
10608 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10609
106102002-03-25 Michal Ludvig <mludvig@suse.cz>
10611
10612 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10613
106142002-03-23 Andrew Cagney <ac131313@redhat.com>
10615
10616 * command.h: Update copyright.
10617 (struct cmd_list_element): Replace definition with opaque
10618 declaration.
10619 (enum cmd_types): Document that it will eventually be moved to
10620 cli/cli-decode.h
10621 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10622 (MALLOCED_REPLACEMENT): Delete macro.
10623 * Makefile.in (cli_decode_h): Add $(command_h).
10624 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10625 * top.c: Include "cli/cli-decode.h".
10626 * completer.c: Include "cli/cli-decode.h".
10627 * maint.c: Include "cli/cli-decode.h".
10628 * cli/cli-decode.h: Include "command.h".
10629 (enum command_class): Delete.
10630 (enum cmd_types): Comment out.
10631 (enum cmd_auto_boolean): Delete.
10632 (enum var_types): Delete.
10633
106342002-03-23 Andrew Cagney <ac131313@redhat.com>
10635
10636 * cli/cli-decode.c: Include "gdb_assert.h".
10637 (add_set_or_show_cmd): New static function.
10638 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10639 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10640 all fields, such as func, from the set command.
10641
106422002-03-23 Andrew Cagney <ac131313@redhat.com>
10643
10644 * MAINTAINERS (sh-elf): Change warning flag to -w.
10645
106462002-03-23 Andrew Cagney <cagney@redhat.com>
10647
10648 * defs.h (error): Add printf format attribute.
10649 * thread-db.c (thread_from_lwp): Fix error format string.
10650 * stack.c (parse_frame_specification): Ditto.
10651 * cli/cli-decode.c (undef_cmd_error): Ditto.
10652 * scm-lang.c (scm_lookup_name): Ditto.
10653 * tracepoint.c (trace_error): Ditto.
10654 * remote-utils.c (usage): Ditto.
10655 * remote.c (compare_sections_command): Ditto.
10656 Fix PR gdb/328.
10657
106582002-03-22 Andrew Cagney <ac131313@redhat.com>
10659
10660 * gdbtypes.c (append_composite_type_field): New function.
10661 (init_composite_type): New function.
10662 * gdbtypes.h (append_composite_type_field): Declare.
10663 (init_composite_type): Ditto.
10664
106652002-03-22 Elena Zannoni <ezannoni@redhat.com>
10666
10667 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10668 function.
10669 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10670 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10671 structure returning convention for SYSV ABI case, but not
10672 for GNU/Linux, FreeBSD, or NetBSD.
10673
106742002-03-22 Daniel Jacobowitz <drow@mvista.com>
10675
10676 * symtab.h (lookup_block_symbol): Add mangled_name argument
10677 to prototype.
10678
10679 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10680 with new mangled_name argument.
10681 * linespec.c (decode_line_1): Likewise.
10682 * valops (value_of_this): Likewise.
10683 * symtab.c (lookup_transparent_type): Likewise.
10684 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10685 (lookup_symbol): If we are given a mangled name, pass it down
10686 to lookup_symbol_aux.
10687 (lookup_block_symbol): If we are given a mangled name to check
10688 against, only return symbols which match it.
10689
106902002-03-22 Christopher Faylor <cgf@redhat.com>
10691
10692 * win32-nat.c (child_create_inferior): Check for proper shell to use
10693 here, in case the user changes it on the fly.
10694 (_initialize_inftarg): Remove shell path considerations.
10695
106962002-03-21 Elena Zannoni <ezannoni@redhat.com>
10697
10698 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10699 for gdbarch_max_register_raw_size and max_register_virtual_size.
10700 Adjust copyright year.
10701
107022002-03-21 Daniel Jacobowitz <drow@mvista.com>
10703
10704 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10705 in a function to cover the entire beginning of the function
10706 as well if it does not already.
10707
107082002-03-21 Tom Rix <trix@redhat.com>
10709
10710 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10711 (rs6000_ptrace64): Renamed from ptrace64.
10712
107132002-03-20 Martin M. Hunt <hunt@redhat.com>
10714
10715 * gdbserver/remote-utils.c (remote_open): Don't call
10716 getprotobyname, we're all using TCP here so just use
10717 IPPROTO_TCP.
10718 * gdbserver/gdbreplay.c (remote_open): Ditto.
10719
107202002-03-20 Martin M. Hunt <hunt@redhat.com>
10721
10722 * regcache.c (_initialize_regcache): No need to call
10723 build_regcache() at this time; it gets called whenever
10724 the gdbarch changes.
10725
107262002-03-20 David O'Brien <obrien@FreeBSD.org>
10727
10728 * sparc-nat.c: Include sys/param.h where possible.
10729
107302002-03-20 Daniel Jacobowitz <drow@mvista.com>
10731
10732 Fix PR gdb/422.
10733 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10734 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10735 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10736 complex types.
10737 * stabsread.c (rs6000_builtin_type): Likewise.
10738 (read_sun_floating_type): Likewise.
10739
107402002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10741
10742 * stabsread.c (read_member_functions): Remove skip code for duplicate
10743 constructor/destructor methods. Use standard parsing for these
10744 methods and just do not chain them to the list of methods after
10745 parsing.
10746
107472002-03-19 Alexandre Oliva <aoliva@redhat.com>
10748
10749 * coffread.c: Remove redundant static declarations. Replace
10750 occurrences of `PTR' with `void *'.
10751 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10752 * top.h (quit_cover): Likewise.
10753 * defs.h (catch_errors): Likewise.
10754
107552002-03-18 Andrew Cagney <ac131313@redhat.com>
10756
10757 * defs.h (XMALLOC): Define.
10758 * gdb-events.sh (XMALLOC): Delete macro.
10759 * gdb-events.c, gdb-events.h: Regenerate.
10760 * gdbarch.sh (XMALLOC): Delete macro.
10761 * gdbarch.c: Regenerate.
10762 * serial.c (XMALLOC): Delete macro.
10763 * ui-file.c (XMALLOC): Ditto.
10764 * ser-unix.h (XMALLOC): Ditto.
10765 * sh-tdep.c (XMALLOC): Ditto.
10766 * ui-out.c (XMALLOC): Ditto.
10767 * utils.c (XMALLOC): Ditto.
10768 * i386-tdep.c (XMALLOC): Ditto.
10769 * gdb-events.c (XMALLOC): Ditto.
10770 * d10v-tdep.c (XMALLOC): Ditto.
10771 * cli-out.c (XMALLOC): Ditto.
10772
10773 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10774 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10775 * ui-file.c, ui-out.c: Ditto.
10776
107772002-03-18 Andrew Cagney <ac131313@redhat.com>
10778
10779 * command.h (struct cmd_list_element): Add field context.
10780 (set_cmd_context, get_cmd_context): Declare.
10781 * cli/cli-decode.h: Ditto.
10782 * cli/cli-decode.c (get_cmd_context): New function.
10783 (set_cmd_context): New function.
10784 (add_cmd): Initialize context.
10785 Part of fixing PR gdb/145 and PR gdb/146.
10786
107872002-03-17 Andrew Cagney <ac131313@redhat.com>
10788
10789 * cli/cli-decode.c (cmd_type): New function.
10790 * command.h (cmd_type): Declare.
10791 * infrun.c (set_schedlock_func): Call function cmd_type.
10792 * kod.c (kod_set_os): Call cmd_type.
10793 * cris-tdep.c (cris_version_update): Use function cmd_type.
10794 (cris_mode_update, cris_abi_update): Ditto.
10795
10796 * command.h: (execute_cmd_post_hook): Declare.
10797 (execute_cmd_pre_hook): Declare.
10798 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10799 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10800 functions. Execute pre/post hook while ensuring that afterwords
10801 hook_in is cleared.
10802 * top.c (execute_command): Use execute_cmd_post_hook, and
10803 execute_cmd_pre_hook to execute pre/post commands.
10804 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10805 hook_stop_stub.
10806 (hook_stop_stub): Call execute_cmd_pre_hook.
10807
108082002-03-17 Andrew Cagney <ac131313@redhat.com>
10809
10810 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10811 set'' and this leads to a core dump. Move xstrdup of
10812 operating_system to after check that it is not NULL.
10813
108142002-03-17 Andrew Cagney <ac131313@redhat.com>
10815
10816 * kod.c (kod_set_os): Remove unnecessary check that
10817 ``command->type'' is set_cmd.
10818
10819 * valprint.c (set_input_radix): Use input_radix.
10820 (set_output_radix): Use output_radix.
10821 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10822 isn't reverted.
10823
108242002-03-16 Andrew Cagney <ac131313@redhat.com>
10825
10826 * value.h (struct value): Delete field ``substring_addr''. Change
10827 aligner fields to force_doublest_align, force_longest_align,
10828 force_core_addr_align and force_pointer_aligh.
10829
10830 * value.h (struct value): Fix typo in above change.
10831
108322002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10833
10834 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10835 to fix internal_error from ``maintenance print architecture''.
10836
108372002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10838
10839 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10840 for gcc versions after gcc-2.8.1.
10841
108422002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10843
10844 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10845 for method resolution. Restore adjustment of ``this'' pointer after
10846 calling value_struct_elt, which was accidentally removed during the
10847 HP merge.
10848
108492002-03-15 Andrew Cagney <ac131313@redhat.com>
10850
10851 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10852 value_of_register.
10853 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10854 get_saved_register.
10855 * value.h (value_of_register): Update.
10856
108572002-03-14 Richard Henderson <rth@redhat.com>
10858
10859 * configure.in: Detect declaration for canonicalize_file_name.
10860 * utils.c (canonicalize_file_name): Declare, if needed.
10861 (gdb_realpath): Prefer realpath if available and usable.
10862 * config.in, configure: Rebuild.
10863
108642002-03-14 Richard Henderson <rth@redhat.com>
10865
10866 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10867 a constant array bound.
10868
10869 * MAINTAINERS: Add myself to write-after-approval.
10870
108712002-03-14 Michael Snyder <msnyder@redhat.com>
10872
10873 * symfile.c (syms_from_objfile): Return immediately if no syms.
10874 (symbol_file_add): Return immediately if no syms.
10875 (find_sym_fns): Return immediately if no syms.
10876
108772002-03-13 Michal Ludvig <mludvig@suse.cz>
10878
10879 * gdbserver/remote-util.c (remote_open): Print remote-side's
10880 IP address when remote debugging over the network.
10881
108822002-03-12 David O'Brien <obrien@FreeBSD.org>
10883
10884 * config/sparc/fbsd.mh: Fix copyright.
10885 * config/sparc/fbsd.mt: Likewise.
10886
108872002-03-11 Richard Earnshaw <rearnsha@arm.com>
10888
10889 * MAINTAINERS: Fix typo in name of gdb warnings option.
10890 (x86-64): Fix formating so that this can be parsed by awk.
10891
108922002-03-10 Daniel Jacobowitz <drow@mvista.com>
10893
10894 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10895 * defs.h: Include "gdb/signals.h".
10896 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10897
108982002-03-10 Michal Ludvig <mludvig@suse.cz>
10899
10900 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10901 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10902 from x86-64-tdep.h
10903
109042002-03-10 Daniel Jacobowitz <drow@mvista.com>
10905 Don Howard <dhoward@redhat.com>
10906
10907 * mips-tdep.c (ST0_FR): Define.
10908 (mips2_fp_compat): New function, temporarily disabled.
10909 (mips_read_fp_register_single): New function.
10910 (mips_read_fp_register_double): New function.
10911 (mips_print_register): Use them.
10912 (do_fp_register_row): Likewise.
10913
109142002-03-09 Andrew Cagney <ac131313@redhat.com>
10915
10916 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10917 approval''.
10918
109192002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10920
10921 * stabsread.c (read_member_functions): Fix is_stub test for
10922 static member functions, improve comment.
10923
109242002-03-07 Richard Earnshaw <rearnsha@arm.com>
10925
10926 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10927 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10928 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10929 commands that set boolean values.
10930 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10931 (arm_rdi_resume): Always initialize PC.
10932 (arm_rdi_open): Don't use rslt as a boolean.
10933 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10934 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10935 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10936 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10937
109382002-03-06 Alexandre Oliva <aoliva@redhat.com>
10939
10940 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10941 * configure: Rebuilt.
10942
109432002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10944
10945 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10946 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10947
109482002-03-06 Andrew Cagney <ac131313@redhat.com>
10949
10950 * cli/cli-decode.c (set_cmd_completer): New function.
10951 * command.h (set_cmd_completer): Declare.
10952 * cli/cli-decode.h (set_cmd_completer): Ditto.
10953
10954 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10955 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10956 * win32-nat.c (_initialize_inftarg): Ditto.
10957 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10958 * proc-api.c (_initialize_proc_api): Ditto.
10959 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10960 * source.c (_initialize_source): Ditto.
10961 * exec.c (_initialize_exec): Ditto.
10962 * solib.c (_initialize_solib): Ditto.
10963 * top.c (init_main): Ditto.
10964 * tracepoint.c (_initialize_tracepoint): Ditto.
10965 * symfile.c (_initialize_symfile): Ditto.
10966 * printcmd.c (_initialize_printcmd): Ditto.
10967 * infcmd.c (_initialize_infcmd): Ditto.
10968 * corefile.c (_initialize_core): Ditto.
10969
109702002-03-05 Andrew Cagney <ac131313@redhat.com>
10971
10972 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10973
109742002-03-05 Andrew Cagney <ac131313@redhat.com>
10975
10976 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10977
109782002-03-05 Andrew Cagney <ac131313@redhat.com>
10979
10980 * NEWS: Update headings, 5.2 has branched.
10981
109822002-03-04 Daniel Jacobowitz <drow@mvista.com>
10983
10984 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10985 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10986 (register_addr, REGISTER_RAW_SIZE): Likewise.
10987 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10988 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10989
109902002-03-03 Michal Ludvig <mludvig@suse.cz>
10991
10992 * MAINTAINERS (x86-64): Add myself.
10993 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10994 changed value_ptr -> struct value *
10995
109962002-03-01 David O'Brien <obrien@FreeBSD.org>
10997
10998 * configure.host (sparc64-*-freebsd): Add.
10999 * configure.tgt: Likewise.
11000 * config/sparc/fbsd.mh: New file.
11001 * config/sparc/fbsd.mt: Likewise.
11002 * config/sparc/nm-fbsd.h: Likewise.
11003 * config/sparc/tm-fbsd.h: Likewise.
11004
110052002-03-01 Daniel Jacobowitz <drow@mvista.com>
11006
11007 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11008 regformats/reg-s390x.dat.
11009
110102002-03-01 Andrew Cagney <ac131313@redhat.com>
11011
11012 * utils.c: Add FIXME explaining true/false problem.
11013
110142002-02-28 Andrew Cagney <ac131313@redhat.com>
11015
11016 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11017
110182002-02-28 Michael Chastain <mec@shout.net>
11019
11020 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11021
110222002-02-28 Daniel Jacobowitz <drow@mvista.com>
11023
11024 * gdbserver/linux-s390-low.c: New file.
11025 * regformats/reg-s390.dat: New file.
11026 * regformats/reg-s390x.dat: New file.
11027 * gdbserver/configure.srv: Add S/390.
11028 * gdbserver/Makefile.in: Add S/390.
11029 * configure.tgt: Enable gdbserver for S/390.
11030
110312002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11032
11033 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11034 first line of the doc string for "info dos", except at the end of
11035 the sentence, since the short help stops at the first period.
11036
110372002-02-28 Jason Merrill <jason@redhat.com>
11038
11039 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11040
110412002-02-27 Fred Fish <fnf@redhat.com>
11042
11043 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11044 comment (dumy -> dummy).
11045
110462002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11047
11048 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11049
110502002-02-27 Rodney Brown <rbrown64@csc.com.au>
11051
11052 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11053
110542002-02-27 Daniel Jacobowitz <drow@mvista.com>
11055
11056 * gdbserver/acconfig.h: New file.
11057 * gdbserver/i387-fp.c: New file.
11058 * gdbserver/i387-fp.h: New file.
11059 * gdbserver/linux-x86-64.c: New file.
11060 * regformats/reg-x86-64.dat: New file.
11061 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11062 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11063 * gdbserver/configure.in: Add support for regsets.
11064 * gdbserver/config.in: Regenerate.
11065 * gdbserver/configure: Regenerate.
11066 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11067 * gdbserver/linux-low.h: New file.
11068 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11069 for regsets.
11070 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11071 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11072 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11073 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11074 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11075 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11076 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11077 "i387-fp.h". Add PTRACE_GETREGS and friends.
11078 * gdbserver/regcache.c (supply_register): New function.
11079 (supply_register_by_name): New function.
11080 (collect_register): New function.
11081 (collect_register_by_name): New function.
11082
110832002-02-27 Daniel Jacobowitz <drow@mvista.com>
11084
11085 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11086 (config.status): Add configure.srv dependency.
11087 (server_h): Add config.h dependency.
11088
110892002-02-27 Daniel Jacobowitz <drow@mvista.com>
11090
11091 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11092 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11093 * gdbserver/configure.srv: Change i386-*-linux* to use
11094 reg-i386-linux.o.
11095
110962002-02-26 Andrew Cagney <ac131313@redhat.com>
11097
11098 * x86-64-tdep.c: Re-indent. Update copyright date.
11099
111002002-02-26 Andrew Cagney <ac131313@redhat.com>
11101
11102 From Michal Ludvig <mludvig@suse.cz>:
11103 * x86-64-tdep.c (value.h): Delete.
11104 (gdb_assert.h): Include.
11105 (x86_64_register_convert_to_virtual,
11106 x86_64_register_convert_to_raw ): Add check which lets only
11107 floating-point values to be converted.
11108 (value_push): Delete.
11109 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11110 (i386_gdbarch_init): Number of register_bytes fixed.
11111
111122002-02-26 Andrew Cagney <ac131313@redhat.com>
11113
11114 * MAINTAINERS: Add x86-64 target.
11115
111162002-02-26 Andrew Cagney <ac131313@redhat.com>
11117
11118 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11119 * osfsolib.c (solib_map_sections): Ditto.
11120 * irix5-nat.c (solib_map_sections): Ditto.
11121 * corelow.c (gdb_check_format): Ditto.
11122 * symfile.c (symfile_bfd_open): Ditto.
11123 * solib.c (solib_map_sections): Ditto.
11124 Fix PR gdb/354.
11125
111262002-02-26 Andrew Cagney <ac131313@redhat.com>
11127
11128 * remote.c (_initialize_remote): By default, disable ``e'' and
11129 ``E'' step out-of-range packets.
11130
111312002-02-26 Andreas Schwab <schwab@suse.de>
11132
11133 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11134 m68k_linux_frame_saved_pc.
11135 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11136 in_sigtramp.
11137 (SIGCONTEXT_PC_OFFSET): Remove.
11138 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11139 m68k_linux_sigtramp_saved_pc): New functions.
11140 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11141 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11142 (UCONTEXT_PC_OFFSET): Define.
11143 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11144 non-RT and RT signal trampolines.
11145
111462002-02-26 Richard Earnshaw <rearnsha@arm.com>
11147
11148 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11149 (TARGET_NBPG, STACK_END_ADDR): Delete
11150 (VARIABLES_INSIDE_BLOCK): Delete.
11151
111522002-02-25 Andrew Cagney <ac131313@redhat.com>
11153
11154 * utils.c (perror_with_name): Make string parameter constant.
11155 (print_sys_errmsg): Ditto.
11156 (query): Ditto.
11157 * defs.h (perror_with_name): Update.
11158 (print_sys_errmsg): Update.
11159 (query): Update.
11160
111612002-02-25 Daniel Jacobowitz <drow@mvista.com>
11162
11163 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11164 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11165
111662002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11167
11168 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11169 if it already matches the current architecture from the exec file.
11170 Include arch-utils.h for gdbarch_info_init prototype.
11171 * Makefile.in (rs6000-nat.o): Update dependencies.
11172
111732002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11174
11175 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11176 list of exported variables.
11177
111782002-02-24 Daniel Jacobowitz <drow@mvista.com>
11179
11180 * gdbserver/configure.srv: New file.
11181 * gdbserver/configure.in: Use configure.srv instead
11182 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11183 from it.
11184 * gdbserver/configure: Regenerated.
11185 * gdbserver/terminal.h: New file.
11186 * gdbserver/Makefile.in: Update for configure changes. Remove
11187 more unneeded include paths.
11188
111892002-02-24 Andrew Cagney <ac131313@redhat.com>
11190
11191 From wiz at danbala:
11192 * config/sparc/tm-sp64.h: Fix grammar and typos.
11193 Fix PR gdb/287.
11194
111952002-02-24 Andrew Cagney <ac131313@redhat.com>
11196
11197 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11198 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11199 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11200 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11201 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11202 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11203 * s390-tdep.c: Ditto.
11204 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11205 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11206 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11207 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11208 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11209 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11210 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11211 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11212 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11213 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11214 Fix PR gdb/378.
11215
112162002-02-23 Andrew Cagney <ac131313@redhat.com>
11217
11218 * lin-thread.c: Delete file.
11219 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11220 to gdb_proc_service.h.
11221 * configure: Re-generate.
11222
11223 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11224 * serial.c (serial_open): Delete check for "ocd".
11225 Fix PR gdb/349.
11226
11227 * Makefile.in (linux-thread.o): Delete target.
11228 * linux-thread.c: Delete file.
11229
11230 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11231 renamed SH files to be consistent.
11232
11233 * symtab.c (sort_search_symbols): Use xfree.
11234
112352002-02-23 Richard Earnshaw <rearnsha@arm.com>
11236
11237 * arm-linux-tdep.c (arm_linux_init_abi): Register
11238 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11239 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11240 definition with undef, since we don't want the sysvr4 definition.
11241 (SKIP_TRAMPOLINE_CODE): Likewise.
11242
112432002-02-23 Andrew Cagney <ac131313@redhat.com>
11244
11245 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11246
11247 * configure.in: (AC_CHECK_FUNCS) Added test for
11248 canonicalize_file_name Regenerated.
11249 * config.in, configure: Regenerated.
11250 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11251 defined use canonicalize_file_name.
11252
112532002-02-23 Michael Chastain <mec@shout.net>
11254
11255 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11256
112572002-02-23 Andrew Cagney <ac131313@redhat.com>
11258
11259 * README: Remove references to cygnus.com.
11260 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11261 dot com'' form. Remove references to cygnus.com and sourceware.
11262
112632002-02-23 Andrew Cagney <ac131313@redhat.com>
11264
11265 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11266 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11267 1003.1-2001 no longer allows "head -1".
11268 * gdb/Makefile.in (version.c): Likewise.
11269 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11270 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11271 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11272
112732002-02-23 Andrew Cagney <ac131313@redhat.com>
11274
11275 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11276 * command.h (cmd_cfunc_eq): Declare.
11277 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11278
11279 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11280 ``struct cmd_list_element *''.
11281 * cli/cli-cmds.c (is_complete_command): Update. Use
11282 cmd_cfunc_eq.
11283 * top.c (execute_command): Pass the command to
11284 is_complete_command.
11285 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11286
112872002-02-23 Andrew Cagney <ac131313@redhat.com>
11288
11289 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11290 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11291 architecture defines.
11292 * s390-tdep.c (s390_gdbarch_init): Likewise.
11293
112942002-02-23 Richard Earnshaw <rearnsha@arm.com>
11295
11296 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11297 (arm_linux_push_arguments): Likewise.
11298 (arm_linux_init_abi): Register them. Also register linux-specific
11299 call_dummy_words.
11300 (find_minsym_and_objfile): Use strcmp, not STREQ.
11301 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11302 (arm_linux_call_dummy_words): Delete declaration.
11303 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11304 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11305 declarations.
11306 (LOWEST_PC): Delete.
11307
113082002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11309
11310 * maint.c (print_section_info): Do not prepend `0x' to filepos
11311 output, it will be handled by local_hex_string_custom.
11312
113132002-02-23 Richard Earnshaw <rearnsha@arm.com>
11314
11315 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11316 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11317 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11318
113192002-02-22 Jim Blandy <jimb@redhat.com>
11320
11321 Indicate that the bcache functions don't change the strings
11322 they're passed.
11323 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11324 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11325
113262002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11327
11328 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11329
113302002-02-21 Christopher Faylor <cgf@redhat.com>
11331
11332 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11333 find the complete path to a loaded DLL.
11334
113352002-02-21 Fred Fish <fnf@redhat.com>
11336
11337 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11338 that marks the end of the range of a function, enter a line number
11339 entry that has a line number of zero and a PC offset that matches
11340 the end of the function. This starts a range of PC's for which no
11341 line number information is known.
11342 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11343 PC's for which no line number info is found (line number is zero)
11344 then we didn't find any valid line information.
11345 * symtab.h: Document use of zero line number entry.
11346
113472002-02-21 Elena Zannoni <ezannoni@redhat.com>
11348
11349 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11350 (have_ptrace_getvrregs): Define for run time checks.
11351 (gdb_vrregset_t): New type for Altivec register handling.
11352 (fetch_register, store_register): Fetch/store altivec register
11353 when needed.
11354 (fetch_altivec_register, store_altivec_register): New functions.
11355 (supply_vrregset, fill_vrregset): New functions.
11356 (fetch_altivec_registers, store_altivec_registers): New functions.
11357 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11358 registers as well.
11359
113602002-02-21 Jiri Smid <smid@suse.cz>
11361
11362 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11363
113642002-02-21 Richard Earnshaw <rearnsha@arm.com>
11365
11366 * Makefile.in (armnbsd-nat.o): Update dependencies.
11367 * armnbsd-nat.c (supply_gregset): New function. Common code to
11368 supply the integer register set.
11369 (supply_fparegset): New function. Similar for FPA registers.
11370 (fetch_regs, fetch_fp_regs): Use them.
11371 (fetch_core_registers): Likewise.
11372 (fetch_elfcore_registers): New function.
11373 (arm_netbsd_elfcore_fns): New core-file type specification.
11374 (_initialize_arm_netbsd_nat): Register it.
11375
113762002-02-21 Richard Earnshaw <rearnsha@arm.com>
11377
11378 * armnbsd-nat.c: Include gdbcore.h.
11379 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11380 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11381 'void' to declaration, to shut up ARI.
11382 (fetch_core_registers): Make static. Rewrite using supply_register.
11383 (arm_netbsd_core_fns): New core-file type specification.
11384 (_initialize_arm_netbsd_nat): New function.
11385
113862002-02-21 Christopher Faylor <cgf@redhat.com>
11387
11388 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11389 value.
11390
113912002-02-20 Christopher Faylor <cgf@redhat.com>
11392
11393 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11394 fails.
11395
113962002-02-20 Daniel Jacobowitz <drow@mvista.com>
11397
11398 * jv-exp.y (parse_number): Change type of implicit longs
11399 to builtin_type_uint64.
11400
114012002-02-20 Daniel Jacobowitz <drow@mvista.com>
11402
11403 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11404 to be an integer instead of a `union wait'.
11405
114062002-02-20 Daniel Jacobowitz <drow@mvista.com>
11407
11408 * mips-linux-nat.c: Call the operating system GNU/Linux.
11409 * mips-linux-tdep.c: Likewise.
11410 * mips-tdep.c: Likewise.
11411
114122002-02-20 Daniel Jacobowitz <drow@mvista.com>
11413
11414 Fix PR gdb/265.
11415 * jv-exp.y (parse_number): Handle 64-bit integers.
11416
114172002-02-20 Daniel Jacobowitz <drow@mvista.com>
11418
11419 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11420 AC_STDC_HEADERS to AC_HEADER_STDC.
11421 * gdbserver/configure: Regenerated.
11422
114232002-02-20 Richard Earnshaw <rearnsha@arm.com>
11424
11425 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11426 is defined.
11427 * sparc-tdep.c (get_longjmp_target): Likewise.
11428
114292002-02-20 Richard Earnshaw <rearnsha@arm.com>
11430
11431 * News: Add news about ARM and Multi-arch. Mention the new target
11432 arm*-*-netbsd*.
11433
114342002-02-19 Jim Blandy <jimb@redhat.com>
11435
11436 * stabsread.c (error_type_complaint): Improve error message.
11437
114382002-02-19 Daniel Jacobowitz <drow@mvista.com>
11439
11440 * gdbserver/README: Update documentation.
11441 * gdbserver/configure.in: Update configury to match documentation.
11442 * gdbserver/Makefile.in: Likewise.
11443 * gdbserver/configure: Regenerated.
11444 * gdbserver/aclocal.m4: New file, generated by aclocal.
11445 * gdbserver/config.in: New file, generated by autoheader.
11446
114472002-02-19 Richard Earnshaw <rearnsha@arm.com>
11448
11449 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11450 armnbsd-nat.c.
11451
114522002-02-19 Richard Earnshaw <rearnsha@arm.com>
11453
11454 * arm-tdep.h (enum arm_float_model): New enum.
11455 (struct gdbarch_tdep): Add fp_model.
11456 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11457 up floating-point conversions until we know the floating-point model
11458 in use by the inferior. Don't complain about being unable to
11459 determine the ABI of the inferior when we don't have one.
11460 (arm_extract_return_value): Support different floating-point models.
11461 (arm_store_return_value): Likewise.
11462 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11463 ARM_FLOAT_SOFT.
11464 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11465
114662002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11467
11468 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11469 of ``current_gdbarch''.
11470
114712002-02-19 Richard Earnshaw <rearnsha@arm.com>
11472
11473 * armnbsd-nat.c : ANSIfy all function declarations.
11474 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11475 (fetch_inferior_registers): Re-implement in terms of above.
11476 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11477 (store_inferior_registers): Re-implement in terms of above.
11478
114792002-02-19 Richard Earnshaw <rearnsha@arm.com>
11480
11481 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11482 kernel.
11483 * arm-linux-tdep.c: Likewise.
11484 * config/arm/tm-linux.h: Likewise.
11485
114862002-02-19 Richard Earnshaw <rearnsha@arm.com>
11487
11488 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11489 * config/arm/nbsd.mt (TM_FILE): Delete.
11490 * config/arm/tm-nbsd.h: Delete.
11491
114922002-02-19 Richard Earnshaw <rearnsha@arm.com>
11493
11494 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11495 Initialize CALL_DUMMY_LENGTH.
11496
114972002-02-19 Richard Earnshaw <rearnsha@arm.com>
11498
11499 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11500 function.
11501 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11502 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11503 defines one thing and that is incorrect for this port.
11504 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11505
115062002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11507
11508 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11509
115102002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11511
11512 * win32-nat.c (display_selector): New function. Displays information
11513 about the information returned by GetThreadSelectorEntry API function.
11514 (display_selectors): New function. Displays the infomation of
11515 the selector given as argument, or of CS, DS ans FS selectors
11516 if no argument is given.
11517 ( _initialize_inftarg): Add "w32" as info prefix command.
11518 Add "info w32 selector" as command calling display_selectors.
11519
115202002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11521
11522 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11523 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11524 if not defined.
11525
115262002-02-18 Richard Earnshaw <rearnsha@arm.com>
11527
11528 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11529
115302002-02-18 Richard Earnshaw <rearnsha@arm.com>
11531
11532 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11533 (arm_fix_call_dummy): Call it.
11534 (arm_call_dummy_breakpoint_offset): Delete.
11535 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11536 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11537
115382002-02-18 Andrew Cagney <ac131313@redhat.com>
11539
11540 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11541 Default to func_frame_chain_valid.
11542 * gdbarch.h, gdbarch.c: Re-generate.
11543 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11544
115452002-02-18 Elena Zannoni <ezannoni@redhat.com>
11546
11547 * ppc-linux-nat.c: Update copyright.
11548 (fetch_register, store_register): Add tid parameter, don't compute
11549 tid here.
11550 (fetch_ppc_registers, store_ppc_registers): Add tid
11551 parameter. Pass it along to callees.
11552 (fetch_inferior_registers, store_inferior_registers): Compute tid
11553 here, and pass it to calleed functions.
11554 (fill_gregset, supply_fpregset): Clean up formatting.
11555
115562002-02-18 Richard Earnshaw <rearnsha@arm.com>
11557
11558 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11559 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11560
115612002-02-18 Richard Earnshaw <rearnsha@arm.com>
11562
11563 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11564 * gdbarch.c gdbarch.h: Regenerate.
11565 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11566 function.
11567 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11568 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11569 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11570
11571 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11572 * arm-tdep.c (arm_get_longjmp_target): New function.
11573 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11574 this to a positive value register arm_get_longjmp_target as the
11575 longjmp handler.
11576 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11577 (arm_linux_init_abi): Set up longjmp description in tdep.
11578 * armnbsd-nat.c (get_longjmp_target): Delete.
11579 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11580 description in tdep.
11581 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11582 (get_longjmp_target): Delete declaration.
11583 (GET_LONGJMP_TARGET): Delete.
11584 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11585 (GET_LONGJMP_TARGET): Delete.
11586
115872002-02-17 Kevin Buettner <kevinb@redhat.com>
11588
11589 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11590 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11591 of ``current_gdbarch''.
11592
115932002-02-17 Tom Tromey <tromey@redhat.com>
11594
11595 * cli/cli-cmds.c (compare_strings): New function.
11596 (complete_command): Only print each unique item once.
11597 * completer.h (complete_line): Declare.
11598 * completer.c (complete_line): New function.
11599 (line_completion_function): Use it.
11600
116012002-02-16 Andrew Cagney <ac131313@redhat.com>
11602
11603 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11604 * gdbarch.h, gdbarch.c: Re-generate.
11605
116062002-02-16 Daniel Jacobowitz <drow@mvista.com>
11607
11608 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11609
116102002-02-16 Daniel Jacobowitz <drow@mvista.com>
11611
11612 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11613 * valops.c (value_arg_coerce): Don't take the address of a reference
11614 to convert an argument to a reference.
11615
116162002-02-15 Christopher Faylor <cgf@redhat.com>
11617
11618 * win32-nat.c (get_image_name): New function.
11619 (handle_load_dll): Use get_image_name function.
11620 (get_child_debug_event): Avoid registering debug events until possibly
11621 execed process is started.
11622 (child_create_inferior): Allow invocation via shell so that command
11623 line redirection, etc. works ok.
11624 (_initialize_inftarg): Add new command: "set shell" to control whether
11625 a shell is used to start a process.
11626
116272002-02-15 Daniel Jacobowitz <drow@mvista.com>
11628
11629 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11630 instead of find_register_by_number.
11631 (cannot_store_register): Likewise.
11632
116332002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11634
11635 * dwarf2read.c: Replace fprintf (stderr, ...) by
11636 fprintf_unfiltered (gdb_stderr, ...).
11637
116382002-02-15 Daniel Jacobowitz <drow@mvista.com>
11639
11640 * gdbserver/gdbserver.1: Document --attach.
11641
116422002-02-15 Richard Earnshaw <rearnsha@arm.com>
11643
11644 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11645 descriptions.
11646 * arm-tdep.c (arm_default_arm_le_breakpoint)
11647 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11648 (arm_default_thumb_be_breakpoint): New. Initialize them from
11649 traditional breakpoint defines.
11650 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11651 (arm_gdbarch_init): Initialize new breakpoint variables.
11652 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11653 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11654 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11655 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11656 code out to ...
11657 (arm_netbsd_init_abi_common): ... here; new function.
11658 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11659 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11660 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11661 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11662
116632002-02-15 Richard Earnshaw <rearnsha@arm.com>
11664
11665 * arm-tdep.h (enum arm_abi): New enum.
11666 (struct gdbarch_tdep): New structure.
11667 (LOWEST_PC): Provide a default.
11668 (arm_gdbarch_register_os_abi): Declare new function.
11669 * arm-tdep.c (arm_abi_names): New array.
11670 (process_note_abi_tag_sections): New function.
11671 (get_elfosabi): New function.
11672 (arm_gdbarch_register_os_abi): New function.
11673 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11674 support for that ABI has been built in, then call the appropriate
11675 configuration routine. Use gdbarch_num_regs() to get the number
11676 of registers.
11677 (arm_dump_tdep): New function.
11678 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11679 place-holder functions.
11680 (_initialize_arm_tdep): Register them.
11681 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11682
11683 * armnbsd-tdep.c: New file.
11684 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11685 * config/arm/nbsd.mt (TDEPFILES): Add it.
11686 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11687
11688 * armnbsd-nat.c: Include regcache.h.
11689 * Makefile.in (armnbsd-nat.o): Update dependency list.
11690
11691 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11692
116932002-02-14 Daniel Jacobowitz <drow@mvista.com>
11694
11695 * gdbserver/Makefile.in: Fix typos in target rules.
11696
116972002-02-14 Daniel Jacobowitz <drow@mvista.com>
11698
11699 Fix part of PR gdb/267.
11700 * linespec.c (find_methods): Handle constructors specially for now.
11701
117022002-02-14 Corinna Vinschen <vinschen@redhat.com>
11703
11704 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11705 handling.
11706 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11707 standard_coerce_float_to_double().
11708
117092002-02-14 Christopher Faylor <cgf@redhat.com>
11710
11711 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11712 GDBINIT_FILENAME.
11713
117142002-02-14 Elena Zannoni <ezannoni@redhat.com>
11715
11716 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11717 find_variant_by_name, because it confuses the multiarch
11718 framework. Return NULL if there isn't an architecture with the
11719 user supplied name, instead of forcing a different one without
11720 recording the change with the multiarch machinery.
11721 (find_variant_by_name): Delete.
11722
117232002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11724
11725 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11726 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11727
117282002-02-13 Martin M. Hunt <hunt@redhat.com>
11729
11730 * stack.c (print_frame_info_base): When calling
11731 print_frame_info_listing_hook, set current_source_symtab.
11732
117332002-02-14 Daniel Jacobowitz <drow@mvista.com>
11734
11735 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11736 and remove unused $(INCLUDE_DIR).
11737 Add regcache.c to OBS.
11738 Add generated register protocol files to clean target.
11739 Update dependencies for new objects, obsolete old target code.
11740
11741 * gdbserver/linux-low.c: Remove all platform-specific code to
11742 new files. Remove various dead code. Update to use regcache
11743 functionality.
11744 * gdbserver/remote-utils.c (fromhex): Add return statement
11745 to quiet warning.
11746 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11747 constant.
11748 (input_interrupt): Add integer parameter to match prototype
11749 of a signal handler.
11750 (outreg): Use register_data ().
11751 (prepare_resume_reply): Use gdbserver_expedite_regs.
11752 * gdbserver/server.c (main): Dynamically allocate own_buf because
11753 PBUFSIZ is no longer constant. Use registers_to_string () and
11754 registers_from_string ().
11755 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11756 for error (), fatal (), and warning (). Update definition of
11757 PBUFSIZ to use regcache functionality. Add include guard.
11758 * gdbserver/utils.c (fatal): Add missing ``const''.
11759 (warning): New function.
11760
11761 * regformats/regdat.sh: Include "regcache.h" in generated files.
11762 Provide init_registers () function.
11763 * regformats/regdef.h: Add prototype for set_register_cache ().
11764 Add include guard.
11765
11766 * gdbserver/linux-arm-low.c: New file.
11767 * gdbserver/linux-i386-low.c: New file.
11768 * gdbserver/linux-ia64-low.c: New file.
11769 * gdbserver/linux-m68k-low.c: New file.
11770 * gdbserver/linux-mips-low.c: New file.
11771 * gdbserver/linux-ppc-low.c: New file.
11772 * gdbserver/linux-sh-low.c: New file.
11773
11774 * gdbserver/regcache.c: New file.
11775 * gdbserver/regcache.h: New file.
11776
11777 * gdbserver/low-linux.c: Removed obsolete file.
11778
117792002-02-14 Daniel Jacobowitz <drow@mvista.com>
11780
11781 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11782 * config/i386/linux.mt: Likewise.
11783 * config/ia64/linux.mt: Likewise.
11784 * config/m68k/linux.mh: Likewise.
11785 * config/powerpc/linux.mh: Likewise.
11786 * config/mips/linux.mt: Likewise.
11787
11788 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11789
11790 * config/i386/i386lynx.mh: Mark gdbserver variables
11791 as (currently) obsolete for this target.
11792 * config/i386/nbsd.mt: Likewise.
11793 * config/i386/nbsdelf.mt: Likewise.
11794 * config/m32r/m32r.mt: Likewise.
11795 * config/m68k/m68klynx.mh: Likewise.
11796 * config/m68k/nbsd.mt: Likewise.
11797 * config/m68k/sun3os4.mh: Likewise.
11798 * config/mips/vr5000.mt: Likewise.
11799 * config/ns32k/nbsd.mt: Likewise.
11800 * config/pa/hppabsd.mh: Likewise.
11801 * config/pa/hppaosf.mh: Likewise.
11802 * config/powerpc/nbsd.mt: Likewise.
11803 * config/rs6000/rs6000lynx.mh: Likewise.
11804 * config/s390/s390.mt: Likewise.
11805 * config/s390/s390x.mt: Likewise.
11806 * config/sparc/sparclynx.mh: Likewise.
11807 * config/sparc/sun4os4.mh: Likewise.
11808 * config/i386/x86-64linux.mt: Likewise.
11809 * config/sparc/linux.mh: Likewise.
11810
118112002-02-14 Daniel Jacobowitz <drow@mvista.com>
11812
11813 * configure.tgt: Configure gdbserver only for known working
11814 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11815 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11816 SUBDIRS if it is configured. Update comment for ${nativefile}.
11817 * configure: Regenerated.
11818
118192002-02-13 Michael Snyder <msnyder@redhat.com>
11820
11821 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11822
11823 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11824 (default_gcore_mach): Just return 0, work around a problem in bfd.
11825 (default_gcore_target): OK to return NULL if exec_bfd is null.
11826 (make_mem_sec): Use a cast, avoid a warning.
11827
11828 * procfs.c (find_memory_regions_callback): Use a cast instead of
11829 calling host_pointer_to_address (which complains if
11830 sizeof (host pointer) != sizeof (target pointer)).
11831 (procfs_make_note_section): Avoid overflow in psargs string.
11832
11833 * procfs.c (procfs_make_note_section): Make the default
11834 implementation return an error.
11835
118362002-02-13 Rodney Brown <rbrown64@csc.com.au>
11837
11838 * procfs.c (procfs_make_note_section): Provide a default definition
11839 (for alpha-dec-osf4.0f). Fix typos.
11840
118412002-02-13 Elena Zannoni <ezannoni@redhat.com>
11842
11843 * linux-proc.c: Add include of regcache.h.
11844 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11845
118462002-02-13 Andrew Cagney <ac131313@redhat.com>
11847
11848 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11849 * memattr.c (create_mem_region): Disallow useless empty region.
11850 Regions are half-open intervals, so allow [A..B) [B..C) as
11851 non-overlapping.
11852
118532002-02-13 Michael Chastain <mec@shout.net>
11854
11855 * defs.h: Kill CONST_PTR.
11856 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11857 * c-lang.c (c_builtin_types): Likewise.
11858 * ch-lang.c (ch_builtin_types): Likewise.
11859 * f-lang.c (f_builtin_types): Likewise.
11860 * language.c (unknown_builtin_types): Likewise.
11861 * m2-lang.c (m2_builtin_types): Likewise.
11862 * p-lang.c (pascal_builtin_types): Likewise.
11863 * scm-lang.c (c_builtin_types): Likewise.
11864
118652002-02-13 Keith Seitz <keiths@redhat.com>
11866
11867 * arm-tdep.h (arm_get_next_pc): Add declaration.
11868
118692002-02-13 Richard Earnshaw <rearnsha@arm.com>
11870
11871 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11872 with other related struct-returning functions.
11873 (arm_extract_struct_value_address): New function.
11874 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11875 initialize float_format, double_format and long_double_format as
11876 appropriate to the endianness of the target.
11877 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11878 (arm_use_struct_convention): Delete declaration.
11879 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11880
118812002-02-13 Keith Seitz <keiths@redhat.com>
11882
11883 * defs.h (core_addr_to_string_nz): New function.
11884
118852002-02-13 Mark Kettenis <kettenis@gnu.org>
11886
11887 Apply missing bits of 2002-01-15 patch.
11888 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11889 (fill_fpregset): Use i387_fill_fsave.
11890
118912002-02-12 Keith Seitz <keiths@redhat.com>
11892
11893 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11894 (core_addr_to_string_nz): New function.
11895
118962002-02-11 Richard Earnshaw <rearnsha@arm.com>
11897
11898 * arm-linux-nat.c: Really include arm-tdep.h.
11899 * config/arm/tm-linux.h (struct type, struct value): Declare.
11900
119012002-02-11 Michael Snyder <msnyder@redhat.com>
11902
11903 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11904 (gcore section): Ifdef for Solaris and Unixware only.
11905 (procfs_do_thread_registers): Unixware needs one lwpstatus
11906 per thread (not one prstatus or pstatus).
11907 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11908 not over all gdb threads. For unixware, call elfcore_write_pstatus
11909 once before iterating over threads.
11910
119112002-02-11 Richard Earnshaw <rearnsha@arm.com>
11912
11913 * arm-tdep.h: New file.
11914 * arm-tdep.c: Include arm-tdep.h.
11915 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11916 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11917 (arm_print_float_info, arm_register_type, convert_to_extended)
11918 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11919 (arm_extract_return_value, arm_register_name): Make static.
11920 (arm_software_single_step): Similarly. Fix types in declaration.
11921 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11922 (arm_store_return_value, arm_store_struct_return): New functions.
11923 (arm_gdbarch_init): Register the above functions. Also register
11924 call_dummy_start_offset, sizeof_call_dummy_words,
11925 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11926 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
11927 max_register_virtual_size, register_size. Set up
11928 prologue_cache.saved_regs here, rather than ...
11929 (_initialize_arm_tdep): ... here.
11930 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11931 declarations.
11932 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11933 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11934 (arm_print_float_info, arm_register_type, convert_to_extended)
11935 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11936 (arm_extract_return_value, arm_register_name): Delete declarations.
11937 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11938 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11939 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11940 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11941 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11942 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11943 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11944 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11945 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11946 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11947 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11948 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11949 interface.
11950 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11951 * remote-rdi.c remote-rdp.c: Likewise.
11952 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11953 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11954 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11955 definition.
11956
11957 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11958 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11959 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11960 from non-ARM_ prefixed definitions.
11961 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11962 all uses of above.
11963 * remote-rdi.c remote-rdp.c: Likewise.
11964 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11965
119662002-02-11 Richard Earnshaw <rearnsha@arm.com>
11967
11968 * arm-tdep.c (arm_frameless_function_invocation)
11969 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11970 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11971 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11972 (arm_pop_frame, arm_get_next_pc): Make static.
11973 (arm_gdbarch_init): Register above in gdbarch structure.
11974 (arm_read_fp): Renamed from arm_target_read_fp.
11975 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11976 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11977 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11978 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11979 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11980 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11981 (arm_pc_is_thumb_dummy): Delete declarations.
11982 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11983 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11984 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11985 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
11986
119872002-02-10 Daniel Jacobowitz <drow@mvista.com>
11988
11989 * symtab.c (compare_search_syms): New function.
11990 (sort_search_symbols): New function.
11991 (search_symbols): Sort symbols after searching rather than
11992 before.
11993
119942002-02-10 Andrew Cagney <ac131313@redhat.com>
11995
11996 * NEWS: Linux -> GNU/Linux.
11997
119982002-02-10 Andrew Cagney <ac131313@redhat.com>
11999
12000 * gdbarch.sh: For for level one methods, disallow a definition
12001 when partially multi-arched. Add comments explaining rationale.
12002 * gdbarch.h: Re-generate.
12003
120042002-02-10 Andrew Cagney <ac131313@redhat.com>
12005
12006 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12007 multi-arch partial.
12008
120092002-02-10 Andrew Cagney <ac131313@redhat.com>
12010
12011 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12012 field. Use diff -u.
12013 * gdbarch.c: Re-generate.
12014
120152002-02-10 Andrew Cagney <ac131313@redhat.com>
12016
12017 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12018 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12019 partial.
12020
120212002-02-10 Andrew Cagney <ac131313@redhat.com>
12022
12023 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12024 multi-arch partial.
12025 (PUSH_ARGUMENTS): Switch to using predefault.
12026 * gdbarch.c: Regenerate.
12027
120282002-02-10 Andrew Cagney <ac131313@redhat.com>
12029
12030 * valops.c (PUSH_ARGUMENTS): Delete definition.
12031 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12032 partial. Default to default_push_arguments.
12033 * gdbarch.h, gdbarch.c: Regenerate.
12034
120352002-02-09 Andrew Cagney <ac131313@redhat.com>
12036
12037 * defs.h (throw_exception): Rename return_to_top_level. Update
12038 comments.
12039 * utils.c (error_stream, internal_verror, quit): Ditto.
12040 * top.c (throw_exception, catcher): Ditto.
12041 * sparclet-rom.c (sparclet_load): Ditto.
12042 * remote.c (interrupt_query, minitelnet): Ditto.
12043 * remote-sds.c (interrupt_query): Ditto.
12044 * remote-mips.c (mips_error, mips_kill): Ditto.
12045 * ocd.c (interrupt_query): Ditto.
12046 * monitor.c (monitor_interrupt_query): Ditto.
12047 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12048 * target.h: Update comment.
12049
12050 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12051
120522002-02-09 Andrew Cagney <ac131313@redhat.com>
12053
12054 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12055 default_double_format.
12056 * gdbarch.h, gdbarch.c: Re-generate.
12057 * findvar.c (floatformat_unknown): Delete variable definition.
12058 * doublest.h (floatformat_unknown): Delete variable declaration.
12059
120602002-02-09 Jim Blandy <jimb@redhat.com>
12061
12062 * stabsread.c (read_type): Add code to parse Sun's syntax for
12063 prototyped function types.
12064
120652002-02-09 Andrew Cagney <ac131313@redhat.com>
12066
12067 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12068 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12069
120702002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12071
12072 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12073 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12074 now _initialize_xcoffsolib gets called again and overrides the
12075 commands from solib.c in a native configuration.
12076
120772002-02-09 Mark Kettenis <kettenis@gnu.org>
12078
12079 * doublest.c (store_typed_floating): Don't try to return a value.
12080 Fixes PR gdb/290.
12081
120822002-02-08 Jim Blandy <jimb@redhat.com>
12083
12084 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12085 is prototyped and has no arguments, print its argument list as
12086 `(void)'.
12087
120882002-02-08 Chris Demetriou <cgd@broadcom.com>
12089
12090 * MAINTAINERS (write-after-approval): Add myself.
12091 (paper-trail): I've escaped!
12092
120932002-02-08 Christopher Faylor <cgf@redhat.com>
12094
12095 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12096 changes.
12097 (_initialize_check_for_gdb_ini): Ditto.
12098
120992002-02-08 Martin M. Hunt <hunt@redhat.com>
12100
12101 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12102 xaprintf -> xasprintf.
12103
121042002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12105
12106 * win32-nat.c: Remove use of printf and sprintf functions.
12107
121082002-02-08 Richard Earnshaw <rearnsha@arm.com>
12109
12110 * arm-tdep.c (arm_frame_chain_valid): Make static.
12111 (arm_push_arguments): Likewise.
12112 (arm_gdbarch_init): New function.
12113 (_initialize_arm_tdep): Call it.
12114 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12115 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12116 (FRAME_CHAIN_VALID): Delete.
12117 (arm_frame_chain_valid): Delete declaration.
12118 (PUSH_ARGUMENTS): Delete.
12119 (arm_push_arguments): Delete declaration.
12120 (CALL_DUMMY_P): Delete.
12121
121222002-02-08 Andrew Cagney <ac131313@redhat.com>
12123 Corinna Vinschen <vinschen@redhat.com>
12124
12125 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12126 on builtin float types.
12127
121282002-02-08 Daniel Jacobowitz <drow@mvista.com>
12129
12130 * utils.c: Include <curses.h> before "bfd.h".
12131 * tui/tui-hooks.c: Likewise.
12132 * tui/tui.c: Likewise.
12133 * tui/tuiCommand.c: Likewise.
12134 * tui/tuiData.c: Likewise.
12135 * tui/tuiDataWin.c: Likewise.
12136 * tui/tuiDisassem.c: Likewise.
12137 * tui/tuiGeneralWin.c: Likewise.
12138 * tui/tuiIO.c: Likewise.
12139 * tui/tuiLayout.c: Likewise.
12140 * tui/tuiRegs.c: Likewise.
12141 * tui/tuiSource.c: Likewise.
12142 * tui/tuiSourceWin.c: Likewise.
12143 * tui/tuiStack.c: Likewise.
12144 * tui/tuiWin.c: Likewise.
12145
121462002-02-07 Elena Zannoni <ezannoni@redhat.com>
12147
12148 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12149 to include space for pseudoregs as well. Update loops accordingly.
12150 (sh_fp_frame_init_saved_regs): Ditto.
12151 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12152
121532002-02-07 Andrew Cagney <ac131313@redhat.com>
12154
12155 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12156 Add Richard Earnshaw to Arm maintainers.
12157
121582002-02-07 Andrew Cagney <ac131313@redhat.com>
12159
12160 * defs.h (warning_begin): Delete declaration.
12161
12162 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12163 Delete macro.
12164
121652002-02-07 Michael Snyder <msnyder@redhat.com>
12166
12167 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12168 Logic bug, remove misplaced else.
12169
121702002-02-07 Klee Dienes <klee@apple.com>
12171
12172 * fork-inferior.c (fork_inferior): Add '!' to the list of
12173 characters that need to be quoted when building a string for the
12174 shell. Quote '!' specifically with a backslash, since CSH chokes
12175 when trying to evaluate "str!str".
12176
121772002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12178
12179 * rdi-share/host.h: Only provide a typedef for bool if it is not
12180 defined.
12181
121822002-02-04 Michael Snyder <msnyder@redhat.com>
12183
12184 * breakpoint.h (enum bptype): Add new overlay event bp type.
12185 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12186
12187 * breakpoint.c (create_internal_breakpoint): New function.
12188 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12189 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12190 (create_thread_event_breakpoint): Ditto.
12191 (create_solib_event_breakpoint): Ditto.
12192 (create_overlay_event_breakpoint): New function.
12193 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12194 (update_breakpoints_after_exec): Delete and re-initialize
12195 overlay event breakpoints after an exec. Add FIXME comment
12196 about longjmp breakpoint.
12197 (print_it_typical): Ignore overlay event breakpoints.
12198 (print_one_breakpoint): Ditto.
12199 (mention): Ditto.
12200 (bpstat_what): Do not stop for overlay event breakpoints.
12201 (delete_breakpoint): Don't delete overlay event breakpoints.
12202 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12203 (breakpoint_re_set): Re-create overlay event breakpoint.
12204
12205 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12206 (overlay_manual_command): Disable overlay breakpoints.
12207 (overlay_off_command): Disable overlay breakpoints.
12208
122092002-02-06 Richard Earnshaw <rearnsha@arm.com>
12210
12211 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12212 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12213 to here from config/tm-arm.h.
12214 (coff_sym_is_thumb): Make static.
12215 (arm_elf_make_msymbol_special): New function.
12216 (arm_coff_make_msymbol_special): New function.
12217 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12218 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12219 (coff_sym_is_thumb): Delete declaration.
12220 (arm_elf_make_msymbol_special): Declare.
12221 (arm_coff_make_msymbol_special): Declare.
12222 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12223 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12224
122252002-02-06 Richard Earnshaw <rearnsha@arm.com>
12226
12227 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12228
122292002-02-06 Richard Earnshaw <rearnsha@arm.com>
12230
12231 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12232 * gdbarch.c gdbarch.h: Regenerate.
12233 * arch-utils.c (default_print_float_info): New function.
12234 * arch-utils.h (default_print_float_info): Prototype it.
12235 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12236 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12237 (PRINT_FLOAT_INFO): Document it.
12238
12239 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12240 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12241 (PRINT_FLOAT_INFO): Define.
12242
122432002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12244
12245 * win32-nat.c (_initialize_check_for_gdb_ini):
12246 Add typecast to sprintf argument to suppress a warning.
12247
122482002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12249
12250 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12251 to allow easier handling of pass state.
12252 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12253 that gives exception name and address.
12254 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12255 and set last_sig value to ourstatus->value.sig. Some missing
12256 exceptions added.
12257 (child_continue): Correctly report continue_status.
12258 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12259 TARGET_SIGNAL_0 (new default value).
12260 (child_resume): consider sig argument passed to decide if
12261 the exception should be passed to debuggee or not.
12262
122632002-02-05 Michael Snyder <msnyder@redhat.com>
12264
12265 * regcache.c (fetch_register): Call target_fetch_register
12266 only if we don't call FETCH_PSEUDO_REGISTER.
12267 (store_register): Call target_store_register only if we
12268 don't call STORE_PSEUDO_REGISTER.
12269
122702002-02-05 Elena Zannoni <ezannoni@redhat.com>
12271
12272 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12273 ELF_MAKE_MSYMBOL_SPECIAL.
12274 * gdbarch.c, gdbarch.h: Regenerate.
12275 * arch-utils.c (default_make_msymbol_special): New function.
12276 * arch-utils.h (default_make_msymbol_special): Export.
12277 * elfread.c (elf_symtab_read): Compile use of
12278 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12279 multiarched.
12280 * coffread.c (coff_symtab_read): Ditto, for
12281 COFF_MAKE_MSYMBOL_SPECIAL.
12282
122832002-02-05 Jim Blandy <jimb@redhat.com>
12284
12285 * solib-svr4.c (svr4_truncate_ptr): New function.
12286 (svr4_relocate_section_addresses): Do the address arithmetic with
12287 the appropriate truncation for target addresses, even when
12288 CORE_ADDR is larger than a target address.
12289
122902002-02-05 Daniel Jacobowitz <drow@mvista.com>
12291
12292 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12293 to (int *).
12294
122952002-02-05 Daniel Jacobowitz <drow@mvista.com>
12296
12297 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12298 code.
12299
123002002-02-05 Daniel Jacobowitz <drow@mvista.com>
12301
12302 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12303
123042002-02-05 Daniel Jacobowitz <drow@mvista.com>
12305
12306 * gdbserver/linux-low.c: Remove unused include files.
12307
123082002-02-05 Daniel Jacobowitz <drow@mvista.com>
12309
12310 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12311 (read_inferior_memory): Use it.
12312 (write_inferior_memory): Likewise.
12313
123142002-02-05 Daniel Jacobowitz <drow@mvista.com>
12315
12316 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12317 grubbing through sys_errlist.
12318
123192002-02-05 Daniel Jacobowitz <drow@mvista.com>
12320
12321 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12322
123232002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12324 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12325
123262002-02-04 Andrew Cagney <ac131313@redhat.com>
12327
12328 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12329 (do_sfunc, set_cmd_sfunc): New functions.
12330
12331 * command.h (struct cmd_list_element): Add field func.
12332 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12333 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12334 * cli/cli-decode.h: Ditto.
12335
12336 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12337 (help_all, help_cmd_list): Ditto.
12338 (find_cmd, complete_on_cmdlist): Ditto.
12339 * top.c (execute_command): Ditto.
12340
12341 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12342 function.sfunc.
12343
12344 * infcmd.c (notice_args_read): Fix function signature.
12345
12346 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12347 * cli/cli-decode.c (add_set_cmd): Ditto.
12348 * utils.c (initialize_utils): Ditto.
12349 * maint.c (_initialize_maint_cmds): Ditto.
12350 * infrun.c (_initialize_infrun): Ditto.
12351 * demangle.c (_initialize_demangler): Ditto.
12352 * remote.c (add_packet_config_cmd): Ditto.
12353 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12354 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12355 * proc-api.c (_initialize_proc_api): Ditto.
12356 * kod.c (_initialize_kod): Ditto.
12357 * valprint.c (_initialize_valprint): Ditto.
12358 * top.c (init_main): Ditto.
12359 * infcmd.c (_initialize_infcmd): Ditto.
12360 * corefile.c (_initialize_core): Ditto.
12361 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12362 * arch-utils.c (initialize_current_architecture): Ditto.
12363 (_initialize_gdbarch_utils): Ditto.
12364 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12365
12366 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12367 * wince.c (_initialize_inftarg): Ditto.
12368 * symfile.c (_initialize_symfile): Ditto.
12369 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12370 * language.c (_initialize_language): Ditto.
12371 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12372
123732002-02-04 Michael Snyder <msnyder@redhat.com>
12374
12375 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12376
123772002-02-04 Daniel Jacobowitz <drow@mvista.com>
12378
12379 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12380 Add rules for building the register data files.
12381
123822002-02-04 Daniel Jacobowitz <drow@mvista.com>
12383
12384 * regformats/regdat.sh: Add braces to the definition of
12385 expedite_regs_${arch}.
12386
123872002-02-04 Daniel Jacobowitz <drow@mvista.com>
12388
12389 * regformats/regdef.h (struct reg): Add comment describing the
12390 requirements for offset and size fields.
12391
123922002-02-04 Andreas Schwab <schwab@suse.de>
12393
12394 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12395 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12396
123972002-02-04 Richard Earnshaw <rearnsha@arm.com>
12398
12399 * gdbarch.sh (copyright): Update years in generated header.
12400 (SMASH_TEXT_ADDRESS): Add rule.
12401 * gdbarch.h, gdbarch.c: Re-generate.
12402 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12403 * dbxread.c: Likewise.
12404 * dwarfread.c: Likewise.
12405 * elfread.c: Likewise.
12406 * somread.c: Likewise.
12407
12408 * arm-tdep.c (arm_smash_text_address): New function.
12409 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12410
124112002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12412
12413 Add support for hardware watchpoints on win32 native.
12414 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12415 CONTEXT_DEBUG_REGISTERS.
12416 (dr variable): New variable. Static array containing a local copy
12417 of debug registers.
12418 (debug_registers_changed): New variable. Reflects when debug registers
12419 are changed and need to be written to inferior.
12420 (debug_registers_used): New variable. Reflects when any debug register
12421 was set, used when new threads are created.
12422 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12423 i386-nat code.
12424 (thread_rec): Set dr array if id is the thread of current_event .
12425 (child_continue, child_resume): Change the debug registers for all
12426 threads if debug_registers_changed.
12427 (child_add_thread): Change the debug registers if debug_registers_used.
12428 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12429 Link nm.h to new nm-cygwin.h file.
12430 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12431 of hardware registers.
12432
124332002-02-03 Andrew Cagney <ac131313@redhat.com>
12434
12435 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12436 Restore behavour broken by 2002-01-20 Andrew Cagney
12437 <ac131313@redhat.com> IEEE_FLOAT removal.
12438
124392002-02-03 Daniel Jacobowitz <drow@mvista.com>
12440
12441 * c-valprint.c (c_val_print): Pass a proper valaddr to
12442 cp_print_class_method.
12443 * valops.c (search_struct_method): If there is only one method
12444 and args is NULL, return that method.
12445
124462002-02-03 Daniel Jacobowitz <drow@mvista.com>
12447
12448 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12449 accessing tag_name directly.
12450
124512002-02-03 Daniel Jacobowitz <drow@mvista.com>
12452
12453 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12454 of accessing tag_name directly.
12455
124562002-02-03 Daniel Jacobowitz <drow@mvista.com>
12457
12458 PR gdb/280
12459 * gdbtypes.c (replace_type): New function.
12460 * gdbtypes.h (replace_type): Add prototype.
12461 * stabsread.c (read_type): Use replace_type.
12462
124632002-02-03 Richard Earnshaw <rearnsha@arm.com>
12464
12465 * Makefile.in (memattr.o): Add missing dependencies rule.
12466
124672002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12468
12469 * breakpoint.c (break_at_finish_command): Really export.
12470 (break_at_finish_at_depth_command): Ditto.
12471 (tbreak_at_finish_command): Ditto.
12472 * hppa-tdep.c: Include completer.h.
12473 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12474 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12475
124762002-02-01 Andrew Cagney <ac131313@redhat.com>
12477
12478 * utils.c (do_write): New function.
12479 (error_stream): Rewrite combining the code from error_begin and
12480 verror.
12481 (verror): Rewrite using error_stream.
12482 (error_begin): Delete function.
12483
124842002-02-01 Andrew Cagney <ac131313@redhat.com>
12485
12486 * utils.c (error_begin): Make static.
12487 * defs.h (error_begin): Delete declaration.
12488
12489 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12490 (decode_line_1): Use cplusplus_error instead of error_begin,
12491 cplusplus_hint and return_to_top_level.
12492 * coffread.c (coff_symfile_read): Use error instead of error_begin
12493 and return_to_top_level.
12494 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12495
124962002-02-01 Andrew Cagney <ac131313@redhat.com>
12497
12498 * language.h (type_error, range_error): Make string parameter
12499 constant.
12500 * language.c (warning_pre_print): Delete extern declaration.
12501 * dwarfread.c (warning_pre_print): Ditto.
12502 * language.c (type_error, range_error): Rewrite to use verror and
12503 vwarning instead of warning_begin.
12504
125052002-02-01 Michael Snyder <msnyder@redhat.com>
12506
12507 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12508 (set_ignore_count): Move misplaced comment back where it belongs.
12509
125102002-02-01 Andrew Cagney <ac131313@redhat.com>
12511
12512 * command.h (NO_FUNCTION): Delete macro.
12513 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12514 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12515 * tracepoint.c (_initialize_tracepoint): Ditto.
12516 * cli/cli-decode.c (add_set_cmd): Ditto.
12517 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12518
125192002-02-01 Daniel Jacobowitz <drow@mvista.com>
12520
12521 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12522 Update ``this'' pointer when calling virtual functions.
12523
125242002-02-01 Michael Snyder <msnyder@redhat.com>
12525
12526 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12527 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12528
125292002-02-01 Daniel Jacobowitz <drow@mvista.com>
12530
12531 * regformats/reg-arm.dat: New file.
12532 * regformats/reg-i386.dat: New file.
12533 * regformats/reg-ia64.dat: New file.
12534 * regformats/reg-m68k.dat: New file.
12535 * regformats/reg-mips.dat: New file.
12536 * regformats/reg-ppc.dat: New file.
12537 * regformats/reg-sh.dat: New file.
12538 * regformats/regdef.h: New file.
12539 * regformats/regdat.sh: New file.
12540
125412002-02-01 Richard Earnshaw <reanrsha@arm.com>
12542
12543 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12544 (arm_frame_args_address, arm_frame_locals_address): New functions.
12545 (arm_frame_num_args): New function.
12546 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12547 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12548 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12549
125502002-01-31 Michael Snyder <msnyder@redhat.com>
12551
12552 * breakpoint.c (break_at_finish_command): Export.
12553 (break_at_finish_at_depth_command): Export.
12554 (tbreak_at_finish_command): Export.
12555 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12556 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12557 "txbreak" commands, which are HPPA specific.
12558
12559 * printcmd.c (disassemble_command): Remove an ancient
12560 artifact of an old merge.
12561
12562 * symfile.h (enum overlay_debugging_state):
12563 Define enum constant values for overlay mode.
12564 * symfile.c (overlay_debugging): Use enums instead of literals.
12565 (overlay_is_mapped, overlay_auto_command,
12566 overlay_manual_command): Ditto.
12567
12568 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12569 breakpoint_here_p, breakpoint_inserted_here_p,
12570 breakpoint_thread_match, bpstat_stop_status,
12571 describe_other_breakpoints, check_duplicates, clear_command):
12572 Coding standard fixes.
12573
12574 * target.c (target_xfer_memory): Add spaces, coding standard.
12575 (do_xfer_memory): Add missing line to trust-readonly
12576 code: check bfd SEC_READONLY flag for section.
12577
125782002-01-31 Andrew Cagney <ac131313@redhat.com>
12579
12580 * PROBLEMS: Fix typo, 5.1->5.1.1.
12581
125822002-01-30 Daniel Jacobowitz <drow@mvista.com>
12583
12584 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12585 data symbols, since we search based on textlow and texthigh.
12586 (find_pc_sect_symtab): Likewise.
12587
125882002-01-30 Andrew Cagney <ac131313@redhat.com>
12589
12590 * defs.h (vwarning): Declare.
12591 * utils.c (vwarning): New function.
12592 (warning): Call vwarning.
12593 (warning_begin): Delete function.
12594
12595 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12596 the warning message.
12597 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12598 warning_begin.
12599
126002002-01-30 Michael Snyder <msnyder@redhat.com>
12601
12602 * NEWS: Mention "set trust-readonly-sections" command.
12603 Mention generate-core-file command.
12604
126052002-01-15 Michael Snyder <msnyder@redhat.com>
12606
12607 * target.c: New command, "set trust-readonly-sections on".
12608 (do_xfer_memory): Honor the suggestion to trust readonly sections
12609 by reading them from the object file instead of from the target.
12610 (initialize_targets): Register command "set trust-readonly-sections".
12611
126122002-01-29 Andrew Cagney <ac131313@redhat.com>
12613
12614 * parse.c (target_map_name_to_register): Simplify, search regs and
12615 pseudo-regs using a single loop.
12616
126172002-01-30 Andrew Cagney <ac131313@redhat.com>
12618
12619 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12620
126212002-01-15 Rodney Brown <rbrown64@csc.com.au>
12622
12623 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12624 * config/i386/i386v42mp.mh: Add i387-nat.o .
12625 * i386v4-nat.c: Include i387-nat.h.
12626 (supply_fpregset): Use i387_supply_fsave.
12627 (fill_fpregset): Use i387_fill_fsave.
12628
126292002-01-30 Richard Earnshaw <rearnsha@arm.com>
12630
12631 * arm-tdep.c (arm_call_dummy_words): Define.
12632 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12633 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12634 (CALL_DUMMY_WORDS): Define.
12635 (arm_call_dummy_words): Declare.
12636 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12637 (arm_linux_call_dummy_words): Declare.
12638
126392002-01-30 Andreas Schwab <schwab@suse.de>
12640
12641 * m68klinux-nat.c: Fix last change to use regcache_collect
12642 instead of referencing registers[] directly.
12643
126442002-01-29 Andrew Cagney <ac131313@redhat.com>
12645
12646 * parse.c (target_map_name_to_register): Delete code wrapped in
12647 #ifdef REGISTER_NAME_ALIAS_HOOK.
12648
126492002-01-28 Michael Snyder <msnyder@redhat.com>
12650
12651 * regcache.c (legacy_read_register_gen): Need to be able to
12652 read pseudo-register as well as real register.
12653 (legacy_write_register_gen): Ditto.
12654
126552002-01-28 Andrew Cagney <ac131313@redhat.com>
12656
12657 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12658 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12659 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12660 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12661 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12662 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12663 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12664 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12665 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12666 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12667 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12668 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12669 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12670 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12671 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12672 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12673 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12674 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12675 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12676 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12677
126782002-01-28 Andrew Cagney <ac131313@redhat.com>
12679
12680 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12681 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12682 (initialize_current_architecture): Update target_byte_order using
12683 information from BFD.
12684 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12685 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12686
126872002-01-28 Andrew Cagney <ac131313@redhat.com>
12688
12689 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12690 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12691
12692 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12693 #ifdef INVALID_FLOAT.
12694 * infcmd.c (do_registers_info): Ditto.
12695 * values.c (unpack_double): Ditto. Add comment.
12696
12697 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12698 already commented out.
12699
127002002-01-26 Andreas Schwab <schwab@suse.de>
12701
12702 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12703 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12704 registers and add support for PTRACE_GETREGS.
12705
127062002-01-24 Andrew Cagney <ac131313@redhat.com>
12707
12708 GDB 5.1.1 released from 5.1 branch.
12709 * NEWS: Add 5.1.1 news.
12710 * README: Sync with 5.1 branch.
12711
127122002-01-23 Fred Fish <fnf@redhat.com>
12713
12714 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12715 stabstring on initial malloc. Reallocing will copy it for us,
12716 if necessary.
12717
127182002-01-23 Elena Zannoni <ezannoni@redhat.com>
12719
12720 * Makefile.in (hpread_h): Delete.
12721 (HFILES_NO_SRCDIR): Remove hpread.h.
12722 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12723 (hpread.o): Update dependencies.
12724 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12725
12726 * hp-psymtab-read.c: Remove file.
12727 * hp-symtab-read.c: Remove file.
12728 * hpread.h: Remove file.
12729
12730 * hpread.c: Merge all contents of hp-psymtab-read.c,
12731 hp-symtab-read.c and hpread.h into this file, as it was prior to
12732 January 1999.
12733
12734 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12735 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12736 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12737 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12738
127392002-01-23 Elena Zannoni <ezannoni@redhat.com>
12740
12741 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12742 fill_gregset): Call gdbarch_tdep() just once, assign result to
12743 variable and use that, instead of calling the function several
12744 times.
12745
127462002-01-24 Alexandre Oliva <aoliva@redhat.com>
12747
12748 * configure.host: Accept sparcv9 as alias for sparc64.
12749 * configure.tgt: Likewise.
12750
127512002-01-22 Kevin Buettner <kevinb@redhat.com>
12752
12753 * solib-aix5.c (build_so_list_from_mapfile)
12754 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12755 arguments is not reversed.
12756 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12757 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12758
127592002-01-22 Elena Zannoni <ezannoni@redhat.com>
12760
12761 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12762 modified version of obsolete sh_fetch_pseudo_register.
12763 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12764 (sh4_register_read): New function.
12765 (sh_pseudo_register_write): New function. Renamed and modified
12766 version of obsolete sh_store_pseudo_register.
12767 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12768 (sh4_register_write): New function.
12769 (sh_gdbarch_init): Remove setting of gdbarch function
12770 fetch_pseudo_register and store_pseudo_register. Remove setting of
12771 register_convert_to_raw, register_convert_to_virtual,
12772 register_convertible.
12773 (sh_sh4_register_convertible): Delete. No longer needed. All is
12774 taken care by architecture specific functions
12775 register_read/register_write.
12776 (sh_sh4_register_convert_to_virtual): Make static.
12777 (sh_sh4_register_convert_to_raw): Ditto.
12778
127792002-01-22 Andrew Cagney <ac131313@redhat.com>
12780
12781 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12782 (floatformat_is_nan, floatformat_mantissa): Ditto.
12783
12784 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12785 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12786 builtin_type_ieee_double_little,
12787 builtin_type_ieee_double_littlebyte_bigword,
12788 builtin_type_m68881_ext, builtin_type_i960_ext,
12789 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12790 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12791 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12792 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12793
127942002-01-22 Corinna Vinschen <vinschen@redhat.com>
12795
12796 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12797 parameter. Set frameless flag if it exists and depended of
12798 whether the scanned function is frameless or not.
12799 (xstormy16_skip_prologue): If function is frameless, return
12800 result of xstormy16_scan_prologue().
12801 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12802 call.
12803
128042002-01-21 Elena Zannoni <ezannoni@redhat.com>
12805
12806 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12807 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12808 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12809 sh_sh4_register_byte, sh_sh4_register_raw_size,
12810 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12811 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12812 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12813 sh_store_pseudo_register, sh_do_pseudo_register): Call
12814 gdbarch_tdep() just once, assign result to variable and use that,
12815 instead of calling the function several times.
12816
128172002-01-20 Mark Kettenis <kettenis@gnu.org>
12818
12819 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12820 macros instead of LAST_FPU_CTRL_REGNUM.
12821 (store_register): Likewise.
12822
128232002-01-21 Jim Blandy <jimb@redhat.com>
12824
12825 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12826 is up-to-date before running the program, not just when a program
12827 exits.
12828
128292002-01-21 Fred Fish <fnf@redhat.com>
12830
12831 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12832 when we have found all instructions we are looking for.
12833
128342002-01-21 Richard Earnshaw <rearnsha@arm.com>
12835
12836 * arm-tdep.c (arm_register_name): New function.
12837 (arm_registers_names): Make static.
12838 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12839 (arm_register_name): Declare.
12840 (REGISTER_NAME): Use it.
12841
128422002-01-21 Richard Earnshaw <rearnsha@arm.com>
12843 Kevin Buettner <kevinb@redhat.com>
12844
12845 Convert arm targets to new FRAME interface.
12846 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12847 (arm_frame_find_save_regs): Delete.
12848 (arm_frame_init_saved_regs): New.
12849 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12850 Allocate extra_info as required. Convert all uses of fsr.regs
12851 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12852 to use extra_info.
12853 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12854 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12855 (check_prologue_cache, save_prologue_cache): Likewise.
12856 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12857 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12858 (FRAME_FIND_SAVED_REGS): Delete.
12859 (arm_frame_find_saved_regs): Delete prototype.
12860 (arm_frame_init_saved_regs): New prototype.
12861 (FRAME_INIT_SAVED_REGS): Define.
12862
128632002-01-20 Andrew Cagney <ac131313@redhat.com>
12864
12865 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12866
128672002-01-20 Andrew Cagney <ac131313@redhat.com>
12868
12869 From Jeff Law <law@redhat.com>:
12870 * infttrace.c: Include <sys/pstat.h>.
12871 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12872 exec file if the ttrace equivalent fails.
12873
128742002-01-20 Andrew Cagney <ac131313@redhat.com>
12875
12876 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12877 (closeLogFile): Ditto.
12878
128792002-01-20 Michael Chastain <mec@shout.net>
12880
12881 * top.c (print_gdb_version): Bump copyright year to 2002.
12882
128832002-01-20 Andrew Cagney <ac131313@redhat.com>
12884
12885 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12886 Zannoni and Eli Zaretskii.
12887
128882002-01-20 Daniel Jacobowitz <drow@mvista.com>
12889
12890 * buildsym.c: Update copyright years.
12891 * c-typeprint.c: Likewise.
12892 * dwarf2read.c: Likewise.
12893 * f-typeprint.c: Likewise.
12894 * gdbtypes.c: Likewise.
12895 * gdbtypes.h: Likewise.
12896 * hp-symtab-read.c: Likewise.
12897 * hpread.c: Likewise.
12898 * mdebugread.c: Likewise.
12899 * p-typeprint.c: Likewise.
12900
129012002-01-20 Andrew Cagney <ac131313@redhat.com>
12902
12903 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12904 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12905 byte-order selectable.
12906 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12907 * arch-utils.c: Ditto.
12908 (set_endian): Ditto.
12909 (set_endian_from_file): Ditto.
12910 * gdbserver/low-sim.c (create_inferior): Ditto.
12911 * gdbarch.sh: Ditto.
12912 * gdbarch.h: Re-generate.
12913 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12914 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12915 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12916 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12917 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12918 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12919 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
12920 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12921 macro definition.
12922 * config/mips/tm-wince.h: Remove #undef of macro
12923 TARGET_BYTE_ORDER_SELECTABLE.
12924 * config/sh/tm-wince.h: Ditto.
12925
129262002-01-20 Daniel Jacobowitz <drow@mvista.com>
12927
12928 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12929 member function fields. Add accessor macro
12930 TYPE_FN_FIELD_ARTIFICIAL.
12931 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12932 * c-typeprint.c (c_type_print_base): Skip artificial member
12933 functions.
12934
129352002-01-20 Daniel Jacobowitz <drow@mvista.com>
12936
12937 * f-typeprint.c: Delete unused function f_type_print_args.
12938 * p-typeprint.c: Delete unused function pascal_type_print_args.
12939
129402002-01-20 Daniel Jacobowitz <drow@mvista.com>
12941
12942 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12943 comment. Add ``artificial'' to ``union field_location''.
12944
12945 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12946
12947 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12948 * mdebugread.c (parse_symbol): Likewise.
12949 * stabsread.c (define_symbol): Likewise.
12950 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12951 initializing TYPE_FIELD_BITPOS to n (obsolete).
12952 (hpread_doc_function_type): Likewise.
12953 * hpread.c (hpread_function_type): Likewise.
12954
129552002-01-20 Andrew Cagney <ac131313@redhat.com>
12956
12957 * configure.in (host_makefile_frag): Only require a host makefile
12958 fragment when a native build.
12959 * configure: Re-generate.
12960
129612002-01-20 Andrew Cagney <ac131313@redhat.com>
12962
12963 * doublest.h (floatformat_from_type): Declare.
12964 * doublest.c (floatformat_from_type): New function.
12965 (convert_typed_floating): Use.
12966
12967 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12968 call to function floatformat_from_type.
12969
12970 * gdbarch.sh (IEEE_FLOAT): Delete.
12971 * gdbarch.h, gdbarch.c: Re-generate.
12972 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12973 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12974 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12975 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12976 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12977 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12978 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12979 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12980 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12981 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12982 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
12983 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12984
12985 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12986 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12987 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12988 * sh-tdep.c (sh_gdbarch_init): Ditto.
12989 * mips-tdep.c (mips_gdbarch_init): Ditto.
12990 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12991 * cris-tdep.c (cris_gdbarch_init): Ditto.
12992
129932002-01-20 Jiri Smid <smid@suse.cz>
12994
12995 * configure.host, configure.tgt: Support x86-64.
12996 * NEWS: Note new target x86-64.
12997
12998 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12999 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13000 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13001 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13002 x86-64-linux-nat.o): Fix dependencies.
13003
130042002-01-19 Andrew Cagney <ac131313@redhat.com>
13005
13006 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13007 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13008 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13009 * config/sparc/xm-sun4os4.h: Delete file.
13010 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13011
130122002-01-19 Andrew Cagney <ac131313@redhat.com>
13013
13014 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13015 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13016 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13017 * config/i386/i386lynx.mh (XM_FILE): Delete.
13018 * config/rs6000/xm-rs6000ly.h: Delete file.
13019 * config/sparc/xm-sparclynx.h: Delete file.
13020 * config/m68k/xm-m68klynx.h: Delete file.
13021 * config/i386/xm-i386lynx.h: Delete file.
13022 * config/xm-lynx.h: Delete file.
13023 * config/djgpp/fnchange.lst: Update.
13024
130252002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13026
13027 * alpha-tdep.c (alpha_register_byte): New function.
13028 (alpha_register_raw_size): Ditto.
13029 (alpha_register_virtual_size): Ditto.
13030 (alpha_skip_prologue_internal): Renamed from
13031 alpha_skip_prologue.
13032 (alpha_skip_prologue): New version that calls
13033 alpha_skip_prologue_internal.
13034 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13035 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13036 second argument from alpha_skip_prologue.
13037 (REGISTER_BYTE): Use alpha_register_byte.
13038 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13039 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13040 (FRAMELESS_FUNCTION_INVOCATION): Use
13041 generic_frameless_function_invocation_not.
13042 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13043 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13044
130452002-01-19 Andrew Cagney <ac131313@redhat.com>
13046
13047 * config/mips/xm-news-mips.h: Delete file.
13048 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13049
13050 * config/m88k/xm-m88k.h: Delete file.
13051 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13052 * config/m88k/xm-delta88v4.h: Ditto.
13053 * config/m88k/xm-delta88.h: Ditto.
13054
13055 * config/alpha/xm-fbsd.h: Delete file.
13056 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13057
13058 * config/sparc/xm-sparc.h: Delete file.
13059 * Makefile.in (xm-sun4os4.h): Delete dependency.
13060 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13061 * config/sparc/xm-sun4os4.h: Ditto.
13062 * config/sparc/xm-linux.h: Ditto.
13063
13064 * config/i386/xm-windows.h: Delete file.
13065
130662002-01-19 Andrew Cagney <ac131313@redhat.com>
13067
13068 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13069 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13070
130712002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13072
13073 * alpha-tdep.c (alpha_call_dummy_words): New.
13074 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13075 (CALL_DUMMY_P): Define.
13076 (CALL_DUMMY_WORDS): Define.
13077 (SIZEOF_CALL_DUMMY_WORDS): Define.
13078
130792002-01-19 Per Bothner <per@bothner.com>
13080
13081 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13082 isn't NULL, which can happen with some gcj-3.x-produced code.
13083
130842002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13085
13086 * alpha-tdep.c (alpha_register_virtual_type): New function.
13087 (alpha_init_frame_pc_first): Ditto.
13088 (alpha_fix_call_dummy): Ditto.
13089 (alpha_store_struct_return): Ditto.
13090 (alpha_extract_struct_value_address): Ditto.
13091 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13092 alpha_register_virtual_type.
13093 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13094 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13095 alpha_extract_struct_value_address.
13096 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13097 (INIT_FRAME_PC): Use init_frame_pc_noop.
13098 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13099
131002002-01-19 Mark Kettenis <kettenis@gnu.org>
13101
13102 * i386gnu-nat.c: Include "i386-tdep.h".
13103 (fetch_fpregs): Simplify code dealing with uninitialized floating
13104 point states such that it doesn't require FP7_REGNUM.
13105
131062002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13107
13108 * alpha-tdep.c (frame_extra_info): New.
13109 (alpha_find_saved_regs): Make static. Use
13110 frame->extra_info.
13111 (alpha_frame_init_saved_regs): New function.
13112 (alpha_frame_saved_pc): Use frame->extra_info.
13113 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13114 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13115 (init_extra_frame_info): Rename to...
13116 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13117 (alpha_print_extra_frame_info): New function.
13118 (alpha_frame_locals_address): Ditto.
13119 (alpha_frame_args_address): Ditto.
13120 (alpha_pop_frame): Use frame->extra_info.
13121 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13122 alpha_frame_args_address.
13123 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13124 (alpha_find_saved_regs): Remove prototype.
13125 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13126 (EXTRA_FRAME_INFO): Remove.
13127 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13128 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13129
131302002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13131
13132 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13133 (alpha_cannot_fetch_register): Ditto.
13134 (alpha_cannot_store_register): Ditto.
13135 (alpha_register_convertible): Ditto.
13136 (alpha_use_struct_convention): Ditto.
13137 * config/alpha/tm-alpha.h: Update copyright years.
13138 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13139 (INNER_THAN): Use core_addr_lessthan.
13140 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13141 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13142 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13143 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13144 (FRAME_CHAIN): Remove unnecessary cast.
13145
131462002-01-18 Andrew Cagney <ac131313@redhat.com>
13147
13148 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13149 obsolete.
13150
131512002-01-18 Andrew Cagney <ac131313@redhat.com>
13152
13153 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13154 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13155 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13156 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13157 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13158 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13159 * x86-64-linux-nat.c: Ditto.
13160
131612002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13162
13163 * alpha-tdep.c (alpha_register_name): New function.
13164 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13165 (REGISTER_NAME): Define.
13166
131672002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13168
13169 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13170
131712002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13172
13173 * alpha-tdep.c: Update copyright years.
13174 (alpha_next_pc): New function.
13175 (alpha_software_single_step): Ditto.
13176 * config/alpha/tm-alpha.h: Add prototype for
13177 alpha_software_single_step.
13178
131792002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13180
13181 * alphabsd-nat.c: Update copyright years.
13182 (fill_gregset): Use regcache_collect.
13183 (fill_fpregset): Likewise.
13184 (fetch_inferior_registers): Only fetch integer registers
13185 if requested to do so.
13186 (store_inferior_registers): Only store integer registers
13187 if requested to do so.
13188
131892002-01-17 Andrew Cagney <ac131313@redhat.com>
13190
13191 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13192 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13193 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13194 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13195 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13196 * config/arm/linux.mh (XDEPFILES): Delete.
13197 * config/arm/nbsd.mh (XDEPFILES): Delete.
13198 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13199 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13200 * config/i386/i386m3.mh (XDEPFILES): Delete.
13201 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13202 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13203 * config/i386/fbsd.mh (XDEPFILES): Delete.
13204 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13205 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13206 * config/i386/i386v4.mh (XDEPFILES): Delete.
13207 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13208 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13209 * config/i386/i386aix.mh (XDEPFILES): Delete.
13210 * config/i386/go32.mh (XDEPFILES): Delete.
13211 * config/i386/cygwin.mh (XDEPFILES): Delete.
13212 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13213 * config/i386/i386mach.mh (XDEPFILES): Delete.
13214 * config/i386/i386v32.mh (XDEPFILES): Delete.
13215 * config/i386/linux.mh (XDEPFILES): Delete.
13216 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13217 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13218 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13219 * config/i386/i386sco.mh (XDEPFILES): Delete.
13220 * config/i386/i386v.mh (XDEPFILES): Delete.
13221 * config/i386/nbsd.mh (XDEPFILES): Delete.
13222 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13223 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13224 * config/i386/symmetry.mh (XDEPFILES): Delete.
13225 * config/i386/obsd.mh (XDEPFILES): Delete.
13226 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13227 * config/ia64/linux.mh (XDEPFILES): Delete.
13228 * config/ia64/aix.mh (XDEPFILES): Delete.
13229 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13230 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13231 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13232 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13233 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13234 * config/m68k/linux.mh (XDEPFILES): Delete.
13235 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13236 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13237 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13238 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13239 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13240 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13241 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13242 * config/m88k/delta88.mh (XDEPFILES): Delete.
13243 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13244 * config/m88k/m88k.mh (XDEPFILES): Delete.
13245 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13246 * config/mips/linux.mh (XDEPFILES): Delete.
13247 * config/mips/irix6.mh (XDEPFILES): Delete.
13248 * config/mips/irix5.mh (XDEPFILES): Delete.
13249 * config/mips/irix4.mh (XDEPFILES): Delete.
13250 * config/mips/irix3.mh (XDEPFILES): Delete.
13251 * config/mips/decstation.mh (XDEPFILES): Delete.
13252 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13253 (NATDEPFILES): Move core-aout.o to here.
13254 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13255 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13256 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13257 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13258 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13259 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13260 * config/pa/hpux11.mh (XDEPFILES): Delete.
13261 * config/powerpc/aix.mh (XDEPFILES): Delete.
13262 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13263 * config/powerpc/linux.mh (XDEPFILES): Delete.
13264 * config/romp/rtbsd.mh: Rename XDEPFILES.
13265 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13266 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13267 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13268 * config/s390/s390.mh (XDEPFILES): Delete.
13269 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13270 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13271 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13272 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13273 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13274 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13275 * config/sparc/linux.mh (XDEPFILES): Delete.
13276 * config/vax/vaxult.mh (XDEPFILES): Delete.
13277 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13278 * Makefile.in (DEPFILES): Remove XDEPFILES.
13279
132802002-01-17 Andrew Cagney <ac131313@redhat.com>
13281
13282 * utils.c (internal_verror): Fix comments, default is yes not no.
13283 Update queries to match. Default to quit and dump core.
13284
132852002-01-17 Andrew Cagney <ac131313@redhat.com>
13286
13287 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13288 copyright.
13289 * defs.h, event-top.c, gdbcmd.h: Ditto.
13290 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13291 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13292 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13293 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13294 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13295 * mi/mi-main.c:Ditto.
13296
13297 * stack.c, symfile.c: Update copyright.
13298
132992002-01-17 Daniel Jacobowitz <drow@mvista.com>
13300
13301 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13302 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13303 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13304 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13305
133062002-01-17 Daniel Jacobowitz <drow@mvista.com>
13307
13308 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13309 * gdbserver/low-lynx.c (myattach): Likewise.
13310 * gdbserver/low-nbsd.c (myattach): Likewise.
13311 * gdbserver/low-sim.c (myattach): Likewise.
13312 * gdbserver/low-sparc.c (myattach): Likewise.
13313 * gdbserver/low-sun3.c (myattach): Likewise.
13314
13315 * gdbserver/low-linux.c (myattach): New function.
13316
13317 * gdbserver/server.c (attach_inferior): New function.
13318 (main): Handle "--attach".
13319
133202002-01-16 Andrew Cagney <ac131313@redhat.com>
13321
13322 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13323 maintainer.
13324
133252002-01-15 Daniel Jacobowitz <drow@mvista.com>
13326
13327 * c-typeprint.c (is_type_conversion_operator): Add additional
13328 check for non-conversion operators.
13329
133302002-01-15 Michael Snyder <msnyder@redhat.com>
13331
13332 * linux-proc.c: Add "info proc" command, a la procfs.c.
13333 (read_mapping): New function, abstract and re-use code.
13334 (linux_find_memory_regions): Use new func read_mapping.
13335 (linux_info_proc_cmd): New function, implement "info proc".
13336 (_initialize_linux_proc): Add new command "info proc".
13337
133382002-01-15 Michael Snyder <msnyder@redhat.com>
13339
13340 * symfile.c (generic_load): Use bfd_map_over_sections method
13341 instead of manipulating bfd structure members directly.
13342 (add_section_size_callback): New function, bfd sections callback
13343 used by generic_load.
13344 (load_sections_callback): New function, bfd sections callback
13345 used by generic_load.
13346
133472002-01-15 Elena Zannoni <ezannoni@redhat.com>
13348
13349 [Based on work by Jim Blandy]
13350 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13351 (builtin_type_vec128): Export.
13352 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13353 types.
13354 (builtin_type_vec128): New builtin type for 128 bit vector
13355 registers.
13356 (build_gdbtypes): Initialize builtin_type_v16qi and
13357 builtin_type_v8hi. Create the vec128 register builtin type
13358 structure.
13359 (build_builtin_type_vec128): New function.
13360 (_initialize_gdbtypes): Register builtin_type_v16qi and
13361 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13362 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13363 AltiVec register to new builtin type.
13364
133652001-01-15 Daniel Jacobowitz <drow@mvista.com>
13366
13367 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13368 to make_cv_type.
13369
133702002-01-14 Andrew Cagney <ac131313@redhat.com>
13371
13372 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13373 CLEAN_UP_REGISTER_VALUE.
13374 * regcache.c (supply_register): Update only call.
13375
133762002-01-14 Andrew Cagney <ac131313@redhat.com>
13377
13378 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13379 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13380 a29k-*-vxworks* targets as obsolete.
13381
133822002-01-14 Michael Snyder <msnyder@redhat.com>
13383
13384 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13385 until we can resolve portability issues.
13386 * gregset.h: Remove references to fpxregs.
13387 * gcore.c (gcore_command): Initialize note_sec to NULL.
13388
133892002-01-13 Andrew Cagney <ac131313@redhat.com>
13390
13391 * signals.c (target_signal_to_name): Rewrite. Only use
13392 signals[].name when in bounds and non-NULL.
13393
133942002-01-13 Andrew Cagney <ac131313@redhat.com>
13395
13396 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13397 * signals.c (target_signal_to_name): Verify that SIG is within the
13398 bounds of the signals array.
13399
134002002-01-13 Andrew Cagney <ac131313@redhat.com>
13401
13402 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13403
134042002-01-13 Keith Seitz <keiths@redhat.com>
13405
13406 * stack.c (print_frame_info_base): Print the frame's pc
13407 only if when print_frame_info_listing_hook is not defined.
13408
134092002-01-13 Keith Seitz <keiths@redhat.com>
13410
13411 * varobj.c (varobj_set_value): Make sure that there were no
13412 errors evaluating the object before attempting to set its
13413 value.
13414 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13415 so this offset adjustment is no longer necessary.
13416 (create_child): Don't set the error flag if the child is
13417 a CPLUS_FAKE_CHILD.
13418 (value_of_child): If value_fetch_lazy fails, return NULL
13419 so that callers will be notified that an error occurred.
13420 (c_value_of_variable): Delay check of variable's validity
13421 until later. We actually want all structs and unions to have
13422 the value "{...}".
13423 Do not return "???" for variables which could not be evaluated.
13424 This error condition must be returned to the caller so that it
13425 can get the error condition from gdb.
13426 (cplus_name_of_child): Adjust index for vptr before figuring
13427 out the name of the child.
13428 (cplus_value_of_child): If a child's (real) parent is not valid,
13429 don't even bother trying to give a value for it. Just return
13430 an error. Change all instances in this function.
13431 (cplus_type_of_child): If our parent is one of the "fake"
13432 parents, we need to get at the type of the real parent, and
13433 derive the child's true type using this information.
13434
134352002-01-13 Andrew Cagney <ac131313@redhat.com>
13436
13437 From 2002-01-09 John Marshall <johnm@falch.net>:
13438 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13439 sources.redhat.com, and tweak some related URLs which had
13440 suffered from linkrot.
13441
134422002-01-13 Andrew Cagney <ac131313@redhat.com>
13443
13444 From Jeff law:
13445 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13446 structures passed in registers.
13447
134482002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13449
13450 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13451 white space which prevented compilation. Reported by DSK
13452 <dsk@student.unsw.edu.au>.
13453
134542002-01-11 Michael Snyder <msnyder@redhat.com>
13455
13456 * symfile.c (build_section_addr_info_from_section_tab):
13457 Use bfd access method instead of manipulating bfd directly.
13458 (syms_from_objfile): Ditto.
13459 (simple_overlay_update_1): Ditto.
13460 (simple_overlay_update): Ditto.
13461 (generic_load): Ditto.
13462 (overlay_unmapped_address): FIXME comment, bfd access methods.
13463 (sections_overlap): FIXME comment, bfd access methods.
13464 (pc_in_mapped_range): FIXME comment, bfd access methods.
13465 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13466 (section_is_mapped): FIXME comment, bfd access methods.
13467 (section_is_overlay): FIXME comment, bfd access methods.
13468
13469 * symfile.c (generic_load): Whitespace and long line cleanups.
13470 Remove duplicate variable, change several local variables to
13471 more appropriate data types.
13472 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13473
134742002-01-12 Andrew Cagney <ac131313@redhat.com>
13475
13476 From Peter Schauer:
13477 * language.c (longest_local_hex_string_custom): Use phex_nz to
13478 convert NUM to a hex string.
13479
134802002-01-12 Elena Zannoni <ezannoni@redhat.com>
13481
13482 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13483 the function.
13484 Update Copyright year.
13485
134862002-01-12 Andrew Cagney <ac131313@redhat.com>
13487
13488 * language.c (longest_raw_hex_string): Delete unused function.
13489
134902002-01-11 Petr Sorfa <petrs@caldera.com>
13491
13492 * MAINTAINERS (write-after-approval): Add myself.
13493 * dwarf2read.c (read_tag_string_type): Handling of
13494 DW_AT_byte_size.
13495 (read_tag_string_type): FORTRAN fix to prevent propagation of
13496 first string size.
13497 (set_cu_language): Handling of DW_LANG_Fortran95
13498
134992002-01-11 Richard Earnshaw <rearnsha@arm.com>
13500
13501 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13502 GETPID(inferior_ptid).
13503 (store_inferior_registers): Likewise.
13504
135052002-01-10 Jason Merrill <jason@redhat.com>
13506
13507 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13508 Fix DW_OP_minus.
13509
135102002-01-10 Andrew Cagney <ac131313@redhat.com>
13511
13512 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13513 and bfd/elf32-sh-nbsd.c.
13514
135152002-01-10 Michael Snyder <msnyder@redhat.com>
13516
13517 * NEWS: Mention --pid and corefile/proc-id behavior change.
13518
13519 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13520 * gcore.c: Include cli/cli-decode.h instead of command.h.
13521
13522 * main.c (captured_main): Add new command line option "--pid".
13523 If the second command line argument (following the symbol-file)
13524 begins with a digit, try to attach to it before trying to open
13525 it as a corefile.
13526 (print_gdb_help): Document the "--pid" argument.
13527
135282002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13529
13530 * completer.c (command_completer): New function.
13531
13532 * completer.h <command_completer>: Add prototype.
13533
13534 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13535 completer for the "help" command.
13536
135372002-01-09 Jason Merrill <jason@redhat.com>
13538
13539 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13540
135412002-01-09 Michael Snyder <msnyder@redhat.com>
13542
13543 * i386-linux-nat.c (fill_fpxregset): Make global.
13544 (store_fpxregset): Ditto.
13545
13546 * gregset.h (gdb_fpxregset_t): Define.
13547 (supply_fpxregset): Prototype.
13548 (fill_fpxregset): Prototype.
13549
13550 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13551
135522002-01-09 Richard Earnshaw <rearnsha@arm.com>
13553
13554 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13555 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13556 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13557
135582002-01-09 Andrew Cagney <ac131313@redhat.com>
13559
13560 * MAINTAINERS: Update target maintainer rules so that any
13561 Maintainer can approve a tested patch for a maintenance-only
13562 target.
13563
135642002-01-09 Richard Earnshaw <rearnsha@arm.com>
13565
13566 * MAINTAINERS (write-after-approval): Add myself.
13567
13568 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13569 IN_SIGTRAMP.
13570
135712002-01-08 Michael Snyder <msnyder@redhat.com>
13572
13573 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13574 real name of the executable, rather than the /proc name.
13575
135762002-01-03 Michael Snyder <msnyder@redhat.com>
13577
13578 Implement a "generate-core-file" command in gdb, save target state.
13579 * gcore.c: New file. Implement new command 'generate-core-file'.
13580 Save a corefile image of the current state of the inferior.
13581 * linux-proc.c: Add linux-specific code for saving corefiles.
13582 * target.h (struct target_ops): Add new target vectors for saving
13583 corefiles; to_find_memory_regions and to_make_corefile_notes.
13584 (target_find_memory_regions): New macro.
13585 (target_make_corefile_notes): New macro.
13586 * target.c (update_current_target): Inherit new target methods.
13587 (dummy_find_memory_regions): New place-holder method.
13588 (dummy_make_corefile_notes): New place-holder method.
13589 (init_dummy_target): Initialize new dummy target vectors.
13590 * exec.c (exec_set_find_memory_regions): New function.
13591 Allow the exec_ops vector for memory regions to be taken over.
13592 (exec_make_note_section): New function, target vector method.
13593 * defs.h (exec_set_find_memory_regions): Export prototype.
13594 * procfs.c (proc_find_memory_regions): New function, corefile method.
13595 (procfs_make_note_section): New function, corefile method.
13596 (init_procfs_ops): Set new target vector pointers.
13597 (find_memory_regions_callback): New function.
13598 (procfs_do_thread_registers): New function.
13599 (procfs_corefile_thread_callback): New function.
13600 * sol-thread.c (sol_find_memory_regions): New function.
13601 (sol_make_note_section): New function.
13602 (init_sol_thread_ops): Initialize new target vectors.
13603 * inftarg.c (inftarg_set_find_memory_regions): New function.
13604 Allow to_find_memory_regions vector to be taken over.
13605 (inftarg_set_make_corefile_notes): New function.
13606 Allow to_make_corefile_notes vector to be taken over.
13607 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13608 interface layer if not target_has_execution (may be a corefile).
13609 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13610 * config/sparc/sun4sol2.mh: Ditto.
13611 * config/alpha/alpha-linux.mh: Ditto.
13612 * config/arm/linux.mh: Ditto.
13613 * config/i386/x86-64linux.mh: Ditto.
13614 * config/ia64/linux.mh: Ditto.
13615 * config/m68k/linux.mh: Ditto.
13616 * config/mips/linux.mh: Ditto.
13617 * config/powerpc/linux.mh: Ditto.
13618 * config/sparc/linux.mh: Ditto.
13619
136202002-01-07 Michael Snyder <msnyder@redhat.com>
13621
13622 * arm-linux-nat.c: Remove references to regcache.c internal data
13623 (registers[] and register_valid[]).
13624
136252002-01-07 Michael Snyder <msnyder@redhat.com>
13626
13627 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13628 so that attaching to a pid will automatically read the process's
13629 symbol file and shlibs.
13630 * Makefile.in: Add rule for linux-proc.o.
13631 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13632 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13633 * config/arm/linux.mh: Ditto.
13634 * config/i386/linux.mh: Ditto.
13635 * config/i386/x86-64linux.mh: Ditto.
13636 * config/ia64/linux.mh: Ditto.
13637 * config/m68k/linux.mh: Ditto.
13638 * config/mips/linux.mh: Ditto.
13639 * config/powerpc/linux.mh: Ditto.
13640 * config/sparc/linux.mh: Ditto.
13641
136422002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13643
13644 * win32-nat.c: Add i386-tdep.h dependency.
13645
136462002-01-07 Michael Snyder <msnyder@redhat.com>
13647
13648 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13649 instead of bfd_get_arch_size. Don't bail out just because
13650 there's no exec_bfd.
13651
13652 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13653 * p-valprint.c (pascal_object_print_value): Ditto.
13654 * somread.c (som_symtab_read): Ditto.
13655 * symfile.c (simple_free_overlay_region_table): Ditto.
13656 * valops.c (value_assign): Ditto.
13657
13658 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13659 use tilde_expand and strerror for opening save-tracepoints file.
13660
13661 * thread-db.c (thread_db_new_objfile): Indendation fix.
13662
13663 * infptrace.c (GDB_MAX_ALLOCA): New define.
13664 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13665 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13666 can be overridden with whatever value is appropriate to the host).
13667 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13668 alloca to allocate potentially large buffer.
13669 * rs6000-nat.c (child_xfer_memory): Ditto.
13670 * symm-nat.c (child_xfer_memory): Ditto.
13671 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13672
136732002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13674
13675 From Nick Clifton <nickc@redhat.com>
13676 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13677
136782002-01-07 Michael Snyder <msnyder@redhat.com>
13679
13680 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13681 Don't use exec_bfd if it's NULL.
13682
136832002-01-06 Mark Kettenis <kettenis@gnu.org>
13684
13685 * valops.c (value_arg_coerce): Fix formatting.
13686
136872002-01-06 Andrew Cagney <ac131313@redhat.com>
13688
13689 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13690 * gnu-nat.c: Ditto.
13691
136922002-01-06 Andrew Cagney <ac131313@redhat.com>
13693
13694 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13695 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13696 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13697 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13698 z8k-coff have not been multi-arched. Update z8k-coff build
13699 status.
13700
137012002-01-06 Andrew Cagney <ac131313@redhat.com>
13702
13703 * MAINTAINERS: Mark a29k target as obsolete.
13704 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13705 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13706 comments.
13707 * NEWS: Note that a29k targets are obsolete.
13708 * a29k-tdep.c: Mark as obsolete.
13709 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13710 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13711 a29k-*-vxworks* targets as obsolete.
13712 * remote-adapt.c: Obsolete.
13713 * remote-eb.c: Obsolete.
13714 * remote-mm.c: Obsolete.
13715 * remote-udi.c: Obsolete.
13716 * config/a29k/a29k-udi.mt: Obsolete.
13717 * config/a29k/a29k.mt: Obsolete.
13718 * config/a29k/tm-a29k.h: Obsolete.
13719 * config/a29k/tm-vx29k.h: Obsolete.
13720 * config/a29k/vx29k.mt: Obsolete.
13721
137222002-01-05 Andrew Cagney <ac131313@redhat.com>
13723
13724 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13725 with BFD_ENDIAN_BIG.
13726
137272002-01-05 Andrew Cagney <ac131313@redhat.com>
13728
13729 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13730 * configure, config.in: Re-generate.
13731 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13732 * defs.h: Do not include <endian.h>.
13733
137342002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13735
13736 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13737 * config.in: Regenerate.
13738 * configure.in: Update copyright years.
13739 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13740 * configure: Regenerate.
13741 * i386bsd-nat.c: Update copyright years.
13742 (fill_gregset): Use regcache_collect.
13743 (fetch_inferior_registers): Only fetch integer registers
13744 if requested to do so. Add support for XMM registers
13745 using PT_GETXMMREGS.
13746 (store_inferior_registers): Only store integer registers
13747 if requested to do so. Add support for XMM registers
13748 using PT_SETXMMREGS.
13749 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13750 (store_inferior_registers): Remove.
13751 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13752 (fetch_elfcore_registers): New function.
13753 (i386nbsd_elfcore_fns): New.
13754 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13755 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13756 i386bsd-nat.o.
13757 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13758 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13759 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13760 * config/i386/tm-nbsd.h: Update copyright years.
13761 (HAVE_SSE_REGS): Define.
13762 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13763 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13764 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13765 (SIGCONTEXT_PC_OFFSET): Remove.
13766 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13767
137682002-01-05 Andrew Cagney <ac131313@redhat.com>
13769
13770 * configure.tgt: Remove powerpc-*-macos* target.
13771 * config/m68k/xm-mpw.h: Delete file.
13772 * config/xm-mpw.h: Delete file.
13773 * ser-mac.c: Delete file.
13774 * mpw-make.sed: Delete file.
13775 * mpw-config.in: Delete file.
13776 * mac-xdep.c: Delete file.
13777 * mac-gdb.r: Delete file.
13778 * mac-defs.h: Delete file.
13779 * mac-nat.c: Delete file.
13780 * config/powerpc/macos.mh: Delete file.
13781 * config/powerpc/macos.mt: Delete file.
13782 * config/powerpc/nm-macos.h: Delete file.
13783 * config/powerpc/tm-macos.h: Delete file.
13784 * source.c (openp, open_source_file): Remove obsolete code.
13785 * top.c (gdb_readline): Ditto.
13786 * utils.c (query): Ditto.
13787 * event-top.c (display_gdb_prompt): Ditto.
13788 * Makefile.in (ser-mac.o): Delete obsolete target.
13789 * NEWS: Update.
13790
137912002-01-04 Andrew Cagney <ac131313@redhat.com>
13792
13793 * defs.h (BIG_ENDIAN): Delete macro definition.
13794 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13795 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13796 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13797 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13798 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13799 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13800 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13801 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13802 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13803 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13804 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13805 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13806 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13807 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13808 * gdbarch.c: Re-generate.
13809
138102002-01-04 Daniel Jacobowitz <drow@mvista.com>
13811
13812 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13813 for core files.
13814
138152002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13816
13817 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13818
138192002-01-04 Andrew Cagney <ac131313@redhat.com>
13820
13821 * value.h (value_ptr): Delete typedef.
13822
138232002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13824
13825 * i386nbsd-nat.c: Update copyright years.
13826 Include i386-tdep.h.
13827
138282002-01-04 Elena Zannoni <ezannoni@redhat.com>
13829
13830 * stabsread.c: Update copyright years.
13831
13832 From Debashis Mahata <debashis.mahata@wipro.com>:
13833 (read_struct_fields): Deal with Sun C compiler erroneous stab
13834 output for structs and unions.
13835 Fix PR gdb/269.
13836
138372002-01-04 Daniel Jacobowitz <drow@mvista.com>
13838
13839 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13840 prototype.
13841
138422002-01-04 Daniel Jacobowitz <drow@mvista.com>
13843
13844 * cp-abi.c: Fix whitespace.
13845 (baseclass_offset): New wrapper function.
13846 * cp-abi.h (baseclass_offset): Add prototype.
13847 (struct cp_abi_ops): Add baseclass_offset pointer.
13848
13849 * valops.c (vb_match): Move to...
13850 * gnu-v2-abi.c (vb_match): here.
13851 * valops.c (baseclass_offset): Move to...
13852 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13853
13854 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13855
13856 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13857 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13858 * hpacc-abi.c (init_hpacc_ops): Likewise.
13859
138602002-01-04 Daniel Jacobowitz <drow@mvista.com>
13861
13862 * valops.c (find_overload_match): Accept obj as a
13863 reference parameter. Update it before returning.
13864 * value.h (find_overload_match): Update prototype.
13865 * eval.c (evaluate_subexp_standard): Pass object to
13866 find_overload_match by reference.
13867
138682002-01-03 Andrew Cagney <ac131313@redhat.com>
13869
13870 * valarith.c: Replace value_ptr with struct value pointer. Remove
13871 register attribute from value declarations.
13872 * valops.c: Ditto.
13873 * value.h: Ditto.
13874 * scm-lang.c (scm_lookup_name): Ditto.
13875
138762002-01-03 Michael Snyder <msnyder@redhat.com>
13877
13878 Abstract the functionality of iterating over mapped memory
13879 regions into a general purpose iterator function.
13880 * procfs.c (iterate_over_mappings): New function, general purpose
13881 iterator for memory sections.
13882 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13883 (solib_mappings_callback): New function, callback for above.
13884 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13885 (info_mappings_callback): New function, callback for above.
13886
13887 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13888
138892002-01-01 Mark Kettenis <kettenis@gnu.org>
13890
13891 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13892 * i386-tdep.c: Include "elf-bfd.h".
13893 (process_note_abi_tag_sections): New function.
13894 (i386_gdbarch_init): Add code to recognize various OS/ABI
13895 combinations.
13896
13897 * maint.c (_initialize_maint_cmds): Add missing \ in
13898 string-literal.
13899
13900For older changes see ChangeLog-2001
13901\f
13902Local Variables:
13903mode: change-log
13904left-margin: 8
13905fill-column: 74
13906version-control: never
13907End:
This page took 0.080683 seconds and 4 git commands to generate.