* xcoffread.c (read_symbol_lineno): Replace type boolean by int.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-12-02 J. Brobecker <brobecker@gnat.com>
2
3 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
4 Fixes a compilation failure on AiX.
5
6 2002-12-02 J. Brobecker <brobecker@gnat.com>
7
8 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
9 why aix-thread.o is not listed.
10
11 2002-12-01 Andrew Cagney <ac131313@redhat.com>
12
13 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
14 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
15 * gdbarch.h, gdbarch.c: Re-generate.
16 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
17 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
18 * config/pa/tm-hppa.h, frame.h: Update.
19 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
20 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
21 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
22 * cris-tdep.c, alpha-tdep.c: Update.
23 * frame.c (set_unwind_by_pc, create_new_frame): Use either
24 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
25 (get_prev_frame): Ditto.
26
27 2002-11-30 Andrew Cagney <cagney@redhat.com>
28
29 * exec.c (xfer_memory): Replace boolean with int.
30 * p-exp.y: Use 0 instead of false.
31 * corelow.c (gdb_check_format): Change return type to int from
32 boolean.
33 * utils.c: Don't include <curses.h> or <term.h> first.
34
35 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
36
37 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
38 (m68hc11_register_byte): Remove.
39 (m68hc11_gdbarch_init): Don't set the above.
40
41 2002-11-29 Andrew Cagney <cagney@redhat.com>
42
43 * remote-mips.c (mips_initialize): Force a selected frame rebuild
44 by calling get_selected_frame.
45 * ocd.c (ocd_start_remote): Use get_selected frame instead of
46 set_current_frame, create_new_frame, select_frame and
47 get_current_frame.
48 * remote-e7000.c (e7000_start_remote): Ditto.
49 * remote-mips.c (common_open): Ditto
50 * remote-rdp.c (remote_rdp_open): Ditto.
51
52 2002-11-29 Andreas Schwab <schwab@suse.de>
53
54 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
55 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
56 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
57 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
58 read_memory_unsigned_integer instead of read_memory_integer when
59 dealing with addresses and instruction opcodes.
60 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
61 (m68k_linux_frame_saved_pc): Likewise.
62
63 2002-11-29 Andrew Cagney <ac131313@redhat.com>
64
65 * stack.c (selected_frame, select_frame): Move from here ...
66 * frame.c (selected_frame, select_frame): ... to here. Include
67 "language.h".
68 * Makefile.in (frame.o): Update dependencies.
69 * frame.c (get_selected_frame): New function.
70 * frame.h (get_selected_frame): Declare.
71 (deprecated_selected_frame): Rename selected_frame.
72 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
73 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
74 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
75 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
76 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
77 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
78 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
79 * z8k-tdep.c, cli/cli-cmds.c: Update.
80
81 2002-11-29 Andrew Cagney <ac131313@redhat.com>
82
83 * frame.h (get_selected_block): Add comments.
84
85 2002-11-28 Andrew Cagney <ac131313@redhat.com>
86
87 * frame.c (pc_notcurrent): New function.
88 (find_frame_sal): New function.
89 * frame.h (find_frame_sal): Declare.
90 (struct symtab_and_line): Add opaque declaration.
91 * stack.c (print_frame_info_base): Use find_frame_sal instead of
92 find_pc_line.
93 (frame_info): Ditto.
94 * ada-lang.c (find_printable_frame): Ditto.
95
96 2002-11-28 J. Brobecker <brobecker@gnat.com>
97
98 * configure.in: Check that the pthdebug library is recent enough
99 before enabling thread support on native AiX.
100 * configure: Regenerate.
101
102 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
103 from the list of object files as it is now appended by configure
104 if thread support is enabled.
105 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
106 if thread support is enabled.
107
108 2002-11-28 Andrew Cagney <cagney@redhat.com>
109
110 * stack.c (get_selected_block): In-line get_current_block.
111 * frame.h (get_current_block): Delete declaration.
112 * blockframe.c (get_current_block): Delete function.
113
114 2002-11-28 Andrew Cagney <ac131313@redhat.com>
115
116 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
117 USE_GENERIC_DUMMY_FRAMES.
118 * gdbarch.h, gdbarch.c: Regenerate.
119 * valops.c, frame.c: Update.
120 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
121 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
122 * config/pa/tm-hppa.h, blockframe.c: Update.
123 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
124 * m68k-tdep.c, alpha-tdep.c: Ditto.
125
126 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
127 * mips-tdep.c: Ditto.
128
129 2002-11-27 Andrew Cagney <ac131313@redhat.com>
130
131 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
132 (USE_GENERIC_DUMMY_FRAMES): Default to true.
133 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
134 * gdbarch.c, gdbarch.h: Re-generate.
135 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
136 (CALL_DUMMY_LOCATION): Delete macro definition.
137 (PC_IN_CALL_DUMMY): Delete macro definitions.
138
139 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
140 default is already generic_pc_in_call_dummy.
141 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
142 * v850-tdep.c (v850_gdbarch_init): Ditto.
143 * sh-tdep.c (sh_gdbarch_init): Ditto.
144 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
145 * mips-tdep.c (mips_gdbarch_init): Ditto.
146 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
147 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
148 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
149 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
150 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
151 * avr-tdep.c (avr_gdbarch_init): Ditto.
152
153 * arm-tdep.c (arm_gdbarch_init): Do not set
154 use_generic_dummy_frames, default is already 1.
155 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
156 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
157 * v850-tdep.c (v850_gdbarch_init): Ditto.
158 * sh-tdep.c (sh_gdbarch_init): Ditto.
159 * s390-tdep.c (s390_gdbarch_init): Ditto.
160 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
161 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
162 * mips-tdep.c (mips_gdbarch_init): Ditto.
163 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
164 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
165 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
166 * i386-tdep.c (i386_gdbarch_init): Ditto.
167 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
168 * frv-tdep.c (frv_gdbarch_init): Ditto.
169 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
170 * cris-tdep.c (cris_gdbarch_init): Ditto.
171 * avr-tdep.c (avr_gdbarch_init): Ditto.
172
173 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
174 call_dummy_location, default is already AT_ENTRY_POINT.
175 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
176 * v850-tdep.c (v850_gdbarch_init): Ditto.
177 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
178 * sh-tdep.c (sh_gdbarch_init): Ditto.
179 * s390-tdep.c (s390_gdbarch_init): Ditto.
180 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
181 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
182 * mips-tdep.c (mips_gdbarch_init): Ditto.
183 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
184 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
185 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
186 * i386-tdep.c (i386_gdbarch_init): Ditto.
187 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
188 * frv-tdep.c (frv_gdbarch_init): Ditto.
189 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
190 * cris-tdep.c (cris_gdbarch_init): Ditto.
191 * avr-tdep.c (avr_gdbarch_init): Ditto.
192 * arm-tdep.c (arm_gdbarch_init): Ditto.
193 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
194
195 2002-11-28 Andrew Cagney <cagney@redhat.com>
196
197 * frame.h: Update comments on set_current_frame, create_new_frame,
198 flush_cached_frames, reinit_frame_cache, select_frame and
199 selected_frame.
200
201 2002-11-27 Andrew Cagney <cagney@redhat.com>
202
203 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
204 deprecated pc_in_call_dummy function.
205 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
206 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
207 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
208 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
209 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
210
211 2002-11-26 Martin M. Hunt <hunt@redhat.com>
212
213 * Makefile.in: Remove Tix dependencies.
214 * acinclude.m4: Ditto.
215 * aclocal.m4: Ditto.
216 * configure.in: Ditto.
217 * configure: Regenerated.
218
219 2002-11-26 Andrew Cagney <ac131313@redhat.com>
220
221 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
222 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
223 * gdbarch.c: Re-generate.
224
225 2002-11-26 Andrew Cagney <ac131313@redhat.com>
226
227 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
228 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
229 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
230 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
231 pc_in_call_dummy_at_entry_point.
232 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
233 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
234 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
235 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
236 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
237 pc_in_call_dummy_on_stack.
238 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
239 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
240 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
241 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
242 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
243
244 2002-11-26 Andrew Cagney <ac131313@redhat.com>
245
246 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
247 pc_in_call_dummy_before_text_end
248 (deprecated_pc_in_call_dummy_after_text_end): Rename
249 pc_in_call_dummy_after_text_end.
250 (deprecated_pc_in_call_dummy_on_stack): Rename
251 pc_in_call_dummy_on_stack.
252 (deprecated_pc_in_call_dummy_at_entry_point): Rename
253 pc_in_call_dummy_at_entry_point.
254 * m68k-tdep.c (m68k_gdbarch_init): Update.
255 * s390-tdep.c (s390_gdbarch_init): Update.
256 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
257 * vax-tdep.c (vax_gdbarch_init): Update.
258 * sparc-tdep.c (sparc_gdbarch_init): Update.
259 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
260 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
261 * i386-tdep.c (i386_gdbarch_init): Update.
262 * frv-tdep.c (frv_gdbarch_init): Update.
263 * cris-tdep.c (cris_gdbarch_init): Update.
264 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
265 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
266 (deprecated_pc_in_call_dummy_after_text_end)
267 (deprecated_pc_in_call_dummy_on_stack)
268 (deprecated_pc_in_call_dummy_at_entry_point): Update.
269 * alpha-tdep.c (alpha_gdbarch_init): Update.
270
271 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
272
273 * acconfig.h (HAVE_PREAD64): Add.
274 * configure.in: Check for pread64.
275 * config.in: Regenerated.
276 * configure: Regenerated.
277 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
278 * linux-proc.c (linux_proc_xfer_memory): New function.
279 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
280
281 2002-11-25 David Carlton <carlton@math.stanford.edu>
282
283 * dwarf2read.c (scan_partial_symbols): Descend into namespace
284 pdi's with no name.
285
286 2002-11-25 Andrew Cagney <ac131313@redhat.com>
287
288 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
289 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
290
291 2002-11-25 Jim Blandy <jimb@redhat.com>
292
293 * symfile.c (init_objfile_sect_indices): New function.
294 (default_symfile_offsets): Move the section-index-initializing
295 stuff into init_objfile_sect_indices, and call that.
296
297 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
298 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
299
300 * symfile.c (syms_from_objfile): Adjust indentation.
301
302 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
303 || info_verbose isn't true.
304
305 2002-11-24 Andrew Cagney <ac131313@redhat.com>
306
307 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
308 default to get_frame_base.
309 * gdbarch.h, gdbarch.c: Regenerate.
310 * arch-utils.c (default_frame_address): Delete function.
311 * arch-utils.h (default_frame_address): Delete declaration
312
313 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
314
315 * varobj.c (find_frame_addr_in_frame_chain):
316 Use get_frame_base instead of FRAME_FP,
317 obvious fix.
318
319 2002-11-19 Andrew Cagney <ac131313@redhat.com>
320
321 * frame.h (FRAME_FP): Delete macro.
322 (get_frame_base): New function declaration.
323 * frame.c (get_frame_base): New function.
324 (get_frame_id): Use ->frame.
325 (frame_find_by_id): Rewrite to use get_frame_id.
326 * blockframe.c: Use get_frame_base instead of FRAME_FP.
327 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
328 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
329 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
330 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
331 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
332 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
333
334 2002-11-24 Andrew Cagney <ac131313@redhat.com>
335
336 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
337
338 2002-11-24 Andrew Cagney <ac131313@redhat.com>
339
340 * frame.c (set_unwind_by_pc): Revert change below, use
341 PC_IN_CALL_DUMMY.
342 (get_prev_frame): Ditto.
343
344 2002-11-24 Andrew Cagney <ac131313@redhat.com>
345
346 * dummy-frame.c (pc_in_dummy_frame): New function.
347 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
348 (find_dummy_frame): Update comment.
349 (generic_pop_current_frame): Use get_frame_type.
350 * dummy-frame.h (pc_in_dummy_frame): Declare.
351 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
352 (create_new_frame): Use pc_in_dummy_frame.
353 (get_prev_frame): Use pc_in_dummy_frame.
354 (frame_saved_regs_register_unwind): Use get_prev_frame.
355 (deprecated_generic_get_saved_register): Use get_prev_frame.
356
357 2002-11-23 Andrew Cagney <ac131313@redhat.com>
358
359 * blockframe.c (find_frame_addr_in_frame_chain): Move function
360 from here ...
361 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
362 (varobj_create): Note that frame ID should be used.
363 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
364
365 2002-11-23 Andrew Cagney <ac131313@redhat.com>
366
367 * breakpoint.c: Include "gdb_assert.h".
368 (deprecated_frame_in_dummy): Assert that generic dummy frames are
369 not being used.
370 * Makefile.in (breakpoint.o): Update dependencies.
371 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
372 deprecated_frame_in_dummy.
373 * stack.c (print_frame_info_base): Ditto.
374 (frame_info): Ditto.
375 (print_frame_info_base): Ditto. Delete dead code.
376
377 2002-11-23 Andreas Schwab <schwab@suse.de>
378
379 * Makefile.in (m68k_tdep_h): Define.
380 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
381 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
382 * m68k-tdep.c: Move register number enum ...
383 * m68k-tdep.h: ... to this new file and rename the constants from
384 E_* to M68K_*. All uses changed.
385 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
386 * abug-rom.c: Include "m68k-tdep.h". Use
387 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
388 * cpu32bug-rom.c: Likewise.
389 * dbug-rom.c: Likewise.
390 * m68k-tdep.c: Likewise.
391 * m68klinux-nat.c: Likewise.
392 * remote-est.c: Likewise.
393 * rom68k-rom.c: Likewise.
394 * config/m68k/tm-linux.h: Likewise.
395
396 2002-11-23 Andrew Cagney <ac131313@redhat.com>
397
398 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
399 dummy frame initialization code.
400 * mips-tdep.c (mips_gdbarch_init): Ditto.
401
402 2002-11-22 Christopher Faylor <cgf@redhat.com>
403
404 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
405 attach will hang.
406
407 2002-11-22 Andrew Cagney <ac131313@redhat.com>
408
409 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
410 to default_frame_address.
411 * gdbarch.h, gdbarch.c: Re-generate.
412
413 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
414 or frame_locals_address to default_frame_address.
415 * m68k-tdep.c (m68k_gdbarch_init): Update.
416 * i386-tdep.c (i386_gdbarch_init): Update.
417 * frv-tdep.c (frv_gdbarch_init): Update.
418 * sh-tdep.c (sh_gdbarch_init): Update.
419 * v850-tdep.c (v850_gdbarch_init): Update.
420 * sparc-tdep.c (sparc_gdbarch_init): Update.
421 * mips-tdep.c (mips_gdbarch_init): Update.
422 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
423 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
424 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
425
426 * cris-tdep.c (cris_frame_args_address): Delete function.
427 (cris_frame_locals_address): Delete function.
428 (cris_gdbarch_init): Do not set frame_args_address or
429 frame_locals_address.
430
431 2002-11-22 Michael Snyder <msnyder@redhat.com>
432
433 * thread-db.c (thread_db_load): Tell the user what's going on
434 if dlopen fails on libthread_db.
435
436 2002-11-23 Andreas Schwab <schwab@suse.de>
437
438 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
439 invariant return values.
440
441 2002-11-22 Andreas Schwab <schwab@suse.de>
442
443 * valops.c (value_slice): Move declaration of `offset' to avoid
444 warning.
445
446 2002-11-22 Christopher Faylor <cgf@redhat.com>
447
448 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
449 (struct so_stuff): Add end_addr field.
450 (register_loaded_dll): Calculate and store end address of loaded dll.
451 (solib_address): New function.
452 (child_solib_loaded_library_pathname): Pass carefully constructed
453 section info to safe_symbol_file_add rather than ignoring it.
454 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
455 DLL is loaded.
456 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
457 (child_create_inferior): Fix a compiler warning.
458 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
459 (solib_address): Declare new function.
460
461 2002-11-22 Andreas Schwab <schwab@suse.de>
462
463 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
464 and FPS registers.
465
466 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
467
468 * maint.c (_initialize_maint_cmds): Fix typo. From
469 Francesco Potorti` <pot@gnu.org>.
470
471 2002-11-21 Andrew Cagney <cagney@redhat.com>
472
473 * mips-tdep.c (mips_dump_tdep): Delete references to
474 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
475 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
476 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
477 * printcmd.c (build_address_symbolic): Delete calls to
478 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
479 (address_info): Ditto.
480 Fix PR gdb/773.
481
482 2002-11-19 Klee Dienes <kdienes@apple.com>
483 Adam Fedor <fedor@gnu.org>
484
485 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
486 the ability to explicitly specify the quote characters and word
487 break characters; if NULL is specified for either, use the old
488 behavior of using the characters used by the completer.
489 (skip_chars): New function. Convenience wrapper around
490 skip_quoted_chars to provide the original skip_chars behavior.
491 * completer.h (skip_quoted_chars): Add prototype.
492
493 2002-11-19 Andrew Cagney <ac131313@redhat.com>
494
495 Problems reported by Paul Eggert.
496 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
497
498 2002-11-19 Andreas Schwab <schwab@suse.de>
499
500 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
501 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
502 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
503 (m68k_linux_frame_saved_pc): Move to ...
504 * m68klinux-tdep.c: ... here. New file.
505 * Makefile.in (m68klinux-tdep.o): Add dependencies.
506 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
507
508 2002-11-19 Adam Fedor <fedor@gnu.org>
509
510 * objc-exp.y: Revert to old skip_quoted usage.
511
512 2002-11-19 Adam Fedor <fedor@gnu.org>
513
514 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
515 (objc_lang_h): Define.
516 (YYFILES): Add objc-exp.tab.c.
517 (local-maintainer-clean): Remove objc-exp.tab.c.
518 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
519
520 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
521
522 * p-exp.y (typecast rule): Add automatic dereference of
523 pascal classes if needed.
524 (THIS): Set current_type.
525 Automatically dereference pascal classes.
526 (typebase rule): Add ^typebase recognition.
527
528 2002-11-18 Adam Fedor <fedor@gnu.org>
529
530 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
531 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
532 (op_name): Handle OP_OBJC_SELF.
533 * Makefile.in (expprint.o): Add additional depends.
534
535 2002-11-18 Adam Fedor <fedor@gnu.org>
536
537 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
538 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
539 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
540 * objc-exp.y: Likewise.
541
542 2002-11-18 Adam Fedor <fedor@gnu.org>
543
544 * gdb/parser-defs.h: (struct objc_class_str): New structure
545 for parsing ObjC classes.
546
547 2002-11-18 Andrew Cagney <ac131313@redhat.com>
548
549 * stack.c (frame_relative_level): Copy function from here ...
550 * frame.c (frame_relative_level): ...to here.
551
552 2002-11-18 Andrew Cagney <ac131313@redhat.com>
553
554 * frame.h (enum frame_type): Define.
555 (get_frame_type): Declare.
556 (struct frame_info): Add field `type'. Delete field
557 signal_handler_caller.
558 (deprecated_set_frame_signal_handler_caller): Declare.
559 * frame.c (get_frame_type): New function.
560 (deprecated_set_frame_type): New function.
561 (create_new_frame): Set the frame's type.
562 (get_prev_frame): Similar.
563 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
564 * s390-tdep.c: Ditto.
565 * m68klinux-nat.c: Ditto.
566 * ns32k-tdep.c: Ditto.
567 * x86-64-linux-tdep.c: Ditto.
568 * vax-tdep.c: Ditto.
569 * rs6000-tdep.c: Ditto.
570 * ppc-linux-tdep.c: Ditto.
571 * i386-interix-tdep.c: Ditto.
572 * mips-tdep.c: Ditto.
573 * m68k-tdep.c: Ditto.
574 * hppa-tdep.c: Ditto.
575 * ia64-tdep.c: Ditto.
576 * cris-tdep.c: Ditto.
577 * arm-tdep.c: Ditto.
578 * alpha-tdep.c: Ditto.
579 * i386-tdep.c: Ditto.
580 * stack.c: Ditto.
581 * ada-lang.c: Ditto.
582 * blockframe.c: Update.
583 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
584 deprecated_set_frame_type instead of signal_handler_caller.
585 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
586 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
587 * breakpoint.h: Delete FIXME suggesting get_frame_type.
588
589 2002-11-18 Klee Dienes <kdienes@apple.com>
590
591 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
592
593 2002-11-18 Klee Dienes <kdienes@apple.com>
594
595 * buildsym.c (pop_context): Add comment.
596
597 2002-11-18 Klee Dienes <kdienes@apple.com>
598
599 * buildsym.h (pop_context): Convert to function, defined in
600 buildsym.c.
601 * buildsym.c: Include gdb_assert.h.
602 (pop_context): Implement as C function. Add check for stack
603 underflow.
604 * dbxread.c (process_one_symbol): Complain and stop processing
605 that symbol if we are already at the top of the context stack for
606 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
607 when processing N_RBRAC.
608
609 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
610
611 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
612 define.
613 (struct target_waitstatus): Add opaque definition.
614 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
615 * exec.c (init_exec_ops): Likewise.
616 * fork-child.c (clone_and_follow_inferior): Remove.
617 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
618 * inferior.h (clone_and_follow_inferior): Remove prototype.
619 * infrun.c (follow_fork_mode_both): Remove.
620 (follow_fork_mode_kind_names): Remove commented out "both".
621 (follow_inferior_fork): Remove follow_fork_mode_both support.
622 * inftarg.c (child_clone_and_follow_inferior): Remove.
623 (child_post_follow_inferior_by_clone): Remove.
624 (init_child_ops): Don't set to_clone_and_follow_inferior
625 or to_post_follow_inferior_by_clone.
626 * target.c (default_clone_and_follow_inferior): Remove.
627 (cleanup_target): Don't set to_clone_and_follow_inferior
628 or to_post_follow_inferior_by_clone.
629 (find_default_clone_and_follow_inferior): Remove.
630 (init_dummy_target): Don't set to_clone_and_follow_inferior.
631 (debug_to_clone_and_follow_inferior): Remove.
632 (debug_to_post_follow_inferior_by_clone): Remove.
633 (setup_target_debug): Don't set to_clone_and_follow_inferior
634 or to_post_follow_inferior_by_clone.
635 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
636 and to_post_follow_inferior_by_clone.
637 (child_clone_and_follow_inferior): Remove prototype.
638 (child_post_follow_inferior_by_clone): Remove prototype.
639 (target_clone_and_follow_inferior): Remove macro.
640 (target_post_follow_inferior_by_clone): Remove macro.
641 (find_default_clone_and_follow_inferior): Remove prototype.
642
643 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
644
645 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
646 inferior_has_vforked, and inferior_has_execd instead of
647 target_has_forked, target_has_vforked, and target_has_execd.
648 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
649 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
650 (CHILD_WAIT): Define.
651 (child_wait): Add prototype.
652 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
653 Add prototype.
654 (hpux_has_vforked): Likewise, from child_has_vforked.
655 (hpux_has_execd): Likewise, from child_has_execd.
656 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
657 (not_same_real_pid, child_wait): New, copied from inftarg.c.
658 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
659 and hpux_has_syscall_event instead of the target hooks.
660 * infrun.c (inferior_has_forked, inferior_has_vforked)
661 (inferior_has_execd): New functions.
662 * inftarg.c (not_same_real_pid): Remove.
663 (child_wait): Remove references to not_same_real_pid,
664 target_has_forked, target_has_vforked, target_has_execd,
665 and target_has_syscall_event.
666 (child_has_forked, child_has_vforked, child_has_execd)
667 (child_has_syscall_event): Remove.
668 (init_child_ops): Remove references to child_has_forked,
669 child_has_vforked, child_has_execd, and child_has_syscall_event.
670 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
671 (hpux_has_vforked): Likewise, from child_has_vforked.
672 (hpux_has_execd): Likewise, from child_has_execd.
673 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
674 * target.c (cleanup_target): Remove references to
675 to_has_forked, to_has_vforked, to_has_execd, and
676 to_has_syscall_event.
677 (update_current_target): Likewise.
678 (setup_target_debug): Likewise.
679 (debug_to_has_forked): Remove.
680 (debug_to_has_vforked): Remove.
681 (debug_to_has_execd): Remove.
682 (debug_to_has_syscall_event): Remove.
683 * target.h (struct target_ops): Remove to_has_forked.
684 to_has_vforked, to_has_execd, and to_has_syscall_event.
685 (child_has_forked, child_has_vforked, child_has_execd)
686 (child_has_syscall_event): Remove prototypes.
687 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
688 prototypes.
689 (target_has_forked, target_has_vforked, target_has_execd)
690 (target_has_syscall_event): Remove macros.
691
692 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
693
694 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
695 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
696 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
697 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
698 * target.c (cleanup_target): Remove reference to
699 to_can_follow_vfork_prior_to_exec.
700 (update_current_target): Likewise.
701 (debug_to_can_follow_vfork_prior_to_exec): Remove.
702 (setup_target_debug): Remove reference to
703 to_can_follow_vfork_prior_to_exec.
704 * target.h (struct target_ops): Remove
705 to_can_follow_vfork_prior_to_exec.
706 (child_can_follow_vfork_prior_to_exec): Remove prototype.
707 (target_can_follow_vfork_prior_to_exec): Remove definition.
708 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
709 define.
710 * infrun.c (follow_vfork_when_exec): Remove.
711 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
712 (follow_exec): Likewise.
713 (handle_inferior_event): Likewise.
714 (keep_going): Likewise.
715
716 2002-11-15 Andrew Cagney <cagney@redhat.com>
717
718 * frame.c (generic_unwind_get_saved_register): Make static.
719 * frame.h (generic_unwind_get_saved_register): Delete declaration.
720 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
721 defaults to generic_unwind_get_saved_register.
722 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
723 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
724 * frv-tdep.c (frv_gdbarch_init): Ditto.
725 * i386-tdep.c (i386_gdbarch_init): Ditto.
726 * s390-tdep.c (s390_gdbarch_init): Ditto.
727 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
728 * v850-tdep.c (v850_gdbarch_init): Ditto.
729 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
730 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
731 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
732
733 2002-11-15 Andrew Cagney <cagney@redhat.com>
734
735 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
736 i386-tdep.c.
737
738 2002-11-15 Andrew Cagney <cagney@redhat.com>
739
740 * frame.h (sigtramp_saved_pc): Delete declaration.
741 * blockframe.c (sigtramp_saved_pc): Delete function.
742 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
743 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
744 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
745 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
746
747 2002-11-15 Andrew Cagney <ac131313@redhat.com>
748
749 * frame.c (frame_pc_unwind): New function.
750 (frame_saved_regs_pc_unwind): New function.
751 (frame_register_unwind): Pass unwind_cache instead of
752 register_unwind_cache.
753 (set_unwind_by_pc): Add unwind_pc parameter, set.
754 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
755 (get_prev_frame): Ditto.
756 * frame.h (frame_pc_unwind_ftype): Declare.
757 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
758 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
759 (frame_pc_unwind): Declare.
760 * dummy-frame.c (dummy_frame_pc_unwind): New function.
761 (struct dummy_frame): Add comment mentioning that values are for
762 previous frame.
763 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
764 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
765 (generic_file_frame_chain_valid): Ditto.
766 * stack.c (frame_info): Ditto.
767
768 2002-11-15 David Carlton <carlton@math.stanford.edu>
769
770 * linespec.c (locate_first_half): New function.
771 (decode_line_1): Move code into locate_first_half.
772
773 2002-11-15 Andrew Cagney <ac131313@redhat.com>
774
775 * complaints.h: Add comment explaining how to eliminate a
776 deprecated_complain call.
777 * complaints.h: Fix spelling errors.
778
779 2002-11-15 David Carlton <carlton@math.stanford.edu>
780
781 * printcmd.c: Remove #include "disasm.h".
782
783 2002-11-14 Andrew Cagney <ac131313@redhat.com>
784
785 * frame.h: Move the most relevant interface functions to the start
786 of the file.
787
788 2002-11-14 Andrew Cagney <ac131313@redhat.com>
789
790 * regcache.h (deprecated_registers): Rename registers.
791 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
792 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
793 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
794 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
795 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
796 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
797 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
798 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
799 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
800 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
801 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
802 * v850ice.c: Update.
803
804 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
805
806 * utils.c (gdb_realpath): Add comment mentioning realpath with a
807 NULL buffer.
808
809 2002-11-13 Andrew Cagney <cagney@redhat.com>
810
811 * regcache.h (deprecated_read_register_bytes): Rename
812 read_register_bytes.
813 (deprecated_write_register_bytes): Rename write_register_bytes.
814 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
815 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
816 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
817 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
818 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
819 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
820 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
821 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
822 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
823 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
824 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
825 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
826 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
827 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
828
829 2002-11-13 Jim Blandy <jimb@redhat.com>
830
831 * findvar.c (read_var_value): Doc fix.
832
833 2002-11-13 Andrew Cagney <cagney@redhat.com>
834
835 * regcache.c (struct regcache): Replace passthough_p with
836 readonly_p.
837 (regcache_xmalloc): Initialize readonly_p.
838 (build_regcache): Initialize readonly_p.
839 (regcache_save): New function.
840 (regcache_restore): New function.
841 (regcache_cpy): Re-implement using regcache_save and
842 regcache_restore.
843 (regcache_raw_read): Update.
844 (regcache_cooked_read): When a read-only cache, checked for cached
845 pseudo register values.
846 (regcache_raw_write): Assert that the cache is not read-only.
847 Remove code handling a non-passthrough cache.
848 * regcache.h (regcache_save): Declare.
849 (regcache_restore): Declare.
850
851 2002-11-13 Andrew Cagney <cagney@redhat.com>
852
853 * regcache.c (struct regcache_descr): Add fields
854 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
855 (init_legacy_regcache_descr): Compute the size of a cooked
856 register cache and then assign that to sizeof_raw_registers. Set
857 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
858 (init_legacy_regcache_descr): Ditto.
859
860 2002-11-13 Andrew Cagney <cagney@redhat.com>
861
862 * regcache.c (register_buffer): Move to near start of file, update
863 description.
864 (regcache_raw_read): Use.
865 (regcache_raw_write): Use.
866 (struct regcache): Rename raw_registers to registers and
867 raw_register_valid_p to register_valid_p.
868 (regcache_xmalloc): Update.
869 (regcache_xfree): Update.
870 (register_buffer): Update.
871 (regcache_cpy): Update.
872 (regcache_cpy_no_passthrough): Update.
873 (regcache_valid_p): Update.
874 (deprecated_grub_regcache_for_registers): Update.
875 (deprecated_grub_regcache_for_register_valid): Update.
876 (set_register_cached): Update.
877 (regcache_raw_write): Update.
878
879 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
880
881 * p-exp.y (name_not_typename): Use copy_name to
882 set current_type variable for fields of THIS.
883
884 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
885
886 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
887 * monitor.c (init_base_monitor_ops): Likewise.
888 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
889 * remote-array.c (init_array_ops): Likewise.
890 * remote-e7000.c (init_e7000_ops): Likewise.
891 * remote-es.c (init_es1800_ops): Likewise.
892 (init_es1800_child_ops): Likewise.
893 * remote-rdp.c (init_remote_rdp_ops): Likewise.
894 * remote-sim.c (init_gdbsim_ops): Likewise.
895 * remote-st.c (init_st2000_ops): Likewise.
896 * sol-thread.c (init_sol_core_ops): Likewise.
897 (init_sol_thread_ops): Likewise.
898 * v850ice.c (init_850ice_ops): Likewise.
899 * win32-nat.c (init_child_ops): Likewise.
900 * wince.c (init_child_ops): Likewise.
901
902 2002-11-12 Andrew Cagney <ac131313@redhat.com>
903
904 * utils.c (gdb_realpath): Make rp a constant pointer.
905
906 2002-11-12 Andrew Cagney <ac131313@redhat.com>
907
908 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
909 a constant buffer; cannonicalize_file_name(); realpath() with a
910 pathconf() defined buffer, xstrdup().
911
912 2002-11-12 Andrew Cagney <ac131313@redhat.com>
913
914 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
915 to hang2.C; hang3.c to hang3.C.
916
917 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
918
919 * findvar.c (read_var_value): Reenable TLS code.
920
921 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
922 Jim Blandy <jimb@redhat.com>
923
924 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
925 * target.c (update_current_target): Add
926 to_get_thread_local_address.
927 * target.h (to_get_thread_local_address): Export.
928 (target_get_thread_local_address): Define.
929 (target_get_thread_local_address_p): Define.
930 * thread-db.c: Include solib-svr4.h.
931 (td_thr_tls_get_addr_p): Define.
932 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
933 (thread_db_get_thread_local_address): New function.
934 (init_thread_db_ops): Initialize to_get_thread_local_address.
935 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
936 * configure: Regenerate.
937 * config.in: Regenerate.
938
939 2002-11-11 David Carlton <carlton@math.stanford.edu>
940
941 * linespec.c (set_flags): New function.
942 (decode_line_1): Move code into set_flags.
943
944 2002-11-11 David Carlton <carlton@math.stanford.edu>
945
946 * linespec.c (decode_line_1): Move chunks of code to separate
947 functions.
948 (initialize_defaults): New function.
949 (decode_indirect): New function.
950
951 2002-11-11 Andrew Cagney <ac131313@redhat.com>
952
953 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
954 instead of void_code_ptr.
955 (sigtramp_saved_pc): Ditto.
956
957 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
958 i386_fp_regnum_p.
959
960 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
961
962 * gdbtypes.h (struct main_type): Move artificial flag out of
963 loc. New member of ``struct field'' named static_kind. Reduce
964 overloaded meaning of bitsize.
965 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
966 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
967 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
968
969 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
970 new fields.
971 (template_to_fixed_record_type, template_to_static_fixed_type)
972 (to_record_with_fixed_variant_part): Likewise.
973 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
974 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
975 * dwarfread.c (struct_type, enum_type): Likewise.
976 * hpread.c (hpread_read_enum_type)
977 (hpread_read_function_type, hpread_read_doc_function_type)
978 (hpread_read_struct_type): Likewise.
979 * mdebugread.c (parse_symbol): Likewise.
980
981 2002-11-10 Andrew Cagney <ac131313@redhat.com>
982
983 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
984 * stack.c (print_frame_info_base): Update.
985 (print_frame_info_base, frame_info): Update.
986 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
987 (sparc_frame_saved_pc): Update.
988 * ada-lang.c (find_printable_frame): Update.
989 * breakpoint.c (deprecated_frame_in_dummy): Update.
990
991 2002-11-09 Mark Kettenis <kettenis@gnu.org>
992
993 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
994 defined.
995 (regmap): Extend to cover all registers.
996 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
997 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
998 definitions.
999 (fetch_register, sore_register): Simplify.
1000 (old_fetch_inferior_registers, old_store_inferior_registers):
1001 Remove functions.
1002 (cannot_fetch_register, cannot_store_register): Change
1003 implementation to use regmap array to decide which registers
1004 cannot be fetched/stored. This removes $orig_eax from the
1005 registers that cannot be fetched/stored.
1006 (fetch_inferior_registers): Call fetch_register directly instead
1007 of calling old_fetch_inferior_registers.
1008 (store_inferior_registers): Call store_register directly instead
1009 of calling old_store_inferior_registers.
1010 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1011 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1012 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1013
1014 2002-11-09 Klee Dienes <kdienes@apple.com>
1015
1016 * i387-tdep.c (i387_supply_register): When called with NULL as a
1017 buffer, mark the register as not provided (to mirror the behavior
1018 of supply_register).
1019 (i387_supply_fxsave): Ditto.
1020 (i387_supply_fsave): Ditto (inherits the behavior from
1021 i387_supply_register).
1022
1023 2002-11-09 Klee Dienes <kdienes@apple.com>
1024
1025 * blockframe.c (sigtramp_saved_pc): Use
1026 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1027 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1028 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1029
1030 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1031
1032 * frame.c (get_prev_frame): Test prev_p to identify a previously
1033 unwound frame. Initialize prev_p.
1034 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1035 comment.
1036
1037 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1038
1039 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1040 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1041 more comments. Zap dead code.
1042
1043 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1044
1045 * infcmd.c (print_vector_info, print_float_info): Move code that
1046 checks whether the target has any registers and whether there is a
1047 selected frame up, such that it is also used if a target provides
1048 multi-arch definitions of these functions.
1049
1050 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1051
1052 * Makefile.in (DESTDIR): Define.
1053 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1054 prefix.
1055
1056 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1057 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1058
1059 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1060
1061 * i386-linux-tdep.c: Include "reggroups.h".
1062 (i386_linux_register_reggroup_p): New function.
1063 (i386_linux_init_abi): Set register_reggroup_p to
1064 i386_linux_register_reggroup_p.
1065 * i386-tdep.h (i386_register_reggroup_p): Declare.
1066 * i386-tdep.c: Include "reggroups.h".
1067 (i386_init_reggroups): New function.
1068 (i386_add_reggroups): New function.
1069 (i386_register_reggroup_p): New function.
1070 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1071 (_initialize_i386_tdep): Call i386_init_reggroups.
1072 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1073 specific reggroups.
1074
1075 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1076
1077 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1078 request that's available in *BSD.
1079
1080 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1081
1082 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1083 FDOFF_REGNUM.
1084
1085 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1086
1087 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1088 * dummy-frame.c (find_dummy_frame): Rename
1089 generic_find_dummy_frame, make static. Return the dummy frame
1090 instead of the regcache.
1091 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1092 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1093 (dummy_frame_register_unwind): Rename
1094 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1095 * dummy-frame.h (dummy_frame_register_unwind): Rename
1096 generic_call_dummy_register_unwind.
1097
1098 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1099
1100 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1101 except the inclusion of "i386/tm-i386.h", to...
1102 * config/i386/nm-i386v42mp.h: ...here.
1103 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1104
1105 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1106
1107 * Makefile.in (frame.o): Update dependencies.
1108 * blockframe.c (current_frame, frame_obstack_alloc)
1109 (frame_saved_regs_zalloc, get_current_frame)
1110 (set_current_frame, create_new_frame)
1111 (set_unwind_by_pc, get_next_frame)
1112 (flush_cached_frames, reinit_frame_cache)
1113 (frame_saved_regs_register_unwind)
1114 (deprecated_generic_get_saved_register)
1115 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1116 (_initialize_blockframe): Move frame code from here...
1117 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1118 "annotate.h" and "dummy-frame.h".
1119 (_initialize_frame): New function.
1120
1121 2002-11-08 Jim Blandy <jimb@redhat.com>
1122
1123 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1124 when we finish a function a context.
1125 * buildsym.h (outermost_context_p): New macro.
1126 (Bug analyzed by David Edelsohn.)
1127
1128 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1129
1130 * blockframe.c: Include "dummy-frame.h".
1131 (struct dummy_frame, dummy_frame_stack)
1132 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1133 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1134 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1135 (generic_save_call_dummy_addr, generic_pop_current_frame)
1136 (generic_pop_dummy_frame, generic_fix_call_dummy)
1137 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1138 dummy frame code from here...
1139 * dummy-frame.c: ...to here. New file.
1140 * dummy-frame.h: New file.
1141 (generic_call_dummy_register_unwind): Declare.
1142 (generic_find_dummy_frame): Declare.
1143 * Makefile.in (SFILES): Add dummy-frame.c.
1144 (dummy-frame.o): Specify dependencies.
1145 (dummy_frame_h): Define.
1146 (COMMON_OBS): Add dummy-frame.o.
1147 (blockframe.o): Update dependencies.
1148
1149 2002-11-08 Jim Blandy <jimb@redhat.com>
1150
1151 * dwarf2read.c (read_func_scope): Restore local_symbols and
1152 param_symbols after we finish the function context. (Based on a
1153 patch from David Edelsohn.)
1154
1155 2002-11-08 David Carlton <carlton@math.stanford.edu>
1156
1157 * linespec.c (symbol_found): New function.
1158 (minsym_found): New function.
1159 (decode_line_1): Separate out some code into separate functions.
1160
1161 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1162
1163 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1164 the benefit of the interix target.
1165 * i386-tdep.h (i386_frameless_signal_p): Declare.
1166
1167 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1168
1169 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1170 declaration that snuck in from change below.
1171
1172 2002-11-06 Andrew Cagney <cagney@redhat.com>
1173
1174 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1175 all callers.
1176 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1177 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1178 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1179 (i386_mxcsr_regnum_p): new function. Use instead of
1180 MXCSR_REGNUM_P.
1181 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1182 (i386_sse_regnum_p): Declare.
1183 (i386_mxcsr_regnum_p): Declare.
1184 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1185 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1186 (IS_FP_REGNUM): Update definition.
1187 (IS_FPU_CTRL_REGNUM): Update definition..
1188 (IS_SSE_REGNUM): Update definition..
1189 * i386v-nat.c (register_u_addr): Update.
1190 * go32-nat.c (fetch_register): Update.
1191 (store_register): Update.
1192
1193 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1194
1195 Preparation work to convert the hppa targets to multiarch partial.
1196
1197 * hppa-tdep.c: Add new functions replacing macro bodies from
1198 config/pa/tm-hppa.h. These function will be used to initialize
1199 the gdbarch structure. Import some comments from tm-hppa.h,
1200 and place them where appropriate, to avoid loosing them when
1201 we cleanup this file.
1202 (hppa_reg_struct_has_addr): New function.
1203 (hppa_inner_than): New function.
1204 (hppa_stack_align): New function.
1205 (hppa_pc_requires_run_before_use): New function.
1206 (hppa_instruction_nullified): New function.
1207 (hppa_register_byte): New function.
1208 (hppa_register_virtual_type): New function.
1209 (hppa_store_struct_return): New function.
1210 (hppa_cannot_store_register): New function.
1211 (hppa_frame_args_address): New function.
1212 (hppa_frame_locals_address): New function.
1213 (hppa_smash_text_address): New function.
1214 (hppa_coerce_float_to_double): New function. Requires the inclusion
1215 of "language.h".
1216
1217 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1218
1219 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1220 gdbarch-eligible macro to a call to the new associated function
1221 created in hppa-tdep.c.
1222 (INNER_THAN): Likewise.
1223 (STACK_ALIGN): Likewise.
1224 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1225 (INSTRUCTION_NULLIFIED): Likewise.
1226 (REGISTER_BYTE): Likewise.
1227 (REGISTER_VIRTUAL_TYPE): Likewise.
1228 (STORE_STRUCT_RETURN): Likewise.
1229 (CANNOT_STORE_REGISTER): Likewise.
1230 (FRAME_ARGS_ADDRESS): Likewise.
1231 (FRAME_LOCALS_ADDRESS): Likewise.
1232 (SMASH_TEXT_ADDRESS): Likewise.
1233 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1234 (ABOUT_TO_RETURN): Delete, as no longer used.
1235
1236 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1237
1238 * printcmd.c (disassemble_command): Remove obsolete function.
1239 (_initialize_printcmd): Do not create disassemble command here.
1240 * cli/cli-cmds.c (disassemble_command): New function. Implements
1241 disassemble command.
1242 (init_cli_cmds): Create disassemble command here instead.
1243
1244 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1245
1246 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1247
1248 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1249
1250 * regcache.h (regcache_cooked_read_using_offset_hack)
1251 (regcache_cooked_write_using_offset_hack): Delete declarations.
1252 (register_changed): Delete declaration.
1253 * regcache.c (regcache_cooked_read_using_offset_hack)
1254 (regcache_cooked_write_using_offset_hack): Delete functions.
1255 (cooked_xfer_using_offset_hack): Delete function.
1256 (register_changed): Delete function.
1257
1258 2002-11-07 Jim Blandy <jimb@redhat.com>
1259
1260 * macroscope.c: #include "complaints.h".
1261 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1262 but not in the macro table.
1263 * Makefile.in (macroscope.o): Record dependency.
1264
1265 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1266
1267 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1268
1269 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1270
1271 * regcache.c (deprecated_registers_fetched): Update.
1272 * regcache.h (deprecated_registers_fetched): Rename
1273 registers_fetched.
1274 * remote-vxsparc.c (vx_read_register): Update.
1275 * remote-vxmips.c (vx_read_register): Update.
1276 * remote-vx68.c (vx_read_register): Update.
1277 * irix5-nat.c (fetch_core_registers): Update.
1278 * mipsm3-nat.c (fetch_inferior_registers): Update.
1279 * sun3-nat.c (fetch_inferior_registers): Update.
1280 * symm-nat.c (fetch_inferior_registers): Update.
1281 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1282 (fetch_core_registers): Update.
1283 (fetch_kcore_registers): Update.
1284 * mips-nat.c (fetch_inferior_registers): Update.
1285 * corelow.c (get_core_registers): Update.
1286 * a68v-nat.c (fetch_inferior_registers): Update.
1287
1288 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1289
1290 Put in place the framework necessary for multiarching the hppa targets.
1291 * hppa-tdep.c (hppa_gdbarch_init): New function.
1292 (hppa_dump_tdep): New function.
1293 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1294 tdep structure dumper.
1295 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1296 until the multi-arching conversion has partially been completed.
1297
1298 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1299
1300 * valops.c (value_assign): Merge lval_register case into
1301 lval_reg_frame_relative. Use frame_register and
1302 regcache_cooked_write instead of get_saved_register and
1303 write_register_bytes. After flushing the register cache, try to
1304 re-select the selected frame.
1305
1306 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1307
1308 * regcache.h (deprecated_register_valid): Rename register_valid.
1309 * regcache.c: Update.
1310 * ia64-aix-nat.c: Update.
1311 * i386gnu-nat.c: Update.
1312 * alpha-nat.c: Update.
1313 * sparc-nat.c: Update.
1314 * lynx-nat.c: Update.
1315 * remote-mips.c: Update.
1316
1317 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1318
1319 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1320 to end of file, to be more consistent with the pratice followed
1321 by other targets.
1322
1323 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1324
1325 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1326 (print_float_info): Print registers in float_reggroup.
1327 (print_vector_info): Print registers in vector_reggroup.
1328 (default_print_registers_info): When all, print registers in
1329 all_reggroup. Otherwize, print registers in general_reggroup.
1330 (registers_info): Rewrite. Add support for register groups.
1331 Eliminate a goto.
1332
1333 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1334
1335 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1336 ages.
1337 (symtab_symbol_info): Remove eons old ifdeffed out code.
1338 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1339 command.
1340
1341 2002-11-06 Theodore A. Roth <troth@openavr.org>
1342
1343 * c-exp.y: Add missing semi-colons.
1344 * f-exp.y: Add missing semi-colons.
1345 * m2-exp.y: Add missing semi-colons.
1346 * p-exp.y: Add missing semi-colons.
1347 Add empty action to start rule to avoid a type clash error when
1348 building with bison >= 1.50.
1349
1350 2002-11-06 Jim Blandy <jimb@redhat.com>
1351
1352 * macrotab.h (struct macro_source_file): Doc fix.
1353
1354 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1355
1356 * varobj.c (child_exists, cplus_number_of_children): Change
1357 STREQ macro references to strcmp.
1358 (cplus_name_of_child): Change code to handle the fact that
1359 fields are not necessarily contiguous with regards to their
1360 access control. This is a fix for PR gdb/792.
1361
1362 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1363
1364 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1365 * gdbarch.h, gdbarch.c: Regnerate.
1366 * frame.h (frame_register): Declare.
1367 * frame.c (frame_register): New function.
1368 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1369 GET_SAVED_REGISTER, otherwize call
1370 generic_unwind_get_saved_register.
1371 (frame_register_read): Use frame_register instead of
1372 get_saved_register.
1373
1374 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1375
1376 From Jim Ingham <jingham@apple.com>:
1377 * event-top.c (gdb_disable_readline): New function.
1378 (_initialize_event_loop): Move comment.
1379
1380 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1381
1382 * event-loop.c (start_event_loop): Add comment.
1383 Update copyright.
1384
1385 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1386
1387 * infcmd.c (default_print_registers_info): Do not call
1388 PRINT_REGISTER_HOOK.
1389
1390 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1391
1392 * sparc-tdep.c (sparc_print_register_hook): Make static.
1393 (sparc_print_registers_info): New function.
1394 (sparc_do_registers_info): New function.
1395 (sparclet_print_registers_info): New function.
1396 (sparclet_do_registers_info): New function.
1397 (do_sparc_print_registers_info): New function.
1398 (sparc_print_registers): New static function, clone of infcmd.c's
1399 default_print_registers_info.
1400 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1401 (sparclet_do_registers_info): Declare.
1402 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1403 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1404 Re-define.
1405 (sparc_do_registers_info): Declare.
1406 (PRINT_REGISTER_HOOK): Delete macro.
1407 (sparc_print_register_hook): Delete declaration.
1408
1409 2002-11-05 David Carlton <carlton@math.stanford.edu>
1410
1411 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1412 functions.
1413 (lookup_symbol_aux_local): New function.
1414 (lookup_symbol_aux_symtabs): New function.
1415 (lookup_symbol_aux_psymtabs): New function.
1416
1417 2002-11-05 David Carlton <carlton@math.stanford.edu>
1418
1419 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1420 previous values of 'objfile' and 'block'.
1421
1422 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1423
1424 * values.c (value_change_enclosing_type): Set
1425 enclosing_type field correctly also for the case where
1426 more memory needs to be allocated.
1427
1428 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1429
1430 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1431 of puts_filtered.
1432
1433 * i387-tdep.c (i387_print_float_info): Replace calls to
1434 register_read and deprecated_read_register_gen with calls to
1435 frame_register_read, and make the necessary adjustments to the
1436 surrounding code.
1437
1438 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1439
1440 * gdbarch.sh (register_reggroup_p): Allow default value.
1441 * gdbarch.h, gdbarch.c: Regenerate.
1442
1443 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1444
1445 * regcache.h: Add coment indicating replacements for deprecated
1446 functions.
1447
1448 2002-11-02 Andrew Cagney <cagney@redhat.com>
1449
1450 * reggroups.h, reggroups.c: New files.
1451 * regcache.c: Include "reggroups.h".
1452 (enum regcache_dump_what): Add `regcache_dump_groups'.
1453 (regcache_dump): Contract size of the "Type" column. When
1454 specified, dump the register's groups.
1455 (maintenance_print_register_groups): New function.
1456 (_initialize_regcache): Add command `maint print register-groups'.
1457 * Makefile.in (COMMON_OBS): Add reggroups.o
1458 (SFILES): Add reggroups.c.
1459 (reggroups_h): Define.
1460 (regcache.o, gdbarch.o): Update dependencies.
1461 (reggroups.o): Specify dependencies.
1462 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1463 Add opaque declaration for `struct reggroup' in generated .h file.
1464 Include "reggroups.h" in generated .c file.
1465 gdbarch.h, gdbarch.c: Re-generate.
1466
1467 2002-11-02 Andrew Cagney <cagney@redhat.com>
1468
1469 * regcache.h (deprecated_read_register_gen): Rename
1470 read_register_gen.
1471 (deprecated_write_register_gen): Rename write_register_gen.
1472 * i387-tdep.c: Update.
1473 * x86-64-linux-nat.c: Update
1474 * wince.c: Update.
1475 * thread-db.c: Update.
1476 * win32-nat.c: Update.
1477 * mips-tdep.c: Update.
1478 * d10v-tdep.c: Update.
1479 * cris-tdep.c: Update.
1480 * remote-sim.c: Update.
1481 * remote-rdi.c: Update.
1482 * remote-rdp.c: Update.
1483 * frame.c: Update.
1484 * target.c: Update.
1485 * blockframe.c: Update.
1486 * x86-64-tdep.c: Update.
1487 * xstormy16-tdep.c: Update.
1488 * sh-tdep.c: Update.
1489 * s390-tdep.c: Update.
1490 * rs6000-tdep.c: Update.
1491 * sparc-tdep.c: Update.
1492 * i386-tdep.c: Update.
1493 * dwarf2cfi.c: Update.
1494 * regcache.c: Update.
1495
1496 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1497
1498 New interix-specific files:
1499 * config/i386/nm-interix.h: New file.
1500 * config/i386/interix.mh: New file.
1501 * config/i386/interix.mt: New file.
1502 * i386-interix-nat.c: New file.
1503 * i386-interix-tdep.c: New file.
1504
1505 2002-11-01 Andrew Cagney <cagney@redhat.com>
1506
1507 * frame.h (deprecated_generic_get_saved_register): Rename
1508 generic_get_saved_register.
1509 * blockframe.c (deprecated_generic_get_saved_register): Update.
1510 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1511 (xstormy16_frame_saved_register): Update.
1512 * sh-tdep.c (sh_gdbarch_init): Update.
1513 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1514 * ia64-tdep.c (ia64_get_saved_register): Update.
1515 * cris-tdep.c (cris_gdbarch_init): Update.
1516 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1517 * arm-tdep.c (arm_gdbarch_init): Update.
1518
1519 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1520
1521 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1522
1523 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1524
1525 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1526 trampolines in sigaction.
1527
1528 2002-10-31 Andrew Cagney <cagney@redhat.com>
1529
1530 * h8300-tdep.c: Include "gdb_assert.h".
1531 (h8300_print_register): Add gdbarch, file and frame parameters.
1532 Use frame_read_unsigned_register to read the register's value.
1533 Use fprintf_filtered to display output.
1534 (h8300_print_registers_info): Replace h8300_do_registers_info.
1535 (h8300_gdbarch_init): Set print_registers_info.
1536
1537 2002-10-31 Andrew Cagney <cagney@redhat.com>
1538
1539 * frame.c (frame_read_unsigned_register): New function.
1540 (frame_read_signed_register): New function.
1541 * frame.h (frame_read_unsigned_register): Declare.
1542 (frame_read_signed_register): Declare.
1543
1544 2002-10-31 Andrew Cagney <cagney@redhat.com>
1545
1546 * h8500-tdep.c (h8500_print_registers_info): New static function,
1547 clone of infcmd.c's default_print_registers_info.
1548 (h8500_do_registers_info): New funtion.
1549 (h8500_print_register_hook): Rename print_register_hook, make
1550 static.
1551
1552 * config/h8500/tm-h8500.h: Update copyright.
1553 (DEPRECATED_DO_REGISTERS_INFO): Define.
1554 (h8500_do_registers_info: Declare.
1555 (PRINT_REGISTER_HOOK): Delete macro.
1556 (print_register_hook): Delete function.
1557
1558 2002-10-31 Andrew Cagney <cagney@redhat.com>
1559
1560 * z8k-tdep.c (z8k_print_register_hook): Make static.
1561 (z8k_print_registers_info): New static function, clone of
1562 infcmd.c's default_print_registers_info.
1563 (z8k_do_registers_info): New function. Wrap
1564 z8k_print_registers_info.
1565 * config/z8k/tm-z8k.h: Update copyright.
1566 (PRINT_REGISTER_HOOK): Delete macro.
1567 (z8k_print_register_hook): Delete declaration.
1568 (DEPRECATED_DO_REGISTERS_INFO): Define.
1569 (z8k_do_registers_info): Declare.
1570
1571 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1572
1573 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1574 as this is already provided by value.h, and was actually causing
1575 a compilation error because of a conflict in parameter type
1576 declaration due to a missing const keyword.
1577 (low_text_segment_addres): Fix a compilation warning.
1578
1579 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1580
1581 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1582 registers without a name.
1583 (mips_linux_cannot_store_register): Don't store registers without
1584 a name.
1585
1586 2002-10-28 David Carlton <carlton@math.stanford.edu>
1587
1588 * symtab.c (find_addr_symbol): Delete. (It was already commented
1589 out.)
1590 * symtab.h: Delete prototype for find_addr_symbol.
1591
1592 2002-10-26 Andrew Cagney <cagney@redhat.com>
1593
1594 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1595 DO_REGISTERS_INFO.
1596 gdbarch.h, gdbarch.c: Re-generate.
1597 * infcmd.c (default_print_registers_info): Update reference.
1598 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1599 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1600 * sh-tdep.c (sh_gdbarch_init): Ditto.
1601 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1602 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1603
1604 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1605
1606 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1607 cfi_init_extra_frame_info.
1608 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1609 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1610
1611 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1612 target where necessary. Add more comments and remove the ones
1613 that don't provide any useful information.
1614
1615 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1616 deprecated_read_register_dummy with
1617 frame_unwind_unsigned_register.
1618
1619 * i386-tdep.c (i386_extract_struct_value_address): Use
1620 regcache_raw_read_unsigned instead of
1621 regcache_cooked_read_unsigned since we know that the register
1622 we're reading isn't a pseudo register. Rename variable 'val' into
1623 the more descriptive 'addr'.
1624
1625 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1626 (x86_64_push_return_address): Add comment.
1627 (x86_64_pop_frame): Make static.
1628 (examine_argument): Clarify comment.
1629 (x86_64_skip_prologue): Make prolog_expact variable static.
1630
1631 * dwarf2cfi.c: Fix some formatting problems.
1632 (context_cpy, read_encoded_pointer): Clarify comments.
1633
1634 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1635 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1636 i386 target back into x86_64_gdbarch_init. Add some comments and
1637 remove meaningless ones.
1638
1639 2002-10-25 Andrew Cagney <cagney@redhat.com>
1640
1641 * complaints.h (struct deprecated_complaint): Rename `struct
1642 complaint'.
1643 * complaints.c (complain): Update.
1644 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1645 incorrect comment indicating that "symfile.h" was being included
1646 for the `struct complaint' definition.
1647 * remote-vx.c: Update.
1648 * objc-lang.c: Update.
1649 * xcoffread.c: Update.
1650 * hpread.c: Update.
1651 * mdebugread.c: Update.
1652 * stabsread.c: Update.
1653 * dwarf2read.c: Update.
1654 * dwarfread.c: Update.
1655 * elfread.c: Update.
1656 * coffread.c: Update.
1657 * stabsread.h: Update.
1658 * dbxread.c: Update.
1659 * buildsym.c: Update.
1660 * gdbtypes.c: Update.
1661 * macrotab.c: Update.
1662
1663 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1664
1665 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1666 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1667 (x86_64_init_abi): ...new function.
1668
1669 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1670 * i386v-nat.c: Include "i386-tdep.h".
1671
1672 2002-10-25 Andrew Cagney <cagney@redhat.com>
1673
1674 * gdbtypes.c (address_space_name_to_int): Update.
1675 (address_space_int_to_name): Update.
1676 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1677 multi-arch predicate.
1678 (address_class_name_to_type_flags): Ditto.
1679 * gdbarch.h, gdbarch.c: Re-generate.
1680
1681 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1682
1683 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1684
1685 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1686
1687 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1688
1689 * symtab.h (INIT_SAL): Delete macro.
1690 (init_sal): Export.
1691 * symtab.c (init_sal): New function.
1692
1693 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1694 to init_sal function call.
1695 (find_sal_from_funcs_and_line): Ditto.
1696 (all_sals_for_line): Ditto.
1697 * breakpoint.c (create_internal_breakpoint): Ditto.
1698 (create_fork_vfork_event_catchpoint): Ditto.
1699 (create_exec_event_catchpoint): Ditto.
1700 (parse_breakpoint_sals): Ditto.
1701 (watch_command_1): Ditto.
1702 (handle_gnu_4_16_catch_command): Ditto.
1703 (clear_command): Ditto.
1704 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1705 * infcmd.c (run_stack_dummy): Ditto.
1706 * infrun.c (process_event_stop_test): Ditto.
1707 (check_sigtramp2): Ditto.
1708 (step_over_function): Ditto.
1709 * linespec.c (decode_line_2): Ditto.
1710 (decode_line_1): Ditto.
1711 * source.c (line_info): Ditto.
1712 * symtab.c (find_pc_sect_line): Ditto.
1713
1714 2002-10-24 Michal Ludvig <mludvig@suse.cz>
1715
1716 * dwarf2cfi.c (struct context)
1717 (struct context_reg): Moved to dwarf2cfi.h
1718 (context_alloc, frame_state_alloc, context_cpy):
1719 Made extern instead of static, removed prototypes.
1720 * dwarf2cfi.h (struct context)
1721 (struct context_reg): New, moved from dwarf2cfi.c
1722 (context_alloc, frame_state_alloc, context_cpy):
1723 New prototypes.
1724 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1725 Changed from static to extern.
1726 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1727 (LINUX_SIGCONTEXT_FP_OFFSET)
1728 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1729 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1730 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1731 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1732 set_gdbarch_*() calls now use x86-64 specific functions
1733 instead of DWARF2 CFI ones.
1734 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1735 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1736 (x86_64_init_extra_frame_info): New prototypes.
1737
1738 2002-10-23 David Carlton <carlton@math.stanford.edu>
1739
1740 * linespec.c: #include "parser-defs.h".
1741 Delete prototype for find_template_name_end.
1742 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1743
1744 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1745
1746 * NEWS: add recent mi fixes.
1747 * varobj.c (struct varobj): Add new "updated" flag.
1748 (new_variable): Default "updated" flag to 0.
1749 (varobj_set_value): Set "updated" flag to 1 if value
1750 changes.
1751 (varobj_update): Check varobj "updated" flag before
1752 comparing old and refreshed values. Fix for
1753 PR gdb/702.
1754
1755 2002-10-23 David Carlton <carlton@math.stanford.edu>
1756
1757 * parse.c (parse_exp_1): Use BLOCK_START.
1758 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1759 SYMBOL_BLOCK_VALUE.
1760 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1761
1762 2002-10-23 David Carlton <carlton@math.stanford.edu>
1763
1764 * symtab.c: Delete cplusplus_hint.
1765 Delete prototype for find_template_name_end.
1766
1767 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1768
1769 * symtab.h: Update comment.
1770
1771 2002-10-23 Michael Snyder <msnyder@redhat.com>
1772
1773 * printcmd.c (address_info): Restore quotes in output.
1774 * valops.c (value_of_local): Restore quotes in error message.
1775
1776 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1777
1778 * symtab.c (symbol_demangled_name): New function.
1779 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1780 turning most of it into a function.
1781 (symbol_demangled_name): Export.
1782
1783 2002-10-23 Michael Snyder <msnyder@redhat.com>
1784
1785 * valops.c (value_of_local): Restore quotes in error message.
1786
1787 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1788
1789 * symtab.c (symbol_init_language_specific): New function.
1790 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1791 turning most of it into a function.
1792 (symbol_init_language_specific): Export.
1793
1794 2002-10-23 David Carlton <carlton@math.stanford.edu>
1795
1796 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1797 (dwarf_attr_name): Ditto.
1798 (dwarf_type_encoding_name): Ditto.
1799 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1800 (process_die): Handle DW_TAG_namespace,
1801 DW_TAG_imported_declaration, DW_TAG_imported_module.
1802 (read_namespace): New function.
1803
1804 2002-10-22 Joel Brobecker <brobecker@gnat.com>
1805
1806 * configure.in: Define NEW_PROC_API on Interix too.
1807 * configure: Regenerate.
1808
1809 2002-10-21 Joel Brobecker <brobecker@gnat.com>
1810
1811 * configure: Regenerate using the proper version of autoconf.
1812
1813 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1814
1815 * findvar.c (read_var_value): Temporarily disable TLS code, until
1816 complete TLS support is added.
1817
1818 2002-10-21 Jim Blandy <jimb@redhat.com>
1819 Elena Zannoni <ezannoni@redhat.com>
1820
1821 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1822 for thread local storage locations.
1823 (struct symbol): Add objfile field.
1824 (SYMBOL_OBJFILE): Define.
1825 * dwarf2read.c (is_thread_local): New static variable.
1826 (new_symbol): If variable is in thread local fill in address class
1827 and objfile appropriately.
1828 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1829 stack operation.
1830 * printcmd.c (address_info): Print the information for thread
1831 local storage variable.
1832 * findvar.c (read_var_value): In case of thread local variable,
1833 defer to the target vector code to compute address.
1834
1835 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1836
1837 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1838 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1839
1840 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1841
1842 * symtab.h (address_class): Rename
1843 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1844 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1845 * printcmd.c (address_info): Ditto.
1846 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1847
1848 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1849
1850 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1851 DBREG_DRX macro to acces debug registers.
1852
1853 * Makefile.in (i386obsd-tdep.o): New target.
1854
1855 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1856 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1857
1858 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1859 * config/i386/obsd.mt: New file.
1860 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1861 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1862 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1863 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1864 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1865 * i386obsd-tdep.c: New file.
1866
1867 2002-10-19 Adam Fedor <fedor@gnu.org>
1868
1869 * objc-exp.y (name_not_typename): Fix invalid comment.
1870
1871 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1872
1873 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1874 to allocate partial syms and macro byte caches.
1875
1876 2002-10-18 David Carlton <carlton@math.stanford.edu>
1877
1878 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1879
1880 2002-10-18 Adam Fedor <fedor@gnu.org>
1881
1882 * stabsread.c (find_name_end): New function.
1883 (define_symbol): Use it.
1884
1885 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
1886
1887 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1888 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1889 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1890 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1891
1892 2002-10-17 David Carlton <carlton@math.stanford.edu>
1893
1894 * symfile.h: Add opaque declaration for struct obstack.
1895 Declare obsavestring to take a const char *.
1896 * symfile.c (obsavestring): Make first argument a const char *.
1897
1898 2002-10-16 Adam Fedor <fedor@gnu.org>
1899
1900 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1901 names when matching breakpoints in current file.
1902
1903 2002-10-16 Kevin Buettner <kevinb@redhat.com>
1904
1905 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1906 (read_tag_pointer_type): Add address class support.
1907 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1908 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1909 New methods.
1910 * gdbarch.h, gdbarch.c: Regenerate.
1911 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1912 (make_type_with_address_space, recursive_type_dump): Add address
1913 class support.
1914 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1915 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1916 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1917
1918 2002-10-16 Klee Dienes <kdienes@apple.com>
1919
1920 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1921 to get the last character of a char[] buffer, not
1922 name[sizeof(vptr_name)-1].
1923
1924 2002-10-14 Adam Fedor <fedor@gnu.org>
1925
1926 * symtab.h: New objc_specific struct.
1927 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1928 (SYMBOL_DEMANGLED_NAME): Likewise.
1929
1930 2002-10-14 Adam Fedor <fedor@gnu.org>
1931
1932 * symfile.c (init_filename_language_table): Add ObjC file extension.
1933
1934 2002-10-14 Adam Fedor <fedor@gnu.org>
1935
1936 * utils.c (puts_filtered_tabular): New function.
1937 (fprintf_symbol_filtered): Get ObjC demangled name.
1938 * defs.h (puts_filtered_tabular): Declared.
1939
1940 2002-10-14 Kevin Buettner <kevinb@redhat.com>
1941
1942 * c-lang.h (c_type_print_varspec_prefix): Delete.
1943 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1944 ``need_post_space'' parameter. Adjust all callers.
1945
1946 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
1947
1948 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1949 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1950 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1951 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1952
1953 2002-10-13 Adam Fedor <fedor@gnu.org>
1954
1955 * source.c (print_source_lines): Update comments.
1956
1957 2002-10-13 Adam Fedor <fedor@gnu.org>
1958
1959 * valops.c (value_of_local): New function.
1960 (value_of_this): Use it.
1961 * value.h (value_of_local): Declared.
1962
1963 2002-10-13 Adam Fedor <fedor@gnu.org>
1964
1965 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1966 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1967
1968 2002-10-12 Adam Fedor <fedor@gnu.org>
1969
1970 * language.c (binop_result_type): Add language_objc to case.
1971 (integral_type): Likewise.
1972 (character_type): Likewise.
1973 (string_type): Likewise.
1974 (boolean_type): Likewise.
1975 (structured_type): Likewise.
1976 (binop_type_check): Likewise.
1977
1978 2002-10-11 Adam Fedor <fedor@gnu.org>
1979
1980 * printcmd.c (address_info): Print 'self' for ObjC.
1981
1982 2002-10-11 Adam Fedor <fedor@gnu.org>
1983
1984 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1985 OP_SELF.
1986
1987 2002-10-11 Adam Fedor <fedor@gnu.org>
1988
1989 * language.h (CAST_IS_CONVERSION): Add language_objc.
1990
1991 2002-10-11 Adam Fedor <fedor@gnu.org>
1992
1993 * defs.h (enum language): Add language_objc.
1994
1995 2002-10-11 Klee Dienes <kdienes@apple.com>
1996
1997 * corefile.c (read_memory_typed_address): New function.
1998 * gdbcore.h (read_memory_typed_address): Add prototype.
1999 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2000 to read a value destined for a CORE_ADDR, not read_memory_integer.
2001 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2002 (f77_get_dynamic_lowerbound): Ditto.
2003
2004 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2005
2006 * utils.c (string_to_core_addr): After turning string into
2007 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2008 which will do necessary sign-extension, etc.
2009
2010 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2011
2012 * c-exp.y (THIS): Delete token and grammar rule.
2013 (yylex): Don't return THIS.
2014 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2015 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2016 * demangle.c (cplus_markers): Update comment. Put '$'
2017 first. Remove CPLUS_MARKER.
2018 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2019 * jv-exp.y (THIS): Delete token and grammar rule.
2020 (yylex): Don't return THIS.
2021 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2022 * objc-exp.y (THIS): Delete token and grammar rule.
2023 (yylex): Don't return THIS.
2024 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2025 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2026 (read_member_functions): Likewise for opname.
2027 (read_tilde_fields): Use is_cplus_marker.
2028
2029 * defs.h (CPLUS_MARKER): Don't define.
2030 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2031 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2032 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2033 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2034 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2035
2036 * config/i386/tm-i386v4.h: Delete file.
2037 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2038 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2039 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2040 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2041 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2042 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2043 * config/i386/i386v4.mt (TM_FILE): Likewise.
2044 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2045
2046 2002-10-10 Marko Mlinar <markom@opencores.org>
2047
2048 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2049 accidentially not commited 2002-10-09
2050 * gdbarch.h, gdbarch.c: Re-generate.
2051
2052 2002-10-09 Marko Mlinar <markom@opencores.org>
2053
2054 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2055 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2056 * gdbarch.h, gdbarch.c: Re-generate.
2057
2058 2002-10-08 Petr Sorfa <petrs@caldera.com>
2059
2060 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2061
2062 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2063 so we can work on more than one compilation unit at a time. This
2064 helps prepare GDB to handle inter-CU die references.
2065 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2066 the code to be defined before struct comp_unit_head.
2067 (comp_unit_head): Added new members - offset, cu_head,
2068 begin_die, next and dwarf2_abbrevs.
2069 (dwarf2_abbrevs): Removed single static var; now member of
2070 struct comp_unit_head.
2071 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2072 members.
2073 (psymtab_to_symtab_1): Changed to work with the new
2074 struct comp_unit_head.
2075 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2076 constructs the dwarf2_abbrevs[] inside the cu_header.
2077 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2078 dwarf2_abbrev table to clean up.
2079 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2080 handling of dwarf2_abbrevs inside the cu_header.
2081 (read_partial_die): Now supports the call to the new
2082 dwarf2_lookup_abbrev.
2083 (read_full_die): Now supports the call to the new
2084 dwarf2_lookup_abbrev.
2085
2086 2002-10-06 Christopher Faylor <cgf@redhat.com>
2087
2088 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2089 insure that shell variables, such as "transformed_name" are propagated
2090 to later shell statements in rule.
2091
2092 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2093
2094 * config/i386/nm-i386sco.h: Add protection against
2095 multiple-inclusion. Include "i386/nm-i386v.h".
2096 (REGISTER_U_ADDR): Remove define.
2097 (i386_register_u_addr): Remove prototype.
2098
2099 2002-10-04 Michael Snyder <msnyder@redhat.com>
2100
2101 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2102 before treating it as a single-step event.
2103
2104 2002-10-03 Adam Fedor <fedor@gnu.org>
2105
2106 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2107 (objc_demangle): Remove assignment in if statements, Replace
2108 free with xfree.
2109 (add_msglist): Likewise.
2110 (end_msglist): Likewise.
2111 (complare_selectors): Likewise.
2112 (selectors_info): Likewise.
2113 (compare_classes): Likewise.
2114 (classes_info): Likewise.
2115 (print_object_command): Likewise.
2116 (find_objc_msgcall_submethod): Replace PTR with void *.
2117 * objc-lang.h: Remove check for __STDC__.
2118
2119 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2120
2121 * ui-out.h (ui_out_field_fmt_int): New prototype.
2122 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2123 of field width and alignment.
2124 * stack.c (print_frame_info_base): When printing frame level, use
2125 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2126 PR gdb/192
2127
2128 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2129
2130 * MAINTAINERS: Add self to Write After Approval list.
2131
2132 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2133
2134 * infcmd.c (interrupt_target_command_wrapper): Delete.
2135 (interrupt_target_command): Make non static.
2136 (nofp_registers_info): Make static.
2137 * stack.c (return_command_wrapper): Delete.
2138 (return_command): Make non static.
2139
2140 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2141
2142 * event-top.c (gdb_setup_readline): New function. Code moved from
2143 _initialize_event_loop().
2144 (_initialize_event_loop): Call gdb_setup_readline().
2145
2146 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2147
2148 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2149 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2150 * gdbarch.h, gdbarch.c: Re-generate.
2151
2152 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2153
2154 Fix PR gdb/778
2155 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2156 before recursing.
2157 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2158 of fill_in_vptr_fieldno.
2159
2160 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2161
2162 * inferior.h (registers_info, stepi_command, nexti_command,
2163 continue_command, interrupt_target_command): Export from infcmd.c.
2164 * frame.h (args_info, selected_frame_level_changed_hook,
2165 return_command): Export from stack.c.
2166 * v850ice.c (stepi_command, nexti_command, continue_command): use
2167 prototypes from inferior.h.
2168 * tracepoint.c (registers_info, args_info, locals_info): Use
2169 prototypes from frame.h and inferior.h.
2170 * Makefile.in (mi-main.o): Add dependency on frame.h.
2171
2172 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2173
2174 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2175 value in register 3 adjusted by ppc_gp0_regnum.
2176
2177 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2178
2179 2002-10-02 Marko Mlinar <markom@opencores.org>
2180
2181 * MAINTAINERS: Add myself to the Write After Approval list.
2182
2183 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2184
2185 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2186 of the section for the N64 ABI, fixed.
2187
2188 * config/mips/tm-irix6.h: Include solib.h.
2189
2190 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2191
2192 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2193 GNU operators.
2194
2195 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2196
2197 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2198 and that "mi0" syntax has been removed.
2199
2200 2002-09-30 David Carlton <carlton@math.stanford.edu>
2201
2202 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2203 * ppc-sysv-tdep.c: #include "gdb_string.h".
2204 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2205 pacify GCC.
2206
2207 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2208
2209 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2210 "vrsave"'s register number.
2211
2212 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2213
2214 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2215 use frame_unwind_signed_register to obtain the PC.
2216 (mips_frame_chain): Handle a generic dummy frame.
2217 (mips_init_extra_frame_info): When a generic dummy frame, don't
2218 re-compute the frame base.
2219 (mips_pop_frame): Handle generic dummy frames.
2220 (mips_gdbarch_init): When generic dummy frames, set
2221 use_generic_dummy_frames, push_dummy_frame to
2222 generic_push_dummy_frame, pc_in_call_dummy to
2223 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2224 generic_save_dummy_frame_tos.
2225
2226 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2227
2228 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2229 against TOP when TOP was explictly set.
2230 (generic_push_dummy_frame): Set TOP to zero.
2231
2232 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2233
2234 * event-loop.c (start_event_loop): Rename variable 'result' to
2235 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2236
2237 2002-09-30 Keith Seitz <keiths@redhat.com>
2238
2239 * gdb-events.sh (selected_thread_changed): New event.
2240 * gdb-events.c: Regenerated.
2241 * gdb-events.h: Regenerated.
2242
2243 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2244
2245 * MAINTAINERS: Add self to Write After Approval list.
2246
2247 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2248
2249 * disasm.c: New file.
2250 * disasm.h: New file.
2251 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2252 (compare_lines): Ditto.
2253 (dump_insns): Ditto.
2254 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2255 argument.
2256 (do_assembly_only): Ditto.
2257 (do_disassembly): Renamed to gdb_disassembly and moved to
2258 disasm.c. Sdded uiout argument.
2259 * Makefile.in: Add new files. Reorder SFILES list. Update
2260 dependencies. Include libgdb.a later in the insight executable.
2261
2262 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2263
2264 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2265 bfd/elf64-alpha-fbsd.c.
2266
2267 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2268
2269 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2270 i386gnu-tdep.c.
2271
2272 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2273
2274 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2275 __FUNCTION__.
2276 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2277 function name.
2278 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2279 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2280 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2281 (S_msg_sig_post_reply): Ditto.
2282
2283 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2284
2285 * sh-tdep.c (sh_use_struct_convention): Use definition according
2286 to ABI.
2287 (sh_push_arguments): Store in register with correct endianess.
2288 (sh_default_store_return_value): Ditto.
2289 (sh_gdbarch_init): Set sizeof long double to 8.
2290
2291 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2292
2293 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2294 Fix some whitespace problems.
2295
2296 2002-09-27 David Carlton <carlton@math.stanford.edu>
2297
2298 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2299 (mcore-tdep.o): Ditto.
2300 (ns32k-tdep.o): Ditto.
2301 (ns32knbsd-tdep.o): Ditto.
2302 (sh3-rom.o): Ditto.
2303 (vax-tdep.o): Ditto.
2304 * cris-tdep.c: #include "gdb_string.h"
2305 * mcore-tdep.c: Ditto.
2306 * ns32k-tdep.c: Ditto.
2307 * ns32knbsd-tdep.c: Ditto.
2308 * sh3-rom.c: Ditto.
2309 * vax-tdep.c: Ditto.
2310
2311 2002-09-27 David Carlton <carlton@math.stanford.edu>
2312
2313 * config/djgpp/fnchange.lst: Add entries for
2314 gdb/testsuite/gdb.c++/m-static files.
2315
2316 2002-09-27 Jim Wilson <wilson@redhat.com>
2317
2318 * MAINTAINERS: Add myself to the Write After Approval list.
2319
2320 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2321
2322 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2323
2324
2325 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2326
2327 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2328 frame.
2329
2330 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2331
2332 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2333 (rs6000_struct_return_address): Delete variable.
2334 (rs6000_store_struct_return): Update.
2335 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2336 deprecated_extract_struct_value_address.
2337 (rs6000_frame_align): New function.
2338 (rs6000_gdbarch_init): Set frame_align.
2339
2340 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2341
2342 From Grace Sainsbury <graces@redhat.com>:
2343 * Makefile.in (gdbtk-main.o): New target.
2344 (gdb.o): New target.
2345 (main_h): Define.
2346 (main.o): Update dependencies.
2347 (gdb$(EXEEXT)): Add gdb.o.
2348 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2349 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2350 (SUBDIR_GDBTK_CLEAN): Set.
2351 (install-gdbtk): Install the insight binary.
2352 (uninstall-gdbtk): New target.
2353 (all-gdbtk, clean-gdbtk): New rule.
2354 * top.c (use_windows): Default to zero.
2355 * main.c: Include "main.h".
2356 (main): Delete.
2357 (struct captured_main_args): Delete.
2358 (gdb_main): New function.
2359 * main.h: New file.
2360 * gdb.c: New File.
2361
2362 2002-09-25 Andrew Cagney <cagney@redhat.com>
2363
2364 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2365 (frame_map_regnum_to_name): New function.
2366 (frame_map_name_to_regnum): New function.
2367 * frame.h (frame_map_name_to_regnum): Declare.
2368 (frame_map_regnum_to_name): Declare.
2369 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2370 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2371 * parse.c: Do not include "builtin-regs.h".
2372 (target_map_name_to_register): Delete function.
2373 (write_dollar_variable): Use frame_map_name_to_regnum.
2374 * parser-defs.h (target_map_name_to_register): Delete declaration.
2375 * expprint.c: Include "frame.h".
2376 (print_subexp): Use frame_map_regnum_to_name.
2377 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2378 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2379
2380 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2381
2382 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2383 wasn't saved, and the next innermost frame is a dummy, return the
2384 dummy frame's link register.
2385
2386 2002-09-24 Jim Blandy <jimb@redhat.com>
2387
2388 Fix from Paul Breed:
2389 * main.c (captured_main): Add a `break' after the case for 'b'.
2390
2391 2002-09-24 Keith Seitz <keiths@redhat.com>
2392
2393 * varobj.c (c_type_of_child): Use get_target_type instead
2394 of TYPE_TARGET_TYPE.
2395
2396 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2397
2398 * source.c (get_current_or_default_source_symtab_and_line): Remove
2399 function.
2400 (set_default_source_symtab_and_line): New function. Attempts to
2401 determine a source file to list lines from if one is not currently
2402 defined.
2403 (get_current_source_symtab_and_line): Initialize sal.pc and
2404 sal.end fields.
2405 (set_current_source_symtab_and_line): Mark argument as const.
2406 * source.h: Update declarations and comments.
2407 * linespec.c (decode_line_1): Replace call to removed routine above.
2408 * stack.c (print_frame_info_base): Ditto.
2409 * cli/cli-cmds.c (edit_command): Ditto.
2410 (list_command): Ditto.
2411
2412 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2413
2414 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2415 sal.pc and sal.end fields.
2416 (get_current_or_default_source_symtab_and_line): Ditto.
2417 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2418 so we do not cause a new source symtab to be searched for (reverting an
2419 unintentional change from the 2002-09-20 patch).
2420 * scm-lang.c (scm_unpac): Ditto.
2421
2422 2002-09-21 Andrew Cagney <cagney@redhat.com>
2423
2424 * complaints.c (symfile_explanations): Remove new-line from
2425 ``isolated_message''.
2426 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2427 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2428
2429 2002-09-20 Nick Clifton <nickc@redhat.com>
2430
2431 * NEWS: Announce that V850EA ISA is no longer supported.
2432 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2433
2434 2002-09-20 David Carlton <carlton@math.stanford.edu>
2435
2436 * Makefile.in (c-lang.o): Correct dependencies.
2437 (utils.o): Gather dependencies.
2438 (charset.o): Move.
2439 * c-lang.c: #include "gdb_string.h"
2440
2441 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2442
2443 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2444 * cli/cli-cmds.c (list_command): New function. Implements the new
2445 cli edit command.
2446 (_init_cli_cmds): Add new command definition.
2447 * gdb.1: Document edit command.
2448 * doc/gdb.texinfo: Document edit command.
2449
2450 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2451
2452 * source.c: Make global variables current_source_symtab and
2453 current_source_line static.
2454 (list_command): Moved to cli/cli-cmds.c.
2455 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2456 (get_first_line_listed): New accessor function.
2457 (get_lines_to_list): New accessor function.
2458 (get_current_source_symtab_and_line): New function. Retrieves the
2459 position in the source code that we consider current.
2460 (get_current_or_default_source_symtab_and_line): New function.
2461 Like the above but attempts to determine a default position if one
2462 is not currently defined.
2463 (set_current_source_symtab_and_line): New function. Sets the source
2464 code position considered current and returns the previously set one.
2465 (clear_current_source_symtab_and_line): Reset stored information about
2466 a current source line.
2467 (_initialize_source): Remove registration for the "list" command and
2468 its alias.
2469 * source.h: Add declarations for the new functions above.
2470 * symtab.h: Remove declarations for the global variables mentioned
2471 above.
2472 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2473 obtain current source line.
2474 * linespec.c (decode_line_1): Ditto.
2475 * macroscope.c (default_macro_scope): Ditto.
2476 * scm-lang.c (scm_unpac): Ditto.
2477 * stack.c (print_frame_info_base): Ditto.
2478 * symfile.c (clear_symtab_users): Ditto.
2479 * symtab.c (decode_line_spec): Ditto.
2480 * cli/cli-cmds.c (list_command): Moved here from source.c.
2481 (ambiguous_line_spec): Moved here from source.c.
2482 (_init_cli_cmds): Add definition for "list" and its alias.
2483 * Makefile.in: Update dependencies.
2484
2485 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2486
2487 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2488 with what gcc thinks is correct.
2489
2490 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2491
2492 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2493 multiple register push instruction.
2494
2495 2002-09-19 Jim Blandy <jimb@redhat.com>
2496
2497 Add support for distinct host and target character sets.
2498 * charset.c, charset.h: New files.
2499 * c-exp.y: #include "charset.h".
2500 (yylex): Convert character and string literals to the target
2501 character set, before returning them as the semantic value of the
2502 token.
2503 * c-lang.c: #include "charset.h".
2504 (c_emit_char): Use charset-specific methods to recognize
2505 characters with backslash escape forms, to decide which characters
2506 to print literally and which to print using numeric escape
2507 sequences, and to convert target characters to host characters
2508 before printing.
2509 * utils.c: #include "charset.h".
2510 (no_control_char_error): New function.
2511 (parse_escape): Use charset-specific methods to recognize
2512 backslash escapes, parse `control character' notation, and convert
2513 characters from the host character set to the target character set.
2514 * configure.in: Set the default host character set.
2515 Check where to find iconv, and what its argument types might be.
2516 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2517 * Makefile.in (SFILES): List charset.c.
2518 (COMMON_OBS): List charset.o.
2519 (charset.o): New rule.
2520 (charset_h): New header dependency variable.
2521 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2522 (LIBICONV): New variable, set by configure.
2523 (CLIBS): Include $(LIBICONV) here.
2524 * aclocal.m4, config.in, configure: Regenerated.
2525
2526 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2527
2528 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2529 bison 1.35 warning.
2530
2531 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2532
2533 * gdb_mbuild.sh: New file.
2534
2535 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2536
2537 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2538
2539 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2540
2541 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2542 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2543 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2544 valops.c, value.h: Revert previous change.
2545
2546 2002-09-18 Michael Snyder <msnyder@redhat.com>
2547
2548 Preliminary support for Objective-C:
2549 * defs.h (language_objc): New enum value.
2550 (puts_filtered_tabular): Declaration only, exported from utils.c.
2551 (skip_quoted): Delete, declared in completer.h.
2552 * c-exp.y: Include completer.h.
2553 * p-exp.y: Ditto.
2554 * jv-exp.y: Ditto.
2555 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2556 New operator enum values.
2557 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2558 * language.c (binop_result_type): Handle language_objc case.
2559 (integral_type, character_type, string_type, boolean_type,
2560 structured_type, binop_type_check): Ditto.
2561 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2562 (struct objc_specific): Add to general_symbol_info.
2563 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2564 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2565 * parser-defs.h (struct objc_class_str): New struct type.
2566 (start_msglist, end_msglist, add_msglist): Declaration only,
2567 exported from objc-lang.c.
2568 * value.h (value_of_local, value_nsstring,
2569 call_function_by_hand_expecting_type): Exported from valops.c.
2570 * valops.c (find_function_addr): Export.
2571 (call_function_by_hand_expecting_type): New function.
2572 (value_of_local): New function.
2573 * symfile.c (init_filename_language_table): Add ".m" extension
2574 for Objective-C.
2575 * utils.c (puts_filtered_tabular): New function.
2576 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2577 (set/show demangle): Extend help-string to refer to ObjC.
2578 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2579 * stabsread.c (symbol_reference_defined): Objective-C symbols
2580 may contain colons: make allowances when scanning stabs strings
2581 for colons.
2582 (objc_find_colon): New function.
2583 * printcmd.c (address_info): If language == objc then print
2584 "self" instead of "this".
2585 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2586 OP_NSSTRING, and OP_SELF.
2587 (prefixify_subexp): Ditto.
2588 * source.c (print_source_lines): Mention objc in comment.
2589 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2590 method names.
2591
2592 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2593
2594 * complaints.h: Update copyright.
2595 (struct complaints): Declare.
2596 (struct complaint): Make `message' constant.
2597 (internal_complaint): Declare.
2598 (complaint): Declare.
2599 (complaint_root): Delete declaration.
2600 (symfile_complaints): Delete declaration.
2601 (struct complaints): Add opaque declaration.
2602 (clear_complaints): Add a complaints parameter.
2603 * complaints.c: Update copyright.
2604 (enum complaint_series): Define.
2605 (complaint_root): Delete.
2606 (struct complaints): Define.
2607 (complaint_sentinel, symfile_complaint_book): New variables.
2608 (symfile_explanations, symfile_complaints): New variables.
2609 New variables.
2610 (get_complaints): New function.
2611 (vcomplaint): New function.
2612 (complaint): New function.
2613 (internal_complaint): New function.
2614 (complain): Call vcomplain with symfile_complaint.
2615 (clear_complaints): Rewrite.
2616 (_initialize_complaints): Use add_setshow_command.
2617 * Makefile.in (complaints.o): Update dependencies.
2618 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2619 to call to clear_complaints.
2620 (new_symfile_objfile, reread_symbols): Ditto.
2621 (oldsyms_complaint): Delete.
2622 (empty_symtab_complaint, unknown_option_complaint): Delete.
2623 (free_named_symtabs): Use complaint instead of complain.
2624
2625 2002-09-18 Michael Snyder <msnyder@redhat.com>
2626
2627 Contributed by Apple Computer, Inc. Merged with current sources
2628 by Adam Fedor <fedor@doc.com> [cagney].
2629
2630 * objc-lang.c: First clean-up round: comments, indentation.
2631 * objc-lang.h: Ditto.
2632 * objc-lang.y: Ditto.
2633
2634 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2635
2636 * maint.c (maintenance_internal_error): Print the parameter as the
2637 error message.
2638 (maintenance_internal_warning): New function.
2639 (_initialize_maint_cmds): Add command `maint internal-warning'.
2640
2641 * defs.h (internal_warning, internal_vwarning): Declare.
2642 * utils.c (struct internal_problem): Define.
2643 (internal_vproblem): New function.
2644 (internal_warning): New function.
2645 (internal_vwarning): New function.
2646 (internal_warning_problem, internal_error_problem): New variables.
2647 (internal_verror): Just call internal_vproblem.
2648
2649 2002-09-18 Michael Snyder <msnyder@redhat.com>
2650
2651 * objc-lang.c: New file, support for Objective-C.
2652 Preliminary check-in, not yet integrated into gdb.
2653 * objc-lang.h: New file.
2654 * objc-exp.y: New file.
2655
2656 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2657
2658 * infrun.c (signal_stop_update): Convert definition to ISO C.
2659 (signal_print_update): Ditto.
2660 (signal_pass_update): Ditto.
2661 * inflow.c (terminal_save_ours): Ditto.
2662
2663 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2664 comments.
2665
2666 * config/djgpp/fnchange.lst: Handle name clashes between
2667 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2668 bfd/coff-tic80.c.
2669
2670 * i386-linux-tdep.h: Fix tipo.
2671
2672 2002-09-18 Adam Fedor <fedor@gnu.org>
2673
2674 * MAINTAINERS: Add myself to the Write After Approval list.
2675
2676 2002-09-18 Jim Blandy <jimb@redhat.com>
2677
2678 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2679 texthigh and textlow to reader-specific structs caused
2680 objfile_relocate to miss them. This is fixable, but the work that
2681 the change was supposed to prepare GDB for never got done anyway.
2682
2683 2002-09-18 David Carlton <carlton@math.stanford.edu>
2684
2685 * MAINTAINERS: Alphabetize Write After Approval list.
2686
2687 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2688
2689 Fix PR gdb/709
2690 * values.c (value_static_field): Call read_var_value.
2691
2692 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2693
2694 * valops.c (hand_function_call): Align the initial stack pointer
2695 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2696 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2697 return value.
2698 * mips-tdep.c (mips_frame_align): New function.
2699 (mips_gdbarch_init): Set frame_align.
2700 * gdbarch.sh (FRAME_ALIGN): New method.
2701 * gdbarch.h, gdbarch.c: Re-generate.
2702
2703 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2704
2705 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2706 registers.
2707
2708 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2709
2710 * NEWS: Mention that MIPS $fp behavior changed.
2711 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2712 reference to FP_REGNUM.
2713 (mipsnbsd_cannot_store_register): Ditto.
2714 * mips-linux-nat.c: Update copyright.
2715 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2716 (mips_linux_cannot_store_register): Ditto.
2717 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2718 * config/mips/tm-mips.h: Update copyright.
2719 (FP_REGNUM): Delete macro.
2720 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2721 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2722 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2723 (mips_r3041_reg_names, mips_r3051_reg_names)
2724 (mips_r3081_reg_names): Replace "fp" with "".
2725 Fix PR gdb/480.
2726
2727 2002-09-17 Theodore A. Roth <troth@verinet.com>
2728
2729 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2730 generic_read_register_dummy() (PR gdb/703).
2731 (avr_push_return_address): #if 0 out unused vars.
2732 (avr_gdbarch_init): Enable use of avr_push_return_address().
2733
2734 2002-09-17 Michael Snyder <msnyder@redhat.com>
2735
2736 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2737 RTE will take care of it.
2738
2739 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2740
2741 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2742 invalid, return SP_REGNUM.
2743
2744 2002-09-17 Michael Snyder <msnyder@redhat.com>
2745
2746 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2747 point registers without sign extension.
2748
2749 2002-09-17 Andrew Cagney <cagney@redhat.com>
2750
2751 * blockframe.c (deprecated_read_register_dummy): Rename
2752 generic_read_register_dummy.
2753 * frame.c (frame_unwind_signed_register): New function.
2754 (frame_unwind_unsigned_register): New function.
2755 * frame.h (frame_unwind_signed_register): Declare.
2756 (frame_unwind_unsigned_register): Declare.
2757 (deprecated_read_register_dummy): Rename
2758 generic_read_register_dummy.
2759
2760 * h8300-tdep.c (h8300_frame_chain): Update.
2761 (h8300_frame_saved_pc): Update.
2762 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2763 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2764 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2765 (s390_frame_chain): Update.
2766 * v850-tdep.c (v850_find_callers_reg): Update.
2767 (v850_frame_saved_pc): Update.
2768 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2769 (m32r_find_callers_reg): Update.
2770 (m32r_frame_saved_pc): Update.
2771 * sh-tdep.c (sh_find_callers_reg): Update.
2772 (sh64_get_saved_pr): Update.
2773 (sh_init_extra_frame_info): Update.
2774 (sh_init_extra_frame_info): Update.
2775 (sh64_init_extra_frame_info): Update.
2776 (sh64_init_extra_frame_info): Update.
2777 * mcore-tdep.c (mcore_find_callers_reg): Update.
2778 (mcore_frame_saved_pc): Update.
2779 (mcore_init_extra_frame_info): Update.
2780 * i386-tdep.c (i386_frame_saved_pc): Update.
2781 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2782 (ia64_init_extra_frame_info): Update.
2783 (ia64_init_extra_frame_info): Update.
2784 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2785 * cris-tdep.c (cris_init_extra_frame_info): Update.
2786 * avr-tdep.c (avr_frame_chain): Update.
2787 (avr_init_extra_frame_info): Update.
2788 (avr_frame_saved_pc): Update.
2789 * arm-tdep.c (arm_find_callers_reg): Update.
2790 (arm_init_extra_frame_info): Update.
2791 (arm_frame_saved_pc): Update.
2792
2793 2002-09-17 Tom Tromey <tromey@redhat.com>
2794
2795 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2796 is "'".
2797
2798 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2799
2800 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2801 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2802 NEXT_PROLOGUE_INSN.
2803 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2804 NEXT_PROLOGUE_INSN.
2805
2806 2002-09-16 Joel Brobecker <brobecker@gnat.com>
2807
2808 * osfsolib.c: Remove file, replaced by solib-osf.c.
2809 * Makefile.in: Remove compilation rules for osfsolib.c.
2810
2811 2002-09-16 David Carlton <carlton@math.stanford.edu>
2812
2813 * cp-valprint.c (cp_print_class_method): Correct args to
2814 check_stub_method_group.
2815
2816 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
2817
2818 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2819 `set architecture'. Unify naming convention of functions.
2820 (h8300_skip_prologue): Improve prologue analysis.
2821 (h8300_push_arguments): Rewritten to more closely match GCC's
2822 bizarre argument-passing behavior, along with the comment describing
2823 said behavior.
2824 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2825 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2826 sim, remote-e7000.c, remote-hms.c and remote.c
2827
2828 2002-09-15 Mark Kettenis <kettenis@gnu.org>
2829
2830 * i386-tdep.c (gdb_print_insn_i386): Removed.
2831 (i386_print_insn): New function.
2832 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2833 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2834 tm_print_insn_info.
2835
2836 2002-09-14 Mark Kettenis <kettenis@gnu.org>
2837
2838 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2839 zero.
2840
2841 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
2842
2843 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2844 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2845 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2846
2847 2002-09-13 Christopher Faylor <cgf@redhat.com>
2848
2849 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2850
2851 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
2852
2853 * gdbtypes.c (check_stub_method): Make static.
2854 (check_stub_method_group): New function.
2855 * gdbtypes.h: Update prototypes.
2856 * cp-support.c: New file.
2857 * cp-support.h: New file.
2858
2859 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2860 (update_method_name_from_physname): New function.
2861 (read_member_functions): Correct method names for operators
2862 and v3 constructors/destructors. Separate v2 constructors and
2863 destructors.
2864 * Makefile.in (stabsread.o): Update dependencies.
2865 (SFILES): Add cp-support.c.
2866 (COMMON_OBS): Add cp-support.o.
2867 (cp_support_h, cp-support.o): Add.
2868
2869 * cp-valprint.c (cp_print_class_method): Call
2870 check_stub_method_group instead of check_stub_method. Remove
2871 extraneous QUITs.
2872 * p-valprint.c (pascal_object_print_class_method): Likewise.
2873 * valops.c (search_struct_method): Likewise.
2874 (find_method_list, value_struct_elt_for_reference): Likewise.
2875
2876 2002-09-13 Andrew Cagney <cagney@redhat.com>
2877
2878 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2879 * gdbarch.h, gdbarch.c: Regenerate.
2880
2881 2002-09-13 Andrew Cagney <ac131313@redhat.com>
2882
2883 * frame.c (find_saved_register): Delete function.
2884 * frame.h (find_saved_register): Delete declaration.
2885 Fix PR gdb/631.
2886
2887 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2888
2889 * mips-tdep.c (read_next_frame_reg): Re-hack using
2890 frame_register_unwind.
2891
2892 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2893
2894 * mips-tdep.c (mips_get_saved_register): Re-hack using
2895 frame_register_unwind.
2896
2897 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2898
2899 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2900 vector. Will be useful for Interix.
2901 * gdbarch.h, gdbarch.c: Regenerate.
2902
2903 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2904 name of the malloc function by NAME_OF_MALLOC.
2905
2906 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2907
2908 * value.h (find_function_in_inferior): Add const keyword to
2909 one of the parameters. Allows us to invoke this function with
2910 a const char *.
2911 * valops.c (find_function_in_inferior): Likewise.
2912
2913 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2914
2915 * exec.c (xfer_memory): Fix compilation warning with old versions
2916 of GCC.
2917 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2918
2919 2002-09-12 David Carlton <carlton@math.stanford.edu>
2920
2921 * symtab.h: Run through gdb_indent.h.
2922 Add 2002 to Copyright year list.
2923
2924 2002-09-12 Alan Modra <amodra@bigpond.net.au>
2925
2926 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2927 mach constants.
2928 * MAINTAINERS: Add myself to write after approval list.
2929
2930 2002-09-11 J. Brobecker <brobecker@gnat.com>
2931
2932 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2933
2934 2002-09-11 J. Brobecker <brobecker@gnat.com>
2935
2936 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2937 Interix.
2938
2939 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2940
2941 * procfs.c (do_detach): Clear current signal, not just fault.
2942 Corrects problem with breakpoint trap signal leaking to detached
2943 process on Tru64.
2944
2945 2002-09-10 Michael Snyder <msnyder@redhat.com>
2946
2947 * buildsym.c (finish_block): Protect against null pointer.
2948
2949 2002-09-10 Andrew Cagney <cagney@redhat.com>
2950
2951 * infcmd.c (default_print_registers_info): Send all output to
2952 ``file'' instead of ``gdb_stdout''.
2953
2954 2002-09-10 Michael Snyder <msnyder@redhat.com>
2955
2956 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2957 LONGEST, and use signed register read (addresses are sign-
2958 extended for mips).
2959
2960 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2961
2962 * event-loop.c (gdb_do_one_event): Make public.
2963 * event-loop.h (gdb_do_one_event): Declare.
2964
2965 2002-09-10 Jeff Law <law@redhat.com>
2966
2967 * infttrace.c (child_resume): Simplify and rework to avoid
2968 TT_PROC_CONTINUE.
2969
2970 2002-09-09 Fred Fish <fnf@intrinsity.com>
2971
2972 * printcmd.c (print_scalar_formatted): "len" is the number of
2973 target bytes, NOT the number of target bits.
2974
2975 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
2976
2977 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2978 * top.c (init_main): Set rl_terminal_name.
2979
2980 2002-09-08 Aidan Skinner <aidan@velvet.net>
2981
2982 * ada-lang.c (ada_array_bound, ada_type_match,
2983 _initialize_ada_language): Fix K&R definitions.
2984 * ada-tasks.c (get_current_task): Fix K&R definitions.
2985 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2986
2987 2002-09-07 Christopher Faylor <cgf@redhat.com>
2988
2989 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2990 Add XP.
2991
2992 2002-09-06 Mark Kettenis <kettenis@gnu.org>
2993
2994 * i386-tdep.c (i386_register_virtual_type,
2995 i386_register_convertible, i386_register_convert_to_virtual,
2996 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2997 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2998 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2999 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3000 Don't set push_arguments twice.
3001
3002 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3003 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3004 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3005 sigtramp_end to NULL.
3006 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3007 defines.
3008 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3009
3010 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3011 whitespace.
3012
3013 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3014 * gdbarch.h, gdbarch.c: Re-generate.
3015 * blockframe.c (find_pc_sect_partial_function): Convert to use
3016 SIGTRAMP_START_P predicate.
3017
3018 2002-09-05 Michael Snyder <msnyder@redhat.com>
3019
3020 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3021 generic_dummy_frame method and old method. Also distinguish
3022 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3023 (arm_extract_return_value): Use new regcache method.
3024
3025 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3026 adjustment that doesn't conform to the ABI.
3027 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3028 saved regcache, not from current regcache.
3029
3030 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3031
3032 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3033 * README: Update.
3034
3035 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3036
3037 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3038 if arm_apcs_32 is false.
3039
3040 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3041
3042 GDB 5.3 branch created.
3043
3044 2002-09-03 Theodore A. Roth <troth@verinet.com>
3045
3046 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3047 generic_unwind_get_saved_register.
3048
3049 2002-09-03 David Carlton <carlton@math.stanford.edu>
3050
3051 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3052 argument (PR gdb/653). Update call to smash_to_method_type.
3053 (read_structure_scope): Update call to dwarf2_add_member_fn.
3054
3055 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3056
3057 * x86-64-linux-tdep.c: Include gdb_string.h
3058 * x86-64-linux-nat.c: Ditto.
3059
3060 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3061
3062 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3063 when YYDEBUG is set to 1.
3064 * c-exp.y: Likewise.
3065 * f-exp.y: Likewise.
3066 * jv-exp.y: Likewise.
3067 * m2-exp.y: Likewise.
3068 * p-exp.y: Likewise.
3069
3070 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3071
3072 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3073 dependency list.
3074 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3075 solib_svr4_fetch_link_map_offsets to
3076 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3077 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3078 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3079 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3080 solib-svr4.o, and solib-legacy.o.
3081 * config/i386/tm-nbsd.h: Include solib.h.
3082
3083 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3084
3085 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3086 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3087 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3088 comment noting that this needs its own target configuration.
3089 * config/i386/nbsd.mt: New file.
3090 * config/i386/nbsdaout.mt: Remove.
3091 * config/i386/nbsdelf.mt: Ditto.
3092 * config/i386/tm-nbsdaout.h: Ditto.
3093
3094 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3095
3096 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3097 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3098 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3099 tdep->sigtramp_end.
3100 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3101 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3102 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3103
3104 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3105
3106 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3107 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3108 * i386-tdep.h (i386bsd_init_abi): New prototype.
3109 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3110 function declaration.
3111 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3112 for NetBSD-a.out or NetBSD-ELF.
3113 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3114 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3115 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3116 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3117 and nbsd-tdep.h.
3118 (i386nbsd_pc_in_sigtramp): New function.
3119 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3120 i386nbsd_pc_in_sigtramp.
3121 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3122 and i386nbsdelf_init_abi OS ABI handlers.
3123 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3124 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3125
3126 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3127
3128 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3129 registers if the target really has them.
3130
3131 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3132
3133 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3134 than nbsd-tdep.h.
3135
3136 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3137
3138 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3139 list.
3140 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3141 (alphanbsd_skip_sigtramp_frame): New functions.
3142 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3143 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3144 to alphanbsd_sigcontext_addr.
3145
3146 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3147
3148 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3149 list.
3150 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3151 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3152 nbsd_pc_in_sigtramp.
3153 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3154 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3155 * nbsd-tdep.c: Include gdb_string.h.
3156 (nbsd_pc_in_sigtramp): New function.
3157 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3158 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3159 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3160 ppcnbsd_pc_in_sigtramp.
3161 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3162 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3163 shnbsd_pc_in_sigtramp.
3164 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3165 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3166 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3167
3168 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3169
3170 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3171 watchpoints to NULL.
3172 (insert_breakpoints): set val field of watchpoints if NULL.
3173
3174
3175 2002-08-29 Jim Blandy <jimb@redhat.com>
3176
3177 * symtab.c (lookup_symbol_aux): In the cases where we find a
3178 minimal symbol of an appropriate name and use its address to
3179 select a symtab to read and search, use `name' (as passed to us)
3180 as the demangled name when searching the symtab's global and
3181 static blocks, not the minsym's name.
3182
3183 2002-08-29 Keith Seitz <keiths@redhat.com>
3184
3185 * stack.c (print_frame_info_base): Always set current_source_symtab
3186 and current_source_line.
3187
3188 2002-08-29 Donn Terry <donnte@microsoft.com>
3189
3190 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3191
3192 2002-08-28 Keith Seitz <keiths@redhat.com>
3193
3194 * stack.c (select_frame): Add FIXME concerning selected-frame
3195 events.
3196 (select_frame_command): Send selected-frame-level-changed
3197 event notification, but only if the level actually changed.
3198 (up_silently_base): Add selected-frame-level-changed event
3199 notification.
3200 (down_silently_base): Likewise.
3201
3202 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3203
3204 * Makefile.in: Update dependencies for all gdb/*.c files.
3205
3206 2002-08-27 Tom Tromey <tromey@redhat.com>
3207
3208 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3209 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3210 Update dependencies.
3211 * i387-tdep.c: Include gdb_string.h.
3212 * osabi.c: Likewise.
3213 * i386-linux-nat.c: Likewise.
3214 * lin-lwp.c: Likewise.
3215 * ax-gdb.c: Likewise.
3216 * signals/signals.c: Likewise.
3217 * jv-valprint.c: Likewise.
3218 * p-lang.c: Likewise.
3219 * c-valprint.c: Likewise.
3220 * cp-abi.c: Likewise.
3221
3222 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3223
3224 * cli/cli-script.h (copy_command_lines): Export.
3225 * breakpoint.c: Include cli/cli-script.h.
3226 * Makefile.in (breakpoint.o): Update dependencies.
3227
3228 2002-08-26 Michael Snyder <msnyder@redhat.com>
3229
3230 * breakpoint.c (insert_breakpoints): Protect all references
3231 to 'process_warning'. Shorten long lines.
3232
3233 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3234
3235 * cli/cli-script.c (copy_command_lines): New function.
3236 * defs.h (copy_command_lines): Export.
3237 * testsuite/gdb.base/commands.exp: New tests for commands
3238 attached to a temporary breakpoint, and for commands that
3239 delete the breakpoint they are attached to.
3240
3241 2002-08-26 Michael Snyder <msnyder@redhat.com>
3242
3243 * breakpoint.c (bpstat_stop_status): Instead of copying the
3244 pointer to the breakpoint commands struct, make a new copy
3245 of the struct and point to that.
3246 (bpstat_clear): Free the commands struct.
3247 (bpstat_clear_actions): Free the commands struct.
3248 (bpstat_do_actions): Free the command actions. Also execute
3249 the local cleanups, instead of deleting them.
3250 (delete_breakpoint): Leave the commands field of the bpstat
3251 chain alone -- it will be freed later.
3252
3253 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3254
3255 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3256 deleted in 2002-08-20 commit. This function is still used by
3257 ppc-linux-nat.c.
3258
3259 2002-08-26 Keith Seitz <keiths@redhat.com>
3260
3261 * gdb-events.sh: Add selected-frame-level-changed event.
3262 * gdb-events.c: Regenerated.
3263 * gdb-events.h: Regenerated.
3264
3265 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3266
3267 Fix PR gdb/393:
3268 * inflow.c (terminal_save_ours): New function to save terminal
3269 settings.
3270 * inferior.h (terminal_save_ours): Declare.
3271 * target.c (debug_to_terminal_save_ours): New function.
3272 (cleanup_target): Defaults to_terminal_save_ours.
3273 (update_current_target): Inherit to_terminal_save_ours.
3274 (setup_target_debug): Set to_terminal_save_ours.
3275 * target.h (target_terminal_save_ours): New to save terminal settings.
3276 (target_ops): New member to_terminal_save_ours.
3277 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3278 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3279 * inftarg.c (init_child_ops): Likewise.
3280 * m3-nat.c (init_m3_ops): Likewise.
3281 * procfs.c (init_procfs_ops): Likewise.
3282 * wince.c (init_child_ops): Likewise.
3283 * win32-nat.c (init_child_ops): Likewise.
3284 * sol-thread.c (init_sol_thread_ops): Likewise.
3285
3286 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3287
3288 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3289 use regcache_* functions.
3290 (i386_gdbarch_init): Set store_return_value instead of
3291 deprecated_store_return_value.
3292
3293 * regcache.c (regcache_raw_write_signed,
3294 regcache_raw_write_unsigned): New functions.
3295 * regcache.h (regcache_raw_write_signed,
3296 regcache_raw_write_unsigned): New prototypes.
3297
3298 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3299
3300 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3301 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3302 source file dependencies. Cleanup corresponding generator rules.
3303
3304 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3305
3306 * regcache.h (register_offset_hack): Declare.
3307 (regcache_cooked_read_using_offset_hack): Declare.
3308 (regcache_cooked_write_using_offset_hack): Declare.
3309
3310 * regcache.c (register_offset_hack): New function.
3311 (regcache_cooked_read_using_offset_hack): New function.
3312 (regcache_cooked_write_using_offset_hack): New function.
3313 (regcache_dump): Check that the registers, according to their
3314 offset, are packed hard against each other.
3315 (cooked_xfer_using_offset_hack): New function.
3316
3317 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3318
3319 * regcache.c (struct regcache_descr): Add field register_type.
3320 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3321 in as a parameter
3322 (init_regcache_descr): Initialize register_type. Pass the descr
3323 to init_legacy_regcache_descr. Use register_type instead of
3324 REGISTER_VIRTUAL_TYPE.
3325 (register_type): New function.
3326 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3327 * regcache.h (register_type): Declare.
3328
3329 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3330
3331 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3332 instead of deprecated_store_return_value. Fix fallout from
3333 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3334
3335 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3336
3337 * regcache.c (max_register_size): New function.
3338 (init_legacy_regcache_descr): Ensure that max_register_size is
3339 large enough for REGISTER_VIRTUAL_SIZE.
3340 * regcache.h (max_register_size): Declare.
3341
3342 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3343
3344 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3345 store_return_value.
3346 (e500_extract_return_value): Change type of valbuf pointer to
3347 void.
3348
3349 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3350
3351 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3352 workaround.
3353
3354 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3355 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3356 long long) to prevent compiler warning on 64-bit systems.
3357
3358 2002-08-23 Andrew Cagney <cagney@redhat.com>
3359
3360 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3361 (DEPRECATED_STORE_RETURN_VALUE): New method.
3362 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3363 * gdbarch.h, gdbarch.c: Re-generate.
3364
3365 * values.c (set_return_value): Pass current_regcache to
3366 STORE_RETURN_VALUE.
3367 * arch-utils.h (legacy_store_return_value): Declare.
3368 * arch-utils.c (legacy_store_return_value): New function.
3369 (legacy_extract_return_value): Update parameters.
3370
3371 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3372 STORE_RETURN_VALUE.
3373 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3374 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3375 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3376 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3377 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3378 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3379 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3380 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3381 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3382 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3383
3384 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3385 * i386-tdep.c (i386_extract_return_value): Update.
3386 * arch-utils.c (legacy_extract_return_value): Update.
3387 * frv-tdep.c (frv_gdbarch_init): Update.
3388 * cris-tdep.c (cris_gdbarch_init): Update.
3389 * d10v-tdep.c (d10v_gdbarch_init): Update.
3390 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3391 * m68k-tdep.c (m68k_gdbarch_init): Update.
3392 * mcore-tdep.c (mcore_gdbarch_init): Update.
3393 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3394 * s390-tdep.c (s390_gdbarch_init): Update.
3395 * sparc-tdep.c (sparc_gdbarch_init): Update.
3396 * sh-tdep.c (sh_gdbarch_init): Update.
3397 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3398 * v850-tdep.c (v850_gdbarch_init): Update.
3399 * avr-tdep.c (avr_gdbarch_init): Update.
3400 * ia64-tdep.c (ia64_gdbarch_init): Update.
3401 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3402 * vax-tdep.c (vax_gdbarch_init): Update.
3403 * alpha-tdep.c (alpha_gdbarch_init): Update.
3404 * arm-tdep.c (arm_gdbarch_init): Update.
3405 * mips-tdep.c (mips_gdbarch_init): Update.
3406 * i386-tdep.c (i386_gdbarch_init): Update.
3407
3408 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3409
3410 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3411 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3412
3413 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3414
3415 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3416 problems.
3417
3418 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3419
3420 * infrun.c (handle_inferior_event): Move a comment outside of a
3421 function call, in order to avoid indent reformatting this part
3422 of the code in an unreadable way.
3423
3424 2002-08-23 Grace Sainsbury <graces@redhat.com>
3425
3426 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3427 when breakpoints fail. Move general breakpoint error messages to
3428 insert_breakpoints.
3429 * breakpoint.c (insert_breakpoints): Change warnings when
3430 breakpoints are nto inserted to specify the type. Remove call to
3431 memory_error when hardware breakpoints can't be inserted. Remove
3432 multiple calls to warning so all messages are sent to the user at
3433 once.
3434 (delete_breakpoints): Make insert error messsages more explicit.
3435
3436 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3437
3438 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3439 gdbserver/ChangeLog.
3440
3441 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3442
3443 * i386-tdep.c: Include "objfiles.h".
3444 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3445 skip_trampoline_code.
3446 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3447 (CPLUS_MARKER): Define to '.'.
3448
3449 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3450 member.
3451 (linux_corefile_thread_callback): Increase args->num_notes.
3452 (linux_make_note_section): Initialize thread_args.num_notes, and
3453 use it to determine whether notes for any threads were created.
3454
3455 2002-08-23 Donn Terry <donnte@microsoft.com>
3456
3457 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3458 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3459 and PCUNKILL.
3460 (write_with_trace): Conditionalize out the switch branch handling
3461 PCSHOLD if the corresponding macro is not defined. Likewise for
3462 PRSABORT and PRSTOP.
3463 This change will be needed by the Interix port.
3464
3465 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3466
3467 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3468 write_register wherever possible instead of manipulating the
3469 register bytes directly.
3470 Assign VALUE_CONTENTS to a variable and use that.
3471 The GPR numbers are now dependent on the architecture.
3472
3473 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3474
3475 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3476 ev_offset fields.
3477 (skip_prologue): Add support for BookE/e500 instructions.
3478 (e500_extract_return_value): New function.
3479 (frame_get_saved_regs): Add support for saving ev registers and
3480 pseudo gpr's.
3481 (e500_store_return_value): New function.
3482 (rs6000_gdbarch_init): Move up default intializations of
3483 deprecated_extract_return_value and store_return_value. Overwrite
3484 init of store_return_value with e500 specific version.
3485 Set extract_return_value for e500.
3486
3487 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3488
3489 * blockframe.c (generic_call_dummy_register_unwind): Use
3490 regcache_cooked_read to catch cases in which the variable is
3491 stored in a pseudo register.
3492
3493 2002-08-22 Andrew Cagney <cagney@redhat.com>
3494
3495 * NEWS: Mention that the i960 has been made obsolete.
3496 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3497 i960-tdep.c
3498 (remote-nrom.o): Obsolete target.
3499 (remote-nindy.o, i960-tdep.o): Ditto.
3500 * remote-nrom.c: Make file obsolete.
3501 * remote-nindy.c, remote-vx960.c: Ditto.
3502 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3503 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3504 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3505 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3506 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3507 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3508 i960-*-vxworks* obsolete.
3509 * MAINTAINERS: Note that the i960 is obsolete.
3510
3511 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3512
3513 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3514 detach to allow reinitialization.
3515
3516 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3517
3518 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3519 attempt).
3520
3521 2002-08-22 Jim Blandy <jimb@redhat.com>
3522
3523 * coffread.c (coff_symfile_read): Don't try to read the line
3524 number table from disk if the image file doesn't have a symbol
3525 table; we'll never actually look at the info anyway, and Windows
3526 ships DLL's with bogus file offsets for the line number data.
3527
3528 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3529
3530 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3531 an e500 executable.
3532
3533 2002-08-21 Michael Snyder <msnyder@redhat.com>
3534
3535 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3536 (MSYMBOL_SIZE): Replace macro with function.
3537 (DEFAULT_MIPS_TYPE): Delete unused macro.
3538 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3539 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3540
3541 2002-08-21 Jim Blandy <jimb@redhat.com>
3542
3543 * valops.c (value_cast): Simplify and correct logic for doing a
3544 static cast from a pointer to a base class to a pointer to a
3545 derived class.
3546
3547 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3548
3549 * infcmd.c (default_print_registers_info): Replace
3550 do_registers_info.
3551 (registers_info): Use gdbarch_print_registers_info instead of
3552 DO_REGISTERS_INFO.
3553 * inferior.h (default_print_registers_info): Replace
3554 do_registers_info.
3555 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3556 (DO_REGISTERS_INFO): Change to a predicate function.
3557 * gdbarch.h, gdbarch.c: Regenerate.
3558
3559 2002-08-21 Keith Seitz <keiths@redhat.com>
3560
3561 * gdb-events.sh: Add target-changed event.
3562 * gdb-events.c: Regenerated.
3563 * gdb-events.c: Regenerated.
3564 * valops.c (value_assign): Add target-changed event notification
3565 to inlval_register, lval_memory, and lval_reg_frame_relative.
3566
3567 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3568
3569 * NEWS: Add an entry regarding the improvement of the next/step
3570 operation on Alpha Tru64 multi-processor machines.
3571
3572 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3573
3574 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3575 directores.
3576 * Makefile.in: Update all _h macro definitions.
3577 * Makefile.in (install-gdbtk): Move to install section.
3578 (rdi-share/libangsd.a): Move to end of file.
3579
3580 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3581
3582 * frame.c (frame_register_unwind): When a register, set addrp to
3583 the register's byte.
3584
3585 2002-08-20 Michael Snyder <msnyder@redhat.com>
3586
3587 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3588 used locally, so move them from the target machine header to here.
3589 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3590 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3591 Make static.
3592 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3593
3594 2002-08-20 Andrew Cagney <cagney@redhat.com>
3595
3596 * NEWS: Mention that the Apollo line was made obsolete.
3597 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3598 m68*-hp-hpux* obsolete.
3599 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3600 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3601 * buildsym.c (make_blockvector): Make static.
3602 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3603 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3604 (ALLDEPFILES): Remove dstread.c.
3605 (dstread.o): Obsolete make rule.
3606 * dstread.c: Makefile obsolete.
3607 * dst.h: Ditto.
3608 * config/m68k/hp300hpux.mt: Ditto.
3609 * config/m68k/hp300hpux.mh: Ditto.
3610 * config/m68k/hp300bsd.mt: Ditto.
3611 * config/m68k/hp300bsd.mh: Ditto.
3612 * config/m68k/apollo68b.mt: Ditto.
3613 * config/m68k/apollo68v.mh: Ditto.
3614 * config/m68k/apollo68b.mh: Ditto.
3615
3616 2002-08-20 Michael Snyder <msnyder@redhat.com>
3617
3618 * mips-tdep.c (mips_in_return_stub): Make static.
3619 (mips_gdbarch_init): Set in_solib_return_trampoline.
3620 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3621
3622 2002-08-20 Michael Snyder <msnyder@redhat.com>
3623
3624 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3625 * gdbarch.c, gdbarch.h: Regenerate.
3626 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3627 Add.
3628 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3629
3630 2002-08-20 Michael Snyder <msnyder@redhat.com>
3631
3632 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3633 (mips_gdbarch_init): Set skip_trampoline_code,
3634 in_solib_call_trampoline.
3635 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3636 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3637
3638 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3639
3640 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3641
3642 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3643 vector type for ev registers.
3644 (e500_pseudo_register_read): New function.
3645 (e500_pseudo_register_write): New function.
3646 (e500_dwarf2_reg_to_regnum): New function.
3647 (PPC_UISA_NOFP_SPRS): New macro.
3648 (PPC_EV_REGS): New macro.
3649 (PPC_GPRS_PSEUDO_REGS): New macro.
3650 (registers_e500): New register set for e500.
3651 (variants): Add e500 variant.
3652 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3653 before setting architectural dependent variations. Initialize ev
3654 registers numbers. Add case for e500 architecture. Set the
3655 number of pseudo registers.
3656
3657 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3658
3659 * rs6000-tdep.c: Clean up comments.
3660
3661 2002-08-20 Andrew Cagney <cagney@redhat.com>
3662
3663 * h8300-tdep.c: Re-indent file.
3664
3665 2002-08-20 Jim Blandy <jimb@redhat.com>
3666
3667 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3668 default for this.
3669
3670 2002-08-20 Keith Seitz <keiths@redhat.com>
3671
3672 * breakpoints.c (watch_command_1): Use internal breakpoint
3673 when setting a watchpoint_scope breakpoint.
3674
3675 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3676
3677 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3678 (build_builtin_type_vec64i): Ditto.
3679 (build_builtin_type_vec128): Ditto.
3680 (build_builtin_type_vec128i): Ditto.
3681
3682 2002-08-19 Michael Snyder <msnyder@redhat.com>
3683
3684 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3685 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3686 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3687 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3688 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3689 CALL_DUMMY_ADDRESS): Delete.
3690 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3691 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3692 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3693 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3694 push_return_address.
3695 (mips_register_raw_size, mips_eabi_use_struct_convention,
3696 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3697 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3698 mips_init_extra_frame_info, mips_eabi_push_arguments,
3699 mips_n32n64_push_arguments, mips_push_return_address,
3700 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3701 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3702
3703 2002-08-19 Michael Snyder <msnyder@redhat.com>
3704
3705 * mips-tdep.c (mips_frame_num_args): New function.
3706 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3707 frame_saved_pc, frame_args_address, frame_locals_address,
3708 frame_num_args, and frame_args_skip.
3709 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3710 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3711 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3712 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3713
3714 2002-08-20 Michael Snyder <msnyder@redhat.com>
3715
3716 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3717 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3718 * mips-tdep.c (mips_store_struct_return): New function.
3719 (mips_extract_struct_value_address): New function.
3720 (mips_gdbarch_init): Set store_struct_return and
3721 extract_struct_value_address.
3722
3723 2002-08-20 David Carlton <carlton@math.stanford.edu>
3724
3725 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3726 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3727 (read_file_scope): Check that line_header is nonzero before
3728 decoding macro information.
3729
3730 2002-08-20 Mark Kettenis <kettenis@gnu.org>
3731
3732 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3733 flag the general-purpose registers as floating-point on targets
3734 that don't support the floating-point registers.
3735
3736 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3737
3738 * rs6000-tdep.c (altivec_register_p): Delete.
3739 (rs6000_do_altivec_registers): Delete.
3740 (rs6000_altivec_registers_info): Delete.
3741 (rs6000_do_registers_info): Delete.
3742 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3743 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3744
3745 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3746
3747 * infcmd.c (do_registers_info): Print vector registers in hex
3748 format only.
3749 (print_vector_info): Check that printing registers
3750 makes sense.
3751 (print_float_info): Ditto.
3752
3753 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3754
3755 * mips-tdep.c (mips_gdbarch_init): Update.
3756 (mips_o32_extract_return_value): Rewrite.
3757 (mips_o32_store_return_value): Rewrite.
3758 (mips_o32_xfer_return_value): New function.
3759 (mips_xfer_register): Tweak debug print message. Allow for
3760 buf_offset when dumping the value transfered.
3761
3762 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3763
3764 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3765 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3766 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3767 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3768 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3769
3770 2002-08-14 Michael Snyder <msnyder@redhat.com>
3771
3772 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3773
3774 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3775
3776 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3777 register.
3778 (P): New macro to define a register as a pseudo register.
3779 (R, R4, R8, R16, FR32, R64, R0): Updated.
3780 (struct variant): Add new fields for number of pseudo registers
3781 and number of total registers.
3782 (tot_num_registers): New macro replacing....
3783 (num_registers): ...deleted macro.
3784 (num_registers): New function.
3785 (num_pseudo_registers): New function.
3786 (variants): Update all variants to intialize new fields correctly.
3787 Postpone initialization of number of pseudo regs and real regs.
3788 (init_variants): New function.
3789 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3790 registers offsets.
3791
3792 2002-08-19 David Carlton <carlton@math.stanford.edu>
3793
3794 * valops.c (search_struct_field): Change error message to treat
3795 return value of 0 from value_static_field as meaning that field is
3796 optimized out.
3797 (value_struct_elt_for_reference): Ditto.
3798 * values.c (value_static_field): Treat an unresolved location the
3799 same as a nonexistent symbol. Fix PR gdb/635.
3800 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3801 enclosed. Fix PR gdb/574.
3802 * MAINTAINERS: Add self to Write After Approval list.
3803
3804 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3805
3806 * mips-tdep.c (mips_xfer_register): New function.
3807 (mips_n32n64_extract_return_value): Rewrite.
3808 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3809 instead of deprecated_extract_return_value.
3810
3811 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3812
3813 * rs6000-tdep.c (TDEP): Delete macro.
3814 (branch_dest): Replace use of TDEP macro with its body.
3815 (rs6000_pop_frame): Ditto.
3816 (rs6000_push_arguments): Ditto.
3817 (rs6000_skip_trampoline_code): Ditto.
3818 (rs6000_frame_saved_pc): Ditto.
3819 (rs6000_frame_chain): Ditto.
3820 (rs6000_register_name): Ditto.
3821 (rs6000_register_byte): Ditto.
3822 (rs6000_register_raw_size): Ditto.
3823 (rs6000_register_virtual_type): Ditto.
3824 (rs6000_register_convertible): Ditto.
3825 (rs6000_convert_from_func_ptr_addr): Ditto.
3826
3827 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
3828
3829 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3830 conditionally.
3831 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3832 MIPS_LINUX_JB_ELEMENT_SIZE.
3833 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3834 for MAX_REGISTER_RAW_SIZE arrays.
3835 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3836 MIPS_LINUX_JB_ELEMENT_SIZE.
3837
3838 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3839
3840 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3841
3842 2002-08-19 Aidan Skinner <aidan@velvet.net>
3843
3844 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3845 ada-valprint.c ada-tasks.c.
3846 (YYFILES): Add ada-exp.y.
3847 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3848 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3849 (ada-exp.tab.o): New target.
3850
3851 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3852
3853 * regcache.c (regcache_xfer_part): New function.
3854 (regcache_raw_read_part): New function.
3855 (regcache_raw_write_part): New function.
3856 (regcache_cooked_read_part): New function.
3857 (regcache_cooked_write_part): New function.
3858 * regcache.h (regcache_raw_read_part): Declare.
3859 (regcache_raw_write_part): Declare.
3860 (regcache_cooked_read_part): Declare.
3861 (regcache_cooked_write_part): Declare.
3862
3863 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
3864
3865 * remote.c (remote_open_1): Add async_p.
3866 (remote_async_open_1): Delete.
3867 (open_remote_target): Delete.
3868 (remote_open, extended_remote_open): Update calls to remote_open_1.
3869 (remote_async_open, extended_remote_async_open): Call
3870 remote_open_1 instead of remote_async_open_1.
3871
3872 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3873
3874 * blockframe.c: Fix a few coding standard violations.
3875
3876 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3877
3878 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3879 here from ...
3880 * config/i386/tm-i386sco5.h: ... here. File removed.
3881 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3882
3883 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
3884 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3885 (TM_FILE): Set to tm-i386.h.
3886 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3887 * config/i386/tm-i386v.h: Remove file.
3888 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3889 instead of "i386/tm-i386v.h".
3890 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3891 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3892 "i386/tm-i386v.h".
3893 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3894 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3895 "i386/tm-i386.h".
3896
3897 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3898
3899 * config/i386/nm-i386v.h: Add protection against
3900 multiple-inclusion.
3901 (i386_register_u_addr): Remove prototype.
3902 (register_u_addr): New prototype.
3903 (REGISTER_U_ADDR): Redefine accordingly.
3904 * i386v-nat.c: Improve several comments.
3905 (i386_register_u_addr): Change signature and rename to
3906 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3907 ubase variable.
3908
3909 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3910
3911 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3912 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3913 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3914 deprecated_extract_return_value.
3915 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3916 rename mips_o32o64_push_arguments.
3917 (mips_gdbarch_init): Update.
3918 (mips_extract_return_value): Delete.
3919 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3920 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3921 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3922 (mips_n32n64_extract_return_value): Clone
3923 mips_extract_return_value.
3924 (mips_store_return_value): Delete.
3925 (mips_o32_store_return_value): Clone mips_store_return_value.
3926 (mips_o64_store_return_value): Clone mips_store_return_value.
3927 (mips_eabi_store_return_value): Clone mips_store_return_value.
3928 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3929
3930 2002-08-18 Aidan Skinner <aidan@velvet.net>
3931
3932 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3933 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3934
3935 2002-08-18 Aidan Skinner <aidan@velvet.net>
3936
3937 * ada-lang.c: Run through gdb_indent.sh.
3938 * ada-lang.h: Run through gdb_indent.sh.
3939 * ada-tasks.c: Run through gdb_indent.sh.
3940 * ada-typeprint.c: Run through gdb_indent.sh.
3941 * ada-valprint.c: Run through gdb_indent.sh.
3942
3943 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3944
3945 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3946 ABI.
3947
3948 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3949
3950 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3951
3952 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3953 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3954
3955 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3956 write_register_gen instead of write_register_bytes.
3957
3958 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3959 i[3456]-*-osf1mk* configurations have been made obsolete.
3960 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3961 i[3456]86-*-osf1mk* hosts obsolete.
3962 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3963 targets obsolete.
3964 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3965 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3966 config/i386/i386m3.mt, config/i386/nm-m3.h,
3967 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3968 config/i386/i386mk.mh, config/i386/i386mk.mt,
3969 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3970 obsolete.
3971 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3972 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3973 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3974
3975 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3976
3977 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3978 (hppa_value_returned_from_stack): Declare.
3979 (hppa_extract_return_value): Declare.
3980 * config/pa/hppa.mt: New file.
3981 * configure.tgt: Recognize hppa*-*-*.
3982 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3983
3984 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3985
3986 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3987 comment.
3988
3989 2002-08-17 Mark Kettenis <kettenis@gnu.org>
3990
3991 * top.c (gdb_rl_operate_and_get_next): Make sure
3992 operate-and-get-next functions correctly even when the history
3993 list is completely filled.
3994
3995 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3996
3997 * MAINTAINERS (Target Instruction Set Architectures): Rename
3998 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3999 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4000 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4001 already listed under Host/Native.
4002
4003 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4004 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4005 mips*-*-*.
4006
4007 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4008
4009 * config/ia64/ia64.mt: New file.
4010 * config/alpha/alpha.mt: New file.
4011 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4012 ia64-linux-gnu. Mention that ia64-elf is broken.
4013 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4014
4015 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4016
4017 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4018 generic_func_frame_valid instead of func_frame_valid.
4019
4020 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4021
4022 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4023 procfs appears to be broken when debugging on multi-processor
4024 machines. So enable software single stepping in order to avoid
4025 using the procfs interface to do next/step operations, using
4026 internal breakpoints instead.
4027
4028 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4029 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4030 make this pc address equal to the value it would have if the
4031 system stepping capability was used. Also set a new flag used
4032 to ensure that we don't readjust the PC one more time later.
4033
4034 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4035 address by DECR_PC_AFTER_BREAK when software single step is
4036 in use for this architecture, as this has already been taken
4037 care of in handle_inferior_event().
4038
4039 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4040
4041 * infrun.c (handle_inferior_event): Minor reformatting, to make
4042 a rather long condition expression easier to read.
4043
4044 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4045
4046 * Makefile.in (gdbtk.o): Move to end of file.
4047 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4048 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4049 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4050 (gdbtk-wrapper.o, gdbres.o): Ditto.
4051
4052 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4053
4054 * Makefile.in (copying.o): Separate out compile rule.
4055 (hpux-thread.o, procfs.o, signals.o): Ditto.
4056 (v850ice.o, z8k-tdep.o): Ditto.
4057 (tui-file.o): Move to TUI section.
4058 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4059 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4060
4061 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4062
4063 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4064 skip_trampoline_code, for better namespace-proofing.
4065
4066 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4067
4068 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4069
4070 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4071
4072 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4073
4074 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4075 signal, check whether we hit a breakpoint before checking for a
4076 single step breakpoint. Otherwise, GDB fails to notice that a
4077 breakpoint has been hit when stepping onto a breakpoint.
4078
4079 2002-08-16 Keith Seitz <keiths@redhat.com>
4080
4081 * gdb-events.sh (clear_gdb_event_hooks): New function.
4082 * gdb-events.c: Regenerate.
4083 * gdb-events.h: Regenerate.
4084
4085 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4086
4087 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4088 not_a_sw_breakpoint.
4089 * breakpoint.h (bpstat_stop_status): Add parameter names.
4090
4091 2002-08-16 Grace Sainsbury <graces@redhat.com>
4092
4093 * remote.c (remote_insert_hw_breakpoint)
4094 (remote_remove_hw_breakpoint): Fix calculation of length field
4095 for Z-packet.
4096
4097 2002-08-15 Michael Snyder <msnyder@redhat.com>
4098
4099 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4100 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4101 (supply_fpregset): Ditto.
4102
4103 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4104 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4105 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4106 (TARGET_READ_SP): Delete.
4107 (DO_REGISTERS_INFO): Delete.
4108 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4109 Delete.
4110 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4111 from macros to functions.
4112
4113 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4114 (mips_register_convertible, mips_register_convert_to_virtual,
4115 mips_register_convert_to_raw): Make static.
4116 (mips_read_sp): New function.
4117 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4118 (mips_do_registers_info): Make static.
4119 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4120 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4121 (mips_register_convert_from_type, mips_register_convert_to_type):
4122 New functions.
4123 (mips_gdbarch_init): Set up function_start_offset,
4124 register_virtual_size, pc_in_sigtramp.
4125
4126 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4127
4128 * infcmd.c (vector_info): New function.
4129 (_initialize_infcmd): Add command "info vector".
4130 (print_vector_info): New function.
4131
4132 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4133 * gdbarch.h, gdbarch.c: Regenerate.
4134
4135 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4136
4137 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4138 ``print_all''. Only print vector registers when ``print_all''.
4139
4140 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4141
4142 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4143 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4144
4145 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4146 Add `args' parameter.
4147 * gdbarch.h, gdbarch.c: Regenerate.
4148
4149 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4150
4151 * infcmd.c (float_info): Call print_float_info.
4152 (print_float_info): New function. By default, print the
4153 floating-point registers.
4154
4155 * arch-utils.h (default_print_float_info): Delete declaration.
4156 * arch-utils.c (default_print_float_info): Delete function.
4157
4158 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4159
4160 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4161 out define.
4162
4163 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4164 FRAME.
4165
4166 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4167 * configure.host: Make i[3456]86-*-aix host obsolete.
4168 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4169 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4170 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4171 config/i386/xm-i386aix.h: Make files obsolete.
4172 * i386aix-nat.c: Make file obsolete.
4173 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4174 (i386aix-nat.o): Make target obsolete.
4175
4176 * config/i386/nm-gnu.h: Removed.
4177 * config/i386/nm-i386gnu.h: New file.
4178 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4179 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4180 Moved here from ...
4181 * config/i386/tm-i386gnu.h: ... here. Removed.
4182 * config/i386/xm-i386gnu.h: Removed.
4183 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4184 (NAT_FILE): Set to nm-i386gnu.h.
4185 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4186 * i386-tdep.c: New file.
4187 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4188 (i386gnu-tdep.o): Specify dependencies.
4189
4190 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4191
4192 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4193 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4194 Adjust a few comments to reflect reality a bit closer.
4195 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4196 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4197 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4198 target_insert_watchpoint, target_remove_watchpoint):
4199 Move defines to ...
4200 * config/i386/nm-i386sco5.h: ... here.
4201 (kernel_u_size): Add prototype. Improve a few comments and add
4202 protection against multiple inclusion.
4203
4204 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4205 out define.
4206
4207 * uw-thread.c (SP_ARG0): Define if not already defined.
4208 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4209
4210 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4211
4212 * config/i386/tm-i386.h: Don't include "regcache.h".
4213
4214 * i387-tdep.h (i387_print_float_info): New prototype.
4215 * i387-tdep.c (print_i387_value, print_i387_ext,
4216 print_i387_status_word, print_i387_control_word): Add `struct
4217 ui_file *' argument and use it for output.
4218 (i387_print_float_info): Renamed from i387_float_info. Add
4219 `struct gdbarch *' and `struct ui_file *' arguments and use the
4220 latter for output.
4221 * i386-tdep.c: Include "i387-tdep.h".
4222 (i386_gdbarch_init): Set print_float_info.
4223 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4224 (FLOAT_INFO): Remove define.
4225
4226 2002-08-13 Michael Snyder <msnyder@redhat.com>
4227
4228 * mips-tdep.c (mips_push_arguments): Rename to
4229 mips_eabi_push_arguments, and tune for EABI.
4230 (MIPS_REGS_HAVE_HOME_P): Delete.
4231 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4232 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4233 Delete references to mips_regs_have_home_p.
4234
4235 2002-08-14 Keith Seitz <keiths@redhat.com>
4236
4237 * Makefile.in (install-gdbtk): Create insight plugin directory.
4238 Install plugins.tcl file.
4239
4240 2002-08-14 Keith Seitz <keiths@redhat.com>
4241
4242 * configure.in: Move SUBDIRS to near top of the file so that
4243 --enable options may add things to it.
4244 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4245 * configure: Regenerate.
4246
4247 2002-08-13 Michael Snyder <msnyder@redhat.com>
4248
4249 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4250 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4251 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4252
4253 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4254
4255 * vax-tdep.c (vax_get_saved_register): Delete function.
4256 (vax_gdbarch_init): Update.
4257 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4258 (ns32k_gdbarch_init): Update.
4259 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4260 (alpha_gdbarch_init): Update.
4261
4262 2002-08-13 Andrew Cagney <cagney@redhat.com>
4263
4264 * regcache.c (init_regcache_descr): Overallocate the
4265 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4266 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4267 nr_raw_registers.
4268 (set_register_cached): Add range checking assertions. Use
4269 current_regcache.
4270
4271 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4272
4273 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4274 numbers for MMX registers.
4275
4276 2002-08-13 Andrew Cagney <cagney@redhat.com>
4277
4278 * i386-tdep.c (i386_gdbarch_init): Use
4279 generic_unwind_get_saved_register.
4280
4281 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4282
4283 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4284 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4285 target vector.
4286 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4287 Delete. Add comment regarding this now-deleted target method.
4288
4289 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4290
4291 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4292 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4293 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4294 real PC and the page number (if it's within the memory bank window).
4295 (m68hc11_pseudo_register_write): Likewise when saving.
4296 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4297 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4298 (m68hc11_register_raw_size): And use 32-bit for it.
4299 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4300 16K memory bank is used by the prog; also use the virtual pc.
4301
4302 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4303
4304 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4305 (m68hc11_gdbarch_init): Install it in gdbarch.
4306 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4307 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4308 (MSYMBOL_SIZE): New for documentation.
4309 (insn_return_kind): Enum to specify how a function returns.
4310 (frame_extra_info): Cleanup and record the return mode.
4311 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4312 register in address computation.
4313 (m68hc11_get_return_insn): New to obtain the return instruction used
4314 by the function.
4315 (m68hc11_frame_init_saved_regs): Take into account the return
4316 instruction used by the function for far and interrupt functions.
4317 (m68hc11_init_extra_frame_info): Take into account page register.
4318 (m68hc11_frame_args_address): Adjust according to the return mode.
4319 (show_regs): Print page register only when it's used.
4320
4321 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4322
4323 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4324 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4325 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4326 registers.
4327 (m68hc11_register_raw_size): Likewise.
4328
4329 2002-08-13 Andrew Cagney <cagney@redhat.com>
4330
4331 * i386-tdep.c (i386_register_name): Handle mmx registers.
4332 (mmx_regnum_p): New function.
4333 (i386_mmx_names): New array.
4334 (mmx_num_regs): New variable.
4335 (i386_pseudo_register_read): New function.
4336 (i386_pseudo_register_write): New function.
4337 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4338
4339 * regcache.c (regcache_raw_read_unsigned): New function.
4340 (regcache_raw_read_signed): New function.
4341 * regcache.h (regcache_raw_read_unsigned): Declare.
4342 (regcache_raw_read_signed): Declare.
4343
4344 2002-08-13 Andrew Cagney <cagney@redhat.com>
4345
4346 * regcache.c (regcache_raw_read_as_address): Delete function.
4347 (regcache_cooked_read_signed): New function.
4348 (regcache_cooked_read_unsigned): New function.
4349 * regcache.h (regcache_cooked_read_signed): Declare.
4350 (regcache_cooked_read_unsigned): Declare.
4351 (regcache_raw_read_as_address): Delete declaration.
4352
4353 * blockframe.c (generic_read_register_dummy): Use
4354 regcache_cooked_read_unsigned.
4355 * i386-tdep.c (i386_extract_struct_value_address): Use
4356 regcache_cooked_read_unsigned.
4357
4358 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4359
4360 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4361 double sizes according to ELF ABI flags.
4362 (gdbarch_tdep): Record elf_flags.
4363
4364 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4365
4366 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4367 (m6812_prolog): They can appear in 68HC12 function prologue.
4368 (m68hc11_frame_chain): Cleanup.
4369
4370 2002-08-12 Andrew Cagney <cagney@redhat.com>
4371
4372 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4373 declarations.
4374 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4375 (i386_linux_register_raw_size): Delete function.
4376 (i386_linux_init_abi): Update.
4377 * i386-tdep.c (i386_register_raw_size): Delete function.
4378 (i386_register_byte): Delete function.
4379 (i386_gdbarch_init): Update.
4380 (i386_register_size): Delete array.
4381 (i386_register_offset): Delete array.
4382
4383 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4384 (REGISTER_RAW_SIZE): Delete macro.
4385 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4386 (REGISTER_BYTE): Delete macro.
4387
4388 2002-08-11 Aidan Skinner <aidan@velvet.net>
4389
4390 * ada-lang.c (ada_lookup_partial_symbol)
4391 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4392 prototype names so that grep ^func works properly.
4393
4394 * ada-lang.c (ada_array_element_type)
4395 (ada_lookup_partial_symbol): Fix typos in parameter list.
4396
4397 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4398 Fix prototype names so that grep ^func works properly.
4399
4400 2002-08-10 Andrew Cagney <cagney@redhat.com>
4401 Elena Zannoni <ezannoni@redhat.com>
4402 Martin M. Hunt <hunt@redhat.com>
4403
4404 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4405 (build_builtin_type_vec128i): Set the vector bit.
4406 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4407 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4408 (build_builtin_type_vec64): New function.
4409 (build_builtin_type_vec64i): New function.
4410 (build_gdbtypes): Initialize builtin_type_vec64 and
4411 builtin_type_vec64i.
4412
4413 2002-08-09 Andrew Cagney <cagney@redhat.com>
4414
4415 * regcache.c (regcache_dump): Compare the register offset
4416 with REGISTER_BYTE.
4417 * arch-utils.c (generic_register_byte): New function.
4418 * arch-utils.h (generic_register_byte): Declare.
4419 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4420 * gdbarch.h, gdbarch.c: Regenerate.
4421
4422 2002-08-09 Andrew Cagney <cagney@redhat.com>
4423
4424 * regcache.c: Include "gdbcmd.h"
4425 (_initialize_regcache): Add commands "maintenance print
4426 registers", "maintenance print raw-registers" and "maintenance
4427 print cooked-registers".
4428 (enum regcache_dump_what): Define.
4429 (dump_endian_bytes): New function.
4430 (regcache_dump): New function.
4431 (regcache_print): New function.
4432 (maintenance_print_registers): New function.
4433 (maintenance_print_raw_registers): New function.
4434 (maintenance_print_cooked_registers): New function.
4435 * Makefile.in (regcache.o): Update dependencies.
4436
4437 2002-08-09 Michael Snyder <msnyder@redhat.com>
4438
4439 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4440 (mips_push_arguments): Correct some comments. Use paddr_nz
4441 for printing addresses in debug output. Replace static
4442 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4443 (mips_n32n64_push_arguments): New function, cloned from
4444 mips_push_arguments and tuned for the n32/n64 ABI.
4445 (mips_push_register): Buffer needs dynamic allocation.
4446 (mips_print_register): Ditto.
4447 (do_gp_register_row): Ditto.
4448 (mips_store_return_value): Ditto.
4449 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4450
4451 2002-08-09 Don Howard <dhoward@redhat.com>
4452
4453 * memattr.c (mem_info_command): Print special case of upper bound
4454 as max CORE_ADDR + 1.
4455
4456 2002-08-08 Michael Snyder <msnyder@redhat.com>
4457
4458 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4459 returns structs by ref if they're too big to fit in two registers.
4460
4461 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4462
4463 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4464 saved regs value.
4465 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4466 mips_find_saved_regs().
4467 (mips_pop_frame): Likewise.
4468
4469 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4470
4471 * blockframe.c (frame_saved_regs_register_unwind): Revise
4472 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4473 frames are in use.
4474
4475 2002-08-09 Grace Sainsbury <graces@redhat.com>
4476
4477 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4478 T-packets; the 'a' is not taken as a register number.
4479 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4480 (remote_stopped_data_address): New functions; add to target
4481 vector.
4482 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4483 prototypes to match other implementations of this
4484 function. replace integer argument with pointer -- the length
4485 field in the Z-packet is the length of what is pointed to or 1 if
4486 pointer is null. Add to target vector.
4487 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4488 target vector.
4489
4490 From Mark Salter:
4491 * remote.c (remote_wait): Add support to extract optional
4492 watchpoint information from T-packet. Ignore unrecognized
4493 optional info in T-packet.
4494 (remote_async_wait): Ditto.
4495
4496 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4497
4498 * cli/cli-dump.c: Change fopen modes to use binary open modes
4499 as defined in include/fopen-bin.h throughout.
4500
4501 2002-08-08 Michael Snyder <msnyder@redhat.com>
4502
4503 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4504
4505 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4506
4507 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4508 assertion failure by returning early after a warning.
4509
4510 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4511
4512 * mips-tdep.c (mips_find_saved_regs): Make static.
4513 (mips_frame_init_saved_regs): New function.
4514 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4515 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4516 (mips_find_saved_regs): Delete declaration.
4517
4518 2002-08-08 Grace Sainsbury <graces@redhat.com>
4519
4520 * remote.c (remote_wait, remote_async_wait): Change
4521 thread_num from int to ULONGEST.
4522 (unpack_varlen_hex): Change result parameter from
4523 int * to ULONGEST *.
4524
4525 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4526
4527 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4528 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4529 powerpc*-*-*.
4530 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4531
4532 2002-08-08 Andrew Cagney <cagney@redhat.com>
4533
4534 * gcore.c (override_derive_stack_segment): Delete variable.
4535 (preempt_derive_stack_segment): Delete function.
4536 (derive_stack_segment): Delete function.
4537 (default_derive_stack_segment): Renamed to derive_stack_segment.
4538 (override_derive_heap_segment): Delete variable.
4539 (preempt_derive_heap_segment): Delete function.
4540 (derive_heap_segment): Delete function.
4541 (default_derive_heap_segment): Rename to derive_heap_segment.
4542
4543 2002-08-06 Michael Snyder <msnyder@redhat.com>
4544
4545 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4546 * mips-tdep.c (mips_EABI_use_struct_convention,
4547 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4548 New functions. (mips_use_struct_convention): Delete.
4549 (mips_gdbarch_init): set use_gdbarch_convention.
4550
4551 2002-08-06 Michael Snyder <msnyder@redhat.com>
4552
4553 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4554 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4555 mips_o32_reg_struct_has_addr): New functions.
4556 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4557
4558 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4559
4560 * regcache.c (pseudo_register): Delete function.
4561 (fetch_register): Delete function.
4562 (store_register): Delete function.
4563 (regcache_raw_read, legacy_read_register_gen): Use
4564 target_fetch_registers instead of fetch_register.
4565 (legacy_write_register_gen, regcache_raw_write): Use
4566 target_store_register instead of store_register.
4567 (write_register_bytes): Ditto.
4568
4569 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4570 (STORE_PSEUDO_REGISTER): Delete.
4571 * gdbarch.h, gdbarch.c: Regenerate.
4572
4573 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4574
4575 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4576 write dump file binary.
4577
4578 2002-08-05 Michael Snyder <msnyder@redhat.com>
4579
4580 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4581 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4582 (mips_gdbarch_init): Set N32 target to be mips64.
4583
4584 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4585
4586 * frame.c (find_saved_register): Break out of loop once saved
4587 register address is found. Don't mention sparc in loop comment
4588 anymore.
4589
4590 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4591
4592 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4593 mips_default_saved_regsize to 8.
4594
4595 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4596
4597 * gcore.c: Do not include <sys/procfs.h>.
4598 * Makefile.in (gcore.o): Update dependencies.
4599
4600 2002-08-06 Andrew Cagney <cagney@redhat.com>
4601
4602 * configure.tgt: Make arc-*-* obsolete.
4603 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4604 * MAINTAINERS: Make arc-elf obsolete.
4605 * arc-tdep.c: Make file obsolete.
4606 * config/arc/arc.mt: Ditto.
4607 * config/arc/tm-arc.h: Ditto.
4608
4609 2002-08-05 Theodore A. Roth <troth@verinet.com>
4610
4611 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4612
4613 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4614
4615 * mcore-tdep.c (mcore_gdbarch_init): Use
4616 generic_unwind_get_saved_register instead of
4617 generic_get_saved_register.
4618 * v850-tdep.c (v850_gdbarch_init): Ditto.
4619 * frv-tdep.c (frv_gdbarch_init): Ditto.
4620 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4621 * s390-tdep.c (s390_gdbarch_init): Ditto.
4622 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4623 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4624 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4625
4626 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4627
4628 * objfiles.h: Add missing #include "symfile.h"
4629
4630 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4631
4632 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4633
4634 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4635 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4636 of FIELD_BITSIZE.
4637
4638 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4639
4640 * NEWS: Cleanup and nitpick.
4641
4642 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4643
4644 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4645
4646 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4647
4648 * Makefile.in (gdbtk-bp.o): Update dependencies.
4649 (gdbtk-register.o): Ditto.
4650 (gdbtk-varobj.o): Ditto.
4651
4652 2002-08-03 Andrew Cagney <cagney@redhat.com>
4653
4654 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4655 m68hc11_fetch_pseudo_register.
4656 (m68hc11_pseudo_register_write): Replace
4657 m68hc11_store_pseudo_register.
4658 (m68hc11_gdbarch_init): Update.
4659
4660 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4661
4662 * gdbarch.sh: Include "gdb_string.h".
4663 * gdbarch.c: Regenerate.
4664
4665 * regcache.c: Include "gdb_string.h".
4666 * ax-general.c: Ditto.
4667 * varobj.c: Ditto.
4668 * std-regs.c: Ditto.
4669 * fbsd-proc.c: Ditto.
4670 * thread.c: Ditto.
4671
4672 * Makefile.in (regcache.o): Update dependencies.
4673 (thread.o, gdbarch.o): Ditto.
4674 (ax-general.o, gdbarch.o): Ditto.
4675 (varobj.o, std-regs.o): Ditto.
4676 (fbsd-proc.o): Specify dependencies.
4677
4678 2002-08-02 Andrew Cagney <cagney@redhat.com>
4679
4680 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4681 regnum.
4682 (regcache_cooked_write): Ditto.
4683
4684 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4685
4686 * regcache.c (regcache_cooked_read): New function.
4687 (regcache_cooked_write): New function.
4688 (read_register_gen): Rewrite using regcache_cooked_read.
4689 (write_register_gen): Rewrite using regcache_cooked_write.
4690
4691 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4692 Declare.
4693
4694 2002-08-02 Andrew Cagney <cagney@redhat.com>
4695
4696 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4697 Replace the architecture methods register_read and register_write.
4698 * gdbarch.h, gdbarch.c: Regenerate.
4699 * regcache.c (init_regcache_descr): Update.
4700 (read_register_gen): Update.
4701 (write_register_gen): Update.
4702 (supply_register): Update comment.
4703
4704 * sh-tdep.c (sh_gdbarch_init): Update.
4705 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4706 `regcache' and `gdbarch' parameters. Make `buffer' a void
4707 pointer. Update code.
4708 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4709 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4710 void pointer. Update code.
4711 (sh64_register_write): Delete.
4712 (sh4_register_read): Delete.
4713 (sh64_register_read): Delete.
4714 (sh4_register_write): Delete.
4715 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4716 void pointer, `to' parameter a void pointer.
4717 (sh_sh64_register_convert_to_raw): Ditto.
4718
4719 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4720
4721 * mips-tdep.c (mips_register_virtual_type): Use architecture
4722 invariant return values.
4723
4724 2002-08-01 Andrew Cagney <cagney@redhat.com>
4725
4726 * linux-proc.c: Include "gdb_string.h".
4727 * Makefile.in (linux-proc.o): Update dependency list.
4728
4729 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4730
4731 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4732 comment.
4733
4734 2002-08-01 Grace Sainsbury <graces@redhat.com>
4735
4736 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4737 to_insert_watchpoint, to_remove_watchpoint,
4738 to_stopped_by_watchpoint, to_stopped_data_address,
4739 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4740 target vecctor. Define their corresponding macros so they call
4741 them.
4742
4743 * target.c: Add default and debug versions of for
4744 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4745 to_insert_watchpoint, to_remove_watchpoint,
4746 to_stopped_by_watchpoint, to_stopped_data_address,
4747 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4748
4749 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4750
4751 * mips-tdep.c (mips_register_virtual_type): New function.
4752 (mips_gdbarch_init): Register mips_register_virtual_type()
4753 with gdbarch machinery.
4754 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4755 this file instead of tm-bigmips.h.
4756 (MIPS_REGSIZE): Delete this macro.
4757 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4758 multiarch version in mips-tdep.c will be found.
4759
4760 2002-08-01 Andrew Cagney <cagney@redhat.com>
4761
4762 * NEWS: Menion that CHILL has been made obsolete.
4763
4764 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4765 * stabsread.c (read_range_type): Ditto.
4766 * gdbtypes.h: Ditto.
4767 * language.c (binop_type_check): Ditto.
4768 (binop_result_type): Ditto.
4769 (integral_type): Ditto.
4770 (character_type): Ditto.
4771 (string_type): Ditto.
4772 (boolean_type): Ditto.
4773 (structured_type): Ditto.
4774 (lang_bool_type): Ditto.
4775 (binop_type_check): Ditto.
4776 * language.h (_LANG_chill): Ditto.
4777 * dwarfread.c (set_cu_language): Ditto.
4778 * dwarfread.c (CHILL_PRODUCER): Ditto.
4779 * dwarfread.c (handle_producer): Ditto.
4780 * expression.h (enum exp_opcode): Ditto.
4781 * eval.c: Ditto for comments.
4782 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4783 * expprint.c (print_subexp): Ditto.
4784 (print_subexp): Ditto.
4785 * valops.c (value_cast): Ditto.
4786 (search_struct_field): Ditto.
4787 * value.h (COERCE_VARYING_ARRAY): Ditto.
4788 * symfile.c (init_filename_language_table): Ditto.
4789 (add_psymbol_with_dem_name_to_list): Ditto.
4790 * valarith.c (value_binop): Ditto.
4791 (value_neg): Ditto.
4792 * valops.c (value_slice): Ditto.
4793 * symtab.h (union language_specific): Ditto.
4794 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4795 (SYMBOL_DEMANGLED_NAME): Ditto.
4796 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4797 * defs.h (enum language): Ditto.
4798 * symtab.c (got_symtab): Ditto.
4799 * utils.c (fprintf_symbol_filtered): Ditto.
4800
4801 * ch-typeprint.c: Make file obsolete.
4802 * ch-valprint.c: Make file obsolete.
4803 * ch-lang.h: Make file obsolete.
4804 * ch-exp.c: Make file obsolete.
4805 * ch-lang.c: Make file obsolete.
4806
4807 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4808 CHILL_LIB.
4809 (TARGET_FLAGS_TO_PASS): Ditto.
4810 (CHILLFLAGS): Obsolete.
4811 (CHILL): Obsolete.
4812 (CHILL_FOR_TARGET): Obsolete.
4813 (CHILL_LIB): Obsolete.
4814 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4815 ch-valprint.c.
4816 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4817 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4818 ch-lang.o.
4819 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4820 targets.
4821
4822 2002-07-31 Joel Brobecker <brobecker@gnat.com>
4823
4824 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4825 This does not change anything at the moment, but will be helpful
4826 later when full Ada support is integrated.
4827
4828 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4829
4830 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4831 help message.
4832
4833 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4834
4835 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4836 and save it in a local variable. Use variable in later test.
4837
4838 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4839
4840 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4841 test. (Thanks to Daniel Jacobowitz.)
4842
4843 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4844
4845 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4846 (mips_abi_strings): Add "n64".
4847 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4848
4849 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4850
4851 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4852 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4853
4854 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4855
4856 * utils.c (host_pointer_to_address, address_to_host_pointer):
4857 Use gdb_assert() instead of explicit call to internal_error().
4858
4859 2002-07-30 Kevin Buettner <kevinb@redhat.com>
4860
4861 * Makefile.in (rs6000-nat.o): Update dependencies.
4862
4863 From Nicholas Duffek:
4864 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4865 (aix-thread.o): New rule.
4866 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4867 * config/powerpc/aix432.mh: New file.
4868
4869 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4870
4871 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4872 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4873 (fetch_core_registers, ppc_linux_supply_gregset)
4874 (ppc_linux_supply_fpregset): New functions.
4875 (ppc_linux_regset_core_fns): New.
4876 (_initialize_ppc_linux_tdep): Call add_core_fns.
4877 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4878 and ppc_linux_supply_gregset.
4879 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4880 (supply_fpregset): Call ppc_linux_supply_fpregset.
4881 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4882 corelow.o.
4883 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4884
4885 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4886
4887 * symtab.c (lookup_symbol): Demangle before lowercasing.
4888
4889 2002-07-30 Andrew Cagney <ac131313@redhat.com>
4890
4891 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4892 declaration.
4893 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4894 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4895 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4896 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4897 "gdb_string.h".
4898 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4899 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4900 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4901 (avr-tdep.o, mon960-rom.o): Ditto.
4902 (aout_stabs_gnu_h): Define.
4903 (symtab_h): Remove $(gdb_obstack_h).
4904
4905 2002-07-30 Jim Blandy <jimb@redhat.com>
4906
4907 Patch from David Carlton <carlton@math.stanford.edu>:
4908 * gdbinit.in: Move the `dir' commands that add GDB's own source
4909 directory to the search path to the end, so that the `gdb' source
4910 directory will be searched first.
4911
4912 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4913
4914 * gdb_obstack.h: New file.
4915 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4916 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4917 * objfiles.h: Include "gdb_obstack.h".
4918 * Makefile.in (gdb_obstack_h): Define.
4919 (symtab_h): Add $(gdb_obstack_h).
4920 (objfiles_h): Add $(gdb_obstack_h).
4921
4922 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4923 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4924 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4925 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4926 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4927 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4928 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4929 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4930
4931 * Makefile.in (bcache.o): Update dependencies.
4932 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4933 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4934 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4935 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4936 (stabsread.o, symfile.o, symmisc.o): Ditto.
4937 (symtab.o, typeprint.o, macroexp.o): Ditto.
4938 (macrotab.o, mdebugread.o): Ditto.
4939 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4940 (coff_ecoff_h, aout_aout64_h): Define.
4941 (aout_stabs_gnu_h, libaout_h): Define.
4942
4943 2002-07-29 Andrew Cagney <cagney@redhat.com>
4944
4945 * regcache.c (struct regcache_descr): Rename nr_registers to
4946 nr_cooked_registers. Revise comments describing the structure
4947 member fields.
4948 (init_regcache_descr): Update.
4949 (init_legacy_regcache_descr): Update.
4950 (read_register_gen, write_register_gen): When a cooked register in
4951 the raw register range, directly access the value from the raw
4952 register cache.
4953
4954 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4955
4956 * z8k-tdep.c: Do not include "obstack.h".
4957 * h8300-tdep.c, h8500-tdep.c: Ditto.
4958 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4959 * valprint.c, v850-tdep.c: Ditto.
4960 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4961 * mn10200-tdep.c: Ditto.
4962
4963 * Makefile.in (z8k-tdep.o): Update dependencies.
4964 (m68hc11-tdep.o, valprint.o): Ditto.
4965 (v850-tdep.o, d10v-tdep.o): Ditto.
4966 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4967 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4968 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4969 (sh_opc_h, gdb_sim_sh_h): Define.
4970 (elf_sh_h, elf_bfd_h): Define.
4971 (opcode_m68hc11_h): Define.
4972 (OPCODES_SRC, OPCODES_DIR): define.
4973 (OPCODES): Use $(OPCODES_DIR).
4974 (gdb_sim_d10v_h): Rename sim_d10v_h.
4975 (gdb_sim_arm_h): Rename sim_arm_h.
4976
4977 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4978
4979 * utils.c (host_pointer_to_address, address_to_host_pointer):
4980 Change internal_error() message to indicate function responsible
4981 for the error.
4982
4983 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4984
4985 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4986 calls to local_hex_string_custom().
4987
4988 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4989
4990 * irix5-nat.c: Move IRIX shared library support from here...
4991 * solib-irix.c: ...to here. Revised substantially to work with
4992 generic solib framework.
4993
4994 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4995 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4996 * mips-irix-tdep.c: New file.
4997
4998 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4999 (mips-irix-tdep.o, solib-irix.o): New rules.
5000 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5001 solib-irix.o.
5002 * config/mips/irix6.mt (TDEPFILES): Likewise.
5003 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5004
5005 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5006
5007 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5008 disabled (via ``#if 0'') includes.
5009
5010 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5011
5012 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5013 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5014 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5015 Add support for the fpscr register.
5016 * rs6000-nat.c (regmap, fetch_inferior_registers)
5017 (store_inferior_registers, fetch_core_registers): Likewise.
5018
5019 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5020
5021 * rs6000-nat.c (language.h): Include.
5022 (special_regs): Delete this array.
5023 (regmap): New function.
5024 (fetch_register, store_register): Use regmap() to map gdb
5025 register numbers to ptrace register numbers. Also, use
5026 outputs from regmap() to make decisions regarding type of
5027 ptrace() call to make. In particular, don't compare against
5028 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5029 (fetch_inferior_registers, store_inferior_registers): Where
5030 possible, obtain register numbers from tdep struct. Don't
5031 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5032 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5033 (LAST_UISA_SP_REGNUM): Delete.
5034
5035 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5036
5037 * rs6000-nat.c (ppc-tdep.h): Include.
5038 (fetch_registers, store_register, fetch_core_registers): Don't
5039 access registers[] directly. Instead, use supply_register() or
5040 regcache_collect() as appropriate.
5041 (find_toc_address): Format hex address with local_hex_string().
5042
5043 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5044
5045 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5046 bfd/elf32-frv.c.
5047
5048 2002-07-24 Tom Tromey <tromey@redhat.com>
5049
5050 * jv-exp.y: Marked all strings with _().
5051 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5052 internal_error.
5053 (MethodInvocation, CastExpression, parse_number, yyerror,
5054 java_type_from_name, push_expression_name, yylex): Typo fixes.
5055
5056 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5057
5058 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5059 (tee_file_flush, tee_file_write, tee_file_fputs)
5060 (tee_file_isatty): New.
5061 * ui-file.h (tee_file_new): Add prototype.
5062
5063 2002-07-24 Aidan Skinner <aidan@velvet.net>
5064
5065 * ada-lang.c: Change k&r style function definitions to prototyped
5066 form.
5067 * ada-typeprint.c: Change k&r style function definitions to prototyped
5068 form.
5069 * ada-valprint.c: Change k&r style function definitions to prototyped
5070 form.
5071
5072 2002-07-24 Andrew Cagney <cagney@redhat.com>
5073
5074 * README: Remove reference to remote-bug.
5075 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5076 remote-bug.c.
5077 (m88k-nat.o): Delete rule.
5078 (m88k-tdep.o): Delete rule.
5079 (remote-bug.o): Delete rule.
5080 * MAINTAINERS: Mark as obsolete.
5081 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5082 * m88k-tdep.c: Make file obsolete.
5083 * config/m88k/m88k.mh: Ditto.
5084 * config/m88k/delta88v4.mh: Ditto.
5085 * config/m88k/delta88v4.mt: Ditto.
5086 * config/m88k/delta88.mt: Ditto.
5087 * config/m88k/delta88.mh: Ditto.
5088 * remote-bug.c: Ditto.
5089 * config/m88k/tm-delta88.h: Ditto.
5090 * config/m88k/nm-delta88v4.h: Ditto.
5091 * config/m88k/xm-delta88.h: Ditto.
5092 * config/m88k/xm-dgux.h: Ditto.
5093 * config/m88k/tm-m88k.h: Ditto.
5094 * config/m88k/nm-m88k.h: Ditto.
5095 * config/m88k/tm-delta88v4.h: Ditto.
5096 * m88k-nat.c: Ditto.
5097 * cxux-nat.c: Ditto.
5098 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5099 and m88*-*-* obsolete.
5100 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5101 m88*-*-* obsolete.
5102
5103 2002-07-24 Andrew Cagney <cagney@redhat.com>
5104
5105 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5106 constant. Same for local pointer variables.
5107 (extract_signed_integer): Ditto.
5108 * defs.h (extract_unsigned_integer): Update.
5109 (extract_signed_integer): Update.
5110
5111 2002-07-24 Andrew Cagney <cagney@redhat.com>
5112
5113 * regcache.c (regcache_raw_write): Change buf parameter to a
5114 constant void pointer.
5115 (regcache_raw_read): Change buf parameter to a void pointer.
5116 (legacy_write_register_gen): Change myaddr parameter a constant
5117 void pointer.
5118 (supply_register): Change val parameter to a const void pointer.
5119 * regcache.h (regcache_raw_write): Update declaration.
5120 (regcache_raw_read): Update declaration.
5121 (supply_register): Update declaration.
5122
5123 2002-07-24 Tom Tromey <tromey@redhat.com>
5124
5125 * defs.h (gdb_readline_wrapper): Declare.
5126 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5127 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5128 * top.c (gdb_readline_wrapper): New function.
5129 (command_line_input): Use it.
5130
5131 2002-07-24 Andrew Cagney <cagney@redhat.com>
5132
5133 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5134 regcache_read and regcache_write.
5135 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5136 * regcache.c: Update.
5137 * sh-tdep.c (sh64_push_arguments): Update comment.
5138 (sh_pseudo_register_read): Update.
5139 (sh_pseudo_register_write): Update.
5140 (sh4_register_read): Update.
5141 (sh4_register_write): Update.
5142 (sh64_pseudo_register_read): Update.
5143 (sh64_pseudo_register_write): Update.
5144 (sh64_register_read): Update.
5145 (sh64_register_write): Update.
5146 * i386-tdep.c (i386_extract_return_value): Update.
5147 (i386_extract_struct_value_address): Update.
5148 (i386_extract_return_value): Update.
5149 * blockframe.c (generic_read_register_dummy): Update.
5150 (generic_call_dummy_register_unwind): Update
5151 * infrun.c (write_inferior_status_register): Update.
5152
5153 2002-07-23 Jim Blandy <jimb@redhat.com>
5154
5155 * parser-defs.h (expression_context_pc): Make this extern.
5156 (Thanks to Michael Snyder.)
5157
5158 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5159
5160 GDB 5.2.1 released from 5.2 branch.
5161 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5162 * README: Update to mention 5.2.1.
5163
5164 2002-07-23 Mark Salter <msalter@redhat.com>
5165
5166 * remote.c (remote_read_bytes): Fix check for error.
5167
5168 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5169
5170 * aix-thread.c (language.h): Include.
5171 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5172 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5173 Print newlines at end of debug messages.
5174 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5175 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5176
5177 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5178
5179 * aix-thread.c (ppc-tdep.h): Include.
5180 (special_register_p): New function.
5181 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5182 (store_regs_user_thread): Use register number information from
5183 gdbarch_tdep struct instead of hardcoded offsets relative to
5184 FIRST_UISA_SP_REGNUM.
5185 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5186 special_register_p() instead of using FPLAST_REGNUM and
5187 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5188 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5189 will be MQ's register number.
5190
5191 2002-07-22 Michael Snyder <msnyder@redhat.com>
5192
5193 * aix-thread.c (ops): Rename to aix_thread_ops.
5194 (base_ops): Rename to base_target.
5195 (ops_attach): Rename to aix_thread_attach.
5196 (ops_detach): Rename to aix_thread_detach.
5197 (ops_resume): Rename to aix_thread_detach.
5198 (ops_wait): Rename to aix_thread_wait.
5199 (ops_kill): Rename to aix_thread_kill.
5200 (init_ops): Rename to init_aix_thread_ops.
5201 (ops_fetch_register): Rename to aix_thread_fetch_register.
5202 (ops_store_register): Rename to aix_thread_store_register.
5203 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5204 (ops_thread_alive): Rename to aix_thread_thread_alive.
5205 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5206 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5207 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5208 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5209 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5210 (store_regs_lib): Rename to store_regs_user_thread.
5211 (store_regs_kern): Rename to store_regs_kernel_thread.
5212
5213 2002-07-22 Michael Snyder <msnyder@redhat.com>
5214
5215 * aix-thread.c (ops_prepare_to_store): Eliminate.
5216 (init_ops): Don't initialize ops.prepare_to_store.
5217 (store_regs_kern): Pre-fetch register buffers from child,
5218 because some registers may not be in the cache. Copy
5219 regs from register cache only if they are cached.
5220 (store_regs_lib): Copy regs from register cache only
5221 if they are cached.
5222 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5223 fill_gprs64): Ditto.
5224
5225 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5226
5227 * aix-thread.c (gdb_assert.h): Include.
5228 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5229 register sizes (from register cache) match size of buffer holding
5230 register data.
5231 (fill_sprs32): Change parameter types to match those in the ptrace()
5232 buffer.
5233 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5234 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5235
5236 2002-07-22 Michael Snyder <msnyder@redhat.com>
5237
5238 * aix-thread.c (supply_sprs64): Cosmetic change.
5239 (supply_sprs32): Cosmetic change.
5240 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5241 (fill_sprs64): Use regcache_collect instead of read_register.
5242 (store_regs_lib): Use regcache_collect instead of
5243 read_register. Use fill_sprs32 instead of fill_sprs64,
5244 if debugging a 32-bit architecture.
5245 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5246 out of the register cache, instead of passing a pointer into
5247 the register cache directly to ptrace. Use regcache_collect
5248 insteaad of read_register.
5249 (ops_prepare_to_store): Use target_read_registers instead
5250 of read_register_bytes.
5251
5252 2002-07-20 Aidan Skinner <aidan@velvet.net>
5253
5254 * MAINTAINERS: Add self under write after approval.
5255
5256 2002-07-20 Aidan Skinner <aidan@velvet.net>
5257
5258 * ada-tasks.c: Change k&r style function definitions to prototyped
5259 form.
5260
5261 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5262
5263 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5264 * x86-64-tdep.c: Include "objfiles.h".
5265 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5266 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5267
5268 2002-07-17 Michal Ludvig <michal@suse.cz>
5269
5270 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5271 (update_context): Initialise cfa variable.
5272
5273 2002-07-17 Michael Snyder <msnyder@redhat.com>
5274
5275 * aix-thread.c: Shorten some long lines.
5276 Bring comments into line with code spec.
5277
5278 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5279
5280 * infrun.c: Re-indent using gdb_indent.sh.
5281
5282 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5283
5284 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5285 Leave the indentation temporarily untouched, to minimize the diffs.
5286
5287 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5288
5289 * stabsread.c: Make os9k sections of the code obsolete,
5290 for real this time.
5291 * stabsread.h: Make os9k sections of the code obsolete.
5292
5293 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5294
5295 * linux-low.c (regsets_store_inferior_registers): Add free()
5296 at the end of a loop to prevent memory leak.
5297 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5298 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5299 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5300 line a comment.
5301 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5302
5303 2002-07-17 Jim Blandy <jimb@redhat.com>
5304
5305 * macrocmd.c (info_macro_command): Remove newline from error
5306 message.
5307
5308 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5309
5310 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5311 (sh_gdbarch_init): Use it for sh-dsp.
5312
5313 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5314
5315 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5316 64-bit DWARF2 format.
5317
5318 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5319
5320 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5321 <sys/proc.h> when not available.
5322
5323 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5324
5325 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5326 * stabsread.c: Make os9k sections of the code obsolete.
5327 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5328 * config/i386/i386os9k.mt: Make file obsolete.
5329 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5330 (COMMON_OBS): Remove os9kread.o
5331 (SFILES): Remove os9kread.c.
5332 (os9kread.o, remote-os9k.o): Make target obsolete.
5333 * remote-os9k.c: Make file obsolete.
5334 * os9kread.c: Make file obsolete.
5335 * Makefile.in
5336
5337 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5338
5339 * NEWS: Mention that the FR30 has been made obsolete.
5340 * fr30-tdep.c: Make file obsolete.
5341 * config/fr30/tm-fr30.h: Ditto.
5342 * config/fr30/fr30.mt: Ditto.
5343 * configure.tgt: Make fr30-*-elf obsolete.
5344 * MAINTAINERS: Make fr30-elf obsolete.
5345
5346 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5347
5348 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5349 found is not inside a section.
5350
5351 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5352
5353 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5354 strerror().
5355 (pdc_realloc): Use xrealloc() instead of realloc().
5356
5357 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5358
5359 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5360 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5361 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5362 macros.
5363
5364 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5365
5366 * aix-thread.c (ptrace_check): Eliminate goto.
5367 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5368 problem.
5369
5370 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5371
5372 * aix-thread.c (gdbcmd.h): Include.
5373 (DEBUG, DBG, DBG2, dbg): Eliminate.
5374 (debug_aix_thread): New static global.
5375 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5376 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5377 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5378 invocations to DBG and DBG2 macros to test against
5379 ``debug_aix_thread'' and call fprintf_unfiltered().
5380 (_initialize_aix_thread): Add new command "set debug aix-thread".
5381
5382 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5383
5384 From Gerhard Tonn <TON@de.ibm.com>:
5385 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5386 instead of supply_register.
5387
5388 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5389
5390 * dwarf2cfi.c: Include "gdb_assert.h".
5391 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5392 non-NULL.
5393 (update_context): Do not use __func__. Add missing ``break''.
5394 (update_context): Do not use __func__.
5395
5396 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5397
5398 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5399 and its setting. Set gdbarch instruction printing functions
5400 directly. For non-rs6000 case use new function
5401 gdb_print_insn_powerpc.
5402 (gdb_print_insn_powerpc): New function.
5403
5404 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5405
5406 * NEWS: Mention that the d30v has been marked obsolete.
5407 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5408 * configure.tgt: Mark d30v-*-* as obsolete.
5409 * d30v-tdep.c: Mark file as obsolete.
5410 * config/d30v/d30v.mt: Ditto.
5411 * config/d30v/tm-d30v.h: Ditto.
5412
5413 2002-07-13 Aidan Skinner <aidan@velvet.net>
5414
5415 * ada-tasks.c (add_task_entry): replace calls to
5416 malloc() with xmalloc
5417 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5418
5419 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5420 ada_finish_decode_line_1, all_sals_for_line
5421 ada_breakpoint_rewrite): replace calls to free() with xfree()
5422
5423 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5424
5425 From Nicholas Duffek (with minor changes by Martin Hunt,
5426 Louis Hamilton, and Kevin Buettner):
5427 * aix-thread.c: New file.
5428
5429 2002-07-12 Petr Sorfa <petrs@caldera.com>
5430
5431 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5432 complaint for invalid attribute class or form.
5433 (read_func_scope): DW_AT_frame_base
5434 better handling of DW_AT_block*.
5435 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5436 better handling of DW_AT_block*.
5437 (read_common_block): DW_AT_location
5438 better handling of DW_AT_block*.
5439 (read_partial_die): DW_AT_location better handling
5440 of DW_AT_block*.
5441 (new_symbol): DW_AT_external better handling of
5442 DW_AT_block*. Proper initialization of variable
5443 "addr".
5444 (attr_form_is_block): New function that returns true
5445 if the attribute's form is of DW_FORM_block*.
5446
5447 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5448
5449 * valops.c (find_method_list): Remove comment about
5450 removed STATIC_MEMFUNCP argument.
5451 (value_find_oload_method_list): Likewise.
5452
5453 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5454
5455 From Nicholas Duffek:
5456 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5457 target_new_objfile_hook.
5458
5459 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5460
5461 From Nicholas Duffek:
5462 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5463 csect.
5464
5465 2002-07-12 Andrew Cagney <cagney@redhat.com>
5466
5467 * MAINTAINERS: Mention --enable-sim-build-warnings.
5468 (m68hc11-elf): Disable sim build warnings.
5469 (m32r-elf): Mark as broken obsolete candidate.
5470 (x86_64-linux-gnu): Mark as buildable with -Werror.
5471 (arm-elf): Change -w to ``,'' which enables warnings but not
5472 -Werror.
5473
5474 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5475
5476 * bcache.h: Update copyright.
5477 (struct bstring, struct bcache): Move definition to "bcache.c".
5478 Replaced by opaque declaration.
5479 (bcache_xfree): Replace free_bcache.
5480 (bcache_xmalloc, bcache_memory_used): Declare.
5481
5482 * bcache.c: Update copyright.
5483 (struct bstring, struct bcache): Moved to here from "bcache.h".
5484 Update comments.
5485 (bcache_xmalloc, bcache_memory_used): New functions.
5486 (bcache_xfree): Replace function free_bcache.
5487
5488 * Makefile.in (objfiles.o): Add $(bcache_h).
5489 (objfiles_h): Remove $(bcache_h).
5490 (symfile.o): Add $(bcache_h).
5491
5492 * symmisc.c: Update copyright.
5493 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5494 (print_objfile_statistics): Use bcache_memory_used.
5495
5496 * symfile.c: Include "bcache.h".
5497 (reread_symbols): Use bcache_xfree.
5498 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5499 (add_psymbol_to_list): Pass psymbol_cache by value.
5500 (add_psymbol_with_dem_name_to_list): Ditto.
5501
5502 * objfiles.h: Update copyright.
5503 (struct bcache): Declare opaque. Do not include "bcache.h".
5504 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5505 bcache'' pointers.
5506 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5507
5508 * objfiles.c: Include "bcache.h". Update copyright.
5509 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5510 macro_cache.
5511 (free_objfile): Use bcache_xfree.
5512
5513 2002-07-11 Grace Sainsbury <graces@redhat.com>
5514
5515 * monitor.c (monitor_fetch_register): Make name a constant.
5516 (monitor_store_register): Same.
5517
5518 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5519
5520 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5521 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5522 (finish_block) For non-function blocks, hash the symbol table. For
5523 function blocks, mark the symbol table as unhashed.
5524 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5525 (msymbol_hash_iw): Likewise.
5526 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5527 value.
5528 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5529 (lookup_minimal_symbol): Likewise for both.
5530 * symtab.h (struct block): Add `hashtable' flag. Comment the
5531 hashtable.
5532 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5533 (ALL_BLOCK_SYMBOLS): Update.
5534 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5535 (struct symbol): Add `hash_next' pointer.
5536 * symtab.c (lookup_block_symbol): Search using the hash table when
5537 possible.
5538 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5539 (search_symbols, find_addr_symbol): Likewise.
5540
5541 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5542 (read_dst_symtab): Likewise.
5543 * jv-lang.c (get_java_class_symtab): Likewise.
5544 * mdebugread.c: Include "gdb_assert.h".
5545 (shrink_block): Assert that the block being modified is not hashed.
5546 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5547 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5548 symbols.
5549 (dump_symtab): Recognize hashed blocks.
5550 * printcmd.c (print_frame_args): Assert that function blocks do not
5551 have hashed symbol tables.
5552 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5553 (fill_in_ada_prototype, debug_print_block): Likewise.
5554 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5555
5556 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5557
5558 * stack.c (print_frame): Use result of frame_address_in_block()
5559 instead of fi->pc when evaluating symbols.
5560 (backtrace_command_1): Ditto.
5561
5562 2002-07-11 Andrew Cagney <cagney@redhat.com>
5563
5564 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5565 Make static.
5566
5567 * arm-tdep.c (arm_register_name): Make return type constant.
5568
5569 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5570
5571 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5572 prototype.
5573 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5574 * s390-tdep.c (s390_fp_regnum): Ditto.
5575 (s390_read_fp): Ditto.
5576 (s390_pop_frame): Ditto.
5577 (_initialize_s390_tdep): Ditto.
5578 * remote.c (get_remote_state): Ditto.
5579 * procfs.c (mappingflags): Ditto.
5580 * memattr.c (_initialize_mem): Ditto.
5581 * mcore-tdep.c (mcore_pop_frame): Ditto.
5582 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5583 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5584 * language.c (set_case_str): Ditto.
5585 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5586 * frv-tdep.c (new_variant): Ditto.
5587 (frv_stopped_data_address): Ditto.
5588 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5589 (context_alloc): Ditto.
5590 (frame_state_alloc): Ditto.
5591 (unwind_tmp_obstack_init): Ditto.
5592 (unwind_tmp_obstack_free): Ditto.
5593 (cfi_read_fp): Ditto.
5594 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5595 (cris_pop_frame): Ditto.
5596 * c-lang.c (scanning_macro_expansion): Ditto.
5597 (finished_macro_expansion): Ditto.
5598 (c_preprocess_and_parse): Ditto.
5599 * gdbarch.sh: Ditto.
5600 * gdbarch.h, gdbarch.c: Regenerate.
5601 * config/mn10200/tm-mn10200.h: Adjust indentation.
5602 * target.c: Adjust indentation.
5603 * symtab.h: Adjust indentation.
5604 * stabsread.h: Adjust indentation.
5605 * remote-es.c: Adjust indentation.
5606 * os9kread.c: Adjust indentation.
5607
5608 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5609
5610 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5611 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5612
5613 2002-07-10 Grace Sainsbury <graces@redhat.com>
5614
5615 * NEWS: Mention m68k, mcore multi-arching.
5616 * MAINTAINERS: Change status of m68k, mcore to reflect
5617 multi-arching.
5618
5619 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5620
5621 * valops.c (find_overload_match): Free oload_syms.
5622
5623 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5624
5625 Define HAVE_SYS_PROC_H if sys/proc.h exists
5626 * configure.in: Add check for sys/proc.h
5627 * config.in: Regenerate.
5628 * configure: Regenerate.
5629
5630 2002-07-09 Grace Sainsbury <graces@redhat.com>
5631
5632 * config/m68k/tm-m68k.h: Remove macros wrapped in
5633 #if !GDB_MULTI_ARCH.
5634
5635 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5636
5637 * config.in, configure: Regenerate.
5638
5639 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5640
5641 * dwarf2cfi.c: Include "gcore.h".
5642 (execute_stack_op): Fix implementation of the
5643 DW_OP_deref and DW_OP_deref_size operators by letting do their
5644 lookup in the target.
5645
5646 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5647
5648 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5649 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5650 tdep->sc_sp_offset.
5651
5652 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5653
5654 Fix PR gdb/595, gdb/602
5655 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5656 Don't call value_cast, just read the vtable pointer; update comments
5657 to match.
5658
5659 2002-07-05 Grace Sainsbury <graces@redhat.com>
5660
5661 * config/mcore/tm-mcore.h: Remove file.
5662 * config/mcore/mcore.mt: Remove definition of TM_FILE
5663 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5664
5665 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5666
5667 * i386bsd-tdep.c: Include "gdb_string.h".
5668
5669 2002-07-04 Grace Sainsbury <graces@redhat.com>
5670
5671 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5672 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5673 mcore-tdep.
5674 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5675 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5676 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5677 (RETVAL_REGNUM): Move macros from tm-mcore.h
5678 (mcore_reg_struct_has_addr): New function.
5679 (mcore_gdbarch_init): Added initializations for the macros removed
5680 from tm-mcore.h.
5681
5682 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5683
5684 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5685 traditonal string branding within the ELF header.
5686
5687 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5688
5689 * symtab.c (remove_params): New function.
5690 (make_symbol_overload_list): Use it instead of cplus_demangle.
5691 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5692
5693 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5694
5695 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5696
5697 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5698 New variables.
5699 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5700 and tdep->sigtramp_end.
5701 * i386obsd-nat.c: New file.
5702 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5703
5704 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5705 Don't call get_current_frame().
5706
5707 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5708
5709 * i386-nat.c (child_post_startup_inferior): New function
5710 calling i386_cleanup_dregs if
5711 I386_USE_GENERIC_WATCHPOINTS is defined.
5712 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5713 conditional to acknowledge that i386-nat.c has its
5714 own child_post_startup_inferior function.
5715
5716 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5717
5718 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5719 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5720 instead of MAX_REGISTER_RAW_SIZE.
5721 (i386_extract_return_value, i386_extract_struct_value_address):
5722 Convert to use regcache.
5723 (i386_gdbarch_init): Set max_register_raw_size and
5724 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5725 Set extract_return_value and extract_struct_value_address instead
5726 of their deprecated variants.
5727
5728 Convert i386 target to generic dummy frames.
5729 * i386-tdep.c: Include "symfile.h".
5730 (i386_frameless_signal_p): Consider a function to be frameless if
5731 the pc points at the first instruction of the function.
5732 (i386_frame_chain): Handle (generic) call dummies.
5733 (i386_frame_saved_pc): Likewise.
5734 (i386_frame_init_saved_regs): Remove code dealing with call
5735 dummies on the stack.
5736 (i386_push_dummy_frame): Removed.
5737 (i386_call_dummy_words): Removed.
5738 (i386_fix_call_dummy): Removed.
5739 (i386_push_return_address): New function.
5740 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5741 parameter, and don't call get_current_frame.
5742 (i386_pop_frame): New function.
5743 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5744 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5745 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5746 call_dummy_length to 0, set call_dummy_words to NULL, set
5747 sizeof_call_dummy_words to 0, set fix_call_dummy to
5748 generic_fix_call_dummy, set pc_in_call_dummy to
5749 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5750 generic_push_dummy_frame, set push_return_address to
5751 i386_push_return_address and set frame_chain_valid to
5752 generic_file_frame_chain_valid.
5753
5754 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5755
5756 * gdbarch.sh (struct regcache): Add opaque declaration.
5757 (EXTRACT_RETURN_VALUE): New architecture method.
5758 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5759 * gdbarch.h, gdbarch.c: Regenerate.
5760 * arch-utils.c (legacy_extract_return_value): New function.
5761 * arch-utils.h (legacy_extract_return_value): Declare.
5762 * values.c (value_being_returned): Re-enable code handling
5763 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5764 deprecated_grub_regcache_for_registers call to block handling
5765 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5766 (EXTRACT_RETURN_VALUE): Do not define.
5767
5768 2002-07-03 Grace Sainsbury <graces@redhat.com>
5769
5770 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5771 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5772 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5773 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5774 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5775 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5776 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5777 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5778 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5779 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5780 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5781 argument so the function fits the prototype in the architecture
5782 vector.
5783 (mcore_pop_frame): Remove argument so the function fits the
5784 prototype. Use get_current_frame instead of the argument.
5785 (mcore_push_arguments): Change type of struct_return so the
5786 function can be used in the architecture vector.
5787 (mcore_store_struct_return): Add.
5788 (mcore_frame_init_saved_regs): Add.
5789 (mcore_gdbarch_init): Add function calls to replace the macros
5790 removed from tm-mcore.h
5791
5792 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5793
5794 * infcmd.c (print_return_value): Remove compatibility code calling
5795 deprecated_grub_regcache_for_registers.
5796
5797 * values.c: Include "regcache.h".
5798 (value_being_returned): Update. Use
5799 deprecated_grub_regcache_for_registers to extract the register
5800 buffer address.
5801 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5802 ``struct regcache''.
5803 * Makefile.in (values.o): Add dependency on $(regcache_h).
5804
5805 * inferior.h (run_stack_dummy): Change type of second parameter to
5806 a ``struct regcache''.
5807 * valops.c (hand_function_call): Change type of retbuf to ``struct
5808 regcache''. Allocate using regcache_xmalloc, clean using
5809 make_cleanup_regcache_xfree.
5810 * infcmd.c (run_stack_dummy): Update. Use
5811 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5812
5813 * regcache.c (do_regcache_xfree): New function.
5814 (make_cleanup_regcache_xfree): New function.
5815 * regcache.h (make_cleanup_regcache_xfree): Declare.
5816
5817 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5818
5819 * event-top.c (command_line_handler): Don't read past
5820 beginning of buffer.
5821
5822 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5823
5824 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5825 struct frame_id.
5826 (varobj_create): Store frame_id for root.
5827 (varobj_gen_name): Use xasprintf.
5828 (varobj_update): Save and restore frame using get_frame_id() and
5829 frame_find_by_id().
5830 (create_child): Use xasprintf.
5831 (new_root_variable): Initialize frame_id.
5832 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5833 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5834 to prevent memory leak.
5835
5836 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5837
5838 * valops.c (hand_function_call): Move declaration of retbuf to
5839 start of function, allocate using malloc, add a cleanup but before
5840 the inf_status cleanup, cleanup the buffer. Rename local variable
5841 old_chain to inf_status_cleanup.
5842
5843 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5844
5845 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5846
5847 * cli/cli-decode.c (cmd_func_p): New function.
5848 (cmd_func): New function.
5849
5850 * command.h: Add cmd_func() and cmd_func_p().
5851
5852 2002-07-03 Grace Sainsbury <graces@redhat.com>
5853
5854 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5855 (REGISTER_SIZE): Remove.
5856 (MAX_REGISTER_RAW_SIZE): Remove.
5857 (REGISTER_VIRTUAL_TYPE): Remove.
5858 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5859 (REGISTER_NAME): Remove.
5860 (USE_GENERIC_DUMMY_FRAMES): Remove.
5861 (CALL_DUMMY): Remove.
5862 (CALL_DUMMY_START_OFFSET): Remove.
5863 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5864 (CALL_DUMMY_LOCATION): Remove.
5865 (FIX_CALL_DUMMY): Remove.
5866 (CALL_DUMMY_ADDRESS): Remove.
5867 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5868 (SAVE_DUMMY_FRAME_TOS): Remove.
5869 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5870 (mcore_register_virtual_type): New function.
5871 (mcore_register_byte): New function.
5872 (mcore_register_size): New function.
5873 (mcore_register_name): New function.
5874 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5875 macros removed from tm-mcore.h.
5876 (mcore_dump_tdep): Add.
5877 (_initialize_mcore_tdep): Add gdbarch_register call.
5878
5879 2002-07-03 Mark Kettenis <kettenis@gnu.org>
5880
5881 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5882 frameless_look_for_prologue, such that we actually call this
5883 function.
5884
5885 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5886
5887 * frame.h (frame_address_in_block): New function.
5888
5889 * blockframe.c (frame_address_in_block): New function extracted
5890 from get_frame_block().
5891 (get_frame_block): Use frame_address_in_block().
5892 (block_innermost_frame): Use frame_address_in_block() to match
5893 the frame pc address against the block boundaries rather than
5894 the frame pc directly. This prevents a failure when a frame pc
5895 is actually a return-address pointing immediately after the end
5896 of the given block.
5897
5898 2002-07-02 Grace Sainsbury <graces@redhat.com>
5899
5900 * MAINTAINERS: Add self under write after approval.
5901
5902 2002-07-02 Grace Sainsbury <graces@redhat.com>
5903
5904 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5905 used in architecture vector. The default is
5906 m68k_local_breakpoint_from_pc.
5907 (m68k_local_breakpoint_from_pc): Add.
5908 (enum): Add register numbers from tm-m68k.h.
5909 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5910 vector.
5911 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5912 GDB_MULTI_ARCH_PARTIAL.
5913 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5914 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5915 m68k-tdep.c.
5916 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5917 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5918 to enum in m68k-tdep.c
5919
5920 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5921
5922 * solib-osf.c (open_map): Compute the list of shared libraries
5923 loaded by the inferior, rather than the list of libraries loaded
5924 by GDB itself. Otherwise, GDB ends up reading the symbols from
5925 the wrong shared libraries...
5926
5927 2002-07-02 Mark Kettenis <kettenis@gnu.org>
5928
5929 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5930 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5931 macros.
5932 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5933 Remove functions.
5934 (FRAMELESS_SIGNAL): Remove function.
5935 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5936 i386_linux_saved_pc_after_call): Removed.
5937 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5938 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5939 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5940
5941 * i386-tdep.c (i386_frameless_signal_p): New function.
5942 (i386_frame_chain): Deal with frameless signals.
5943 (i386_sigtramp_saved_sp): New function.
5944 (i386_frame_saved_pc): Deal with frameless signals.
5945 (i386_saved_pc_after_call): Make sure the correct value is
5946 returned just after entry into a sigtramp.
5947 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5948 i386fbsd4_sc_sp_offset): New variables.
5949 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5950 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5951 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5952 similiar to what we already did for sc_pc_offset.
5953 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5954 tdep->sc_sp_offset.
5955
5956 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5957
5958 2002-07-02 Michal Ludvig <mludvig@suse.cz>
5959
5960 * config/i386/tm-x86-64linux.h: New.
5961 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5962 definitions.
5963 * config/i386/nm-x86-64.h: Rename to ...
5964 * config/i386/nm-x86-64linux.h: ... this one.
5965 * config/i386/x86-64linux.mh: Reflect the above change.
5966
5967 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5968
5969 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5970 with sigcontext_addr. Add sc_sp_offset.
5971 (i386bsd_sigtramp_saved_pc): Remove prototype.
5972 (i386bsd_sicontext_addr): Add prototype.
5973 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5974 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5975 (i386_svr4_sigtramp_saved_pc): Removed.
5976 (i386_svr4_sigcontext_addr): New function.
5977 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5978 Initialize tdep->sigcontext_addr instead. Initialize
5979 tdep->sc_pc_offset and tdep->sc_sp_offset.
5980 (i386_gdbarch_init): Likewise.
5981 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5982 any more.
5983 (i386bsd_sigtramp_saved_pc): Remove function.
5984 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5985 Initialize tdep->sigcontext_addr instead. Initialize
5986 tdep->sc_pc_offset.
5987 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5988 of tdep->sigtramp_saved_pc.
5989 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5990 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5991 instead.
5992
5993 * i386-tdep.c (i386_frameless_function_invocation,
5994 i386_frame_num_args, i386_frame_init_saved_regs,
5995 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5996 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5997 i386_extract_return_value, i386_store_return_value,
5998 i386_extract_struct_value_address, i386_register_virtual_type,
5999 i386_register_convertible, i386_register_convert_to_virtual,
6000 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6001 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6002 static.
6003
6004 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6005
6006 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6007
6008 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6009 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6010 this macro. Include "value.h".
6011
6012 2002-06-30 Aidan Skinner <aidan@velvet.net>
6013
6014 * ada-exp.tab.c: remove as it's a generated file
6015 * ada-lex.c: remove as it's a generated file
6016
6017 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6018
6019 * config/i386/tm-i386.h (struct frame_info, struct
6020 frame_saved_regs, struct value, struct type): Remove forward
6021 declarations.
6022
6023 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6024 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6025 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6026 (FILL_FPXREGSET): Define.
6027
6028 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6029
6030 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6031 i[3456]86-*-netbsd* case.
6032 * config/i386/tm-obsd.h: Removed.
6033 * config/i386/obsd.mt: Removed.
6034 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6035 core-aout.o.
6036 (MH_CFLAGS): Add -DYYDEBUG=0.
6037
6038 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6039 i386nbsd_sc_pc_offset on OpenBSD too.
6040
6041 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6042 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6043 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6044 define.
6045 * i386bsd-tdep.c: Include "arch-utils.h".
6046 (i386bsd_aout_in_solib_call_trampoline): New function.
6047 (i386bsd_init_abi): Set in_solib_call_trampoline to
6048 i386bsd_aout_in_solib_call_trampoline.
6049 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6050 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6051
6052 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6053
6054 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6055 (struct obstack, struct bcache): Add opaque declarations.
6056 * Makefile.in (macrotab_h): Update
6057
6058 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6059
6060 * blockframe.c (generic_find_dummy_frame): Change return type to
6061 ``struct regcache''.
6062 (struct dummy_frame): Replace field ``registers'' with regcache, a
6063 struct regcache object.
6064 (generic_find_dummy_frame): Update.
6065 (generic_push_dummy_frame): Update. Use regcache_xfree,
6066 regcache_xmalloc and regcache_cpy.
6067 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6068 regcache_xfree.
6069 (deprecated_generic_find_dummy_frame): Update.
6070 (generic_read_register_dummy): Update. Use
6071 regcache_read_as_address.
6072 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6073 (generic_get_saved_register): Update. Use regcache_read.
6074
6075 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6076
6077 * Makefile.in (objfiles_h): Add $(bcache_h).
6078 * objfiles.h: Include "bcache.h".
6079
6080 * Makefile.in (symtab_h): Remove $(bcache_h).
6081 * symtab.h: Do not include "bcache.h".
6082
6083 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6084
6085 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6086 generic_func_frame_chain_valid.
6087
6088 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6089
6090 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6091 * config/i386/tm-fbsd.h: Likewise.
6092
6093 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6094
6095 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6096 generic_unwind_get_saved_register.
6097
6098 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6099
6100 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6101 * regcache.c (supply_register): Add missing argument to
6102 register_buffer call.
6103
6104 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6105
6106 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6107 Solaris /bin/grep does not not like it. From Peter Schauer.
6108
6109 2002-06-26 Tom Tromey <tromey@redhat.com>
6110
6111 * command.h (add_setshow_cmd): Declare.
6112 (add_setshow_cmd_full): Declare.
6113 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6114 returns void. Use add_setshow_cmd_full.
6115 (add_setshow_cmd_full): New function.
6116 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6117 (add_setshow_boolean_cmd): Likewise.
6118
6119 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6120
6121 * config/vax/tm-vax.h: Protect from multiple inclusion.
6122 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6123 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6124 * config/vax/tm-vaxbsd.h: ...here. New file.
6125 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6126
6127 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6128
6129 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6130 (BELIEVE_PCC_PROMOTION): Remove.
6131 (AP_REGNUM): Move to...
6132 * config/vax/nm-vax.h: ...here.
6133 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6134 (vax_breakpoint_from_pc): New function.
6135 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6136 and gdbarch_believe_pcc_promotion.
6137
6138 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6139
6140 * Makefile.in (vax_tdep_h): Define.
6141 (vax-tdep.o): Use $(vax_tdep_h).
6142 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6143 (vax_dump_tdep): New function.
6144 (_initialize_vax_tdep): Register vax_dump_tdep.
6145 * vax-tdep.h: Include osabi.h.
6146 (struct gdbarch_tdep): New.
6147
6148 2002-06-26 Andrew Cagney <cagney@redhat.com>
6149
6150 * frame.h (deprecated_generic_find_dummy_frame): Rename
6151 generic_find_dummy_frame.
6152 * blockframe.c (generic_find_dummy_frame): Make static.
6153 (deprecated_generic_find_dummy_frame): New function.
6154 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6155 generic_find_dummy_frame with deprecated_find_dummy_frame.
6156 (sh64_nofp_frame_init_saved_regs): Ditto.
6157 (sh_fp_frame_init_saved_regs): Ditto.
6158 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6159 (s390_frame_chain): Ditto.
6160 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6161
6162 2002-06-26 Grace Sainsbury <graces@redhat.com>
6163
6164 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6165 gdbarch vector are at the top.
6166 (NUM_REGS): Remove.
6167 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6168 (FRAME_ARGS_ADDRESS): Remove.
6169 (FRAME_LOCALS_ADDRESS): Remove.
6170 (FRAME_NUM_ARGS): Remove.
6171 (FRAME_ARGS_SKIP): Remove.
6172 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6173 (m68k_gdbarch_init): Add gdbarch initializations for macros
6174 undefined in tm-m68k.h
6175
6176 2002-06-26 Grace Sainsbury <graces@redhat.com>
6177
6178 * monitor.h: Add the function regname to monitor_ops
6179 structure. This way NUM_REGS does not have to be a constant.
6180 * monitor.c (monitor_fetch_register): Added support for regname
6181 function. The function is called if the array regnames is NULL.
6182 (monitor_store_register): Same.
6183 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6184 regnames array.
6185 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6186 cpu32bug_cmds.regname to point to new function.
6187 * abug-rom.c (abug_regname): Same as above.
6188 (init_abug_cmds): Same.
6189 * dbug-rom.c (dbug_regname): Same as above.
6190 (init_dbug_cmds): Same.
6191 * remote-est.c (est_regname): Same.
6192 (init_est_cmds): Same.
6193 * rom68k-rom.c (rom68k_regname): Same.
6194 (init_rom68k_cmds): Same.
6195
6196 2002-06-25 Tom Tromey <tromey@redhat.com>
6197
6198 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6199
6200 2002-06-25 Andrew Cagney <cagney@redhat.com>
6201
6202 * infrun.c (stop_registers): Change variable's type to ``struct
6203 regcache'''.
6204 (xmalloc_inferior_status): Delete function.
6205 (free_inferior_status): Delete function.
6206 (normal_stop): Use regcache_cpy.
6207 (struct inferior_status): Change type of fields ``stop_registers''
6208 and ``registers'' to ``struct regcache''.
6209 (write_inferior_status_register): Use regcache_write.
6210 (save_inferior_status): Instead of calling
6211 xmalloc_inferior_status, allocate the inf_status buffer directly.
6212 Use regcache_dup_no_passthrough and regcache_dup to save the
6213 buffers.
6214 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6215 Replace the stop_registers regcache instead of overriding it. Use
6216 regcache_xfree. Instead of calling free_inferior_status, xfree
6217 the buffer directly.
6218 (discard_inferior_status): Use regcache_xfree. Instead of calling
6219 free_inferior_status, xfree the buffer directly.
6220 (build_infrun): Use regcache_xmalloc.
6221 (_initialize_infrun): Delete redundant call to build_infrun.
6222
6223 * Makefile.in (infcmd.o): Add $(regcache_h).
6224
6225 * infcmd.c: Include "regcache.h".
6226 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6227 obtain the address of `stop_registers' register buffer.
6228 (print_return_value): Ditto.
6229
6230 * inferior.h (struct regcache): Add opaque declaration.
6231 (stop_registers): Change variable's declared type to ``struct
6232 regcache''.
6233
6234 2002-06-24 Tom Tromey <tromey@redhat.com>
6235
6236 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6237 * target.c (initialize_targets): Fixed typo in
6238 trust-readonly-sections `show' documentation.
6239
6240 * main.c: Marked all strings with _().
6241
6242 2002-06-24 Don Howard <dhoward@redhat.com>
6243
6244 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6245 that means max CORE_ADDR+1.
6246 (lookup_mem_region): Ditto.
6247 (mem_info_command): Ditto.
6248
6249 2002-06-24 Grace Sainsbury <graces@redhat.com>
6250
6251 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6252 (REGISTER_BYTES_OK): Remove.
6253 (REGISTER_BYTES): Remove.
6254 (STORE_STRUCT_RETURN): Remove.
6255 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6256 (STORE_RETURN_VALUE): Remove.
6257 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6258 (FRAME_CHAIN): Remove.
6259 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6260 (FRAME_SAVED_PC): Remove.
6261 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6262 (m68k_store_struct_return): Add.
6263 (m68k_deprecated_extract_return_value): Add.
6264 (m68k_deprecated_extract_struct_value_address): Add.
6265 (m68k_store_return_value): Add.
6266 (m68k_frame_chain): Add.
6267 (m68k_frameless_function_invocation): Add.
6268 (m68k_frame_saved_pc): Add.
6269 (m68k_gdbarch_init): added set_gdbarch calls for new
6270 functions and deleted macros.
6271
6272 2002-06-23 Tom Tromey <tromey@redhat.com>
6273
6274 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6275 (ALLDEPFILES): Likewise.
6276 (udiheaders): Removed.
6277 (udip2soc.o): Likewise.
6278 (udi2go32.o): Likewise.
6279 (udr.o): Likewise.
6280 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6281
6282 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6283
6284 * infrun.c (_initialize_infrun): Delete unnecessary call to
6285 build_infrun.
6286
6287 * regcache.h: Update comments describing the regcache_cpy family
6288 of functions.
6289 (regcache_save, regcache_restore): Delete declaration.
6290 (regcache_save_no_passthrough): Delete declaration.
6291 (regcache_restore_no_passthrough): Delete declaration.
6292 * regcache.c (regcache_save): Delete function.
6293 (regcache_save_no_passthrough): Delete function.
6294 (regcache_restore): Delete function.
6295 (regcache_restore_no_passthrough): Delete function.
6296
6297 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6298
6299 * config/m68k/tm-m68k.h: Fix typo.
6300 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6301 (m68k_frame_init_saved_regs): Declare.
6302
6303 2002-06-21 Jim Blandy <jimb@redhat.com>
6304
6305 Remove some vestiges of Harris 88k support.
6306 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6307 register numbering quirk.
6308 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6309 odd symbols occurring in Harris 88k ELF targets.
6310
6311 2002-06-21 Tom Tromey <tromey@redhat.com>
6312
6313 * gdb_locale.h: New file.
6314 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6315 (defs_h): Added gdb_locale.h.
6316 * configure, config.in: Rebuilt.
6317 * configure.in (PACKAGE): Define.
6318 * defs.h: Include gdb_locale.h.
6319 * main.c (captured_main): Call setlocale, bindtextdomain,
6320 textdomain.
6321
6322 2002-06-21 Dave Brolley <brolley@redhat.com>
6323
6324 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6325 * config/frv/frv.mt: New file.
6326 * config/frv/tm-frv.h: New file.
6327 * configure.tgt: Support frv-*-*.
6328 * Makefile.in (frv-tdep.o): New target.
6329 * frv-tdep.c: New file.
6330 * NEWS: Mention frv.
6331
6332 2002-06-21 Dave Brolley <brolley@redhat.com>
6333
6334 * MAINTAINERS: Add self to "Write After Approval" list.
6335
6336 2002-06-21 Grace Sainsbury <graces@redhat.com>
6337
6338 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6339 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6340 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6341 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6342 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6343
6344 * m68k-tdep.c: Include arch-utils.h
6345 (m68k_register_raw_size): Add.
6346 (m68k_register_virtual_size): Add.
6347 (m68k_register_virtual_type): Add.
6348 (m68k_register_name): Add.
6349 (m68k_stack_align): Add.
6350 (m68k_register_byte): Add.
6351 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6352 tm-m68k.h.
6353
6354 2002-06-21 Grace Sainsbury <graces@redhat.com>
6355
6356 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6357 m68k_find_saved_regs.
6358 (m68k_pop_frame): Removed saved_regs structure, and replaced
6359 references to it with frame->saved_regs.
6360 (m68k_gdbarch_init): Added function calls to initialize the
6361 gdbarch structure.
6362 (m68k_fix_call_dummy): Add.
6363 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6364 (CALL_DUMMY): Remove.
6365 (CALL_DUMMY_LENGTH): Remove.
6366 (CALL_DUMMY_START_OFFSET): Remove.
6367 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6368 (FIX_CALL_DUMMY): Remove.
6369 (PUSH_DUMMY_FRAME): Remove.
6370 (POP_FRAME): Remove.
6371
6372 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6373
6374 * parse.c (parse_fprintf): New function used to avoid calls to
6375 fprintf in bison parser generated debug code.
6376 * parser-defs.h: Declaration of new parse_fprintf function.
6377 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6378 Set YYDEBUG to 1 by default.
6379 Set YYFPRINTF as parse_fprintf.
6380
6381 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6382
6383 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6384 encoding anymore.
6385 (pointer_encoding, enum ptr_encoding): New.
6386 (execute_cfa_program): Take care about pointer encoding.
6387 (dwarf2_build_frame_info): Only call parse_frame_info for
6388 .debug_frame and .eh_frame.
6389 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6390 fixed augmentation handling, added relative addressing,
6391 ignore duplicate FDEs. Added comments.
6392 * dwarf2cfi.c: Reindented.
6393
6394 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6395
6396 * event-top.c (command_handler): Don't use space_at_cmd_start
6397 unless there is sbrk() on the host. Assign time and space data
6398 to union fields of the appropriate length.
6399
6400 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6401
6402 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6403 x86_64_register_name. Return type changed to 'const char *'.
6404 (x86_64_register_name2nr): Rename to x86_64_register_number.
6405 (x86_64_gdbarch_init): Update to reflect the change.
6406 * x86-64-tdep.h: Ditto.
6407 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6408 (supply_fpregset): Ditto.
6409
6410 2002-06-19 Andrew Cagney <cagney@redhat.com>
6411
6412 * regcache.h: Update copyright.
6413 (struct regcache, struct gdbarch): Add opaque declarations.
6414 (current_regcache): Declare global variable.
6415 (regcache_read, regcache_write): Add gdbarch parameter.
6416 (regcache_save, regcache_save_no_passthrough)
6417 (regcache_restore, regcache_restore_no_passthrough)
6418 (regcache_dup, regcache_dup_no_passthrough)
6419 (regcache_cpy, regcache_cpy_no_passthrough)
6420 (deprecated_grub_regcache_for_registers)
6421 (deprecated_grub_regcache_for_register_valid)
6422 (regcache_valid_p): Add function declarations.
6423
6424 * regcache.c: Update copyright.
6425 (regcache_descr_handle): New global variable.
6426 (struct regcache_descr): Define.
6427 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6428 (regcache_descr, xfree_regcache_descr): New functions.
6429 (struct regcache): Define.
6430 (regcache_xmalloc, regcache_xfree): New functions.
6431 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6432 (regcache_dup, regcache_dup_no_passthrough): New functions.
6433 (regcache_valid_p, regcache_read_as_address): New functions.
6434 (deprecated_grub_regcache_for_registers): New function.
6435 (deprecated_grub_regcache_for_register_valid): New function.
6436 (current_regcache): New global variable.
6437 (register_buffer): Add regcache parameter. Update calls.
6438 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6439 (read_register_gen, write_register_gen): Update register_buffer
6440 call. Test for legacy_p instead of gdbarch_register_read_p or
6441 gdbarch_register_write_p.
6442 (regcache_collect): Update register_buffer call.
6443 (build_regcache): Rewrite. Use deprecated grub functions.
6444 (regcache_save, regcache_save_no_passthrough): New functions.
6445 (regcache_restore, regcache_restore_no_passthrough): New
6446 functions.
6447 (_initialize_regcache): Create the regcache_data_handle. Swap
6448 current_regcache global variable.
6449
6450 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6451 parameter to regcache_read and regcache_write calls.
6452 (sh4_register_read): Ditto.
6453 (sh64_pseudo_register_read): Ditto.
6454 (sh64_register_read): Ditto.
6455 (sh_pseudo_register_write): Ditto.
6456 (sh4_register_write): Ditto.
6457 (sh64_pseudo_register_write): Ditto.
6458 (sh64_register_write): Ditto.
6459
6460 * defs.h (XCALLOC): Define.
6461
6462 2002-06-19 Grace Sainsbury <graces@redhat.com>
6463
6464 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6465 * m68k-tdep.c (m68k_gdbarch_init): Added.
6466 (m68k_dump_tdep): Added.
6467
6468 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6469
6470 * ada-lang.c (fill_in_ada_prototype): Update comment.
6471
6472 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6473
6474 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6475 MIPS_ABI_LAST.
6476 (mips_abi_string, mips_abi_strings): New.
6477 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6478 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6479 tdep->mips_abi_string. Honor mips_abi_string. Default to
6480 O32 if no ABI is found.
6481 (mips_dump_tdep): Use mips_abi_strings.
6482 (mips_abi_update): New function.
6483 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6484 ``set mips abi'' and ``show mips abi''. Check the size of
6485 mips_abi_strings.
6486
6487 2002-06-19 Andrew Cagney <cagney@redhat.com>
6488
6489 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6490 constant.
6491
6492 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6493
6494 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6495 current frame using only the first stack size adjustment. All
6496 subsequent size adjustments are not considered to be part of
6497 the "static" part of the current frame.
6498 Compute the address of the saved registers relative to the
6499 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6500 in use in this frame.
6501
6502 2002-06-18 Don Howard <dhoward@redhat.com>
6503
6504 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6505 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6506 suggesting this solution.
6507
6508 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6509
6510 * config/romp/xm-rtbsd.h: Delete file.
6511 * config/romp/rtbsd.mh: Delete file.
6512
6513 2002-06-18 Keith Seitz <keiths@redhat.com>
6514
6515 * breakpoint.c (condition_command): Post breakpoint_modify
6516 when a condition is added to an existing breakpoint.
6517 (commands_command): Likewise for commands.
6518 (set_ignore_count): Likewise for ignore counts.
6519 If no tty, do not simply return, still need to send event
6520 notification.
6521 (ignore_command): Only print a newline if the command came
6522 from a tty.
6523 Don't call breakpoints_changed, since this is now properly
6524 handled by set_ignore_count.
6525
6526 2002-06-18 Andrew Cagney <cagney@redhat.com>
6527
6528 * MAINTAINERS: Note that cris-elf target can be compiled with
6529 -Werror.
6530 * cris-tdep.c (cris_register_name): Make return type constant.
6531 (cris_breakpoint_from_pc): Ditto.
6532
6533 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6534
6535 * frame.h (struct frame_info): Change type of context to
6536 'struct context'.
6537
6538 2002-06-17 Andrew Cagney <cagney@redhat.com>
6539
6540 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6541 pointer.
6542 * gdbarch.h, gdbarch.c: Regenerate.
6543 * config/mips/tm-mips.h (mips_register_name): Update.
6544 * i386-tdep.h (i386_register_name): Update.
6545 * mips-tdep.c (mips_register_name): Update
6546 * alpha-tdep.c (alpha_register_name): Update.
6547 * arch-utils.c (legacy_register_name): Update.
6548 * arch-utils.h (legacy_register_name): Update.
6549 * avr-tdep.c (avr_register_name): Update.
6550 * ia64-tdep.c (ia64_register_name): Update.
6551 * i386-tdep.c (i386_register_name): Update.
6552 * sparc-tdep.c (sparc32_register_name): Update.
6553 (sparc64_register_name): Update.
6554 (sparclite_register_name): Update.
6555 (sparclet_register_name): Update.
6556 * sh-tdep.c (sh_generic_register_name): Update.
6557 (sh_sh_register_name): Update.
6558 (sh_sh3_register_name): Update.
6559 (sh_sh3e_register_name): Update.
6560 (sh_sh_dsp_register_name): Update.
6561 (sh_sh3_dsp_register_name): Update.
6562 (sh_sh4_register_name): Update.
6563 (sh_sh64_register_name): Update.
6564 * s390-tdep.c (s390_register_name): Update.
6565 * rs6000-tdep.c (rs6000_register_name): Update.
6566 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6567 (ns32k_register_name_32382): Update.
6568 * d10v-tdep.c (d10v_ts2_register_name): Update.
6569 (d10v_ts3_register_name): Update.
6570 * xstormy16-tdep.c (xstormy16_register_name): Update.
6571 * vax-tdep.c (vax_register_name): Update.
6572 * v850-tdep.c (v850_register_name): Update.
6573 * m68hc11-tdep.c (m68hc11_register_name): Update.
6574 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6575 (am33_register_name): Update.
6576
6577 2002-06-17 Grace Sainsbury <graces@redhat.com>
6578
6579 * m68k-tdep.c: Reindented.
6580
6581 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6582
6583 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6584 list of predefined types.
6585
6586 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6587
6588 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6589 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6590 REGISTER_CONVERT_TO_RAW): Remove defines.
6591 (i386_register_virtual_type, i386_register_convertible,
6592 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6593 Remove prototypes.
6594 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6595 macros mentioned above.
6596
6597 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6598 (i386lynx_saved_pc_after_call): Remove prototype.
6599 * i386ly-tdep.c: Include "i386-tdep.h".
6600 (i386lynx_saved_pc_after_call): Make static. Use
6601 read_memory_nobpt instead of read_memory. Use
6602 read_memory_unsigned_integer instead of read_memory_integer.
6603 (i386lynx_init_abi): New function.
6604 (i386lynx_coff_osabi_sniffer): New function.
6605 (_initialize_i386bsd_tdep): New function.
6606
6607 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6608 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6609 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6610 (i386_fix_call_dummy): Remove prototype.
6611 * i386-tdep.c (i386_call_dummy_words): New variable.
6612 (i386_gdbarch_init): Adjust for removal of the
6613 macros mentioned above.
6614
6615 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6616
6617 * command.h (add_setshow_auto_boolean_cmd): Replace
6618 add_set_auto_boolean_cmd.
6619 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6620 add_set_auto_boolean_cmd.
6621 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6622 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6623 mask-address'' command.
6624 (show_mask_address): Add cmd parameter.
6625 * remote.c (add_packet_config_cmd): Update. Change type of
6626 set_func and show_func to cmd_sfunc_ftype.
6627 (_initialize_remote): Update `set remote Z-packet'
6628 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6629 (show_remote_protocol_e_packet_cmd): Ditto.
6630 (show_remote_protocol_E_packet_cmd): Ditto.
6631 (show_remote_protocol_P_packet_cmd): Ditto.
6632 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6633 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6634 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6635 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6636 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6637 (show_remote_protocol_Z_packet_cmd): Ditto.
6638 (show_remote_protocol_binary_download_cmd): Ditto.
6639 (show_remote_cmd): Pass NULL to all of above.
6640
6641 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6642
6643 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6644 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6645 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6646 POP_FRAME): Remove defines.
6647 (i386_push_arguments, i386_store_struct_return,
6648 i386_extract_return_value, i386_store_return_value,
6649 i386_extract_struct_value_address, i386_push_dummy_frame,
6650 i386_pop_frame): Renove prototypes.
6651 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6652 macros mentioned above.
6653
6654 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6655
6656 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6657 add_set_boolean_cmd.
6658 (add_setshow_cmd): New function.
6659 * command.h (add_setshow_boolean_cmd): Replace
6660 add_set_boolean_cmd.
6661 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6662 and ``set rdiromatzero''.
6663 * maint.c (_initialize_maint_cmds): Update commented out code.
6664 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6665 * target.c (initialize_targets): Update `set
6666 trust-readonly-sections'.
6667 * remote.c (_initialize_remote): Update `set remotebreak'.
6668
6669 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6670
6671 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6672 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6673 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6674 fit into multi-arch framework.
6675 (i386_breakpoint_from_pc): New function.
6676 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6677 above.
6678
6679 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6680 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6681 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6682 (i386_frameless_function_invocation, i386_frame_num_args,
6683 i386_frame_init_saved_regs): Remove prototypes.
6684 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6685 macros mentioned above.
6686
6687 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6688
6689 * cli/cli-decode.c (set_cmd_cfunc): Update.
6690 (set_cmd_sfunc): Update.
6691 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6692 (set_cmd_sfunc, set_cmd_cfunc): Update.
6693 * cli/cli-decode.h: Update.
6694
6695 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6696
6697 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6698 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6699
6700 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6701
6702 * defs.h (auto_boolean): Declare enum.
6703 * command.h (cmd_auto_boolean): Delete enum.
6704 * mips-tdep.c (mask_address_var): Update.
6705 (mips_mask_address_p): Update.
6706 (show_mask_address): Update.
6707 * remote.c (struct packet_config): Update.
6708 (update_packet_config): Update.
6709 (show_packet_config_cmd): Update.
6710 (packet_ok): Update.
6711 (add_packet_config_cmd): Update.
6712 (_initialize_remote):
6713 * command.h: Update.
6714 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6715 (do_setshow_command): Update.
6716 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6717 * cli/cli-decode.h: Update.
6718
6719 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6720
6721 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6722 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6723 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6724 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6725 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6726 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6727
6728 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6729 list of DJGPP COFF targets.
6730
6731 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6732 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6733 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6734 (FP0_REGNUM): Remove define.
6735 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6736 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6737 (i386_register_virtual_size): Remove protoype.
6738 * i386-tdep.c (i386_register_virtual_size): Removed.
6739 (i386_extract_return_value, i386_store_return_value): Use
6740 FP0_REGNUM instead of NUM_FREGS to determine whether the
6741 floating-point registers are available.
6742 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6743 Adjust for removal of macros mentioned above.
6744
6745 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6746
6747 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6748 comments.
6749 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6750 Remove prototypes.
6751 (supply_gregset, fill_gregset): Remove use of register keyword and
6752 remove declaration for regmap. Use I386_NUM_GREGS instead of
6753 NUM_REGS and NUM_FREGS.
6754 (FPREGSET_FSAVE_OFFSET): Remove.
6755 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6756 NUM_FREGS to determine whether the floating-point registers are
6757 available.
6758
6759 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6760 gnu_store_registers): Replace usage of NUM_GREGS with
6761 I386_NUM_GREGS.
6762
6763 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6764 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6765 usage of NUM_GREGS with I386_NUM_GREGS.
6766
6767 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6768
6769 * i386bsd-nat.c: Include "i386-tdep.h".
6770 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6771 I386_NUM_GREGS.
6772
6773 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6774 and associated comment. They no longer make any sense, since we
6775 don't use this file anymore on Linux.
6776
6777 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6778 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6779 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6780 elements in these arrays.
6781 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6782 MAX_NUM_REGS.
6783
6784 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6785
6786 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6787 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6788
6789 2002-06-14 Andrew Cagney <cagney@redhat.com>
6790
6791 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6792 EXTRACT_RETURN_VALUE.
6793 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6794 EXTRACT_STRUCT_VALUE_ADDRESS.
6795 * gdbarch.h, gdbarch.c: Regenerate.
6796
6797 * values.c (value_being_returned): Handle
6798 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6799 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6800
6801 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6802 * arm-tdep.c (arm_gdbarch_init): Update.
6803 * avr-tdep.c (avr_gdbarch_init): Update.
6804 * cris-tdep.c (cris_gdbarch_init): Update.
6805 * d10v-tdep.c (d10v_gdbarch_init): Update.
6806 * ia64-tdep.c (ia64_gdbarch_init): Update.
6807 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6808 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6809 * s390-tdep.c (s390_gdbarch_init): Update.
6810 * sh-tdep.c (sh_gdbarch_init): Update.
6811 * s390-tdep.c (s390_gdbarch_init): Update.
6812 * sparc-tdep.c (sparc_gdbarch_init): Update.
6813 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6814 * v850-tdep.c (v850_gdbarch_init): Update.
6815 * vax-tdep.c (vax_gdbarch_init): Update.
6816 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6817 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6818
6819 * config/arc/tm-arc.h: Update.
6820 * config/d30v/tm-d30v.h: Update.
6821 * config/fr30/tm-fr30.h: Update.
6822 * config/h8300/tm-h8300.h: Update.
6823 * config/h8500/tm-h8500.h: Update.
6824 * config/i386/tm-i386.h: Update.
6825 * config/i386/tm-ptx.h: Update.
6826 * config/i386/tm-symmetry.h: Update.
6827 * config/i960/tm-i960.h: Update.
6828 * config/m32r/tm-m32r.h: Update.
6829 * config/m68k/tm-delta68.h: Update.
6830 * config/m68k/tm-linux.h: Update.
6831 * config/m68k/tm-m68k.h: Update.
6832 * config/m88k/tm-m88k.h: Update.
6833 * config/mcore/tm-mcore.h: Update.
6834 * config/mips/tm-mips.h: Update.
6835 * config/mn10200/tm-mn10200.h: Update.
6836 * config/pa/tm-hppa.h: Update.
6837 * config/pa/tm-hppa64.h: Update.
6838 * config/sparc/tm-sp64.h: Update.
6839 * config/sparc/tm-sparc.h: Update.
6840 * config/sparc/tm-sparclet.h: Update.
6841 * config/z8k/tm-z8k.h: Update.
6842
6843 2002-06-14 Andrew Cagney <cagney@redhat.com>
6844
6845 * Makefile.in (i386_linux_tdep_h): Define.
6846 (i386_tdep_h, i387_tdep_h): Define.
6847 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6848 $(i386_tdep_h) and $(i387_tdep_h).
6849 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6850
6851 2002-06-14 Mark Kettenis <kettenis@gnu.org>
6852
6853 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6854 Already covered by the default.
6855
6856 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6857 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6858 (i386_gdbarch_init): Initialize long_double_format and long_double
6859 bit.
6860
6861 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6862 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6863 Move these to ...
6864 * config/i386/i386sol2.mh: ... here.
6865 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6866 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6867 (SIGCONTEXT_PC_OFFSET): Remove define.
6868 (IN_SIGTRAMP): Remove define.
6869 * i386-sol2-tdep.c: New file.
6870
6871 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6872 * config/i386/tm-i386nw.h: Removed.
6873
6874 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6875 USE_STRUCT_CONVENTION): Remove defines.
6876 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6877 (get_longjmp_target): Remove prototype.
6878 (IN_SIGTRAMP): Remove define.
6879 (i386bsd_in_sigtramp): Remove prototype.
6880 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6881 function. Update comment accordingly
6882 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6883 (FRAME_SAVED_PC): Remove define.
6884 (i386bsd_frame_saved_pc): Remove prototype.
6885 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6886 GET_LONGJMP_TARGET): Remove defines.
6887 (get_longjmp_target): Remove prototype.
6888 (IN_SIGTRAMP): Remove define.
6889 (i386bsd_in_sigtramp): Remove prototype.
6890 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6891 function. Update comment accordingly
6892 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6893 (FRAME_SAVED_PC): Remove define.
6894 (i386bsd_frame_saved_pc): Remove prototype.
6895 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6896 Remove prototype.
6897 (USE_STRUCT_CONVENTION): Remove prototype.
6898 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6899 declaration.
6900 (_initialize_i386bsd_nat): Revise logic to determine some
6901 constants at compile time when compiling a native GDB. Warn if
6902 things don't match up with what we expect.
6903 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6904 Remove variables.
6905 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6906 to use date stored in `struct gdbarch_tdep'.
6907 (i386bsd_sigcontext_offset): Remove varaible.
6908 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6909 stored in `struct gdbarch_tdep'.
6910 (i386bsd_frame_saved_pc): Make static.
6911 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6912 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6913 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6914 i386fbsd4_sc_pc_offset): New variables.
6915 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6916 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6917 functions.
6918 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6919 functions.
6920 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6921 Modify the value of i386fbsd_sigtramp_start and
6922 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6923 i386fbsd_sigtramp_end.
6924 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6925 function.
6926
6927 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6928 define to i386-linux-tdep.h.
6929 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6930 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6931 defines.
6932 (i386_linux_register_name, i386_linux_register_byte,
6933 i386_linux_register_raw_size): Remove prototypes.
6934 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6935 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6936 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6937 TARGET_WRITE_PC): Remove defines.
6938 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6939 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6940 i386_linux_write_pc): Remove prototypes.
6941 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6942 (get_longjmp_target): Remove prototype.
6943 * i386-linux-tdep.h: New file.
6944 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6945 * i386-linux-tdep.c: Include "i386-tdep.h" and
6946 "i386-linux-tdep.h".
6947 (i386_linux_register_name, i386_linux_register_byte,
6948 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6949 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6950 Make static.
6951 (i386_linux_init_abi): New function.
6952 (_initialize_i386_linux_tdep): New function.
6953
6954 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6955 (i386_saved_pc_after_call): Remove prototype.
6956 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6957 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6958 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6959 (i386_register_name, i386_stab_reg_to_regnum,
6960 i386_dwarf_reg_to_regnum): Remove prototypes.
6961 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6962 SIZEOF_SSE_REGS): Remove defines.
6963 (REGISTER_BYTES): Remove define.
6964 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6965 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6966 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6967 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6968 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6969 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6970 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6971 (get_longjmp_target): Remove prototype.
6972 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6973 (sigtramp_saved_pc): Remove define.
6974 (i386v4_sigtramp_saved_pc): Remove prototype.
6975 * config/i386/tm-go32.h (FRAME_CHAIN,
6976 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6977 (i386go32_frame_saved_pc): Remove prototype.
6978 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6979 (get_longjmp_target): Remove prototype.
6980 * i386-tdep.h: Include "osabi.h".
6981 (enum i386_abi): Removed.
6982 (enum struct_return): New enum.
6983 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6984 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6985 sc_pc_offset members.
6986 (i386_gdbarch_register_os_abi): Remove prototype.
6987 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6988 I386_SSE_NUM_REGS): New defines.
6989 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6990 I386_SSE_SIZEOF_REGS): New defines.
6991 (i386_register_name, i386_register_byte, i386_register_raw_size):
6992 New prototypes.
6993 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6994 (i386bsd_sigtramp_saved_pc): New prototype.
6995 * i386-tdep.c: Don't include "elf-bfd.h".
6996 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6997 i386_frame_chain, i386_saved_pc_after_call): Make static.
6998 (i386_frame_saved_pc): Rewrite to call architecture dependent
6999 function to deal with signal handlers. Make static.
7000 (i386go32_frame_saved_pc): Removed.
7001 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7002 Removed.
7003 (i386_get_longjmp_target): New function.
7004 (default_struct_convention, pcc_struct_convention,
7005 reg_struct_convention, valid_conventions, struct_convention): New
7006 variables.
7007 (i386_use_struct_convention): New function.
7008 (i386v4_sigtramp_saved_pc): Renamed to
7009 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7010 (i386_pc_in_sigtramp): New function.
7011 (i386_abi_names): Removed.
7012 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7013 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7014 Removed.
7015 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7016 i386_gdbarch_register_os_abi): Removed.
7017 (struct i386_abi_handler): Removed.
7018 (i386_abi_handler_list): Removed.
7019 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7020 functions.
7021 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7022 i386_nw_init_abi): New functions.
7023 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7024 Use set_gdbarch_xxx() calls instead of relying on macros for a
7025 number of calls.
7026 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7027 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7028 Register the various architecture variants defined in this file.
7029
7030 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7031
7032 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7033 (struct main_type): Remove arg_types member. Update comments for
7034 struct field.
7035 (TYPE_ARG_TYPES): Remove.
7036 (TYPE_FN_FIELD_ARGS): Update.
7037 (smash_to_method_type): Update prototype.
7038
7039 * c-typeprint.c (cp_type_print_method_args): Take method type
7040 instead of argument list. Use new argument layout. Simplify.
7041 (c_type_print_args): Use new argument layout. Simplify.
7042 (c_type_print_base): Update call to cp_type_print_method_args.
7043 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7044 argument; use die->type instead. Update call to
7045 smash_to_method_type.
7046 (read_structure_scope): Update call to dwarf2_add_member_fn.
7047 * gdbtypes.c (allocate_stub_method): Update comment.
7048 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7049 Use new argument layout.
7050 (check_stub_method): Use new argument layout. Don't count
7051 void as an argument.
7052 (print_arg_types): Update comments. Use new argument layout.
7053 (recursive_dump_type): Don't print arg_types member.
7054 * hpread.c (hpread_read_struct_type): Use new argument layout.
7055 (fixup_class_method_type): Likewise.
7056 (hpread_type_lookup): Likewise.
7057 * stabsread.c (read_type): Update calls to read_args and
7058 smash_to_method_type.
7059 (read_args): Use new argument layout. Simplify.
7060 * valops.c (typecmp): Use new argument layout. Update parameters
7061 and comments. Simplify.
7062 (hand_function_call): Use new argument layout.
7063 (search_struct_method): Update call to typecmp.
7064 (find_overload_match): Use new argument layout.
7065
7066 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7067
7068 * NEWS: Mention multithreaded debug support for gdbserver.
7069
7070 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7071
7072 * MAINTAINERS: Mention NEWS.
7073
7074 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7075
7076 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7077 (struct mips_objfile_private, compare_pdr_entries): New.
7078 (non_heuristic_proc_desc): Read the ".pdr" section if it
7079 is present.
7080
7081 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7082
7083 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7084 (arm_debug): New static variable.
7085 (_initialize_arm_tdep): Add ``set debug arm'' command.
7086
7087 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7088
7089 * Makefile.in (sim_arm_h): Define.
7090 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7091 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7092 (arm_register_sim_regno): New function, map an internal REGNUM
7093 onto a simulator register number.
7094 (arm_gdbarch_init): Set register_sim_regno.
7095
7096 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7097
7098 * MAINTAINERS: Add self.
7099
7100 2002-06-11 Jim Blandy <jimb@redhat.com>
7101
7102 * source.c (source_info): Mention whether the symtab has
7103 information about preprocessor macros.
7104
7105 Call the command `info macro', not `show macro'.
7106 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7107 Fix error message.
7108 (_initialize_macrocmd): Register `info_macro_command' in
7109 `infolist', not `showlist'.
7110
7111 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7112
7113 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7114 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7115 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7116 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7117 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7118 unconditionally.
7119 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7120 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7121 (_initialize_mips_tdep): Remove dead code.
7122 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7123 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7124 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7125 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7126 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7127 MIPS_LAST_FP_ARG_REGNUM): Remove.
7128
7129 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7130
7131 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7132 (unwind_tmp_obstack_free, parse_frame_info)
7133 (update_context, cfi_read_fp, cfi_write_fp)
7134 (cfi_frame_chain, cfi_init_extra_frame_info)
7135 (cfi_virtual_frame_pointer): Use the above function.
7136 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7137
7138 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7139
7140 * v850-tdep.c (v850_type_is_scalar): New function.
7141 (v850_use_struct_convention): Match current gcc implementation
7142 as close as possible.
7143 (v850_push_arguments): Fix stack_offset handling. Don't write
7144 struct_addr into register. This is done by v850_store_struct_return.
7145 (v850_extract_return_value): Care for structs.
7146 (v850_store_return_value): Ditto.
7147 (v850_store_struct_return): Actually write address.
7148
7149 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7150
7151 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7152 without debug information too.
7153
7154 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7155
7156 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7157 Make multi-arch pure.
7158 * gdbarch.h, gdbarch.c: Re-generate.
7159 * arm-tdep.c (arm_print_float_info): Update.
7160 * arch-utils.h (default_print_float_info): Update.
7161 * arch-utils.c (default_print_float_info): Update.
7162 * infcmd.c (float_info): Update call.
7163
7164 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7165
7166 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7167 the front of the initialize list.
7168
7169 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7170
7171 * infrun.c (struct inferior_status): Replace fields
7172 selected_frame_address and selected_level with field
7173 selected_frame_id.
7174 (save_inferior_status): Update. Use get_frame_id.
7175 (struct restore_selected_frame_args): Delete.
7176 (restore_selected_frame): Update. Use frame_find_by_id.
7177 (restore_inferior_status): Update.
7178
7179 * breakpoint.h (struct breakpoint): Change type of
7180 watchpoint_frame to frame_id.
7181 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7182 call to get_current_frame.
7183 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7184 get_current_frame.
7185 (watchpoint_check): Use frame_find_by_id.
7186
7187 * frame.h (record_selected_frame): Delete declaration.
7188 * stack.c (record_selected_frame): Delete function.
7189
7190 * frame.h (struct frame_id): Define.
7191 (get_frame_id): Declare.
7192 (frame_find_by_id): Declare.
7193 * frame.c (frame_find_by_id): New function.
7194 (get_frame_id): New function.
7195
7196 2002-06-10 Andrey Volkov <avolkov@transas.com>
7197
7198 * ser-e7kpc.c: Fix duplicated define and call of
7199 _initialize_ser_e7000pc
7200
7201 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7202
7203 * signals/signals.c (target_signal_from_host): Fix #ifdef
7204 SIGRTMIN case.
7205 (do_target_signal_to_host): Likewise.
7206
7207 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7208
7209 * mips-tdep.c (mips_find_abi_section): New function.
7210 (mips_gdbarch_init): Call it.
7211
7212 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7213
7214 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7215 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7216 after Andrew's 2002-06-08 gdbarch change.
7217
7218 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7219
7220 * i386-linux-nat.c (suppy_gregset): Don't supply
7221 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7222 register cache.
7223 (fill_gregset): Don't fetch it under the same circumstances.
7224
7225 2002-06-09 Andrew Cagney <cagney@redhat.com>
7226
7227 * Makefile.in (callback_h): Define.
7228 (remote_sim_h): Update path to remote-sim.h.
7229 (remote-rdp.o): Add $(callback_h).
7230 (remote-sim.o): Use $(callback_h).
7231 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7232 * remote-rdp.c: Include "gdb/callback.h".
7233
7234 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7235
7236 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7237 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7238
7239 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7240
7241 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7242 * rdi-share/serpardr.c: Ditto.
7243 * rdi-share/unixcomm.c: Ditto.
7244 * rdi-share/serdrv.c: Ditto.
7245 * rdi-share/hostchan.h: Ditto.
7246 * rdi-share/hostchan.c: Ditto.
7247 * rdi-share/host.h: Ditto.
7248 * rdi-share/devsw.c: Ditto.
7249
7250 * objfiles.h: Change type of obj_private to void pointer.
7251 * pa64solib.c: Update copyright. Don't include "assert.h", use
7252 strcmp instead of STREQ, use LONGEST, do not use PTR
7253 * somsolib.c: Ditto.
7254
7255 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7256 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7257 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7258
7259 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7260
7261 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7262 (default_get_saved_register): Delete function.
7263 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7264 generic_unwind_get_saved_register.
7265 * gdbarch.h, gdbarch.c: Re-generate.
7266
7267 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7268
7269 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7270 generic_func_frame_chain_valid.
7271 * gdbarch.h, gdbarch.c: Re-generate.
7272 * blockframe.c (generic_func_frame_chain_valid): Only check
7273 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7274 passing FP to PC_IN_CALL_DUMMY.
7275 Fix PR gdb/360.
7276
7277 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7278
7279 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7280 (register_gdbarch_data): Initialize init_p.
7281 (gdbarch_data): Initialize data pointer using the init function.
7282 (init_gdbarch_data): Delete function.
7283 (gdbarch_update_p): Update.
7284 (initialize_non_multiarch): Update.
7285 (struct gdbarch): Add field initialized_p.
7286 * gdbarch.h, gdbarch.c: Re-generate.
7287
7288 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7289
7290 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7291 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7292 better do the things actually here.
7293 * x86-64-tdep.c (x86_64_register_name2nr): New.
7294 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7295 (x86_64_gdbarch_init): Respect the above change.
7296 * x86-64-tdep.h (x86_64_register_name2nr)
7297 (x86_64_register_nr2name): Add prototypes.
7298 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7299
7300 2002-06-06 Michael Snyder <msnyder@redhat.com>
7301
7302 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7303 Delete extra braces and re-indent.
7304 (d10v_store_return_value): Char return values
7305 must be shifted over by one byte in R0.
7306 (d10v_extract_return_value): Delete extra braces, re-indent.
7307
7308 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7309
7310 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7311 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7312 (d10v_integer_to_address): Rewrite.
7313 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7314 the d10v specific functions which take care of converting to the
7315 correct space.
7316
7317 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7318
7319 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7320 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7321
7322 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7323
7324 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7325 includes.
7326 * config/tm-linux.h: Ditto.
7327 * config/alpha/tm-alphalinux.h: Ditto.
7328 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7329 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7330 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7331 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7332 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7333 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7334 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7335 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7336 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7337 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7338 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7339 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7340 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7341 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7342 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7343 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7344 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7345 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7346 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7347 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7348 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7349 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7350 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7351 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7352 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7353 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7354 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7355 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7356 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7357 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7358 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7359 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7360 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7361 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7362 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7363 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7364 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7365
7366 2002-05-04 Aidan Skinner <aidan@velvet.net>
7367
7368 * ada-exp.tab.c: New file
7369 * ada-exp.y: New file
7370 * ada-lang.c: New file
7371 * ada-lang.h: New file
7372 * ada-lex.c: New file
7373 * ada-lex.l: New file
7374 * ada-tasks.c: New file
7375 * ada-typeprint.c: New file
7376 * ada-valprint.c: New file
7377
7378 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7379
7380 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7381 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7382
7383 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7384
7385 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7386 insetead of ppc-linux-tdep.o.
7387 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7388 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7389
7390 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7391
7392 2002-05-07 Christian Groessler <chris@groessler.org>
7393 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7394 bit register contents for little endian hosts.
7395
7396 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7397
7398 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7399 any maintainer.
7400
7401 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7402
7403 * gdbarch.h: Regenerate.
7404
7405 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7406
7407 * MAINTAINERS: Add everyone to write-after-approval list.
7408
7409 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7410
7411 * stack.c (frame_info): Use frame_register_unwind instead of
7412 saved_regs. Mention when the SP is on the stack or in a register.
7413
7414 * frame.h (frame_register_unwind_ftype): Define. Document.
7415 (struct frame_info): Add field register_unwind and
7416 register_unwind_cache.
7417 (frame_register_unwind): Declare.
7418 (generic_unwind_get_saved_register): Declare.
7419
7420 * frame.c (frame_register_unwind): New function.
7421 (generic_unwind_get_saved_register): New function.
7422
7423 * blockframe.c (generic_call_dummy_register_unwind): New function.
7424 (frame_saved_regs_register_unwind): New function.
7425 (set_unwind_by_pc): New function.
7426 (create_new_frame): New function.
7427 (get_prev_frame): New function.
7428
7429 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7430
7431 * a29k-share/: Delete directory.
7432 * remote-vx29k.c: Delete file.
7433
7434 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7435
7436 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7437 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7438
7439 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7440
7441 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7442 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7443 (sparc64nbsd-nat.o)
7444 (sparcnbsd-nat.o)
7445 (sparcnbsd-tdep.o): New dependency lists.
7446 * NEWS: Note new UltraSPARC NetBSD native configuration.
7447 * configure.host (sparc64-*-netbsd*): New host.
7448 * configure.tgt (sparc-*-netbsdelf*)
7449 (sparc-*-netbsd*): Set gdb_target to nbsd.
7450 (sparc64-*-netbsd*): New target.
7451 * sparc64nbsd-nat.c: New file.
7452 * sparcnbsd-nat.c: New file.
7453 * sparcnbsd-tdep.c: New file.
7454 * sparcnbsd-tdep.h: New file.
7455 * config/sparc/nbsd.mt: New file.
7456 * config/sparc/nbsd64.mh: New file.
7457 * config/sparc/nbsd64.mt: New file.
7458 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7459 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7460 (HOST_IPC): Remove.
7461 * config/sparc/nbsdaout.mt: Remove.
7462 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7463 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7464 (HOST_IPC): Remove.
7465 * config/sparc/nbsdelf.mt: Remove.
7466 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7467 sparc-nat.c compatiblity defines.
7468 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7469 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7470 * config/sparc/tm-nbsd64.h: New file.
7471 * config/sparc/tm-nbsdaout.h: Remove.
7472 * config/sparc/xm-nbsd.h: Remove.
7473
7474 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7475
7476 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7477 * sparc-tdep.c: Include osabi.h.
7478 (gdbarch_tdep): Add osabi member.
7479 (_initialize_sparc_tdep): Use gdbarch_register.
7480 (sparc_gdbarch_init): Use generic OS ABI framework.
7481 (sparc_dump_tdep): New function.
7482
7483 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7484
7485 * corefile.c (do_captured_read_memory_integer): Return non-zero
7486 result.
7487 (safe_read_memory_integer): Copy result of memory read when
7488 status is non-zero. Also, add comments.
7489
7490 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7491
7492 * Makefile.in (ppc_tdep_h): Define.
7493 (ppc-linux-nat.o)
7494 (ppc-linux-tdep.o)
7495 (rs6000-tdep.o): Use $(ppc_tdep_h).
7496 (ppc-sysv-tdep.o)
7497 (ppcnbsd-nat.o)
7498 (ppcnbsd-tdep.o): New dependency lists.
7499 * ppc-tdep.h: Use generic OS ABI framework.
7500 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7501 (ppc_linux_init_abi): New functions.
7502 (ppc_sysv_abi_broken_use_struct_convention)
7503 (ppc_sysv_abi_use_struct_convention)
7504 (ppc_sysv_abi_push_arguments): Move to...
7505 * ppc-sysv-tdep.c: ...here.
7506 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7507 * rs6000-tdep.c (process_note_abi_tag_sections)
7508 (get_elfosabi): Remove.
7509 (rs6000_gdbarch_init): Use generic OS ABI framework.
7510 (rs6000_dump_tdep): New function.
7511 (_initialize_rs6000_tdep): Use gdbarch_register.
7512 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7513 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7514 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7515 of ppc-linux-tdep.o.
7516 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7517 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7518 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7519 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7520 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7521 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7522
7523 2002-05-29 Jim Blandy <jimb@redhat.com>
7524
7525 * macroscope.c (default_macro_scope): Put `void' in empty argument
7526 list.
7527
7528 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7529
7530 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7531 * arch-utils.c: Include "sim-regno.h".
7532 * gdbarch.sh: Don't include "sim-regno.h".
7533 * gdbarch.h, gdbarch.c: Regenerate.
7534 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7535 here.
7536 * arch-utils.h (legacy_register_sim_regno): To here.
7537 * remote-sim.c (legacy_register_sim_regno): Move function from
7538 here.
7539 * arch-utils.c (legacy_register_sim_regno): To here.
7540
7541 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7542
7543 * sim-regno.h: New file.
7544 * Makefile.in (sim_regno_h): Define.
7545 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7546 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7547 (legacy_register_sim_regno): New function.
7548 (one2one_register_sim_regno): New function.
7549 (gdbsim_fetch_register): Rewrite.
7550 (gdbsim_store_register): Only store a register when
7551 REGISTER_SIM_REGNO is valid.
7552 * d10v-tdep.c: Include "sim-regno.h".
7553 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7554 (d10v_ts3_register_sim_regno): Ditto.
7555 * gdbarch.sh: Include "sim-regno.h".
7556 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7557 * gdbarch.h, gdbarch.c: Regenerate.
7558 * arch-utils.h (default_register_sim_regno): Delete declaration.
7559 * arch-utils.c (default_register_sim_regno): Delete function.
7560
7561 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7562
7563 * ppcnbsd-nat.c: Rewrite.
7564 * ppcnbsd-tdep.c: New file.
7565 * ppcnbsd-tdep.h: New file.
7566 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7567 solib.o, and solib-svr4.o.
7568 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7569 nbsd-tdep.o, and corelow.o.
7570
7571 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7572
7573 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7574 `tr' and `sed'. Mention that `broken' targets are not expected to
7575 build.
7576
7577 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7578
7579 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7580 Let PC point right after the prologue before looking up symbols.
7581
7582 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7583
7584 * i386-tdep.c (i386_register_virtual_type): Return
7585 builtin_type_vec128i for SSE registers.
7586
7587 * gdbtypes.h (builtin_type_vec128i): Declare.
7588
7589 * gdbtypes.c (build_builtin_type_vec128i): New function.
7590 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7591 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7592 (build_gdbtypes): Initialize new builtin vector types.
7593 (_initialize_gdbtypes): Register new vector types with gdbarch.
7594
7595 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7596
7597 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7598 since it has been multi-arch'd.
7599 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7600 Move Alpha and VAX multi-arch news entries to same section
7601 as other multi-arch news.
7602
7603 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7604
7605 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7606 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7607 static. Rename some register numbers to put them in ns32k-tdep
7608 private namespace.
7609 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7610 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7611 functions.
7612 (_initialize_ns32k_tdep): Use gdbarch_register.
7613 * ns32k-tdep.h: New file.
7614 * ns32knbsd-tdep.c: New file.
7615 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7616 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7617 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7618 REGISTER_BYTES, REGISTER_BYTE): Remove.
7619 * config/ns32k/tm-ns32k.h: New file.
7620 * config/ns32k/tm-umax.h: Remove.
7621
7622 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7623
7624 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7625 ns32k_store_struct_return, ns32k_extract_return_value,
7626 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7627 functions.
7628 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7629 ns32k_saved_pc_after_call.
7630 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7631 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7632 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7633 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7634 ns32k_extract_struct_value_address.
7635
7636 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7637
7638 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7639 ns32k_fix_call_dummy): New.
7640 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7641 ns32k_call_dummy_words.
7642 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7643 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7644 CALL_DUMMY_NARGS): Remove.
7645 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7646
7647 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7648
7649 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7650 ns32k_frame_saved_pc, ns32k_frame_args_address,
7651 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7652 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7653 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7654 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7655 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7656 (BREAKPOINT): Remove..
7657 (FRAME_CHAIN): Define as ns32k_frame_chain.
7658 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7659 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7660 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7661 (FRAME_FIND_SAVED_REGS): Remove.
7662 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7663 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7664 (POP_FRAME): Define as ns32k_pop_frame.
7665
7666 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7667
7668 * ns32k-tdep.c (ns32k_register_byte_32082,
7669 ns32k_register_byte_32382, ns32k_register_raw_size,
7670 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7671 functions.
7672 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7673 ns32k_register_byte_32382.
7674 * config/ns32k/tm-umax.h: Update copyright years.
7675 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7676 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7677 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7678 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7679 (ns32k_get_enter_addr): Fix prototype.
7680
7681 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7682
7683 * ns32k-tdep.c: Update copyright years.
7684 (ns32k_register_name_32082): New function.
7685 (ns32k_register_name_32382): Ditto.
7686 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7687 (REGISTER_NAME): Define as ns32k_register_name_32382.
7688 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7689 (REGISTER_NAME): Define as ns32k_register_name_32082.
7690
7691 2002-05-24 Jim Blandy <jimb@redhat.com>
7692
7693 * dwarf2read.c (free_line_header): Use xfree, not free.
7694
7695 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7696
7697 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7698 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7699
7700 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7701
7702 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7703
7704 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7705
7706 From Ross Alexander at NEC Europe:
7707 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7708
7709 2002-05-23 Michael Snyder <msnyder@redhat.com>
7710
7711 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7712 for input, rather than parse_and_eval_address.
7713
7714 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7715
7716 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7717 * Makefile.in (sim_d10v_h): Update definition.
7718
7719 2002-05-24 Andrew Cagney <cagney@redhat.com>
7720
7721 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7722 change `2002-05-22 Michael Snyder' below.
7723 (d10v_push_arguments): Ditto.
7724 (d10v_extract_return_value): Ditto.
7725
7726 2002-05-23 Jim Blandy <jimb@redhat.com>
7727
7728 * macrotab.c (check_for_redefinition): Don't complain if the new
7729 definition is the same as the previous one. Take more arguments
7730 to allow the comparison.
7731 (macro_define_object, macro_define_function): Pass more arguments
7732 to check_for_redefinition.
7733
7734 2002-05-22 Michael Snyder <msnyder@redhat.com>
7735
7736 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7737 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7738 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7739 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7740 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7741 Add a temp variable to save a call (and a memory read).
7742 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7743 if possible (so that PC_IN_CALL_DUMMY will work).
7744
7745 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
7746
7747 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7748
7749 2002-05-22 Michal Ludvig <mludvig@suse.cz>
7750
7751 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7752 fde->cie_ptr.
7753 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7754 (dwarf2_build_frame_info): Add offset to fde->initial_location
7755 so that frames of shared libraries are mapped correctly.
7756 (execute_stack_op): Change type of 'result' from ULONGEST to
7757 CORE_ADDR.
7758
7759 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7760
7761 * config/alpha/tm-nbsd.h: Include solib.h.
7762
7763 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7764
7765 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7766 assumptions about the host's byte order.
7767
7768 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7769
7770 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7771 to dependency list.
7772 * alphanbsd-tdep.c: Include solib-svr4.h.
7773 * shnbsd-tdep.c: Ditto.
7774
7775 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7776
7777 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7778 nbsd-tdep.h to dependency list.
7779 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7780 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7781 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7782 nbsdaout.mh and nbsdelf.mh consistently.
7783 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7784 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7785 nbsdaout.mt and nbsdelf.mh consistently.
7786 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7787 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7788 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7789 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7790 a.out shared library stuff from here...
7791 * config/nm-nbsdaout.h: ...to here.
7792 * config/tm-nbsd.h: Remove.
7793 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7794 * config/arm/nbsd.mh: Remove.
7795 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7796 nbsd-tdep.o.
7797 * config/arm/nbsdaout.mh: New file.
7798 * config/arm/nbsdelf.mh: New file.
7799 * config/arm/nm-nbsdaout.h: New file.
7800 * config/i386/nbsd.mh: Remove.
7801 * config/i386/nbsd.mt: Remove.
7802 * config/i386/nbsdaout.mh: New file.
7803 * config/i386/nbsdaout.mt: New file.
7804 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7805 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7806 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7807 i386_register_u_addr): Remove.
7808 * config/i386/nm-nbsdaout.h: New file.
7809 * config/i386/nm-nbsdelf.h: Remove.
7810 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7811 (USE_STRUCT_CONVENTION): Remove.
7812 * config/i386/tm-nbsdaout.h: New file.
7813 * config/i386/tm-nbsdelf.h: Remove.
7814 * config/m68k/nbsd.mh: Remove.
7815 * config/m68k/nbsd.mt: Remove.
7816 * config/m68k/nbsdaout.mh: New file.
7817 * config/m68k/nbsdaout.mt: New file.
7818 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7819 * config/m68k/nm-nbsdaout.h: New file.
7820 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7821 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7822 * config/ns32k/nbsd.mh: Remove.
7823 * config/ns32k/nbsd.mt: Remove.
7824 * config/ns32k/nbsdaout.mh: New file.
7825 * config/ns32k/nbsdaout.mt: New file.
7826 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7827 * config/ns32k/nm-nbsdaout.h: New file.
7828 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7829 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7830 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7831 (SVR4_SHARED_LIBS): Remove.
7832 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7833 * config/sparc/nbsd.mh: Remove.
7834 * config/sparc/nbsd.mt: Remove.
7835 * config/sparc/nbsdaout.mh: New file.
7836 * config/sparc/nbsdaout.mt: New file.
7837 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7838 * config/sparc/nbsdelf.mt: New file.
7839 * config/sparc/nm-nbsdaout.h: New file.
7840 * config/sparc/nm-nbsdelf.h: Remove.
7841 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7842 * config/sparc/tm-nbsdaout.h: New file.
7843
7844 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7845
7846 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7847 mipsnbsd-tdep.c
7848 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7849
7850 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7851
7852 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7853 shnbsd-nat.c.
7854 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7855
7856 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7857
7858 * NEWS: Note new MIPS NetBSD native configuration.
7859 * configure.host (mips*-*-netbsd*): New host.
7860 * configure.tgt (mips*-*-netbsd*): New target.
7861 * mipsnbsd-nat.c: New file.
7862 * mipsnbsd-tdep.c: New file.
7863 * mipsnbsd-tdep.h: New file.
7864 * config/mips/nbsd.mh: New file.
7865 * config/mips/nbsd.mt: New file.
7866 * config/mips/nm-nbsd.h: New file.
7867 * config/mips/tm-nbsd.h: New file.
7868
7869 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7870
7871 * Makefile.in (SFILES): Add osabi.c.
7872 (COMMON_OBS): Add osabi.o.
7873 (osabi.o): New dependency list.
7874 * osabi.c: New file.
7875 * osabi.h: New file.
7876 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7877
7878 * Makefile.in (alpha_tdep_h): Define and use instead of
7879 alpha-tdep.h.
7880 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7881 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7882 Remove.
7883 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7884 * alpha-tdep.h: Include osabi.h.
7885 (alpha_abi): Remove.
7886 (gdbarch_tdep): Use generic OS ABI framework.
7887 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7888 gdbarch_register_osabi.
7889 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7890 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7891 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7892
7893 * Makefile.in (sh_tdep_h): Add osabi.h.
7894 * sh-tdep.h (sh_osabi): Remove.
7895 (gdbarch_tdep): Use generic OS ABI framework.
7896 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7897 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7898 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7899 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7900
7901 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7902 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7903 gdbarch_register_osabi.
7904 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7905 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7906 (get_elfosabi): Rename to...
7907 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7908 ABI framework support routines.
7909 (arm_gdbarch_init): Use generic OS ABI framework.
7910 (arm_dump_tdep): Likewise.
7911 (_initialize_arm_tdep): Likewise.
7912 * arm-tdep.h: Include osabi.h.
7913 (arm_abi): Remove.
7914 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7915 osabi member.
7916 (arm_gdbarch_register_os_abi): Remove prototype.
7917 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7918 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7919
7920 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7921 * mips-tdep.c: Include osabi.h.
7922 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7923 OS ABI framework.
7924
7925 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7926
7927 * h8300-tdep.c: Fix formatting.
7928
7929 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
7930
7931 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7932 printing vector registers.
7933
7934 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7935
7936 From Fernando Nasser:
7937 * remote.c (remote_async_open_1): Re-throw the exception when the
7938 connection fails.
7939 (remote_cisco_open): Ditto.
7940 (remote_open_1): Ditto.
7941
7942 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7943
7944 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7945 (remote_start_remote): Add uiout parameter. Pass through to
7946 remote_start_remote_dummy.
7947 (remote_open_1): Use catch_exception instead of catch_errors.
7948 (remote_async_open_1): Ditto.
7949 (remote_cisco_open): Ditto.
7950
7951 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7952
7953 * remote.c (remote_start_remote): Replace PTR with void pointer.
7954 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7955 static.
7956
7957 2002-05-18 Andrew Cagney <ac131313@redhat.com>
7958
7959 * gdb_indent.sh: Allow the script to be run in the sim directory.
7960
7961 2002-05-18 Mark Kettenis <kettenis@gnu.org>
7962
7963 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7964 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7965
7966 * corelow.c (core_open): Only call set_gdbarch_from_file if
7967 exec_bfd is NULL.
7968
7969 2002-05-17 Andrey Volkov <avolkov@transas.com>
7970
7971 * h8300-tdep.c: Add support of EXR register
7972 * config/h8300/tm-h8300.h: Ditto.
7973
7974 2002-05-17 Andrey Volkov <avolkov@transas.com>
7975
7976 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7977
7978 2002-05-17 Andrey Volkov <avolkov@transas.com>
7979
7980 * h8300-tdep.c: Change literal regnums to REGNO.
7981
7982 2002-05-17 Jim Blandy <jimb@redhat.com>
7983
7984 * NEWS: Note addition of macro support.
7985
7986 Expand preprocessor macros in C expressions.
7987 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7988 (scan_macro_expansion, scanning_macro_expansion,
7989 finished_macro_expansion): New function declarations.
7990 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7991 variable declarations.
7992 * parser-defs.h (expression_context_pc): New declaration.
7993 * parse.c (expression_context_pc): New variable.
7994 (parse_exp_1): Set expression_context_pc, as well as
7995 expression_context_block.
7996 * c-exp.y (yylex): If we're not already reading the result of a
7997 macro expansion, try to macro-expand the next token. When we're
7998 done scanning a macro expansion, switch back to the mainline text.
7999 Commas and `if's in a macro's expansion don't terminate the input.
8000 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8001 (macro_original_text, macro_expanded_text,
8002 expression_macro_lookup_func, expression_macro_lookup_baton): New
8003 variables.
8004 (scan_macro_expansion, scanning_macro_expansion,
8005 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8006 c_preprocess_and_parse): New functions.
8007 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8008 c_preprocess_and_parse, instead of c_parse.
8009 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8010 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8011
8012 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8013
8014 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8015 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8016 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8017
8018 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8019
8020 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8021
8022 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8023
8024 * Makefile.in (sh_tdep_h): Define and use.
8025 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8026 register enum): Move to...
8027 * * sh-tdep.h: ...here.
8028 * sh-tdep.c: Include sh-tdep.h.
8029 * sh3-rom.c: Likewise.
8030 * shnbsd-tdep.c: Likewise.
8031
8032 2002-05-16 Michael Snyder <msnyder@redhat.com>
8033
8034 * arm-tdep.c: Spelling fix in comment.
8035
8036 2002-05-16 Jim Blandy <jimb@redhat.com>
8037
8038 Add commands for manually expanding macros and showing their
8039 definitions.
8040 * macrocmd.c, macroscope.c, macroscope.h: New files.
8041 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8042 (macroscope_h): New variable.
8043 (HFILES_NO_SRCDIR): Add macroscope.h.
8044 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8045 (macroscope.o, macrocmd.o): New rules.
8046
8047 Teach the Dwarf 2 reader to read macro information.
8048 * dwarf2read.c: #include "macrotab.h".
8049 (dwarf_macinfo_buffer): New variable.
8050 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8051 dwarf_macinfo_size.
8052 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8053 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8054 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8055 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8056 dwarf2_macro_spaces_in_definition): New complaints.
8057 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8058 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8059 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8060 the partial symbol table.
8061 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8062 from what's recorded in the partial symbol table.
8063 (read_file_scope): If the compilation unit has a
8064 `DW_AT_macro_info' attribute, read its macro information.
8065 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8066
8067 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8068
8069 Fix PR gdb/546
8070 * ser-tcp.c: Don't include <netinet/udp.h>.
8071
8072 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8073
8074 * MAINTAINERS: Update my email address.
8075
8076 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8077
8078 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8079 include file of the same name.
8080
8081 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8082
8083 * configure.tgt: Mark v850 as multi-arched.
8084 * config/v850/tm-v850.h: Remove file.
8085 * config/v850/v850.mt: Eliminate TM_FILE.
8086
8087 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8088
8089 * v850-tdep.c: Full multi-arch.
8090 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8091 Define GDB_MULTI_ARCH to 2.
8092
8093 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8094
8095 * p-exp.y (current_type): New static variable.
8096 Carries the type of the expression at the position that is parsed.
8097 (push_current_type, pop_current_type): Two new functions. Used
8098 to store/restore current_type in expression on specific tokens.
8099 (search_field): New static variable. Set to one after parsing a point
8100 as at that point only a FIELDNAME token should be searched.
8101 (FIELDNAME): New token. After a point only a token belonging to
8102 current_type type definition is allowed.
8103 (all over token rules): reset and change current_type according
8104 to rules.
8105 (exp '[' rule): insert implicit array index field if
8106 exp is a pascal string type.
8107
8108 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8109
8110 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8111 frame info. Use frame_info's saved_regs instead of matching member
8112 in extra_frame_info throughout.
8113 (v850_frame_init_saved_regs): New function.
8114 (v850_init_extra_frame_info): Move most functionality into
8115 v850_frame_init_saved_regs().
8116 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8117 (v850_frame_find_saved_regs): Remove declaration.
8118 (FRAME_FIND_SAVED_REGS): Remove definition.
8119 (v850_frame_init_saved_regs): Add declaration.
8120 (FRAME_INIT_SAVED_REGS): Add definition.
8121
8122 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8123
8124 * v850-tdep.c: Begin multi-arch'ing v850.
8125 (v850_target_architecture_hook): Remove function.
8126 (v850_gdbarch_init): New function. Add code previously in
8127 v850_target_architecture_hook().
8128 (_initialize_v850_tdep): Don't set target_architecture_hook.
8129 Call register_gdbarch_init() instead.
8130
8131 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8132
8133 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8134 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8135 (fixup_class_method_type): Likewise.
8136
8137 2002-05-15 Jim Blandy <jimb@redhat.com>
8138
8139 Add macro structures to GDB's symbol tables. Nobody puts anything
8140 in them yet.
8141 * symtab.h (struct symtab): New member: `macro_table'.
8142 * buildsym.h (pending_macros): New global variable.
8143 * buildsym.c: #include "macrotab.h".
8144 (buildsym_init): Initialize `pending_macros'.
8145 (end_symtab): If we found macro information while reading a CU's
8146 debugging info, do build a symtab structure for it. Make the
8147 symtab point to the macro information, and clear the
8148 `pending_macros' pointer which held it while we were reading the
8149 debug info.
8150 (really_free_pendings): Free any pending macro table.
8151 * objfiles.h (struct objfile): New member: `macro_cache'.
8152 * objfiles.c (allocate_objfile): Set allocate and free functions
8153 for the macro cache's objstack.
8154 (free_objfile): Empty the macro cache's obstack.
8155 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8156 set new allocate and free functions for it.
8157 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8158 free functions for the macro cache's objstack. (Why is this
8159 function building its own objfile?)
8160 * symmisc.c (print_objfile_statistics): Print statistics on the
8161 macro bcache.
8162 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8163
8164 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8165
8166 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8167 (REGISTER_U_ADDR): Delete definition.
8168 (arm_register_u_addr): Delete declaration.
8169
8170 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8171
8172 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8173 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8174
8175 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8176
8177 * regcache.c (register_valid): Revise comments refering to "Not
8178 available" and "unavailable".
8179 * frame.c (frame_register_read): Ditto.
8180 * findvar.c (value_of_register): Ditto.
8181
8182 2002-05-15 Andrew Cagney <cagney@redhat.com>
8183
8184 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8185 (remote-sim.o): Update dependencies.
8186 (d10v-tdep.o): Specify dependencies.
8187 (sim_d10v_h): Define.
8188
8189 2002-05-14 Jim Blandy <jimb@redhat.com>
8190
8191 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8192 * macrotab.c (macro_lookup_inclusion, find_definition,
8193 new_macro_table): Same.
8194
8195 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8196 not `! strcmp ()'. This is a dubious improvement.
8197 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8198
8199 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8200 although it's not necessary, to avoid a warning.
8201
8202 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8203
8204 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8205 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8206 TYPE_INSTANCE_FLAGS.
8207 (struct main_type): New.
8208 (struct type): Move most members to struct main_type. Change
8209 cv_type and as_type to new type_chain member. Add instance_flags.
8210 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8211 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8212 (finish_cv_type): Remove prototype.
8213 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8214 Set TYPE_CHAIN.
8215 (alloc_type_instance): New function.
8216 (smash_type): New function.
8217 (make_pointer_type, make_reference_type, make_function_type)
8218 (smash_to_member_type, smash_to_method_type): Call smash_type.
8219 (make_qualified_type): New function.
8220 (make_type_with_address_space): Call make_qualified_type.
8221 (make_cv_type): Likewise.
8222 (finish_cv_type): Remove unnecessary function.
8223 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8224 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8225 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8226 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8227 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8228 * hpread.c (hpread_read_struct_type): Likewise.
8229 * stabsread.c (read_struct_type): Likewise.
8230
8231 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8232
8233 * configure.tgt: Add a catch all sh* target, for cases like
8234 sh[2,3,4]-elf and sh-hms.
8235
8236 2002-05-14 Keith Seitz <keiths@redhat.com>
8237
8238 * event-loop.c (create_file_handler): Don't do anything but
8239 update data when we are given a fd which we are already
8240 monitoring.
8241
8242 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8243
8244 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8245 (update_context): Use __func__ in warnings.
8246
8247 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8248
8249 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8250 and tcp_close to net_open and net_close.
8251 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8252 using UDP if requested. Don't try to disable Nagle on UDP
8253 sockets.
8254 * remote.c (remote_serial_open): New function. Warn about UDP.
8255 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8256
8257 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8258
8259 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8260
8261 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8262
8263 * configure.tgt: Remove sh-hms target.
8264 * MAINTAINERS: Don't list sh-hms as a separate target.
8265
8266 2002-05-13 Jim Blandy <jimb@redhat.com>
8267
8268 Add first preprocessor macro-expansion files.
8269 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8270 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8271 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8272 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8273 (COMMON_OBS): Add macrotab.o, macroexp.o.
8274 (macroexp.o, macrotab.o): New rules.
8275
8276 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8277
8278 * config/m88k/tm-m88k.h: Update copyright.
8279 (m88k_target_write_pc): Declare
8280 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8281 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8282 (SHIFT_INST_REGS): Update definition.
8283 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8284 using old definition of TARGET_WRITE_PC.
8285 * regcache.c (generic_target_write_pc): Delete code handling
8286 NNPC_REGNUM.
8287 * gdbarch.sh (NNPC_REGNUM): Delete.
8288 * gdbarch.h, gdbarch.c: Regenerate.
8289
8290 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8291
8292 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8293 builtin reg number.
8294
8295 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8296
8297 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8298 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8299 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8300 access macros.
8301 * c-typeprint.c (cp_type_print_method_args): Likewise.
8302 (c_type_print_args): Likewise.
8303 * d10v-tdep.c (d10v_push_arguments): Likewise.
8304 (d10v_extract_return_value): Likewise.
8305 * expprint.c (print_subexp): Likewise.
8306 * gdbtypes.c (lookup_primitive_typename): Likewise.
8307 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8308 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8309 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8310 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8311 (TYPE_VECTOR): Likewise.
8312 * hpread.c (hpread_read_struct_type)
8313 (fix_static_member_physnames, fixup_class_method_type)
8314 (hpread_type_lookup): Likewise.
8315 * mdebugread.c (parse_symbol, parse_type): Likewise.
8316 * p-lang.c (is_pascal_string_type): Likewise.
8317 * valops.c (hand_function_call): Likewise.
8318 * x86-64-tdep.c (classify_argument): Likewise.
8319
8320 * hpread.c (hpread_read_function_type)
8321 (hpread_read_doc_function_type): Call replace_type.
8322 * dstread.c (create_new_type): Delete.
8323 (decode_dst_structure, process_dst_function): Call alloc_type.
8324 Use type access macros.
8325
8326 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8327
8328 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8329 the're not supported by the current architecture.
8330 (i387_fill_fxsave): Likewise.
8331
8332 2002-05-12 Fred Fish <fnf@redhat.com>
8333
8334 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8335 sect_index_xxx members to index the first slot in section_offsets
8336 if all of the section_offsets are zero.
8337
8338 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8339
8340 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8341 checked in with last change.
8342
8343 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8344
8345 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8346 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8347 config.sub.
8348
8349 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8350
8351 * Makefile.in: Update dependencies.
8352
8353 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8354
8355 * language.c (local_hex_string_custom): Simplify. Do not depend
8356 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8357
8358 * memattr.c (mem_info_command): Replace calls to
8359 longest_local_hex_string and longest_local_hex_string_custom.
8360 * buildsym.c (make_blockvector): Ditto.
8361 * solib.c (info_sharedlibrary_command): Ditto.
8362 * tracepoint.c (tracepoints_info): Ditto.
8363 * symtab.c (print_msymbol_info): Ditto.
8364
8365 * language.c (local_hex_string): Delete.
8366 (local_hex_string_custom): Delete.
8367 (longest_local_hex_string): Rename to local_hex_string.
8368 (longest_local_hex_string_custom): Rename to
8369 local_hex_string_custom.
8370 * language.h (local_hex_string): Change parameter type to LONGEST.
8371 (local_hex_string_custom): Ditto.
8372 (longest_local_hex_string): Delete declaration.
8373 (longest_local_hex_string_custom): Ditto.
8374
8375 * solib.c: Update copyright.
8376 * memattr.c: Update copyright.
8377
8378 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8379
8380 * arch-utils.h (legacy_register_to_value): Declare.
8381 (legacy_value_to_register): Declare.
8382 (legacy_convert_register_p): Declare.
8383 * arch-utils.c (legacy_register_to_value): New function.
8384 (legacy_value_to_register): New function.
8385 (legacy_convert_register_p): New function.
8386
8387 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8388 (VALUE_TO_REGISTER): Define.
8389 (CONVERT_REGISTER_P): Define.
8390 * gdbarch.h, gdbarch.c: Regenerate.
8391
8392 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8393 VALUE_TO_REGISTER.
8394 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8395 CONVERT_REGISTER_P.
8396
8397 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8398 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8399
8400 * Makefile.in: Update dependencies for valops.c.
8401 * valops.c: Include "gdb_assert.h".
8402 (typecmp): Skip THIS parameter to methods.
8403 (find_method_list): Remove static_memfuncp argument,
8404 update callers. Check for stub methods.
8405 (find_value_oload_method_list): Don't set *static_memfuncp.
8406 (find_overload_match): Don't check for stub methods. Assert
8407 that methods are not stubbed. Handle static methods.
8408 (value_find_oload_method_list): Remove static_memfuncp argument.
8409 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8410 to the argument list for static stub methods.
8411 * value.h (value_find_oload_method_list): Update prototype.
8412
8413 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8414
8415 * arch-utils.h (generic_register_size): Declare.
8416 (generic_register_raw_size, generic_register_virtual_size): Delete
8417 declarations.
8418 * arch-utils.c (generic_register_raw_size): Delete.
8419 (generic_register_size): New function.
8420 (generic_register_virtual_size): Delete.
8421
8422 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8423 default generic_register_size.
8424 * gdbarch.h, gdbarch.c: Re-generate.
8425
8426 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8427 register_virtual_size.
8428 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8429 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8430
8431 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8432
8433 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8434 * gdbarch.h, gdbarch.c: Regenerate.
8435 * gnu-v3-abi.c: Update copyright.
8436 (vtable_address_point_offset): Update.
8437 (gnuv3_rtti_type): Update.
8438 (gnuv3_baseclass_offset): Update.
8439 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8440 (init_fetch_link_map_offsets): Update.
8441 * remote.c (get_remote_state): Update.
8442
8443 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8444
8445 * TODO: Remove value_headof/value_from_vtable_info comment.
8446 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8447 * values.c (value_headof, value_from_vtable_info): Delete.
8448 * value.h (value_from_vtable_info): Delete prototype.
8449
8450 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8451
8452 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8453 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8454 $(gdb_regex_h).
8455 (gdb_assert_h): Define.
8456 (gdb_wait_h): Define.
8457 (gdb_regex_h): Define.
8458
8459 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8460
8461 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8462 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8463
8464 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8465
8466 * nbsd-tdep.c: Fix comment.
8467
8468 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8469
8470 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8471 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8472 (nbsd-tdep.o): New dependency list.
8473 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8474 nbsd-tdep.h.
8475 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8476 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8477 * nbsd-tdep.c: New file.
8478 * nbsd-tdep.h: New file.
8479 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8480 nbsd-tdep.h.
8481 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8482 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8483 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8484 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8485
8486 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8487
8488 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8489 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8490 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8491 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8492 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8493 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8494
8495 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8496
8497 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8498 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8499 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8500 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8501 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8502 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8503 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8504
8505 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8506
8507 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8508 fetch_elfcore_registers to...
8509 * i386nbsd-tdep.c: ...here.
8510 (i386nbsd_use_struct_convention): Rename to...
8511 (i386nbsd_aout_use_struct_convention): ...this.
8512 (i386nbsd_supply_reg): New function.
8513 (i386nbsd_fill_reg): New function.
8514 (fetch_core_registers): Use i386nbsd_supply_reg.
8515 (fetch_elfcore_registers): Likewise.
8516 (_initialize_i386nbsd_tdep): New function.
8517 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8518 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8519 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8520 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8521 (i386nbsd_aout_use_struct_convention): ...this.
8522
8523 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8524
8525 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8526 (store_inferior_registers): Use shnbsd_fill_reg.
8527 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8528 sh_nbsd_supply_register): Collapse into...
8529 (shnbsd_supply_reg): ...this.
8530 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8531 (shnbsd_fill_reg): ...this.
8532 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8533 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8534 (fetch_core_registers): Use shnbsd_supply_reg.
8535 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8536 (sh_nbsd_core_fns): Rename to...
8537 (shnbsd_core_fns): ...this.
8538 (sh_nbsd_elfcore_fns): Rename to...
8539 (shnbsd_elfcore_fns): ...this.
8540 (sh_nbsd_init_abi): Rename to...
8541 (shnbsd_init_abi): ...this.
8542 (_initialize_sh_nbsd_tdep): Rename to...
8543 (_initialize_shnbsd_tdep): ...this.
8544 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8545 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8546 sh_nbsd_fill_register): Remove prototypes.
8547 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8548
8549 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8550
8551 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8552 (i387-nat.o): Delete dependency list.
8553 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8554 (x86-64-linux-nat.o): Likewise.
8555 * i387-nat.c: Delete file, moving contents to...
8556 * i387-tdep.c: ...here.
8557 * i387-nat.h: Rename...
8558 * i387-tdep.h: ...to this.
8559 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8560 * i386-linux-nat.c: Likewise.
8561 * i386bsd-nat.c: Likewise.
8562 * i386gnu-nat.c: Likewise.
8563 * i386nbsd-nat.c: Likewise.
8564 * i386v4-nat.c: Likewise.
8565 * x86-64-linux-nat.c: Likewise.
8566 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8567 * config/i386/go32.mh (NATDEPFILES): Likewise.
8568 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8569 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8570 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8571 * config/i386/linux.mh (NATDEPFILES): Likewise.
8572 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8573 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8574 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8575 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8576
8577 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8578
8579 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8580 (alphanbsd-nat.o): Remove dependency list.
8581 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8582 * alphanbsd-nat.c: Delete. Contents moved to...
8583 * alphanbsd-tdep.c: ...here.
8584 (_initialize_alphanbsd_tdep): Register core functions.
8585 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8586
8587 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8588
8589 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8590 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8591 (alphanbsd-nat.o): Likewise.
8592 (alphabsd-tdep.o): New dependency list.
8593 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8594 (fill_gregset): Use alphabsd_fill_reg.
8595 (supply_fpregset): Use alphabsd_supply_fpreg.
8596 (fill_fpregset): Use alphabsd_fill_fpreg.
8597 (fetch_inferior_registers): Use struct reg and struct fpreg
8598 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8599 and alphabsd_supply_fpreg.
8600 (store_inferior_registers): Use struct reg and struct fpreg
8601 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8602 and alphabsd_fill_fpreg.
8603 * alphabsd-tdep.c: New file.
8604 * alphabsd-tdep.h: New file.
8605 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8606 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8607 alphabsd_supply_fpreg.
8608 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8609 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8610
8611 2002-05-11 Eric Christopher <echristo@redhat.com>
8612
8613 * mips-tdep.c (mips_double_register_type): Fix thinko.
8614 (mips_single_register_type): Ditto.
8615 * MAINTAINERS: Add self.
8616
8617 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8618
8619 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8620 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8621 right thing on architectures with different endianness and/or
8622 integer sizes.
8623
8624 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8625
8626 From Christian Limpach <chris@Pin.LU>
8627 * configure.in: Change sed expression which comments out
8628 NATDEPFILES to also comment out continuation lines.
8629 * configure: Regenerate.
8630
8631 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8632
8633 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8634 big patch.
8635
8636 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8637
8638 * sh-tdep.c: Include correct file.
8639
8640 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8641
8642 New support for sh64-elf (sh5) target.
8643
8644 * configure.tgt: For sh64-elf target, default to sh-elf.
8645
8646 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8647 (struct gdbarch_tdep): Add new fields for new registers and ABI
8648 info.
8649
8650 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8651 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8652 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8653 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8654 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8655 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8656 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8657 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8658 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8659 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8660 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8661 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8662 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8663 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8664 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8665 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8666 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8667 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8668 sign_extend, sh64_nofp_frame_init_saved_regs,
8669 sh64_init_extra_frame_info, sh64_get_saved_register,
8670 sh64_extract_struct_value_address, sh64_pop_frame,
8671 sh64_push_arguments, sh64_extract_return_value,
8672 sh64_store_return_value, sh64_show_media_regs,
8673 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8674 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8675 sh_sh64_register_virtual_type,
8676 sh_sh64_register_convert_to_virtual,
8677 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8678 sh64_register_read, sh64_pseudo_register_write,
8679 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8680 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8681 sh64_do_pseudo_register, sh_compact_do_registers_info,
8682 sh64_do_registers_info, sh_gdbarch_init): New functions.
8683
8684 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8685
8686 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8687
8688 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8689
8690 * linespec.c (decode_line_1): Check for a double quote after
8691 a filename correctly.
8692
8693 2002-05-10 Jim Blandy <jimb@redhat.com>
8694
8695 Properly track the size of the current objfile's .debug_line section.
8696 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8697 (DWARF_LINE_SIZE): New macro.
8698 (dwarf2_build_psymtabs_hard): Record the line section's size in
8699 the partial symbol table.
8700 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8701 symbol table.
8702
8703 2002-05-10 Petr Sorfa <petrs@caldera.com>
8704
8705 * ia64-tdep.c: Handle breakpoints on L instruction type
8706 in MLX instruction bundle by moving the breakpoint to
8707 the third slot (X instruction type) as L holds only data.
8708
8709 2002-05-10 Kevin Buettner <kevinb@redhat.com>
8710
8711 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8712 (process_one_symbol): Complain about discarding local symbols
8713 due to a misplaced N_LBRAC entry.
8714
8715 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
8716
8717 From Daniel Berlin <dan@cgsoftware.com>
8718 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8719 decrease the depth we are at, in the case of templates.
8720
8721 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8722
8723 * mips-tdep.c (mips_float_register_type): New function.
8724 (mips_double_register_type): New function.
8725 (mips_print_register): Use them.
8726 (do_fp_register_row): Likewise.
8727
8728 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8729
8730 * signals/signals.c (signals): Remove conditional compilation around
8731 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8732 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8733
8734 2002-05-09 Michael Snyder <msnyder@redhat.com>
8735
8736 * remote-rdp.c (remote_rdp_can_run): Remove.
8737
8738 2002-05-09 Tom Tromey <tromey@redhat.com>
8739
8740 * jv-valprint.c (java_val_print): Handle `char' as a special case
8741 of TYPE_CODE_INT.
8742
8743 2002-05-09 Michael Snyder <msnyder@redhat.com>
8744
8745 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8746 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8747 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8748 str r(0123),[sp,#nn].
8749 (arm_skip_prologue): Ditto. Also make disassembly
8750 order-independent by placing it in a loop.
8751
8752 2002-05-06 Michael Snyder <msnyder@redhat.com>
8753
8754 * stabsread.c (read_type): Add recognition for new attribute:
8755 "@V;" means that an array type is actually a vector.
8756 This is analogous to the vector flag that's been added to dwarf2.
8757
8758 2002-05-09 Mark Kettenis <kettenis@gnu.org>
8759
8760 * i386-tdep.h (i386_abi): New enum.
8761 (struct gdbarch_tdep): Replace os_ident member with abi.
8762 (i386_gdbarch_register_os_abi): New prototype.
8763 * i386-tdep.c (i386_abi_names): New array.
8764 (process_note_abi_tag_sections): Removed.
8765 (process_note_sections): New function.
8766 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8767 (struct i386_abi_handler): New struct.
8768 (i386_abi_handler_list): New variable.
8769 (i386_gdbarch_register_os_abi): New function.
8770 (i386_gdbarch_init): Adapt for the changes given above.
8771
8772 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
8773
8774 * gregset.h: Say "GNU/Linux".
8775
8776 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
8777
8778 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8779 (build_gdbtypes): Build builtin_type_v2_float.
8780 (_initialize_gdbtypes): Register new builtin type.
8781
8782 2002-05-08 Andrew Cagney <ac131313@redhat.com>
8783
8784 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8785 (clear_gdbarch_swap): New function.
8786 (initialize_non_multiarch): Call.
8787 (gdbarch_update_p): Before calling init(), swap out and clear the
8788 existing architecture.
8789 * gdbarch.c: Regenerate.
8790
8791 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8792
8793 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8794 alphanbsd-tdep.c.
8795
8796 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8797
8798 * sh-nbsd-nat.c: Rename to...
8799 * shnbsd-nat.c: ...this.
8800 * sh-nbsd-tdep.c: Rename to...
8801 * shnbsd-tdep.c: ...this.
8802 * sh-nbsd-tdep.h: Rename to...
8803 * shnbsd-tdep.h: ...this.
8804 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8805 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8806
8807 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
8808
8809 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8810 concatenation for command help messages.
8811
8812 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8813
8814 * NEWS: Note new sh*-*-netbsdelf* configuration.
8815 * configure.host: Set gdb_host_cpu to sh for all sh*.
8816 (sh*-*-netbsdelf*): New host.
8817 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8818 (sh*-*-netbsdelf*): New target.
8819 * sh-nbsd-nat.c: New file.
8820 * sh-nbsd-tdep.c: New file.
8821 * sh-nbsd-tdep.h: New file.
8822 * config/sh/nbsd.mh: New file.
8823 * config/sh/nbsd.mt: New file.
8824 * config/sh/nm-nbsd.h: New file.
8825 * config/sh/tm-nbsd.h: New file.
8826
8827 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8828
8829 * sh-tdep.c (sh_osabi_names): Declare.
8830 (process_note_abi_tag_sections): New function.
8831 (get_elfosabi): Ditto.
8832 (sh_gdbarch_register_os_abi): Ditto.
8833 (sh_dump_tdep): Ditto.
8834 _initialize_sh_tdep): Use gdbarch_register to register
8835 sh_gdbarch_init and sh_dump_tdep.
8836 * config/sh/tm-sh.h (sh_osabi): Declare.
8837 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8838
8839 2002-05-07 Andrew Cagney <ac131313@redhat.com>
8840
8841 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8842 (thumb_scan_prologue): Ditto.
8843 (arm_find_callers_reg): Ditto.
8844 (arm_frame_chain): Ditto.
8845 (arm_init_extra_frame_info): Ditto.
8846 (arm_frame_saved_pc): Ditto.
8847 (arm_pop_frame): Ditto.
8848 (arm_push_return_address): New function.
8849 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8850 call_dummy_location, call_dummy_breakpoint_offset_p,
8851 call_dummy_breakpoint_offset, call_dummy_p,
8852 call_dummy_stack_adjust_p, call_dummy_words,
8853 sizeof_call_dummy_words, call_dummy_start_offset,
8854 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8855 call_dummy_address, push_return_address and push_dummy_frame for
8856 generic dummy frames.
8857
8858 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8859
8860 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8861 size computation for alloca.
8862 (sh_fp_frame_init_saved_regs): Likewise.
8863
8864 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
8865
8866 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8867 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
8868 * arm-tdep.c (arm_store_return_value): Use them.
8869 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8870 * remote-rdp.c (remote_rdp_fetch_register): Use
8871 ARM_MAX_REGISTER_RAW_SIZE.
8872 (remote_rdp_store_register): Likewise.
8873
8874 2002-05-07 Michal Ludvig <mludvig@suse.cz>
8875
8876 * dwarf2cfi.c: Code cleanup, removed unused variables,
8877 added default labels to switch {} statements.
8878 * x86-64-tdep.c: Ditto.
8879 * x86-64-linux-nat.c: Ditto.
8880
8881 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8882
8883 * solib.h: Protect against multiple inclusion.
8884
8885 2002-05-06 Jim Blandy <jimb@redhat.com>
8886
8887 Add first preprocessor macro-expansion files.
8888 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8889 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8890 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8891 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8892 (COMMON_OBS): Add macrotab.o, macroexp.o.
8893 (macroexp.o, macrotab.o): New rules.
8894
8895 Separate the job of reading the line number info statement program
8896 header (...expialidocious) out into its own function.
8897 * dwarf2read.c (struct line_head, struct filenames, struct
8898 directories): Replace with...
8899 (struct line_header): New structure, containing the full
8900 contents of the statement program header, including the
8901 include directory and file name tables.
8902 (read_file_scope): If we have line number info, instead of just
8903 calling dwarf_decode_lines to do all the work, call
8904 dwarf_decode_line_header first to get a `struct line_header'
8905 containing the data in the statement program header, and then
8906 pass that to dwarf_decode_lines, which will pick up where that
8907 left off. Be sure to clean up the `struct line_header' object.
8908 (dwarf_decode_line_header, free_line_header, add_include_dir,
8909 add_file_name): New functions.
8910 (dwarf_decode_lines): Move all the code to read the statement
8911 program header into dwarf_decode_line_header. Take the line
8912 header it built as the first argument, instead of the offset to
8913 the compilation unit's line number info. Use the new `struct
8914 line_header' type instead of the old structures. No need to do
8915 cleanups here now, since we don't allocate anything.
8916 (dwarf2_statement_list_fits_in_line_number_section,
8917 dwarf2_line_header_too_long): New complaints.
8918
8919 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
8920
8921 * gdbtypes.c (init_vector_type): New function.
8922 (build_builtin_type_vec128): Simplify the representation of SIMD
8923 registers.
8924 (build_gdbtypes): Initialize new builtin vector types.
8925 (_initialize_gdbtypes): Register new vector types with gdbarch.
8926 (builtin_type_v4_float, builtin_type_v4_int32,
8927 builtin_type_v8_int16, builtin_type_v16_int8,
8928 builtin_type_v2_int32, builtin_type_v4_int16,
8929 builtin_type_v8_int8): New (renamed) SIMD types.
8930
8931 2002-05-06 Mark Kettenis <kettenis@gnu.org>
8932
8933 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8934 (i387_fill_fxsave): Likewise.
8935
8936 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
8937
8938 * alpha-tdep.c (alpha_extract_return_value): Don't use
8939 non-constant array size in prototype.
8940
8941 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8942
8943 From Brian Taylor <briant at model dot com>:
8944 * ui-out.c (ui_out_field_core_addr): Use the function
8945 longest_local_hex_string_custom'to format addresses > 32 bits
8946 wide.
8947
8948 * ui-out.c (ui_out_field_core_addr): Update comment.
8949
8950 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8951
8952 * stack.c (select_and_print_frame): Make static. Delete the
8953 parameter `level'.
8954 (func_command): Update call.
8955 (select_frame_command): Delete code computing the frame level.
8956 * frame.h (select_and_print_frame): Delete declaration.
8957
8958 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8959
8960 * sparc-tdep.c (sparc_get_saved_register): Comment why
8961 get_prev_frame call is safe.
8962
8963 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8964
8965 * frame.h (select_frame): Delete level parameter.
8966 * stack.c (select_frame): Update. Use frame_relative_level to
8967 obtain the frame's level.
8968 (select_and_print_frame): Update call.
8969 (select_frame_command): Ditto.
8970 (up_silently_base): Ditto.
8971 (down_silently_base): Ditto.
8972 * ocd.c (ocd_start_remote): Ditto.
8973 * remote-rdp.c (remote_rdp_open): Ditto.
8974 * remote-mips.c (mips_initialize): Ditto.
8975 (common_open): Ditto.
8976 * remote-e7000.c (e7000_start_remote): Ditto.
8977 * m3-nat.c (select_thread): Ditto.
8978 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8979 (child_get_current_exception_event): Ditto.
8980 * varobj.c (varobj_create): Ditto.
8981 (varobj_update): Ditto.
8982 (c_value_of_root): Ditto.
8983 * tracepoint.c (finish_tfind_command): Ditto.
8984 * corelow.c (core_open): Ditto.
8985 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8986 * thread.c (info_threads_command): Ditto.
8987 (switch_to_thread): Ditto.
8988 * infrun.c (normal_stop): Ditto.
8989 (restore_selected_frame): Ditto.
8990 (restore_inferior_status): Ditto.
8991 * breakpoint.c (insert_breakpoints): Ditto.
8992 (watchpoint_check): Ditto.
8993 (bpstat_stop_status): Ditto.
8994 (do_enable_breakpoint): Ditto.
8995 * blockframe.c (flush_cached_frames): Ditto.
8996 (reinit_frame_cache): Ditto.
8997
8998 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8999
9000 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9001 maintainer.
9002
9003 2002-05-04 Jim Blandy <jimb@redhat.com>
9004
9005 * gdbtypes.c (replace_type): Doc fix.
9006
9007 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9008
9009 * valprint.c (strcat_longest): Delete commented out function.
9010 Update copyright.
9011
9012 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9013
9014 * MAINTAINERS: Mark a29k as deleted.
9015 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9016 Move new configurations to the top.
9017 * configure.tgt: Remove a29k.
9018 * config/a29k/tm-vx29k.h: Delete.
9019 * config/a29k/vx29k.mt: Delete.
9020 * config/a29k/tm-a29k.h: Delete.
9021 * config/a29k/a29k-udi.mt: Delete.
9022 * config/a29k/a29k.mt: Delete.
9023 * a29k-tdep.c: Delete.
9024 * remote-udi.c: Delete.
9025 * remote-mm.c: Delete.
9026 * remote-eb.c: Delete.
9027 * remote-adapt.c: Delete.
9028 * Makefile.in: Remove obsolete code.
9029 * config/s390/s390x.mt: Ditto.
9030 * config/s390/s390.mt: Ditto.
9031 * config/sparc/sparclynx.mh: Ditto.
9032 * config/sparc/linux.mh: Ditto.
9033 * config/pa/hppaosf.mh: Ditto.
9034 * config/pa/hppabsd.mh: Ditto.
9035 * config/ns32k/nbsd.mt: Ditto.
9036 * config/mips/vr5000.mt: Ditto.
9037 * config/m68k/sun3os4.mh: Ditto.
9038 * config/m68k/nbsd.mt: Ditto.
9039 * config/m68k/m68klynx.mh: Ditto.
9040 * config/m32r/m32r.mt: Ditto.
9041 * config/i386/x86-64linux.mt: Ditto.
9042 * config/i386/nbsdelf.mt: Ditto.
9043 * config/i386/nbsd.mt: Ditto.
9044 * config/i386/i386lynx.mh: Ditto.
9045
9046 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9047
9048 * target.c (debug_print_register): New function. Handle oversize
9049 registers.
9050 (debug_to_fetch_registers): Call.
9051 (debug_to_store_registers): Call.
9052
9053 2002-05-03 Jim Blandy <jimb@redhat.com>
9054
9055 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9056 (read_type): Doc fix.
9057 * gdbtypes.c (replace_type): Doc fix.
9058
9059 * stabsread.c (multiply_defined_struct): New complaint.
9060 (read_struct_type): If the type we were passed isn't empty, or
9061 incomplete, don't read the new struct type into it; complain,
9062 and return the original type unchanged. Take a new `type_code'
9063 argument, which is the type code for the new type.
9064 (read_type): Rather than storing the type's type code here, pass
9065 it as an argument to read_struct_type, and let that take care of
9066 storing it. That way, we don't overwrite the original type code,
9067 so read_struct_type can use it to decide whether we're overwriting
9068 something we shouldn't.
9069 (complain_about_struct_wipeout): New function.
9070
9071 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9072
9073 * gdbarch.sh: Assert that gdbarch is non-NULL.
9074 * gdbarch.c: Regenerate.
9075
9076 2002-05-03 Jason Merrill <jason@redhat.com>
9077
9078 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9079 and return NULL.
9080
9081 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9082
9083 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9084 (x86_64_dwarf2gdb_regno_map_length),
9085 (x86_64_dwarf2_reg_to_regnum): Added.
9086 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9087 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9088 (_initialize_x86_64_tdep): Synced with the change above.
9089 (x86_64_skip_prologue): Reformulated message.
9090
9091 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9092
9093 * f-exp.y: Also use new prev_lexptr variable
9094 to improve error reporting. Based on Michael Snyder
9095 2002-04-24 dated patch to c-exp.y.
9096 * jv-exp.y: Likewise.
9097 * m2-exp.y: Likewise.
9098
9099 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9100
9101 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9102 we are dealing with vectors.
9103
9104 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9105
9106 * config/m68k/tm-nbsd.h: Obvious fix,
9107 correct machine name.
9108
9109 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9110
9111 * p-typeprint.c (pascal_type_print_base): Add support
9112 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9113
9114 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9115
9116 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9117 for fondamental pascal 'char' type.
9118
9119 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9120
9121 * p-lang.h (is_pascal_string_type): Declaration changed,
9122 new sixth argument of type char ** added.
9123 * p-lang.c (is_pascal_string_type): Implementation
9124 changed. Args length_pos, length_size, string_pos, char_size
9125 can now be NULL. New argument arrayname set to the field
9126 name of the char array. Return value set to char array
9127 field index plus one.
9128 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9129 is_pascal_string_type function.
9130
9131 2002-05-02 Andrew Cagney <cagney@redhat.com>
9132
9133 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9134 <cagney@redhat.com> change.
9135 * gdbarch.c: Regenerate.
9136
9137 2002-05-02 Andrew Cagney <cagney@redhat.com>
9138
9139 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9140 before probing for a new one. Detect errorenous gdbarch_init
9141 functions.
9142 * gdbarch.c: Regenerate.
9143
9144 2002-05-01 Andrew Cagney <cagney@redhat.com>
9145
9146 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9147 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9148 * config/v850/tm-v850.h: Ditto. Update copyright.
9149
9150 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9151
9152 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9153 current_gdbarch.
9154
9155 2002-04-30 Michael Snyder <msnyder@redhat.com>
9156
9157 * arm-tdep.c: Whitespace clean-ups.
9158 (arm_skip_prologue): Fix thinko; two lines
9159 should have been removed as part of 4/24 change.
9160
9161 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9162
9163 * rs6000-tdep.c: Added comment describing how fpscr register
9164 numbers were chosen.
9165
9166 2002-04-30 Michael Snyder <msnyder@redhat.com>
9167
9168 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9169
9170 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9171
9172 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9173 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9174 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9175
9176 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9177
9178 From Louis Hamilton <hamilton@redhat.com>:
9179 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9180 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9181 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9182 not bfd-private xcoff data, to determine wordsize.
9183 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9184
9185 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9186
9187 GDB 5.2 released from 5.2 branch.
9188
9189 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9190
9191 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9192 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9193 (x86_64_register_info_table): Added comments with register numbers.
9194
9195 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9196
9197 * rs6000-tdep.c (rs6000_extract_return_value,
9198 rs6000_store_return_value): Handle returning vectors.
9199 (rs6000_gdbarch_init): Use
9200 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9201 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9202 New function.
9203 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9204 vectors.
9205 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9206 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9207
9208 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9209
9210 * hpread.c (hpread_psymtab_to_symtab_1,
9211 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9212 with fprintf_unfiltered (gdb_stderr,...).
9213
9214 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9215
9216 * remote-array.c (printf_monitor, write_monitor,
9217 array_insert_breakpoint, array_remove_breakpoint ):
9218 Replace fprintf (stderr,...
9219 with fprintf_unfiltered (gdb_stderr,....
9220 * remote-es.c: Likewise.
9221 * remote-os9k.c: Likewise.
9222 * remote-st.c: Likewise.
9223
9224 2002-04-28 Andreas Schwab <schwab@suse.de>
9225
9226 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9227 linux-proc.o and gcore.o.
9228
9229 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9230
9231 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9232 code without frame pointers.
9233
9234 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9235
9236 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9237 ON_STACK is needed.
9238
9239 2002-04-26 Ben Elliston <bje@redhat.com>
9240
9241 * target.c (do_xfer_memory): Correct reference to the new option
9242 "trust-readonly-sections".
9243
9244 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9245
9246 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9247 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9248 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9249 vectors.
9250 (read_array_type): Record the fact that this array type is really a
9251 vector (i.e. are passed in by value).
9252
9253 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9254
9255 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9256 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9257 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9258 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9259 * alpha-linux-tdep.c: Include frame.h.
9260 (alpha_linux_sigcontext_addr): New function.
9261 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9262 alpha_linux_sigcontext_addr.
9263 * alpha-osf1-tdep.c: Include gdbcore.h.
9264 (alpha_osf1_sigcontext_addr): New function.
9265 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9266 alpha_osf1_sigcontext_addr.
9267 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9268 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9269
9270 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9271
9272 * stack.c (selected_frame_level):
9273 (select_frame): Do not set selected_frame_level.
9274 * frame.h (selected_frame_level): Delete declaration.
9275
9276 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9277
9278 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9279 convert_from_func_ptr-addr when AIX / PowerOpen.
9280
9281 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9282
9283 * valops.c (hand_function_call): Call
9284 generic_save_call_dummy_addr.
9285 * frame.h (generic_save_call_dummy_addr): Declare.
9286 * blockframe.c (struct dummy_frame): Add fields call_lo and
9287 call_hi.
9288 (generic_find_dummy_frame): Check for PC in range call_lo to
9289 call_hi instead of entry_point_address.
9290 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9291 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9292 (generic_save_call_dummy_addr): New function.
9293
9294 2002-04-24 David S. Miller <davem@redhat.com>
9295
9296 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9297 sparc_skip_prologue.
9298 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9299 information to find prologue when possible.
9300 (sparc_prologue_frameless_p): Call examine_prologue directly.
9301 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9302 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9303 second argument.
9304 (SKIP_PROLOGUE): Likewise.
9305
9306 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9307
9308 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9309 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9310 indicate that the condition it was testing is always true.
9311 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9312 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9313 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9314
9315 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9316
9317 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9318 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9319 tdep->jb_pc and tdep->jb_elt_size.
9320 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9321 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9322 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9323 * alpha-nat.c (get_longjmp_target): Remove.
9324 (JB_ELEMENT_SIZE): Ditto.
9325 (JB_PC): Ditto.
9326 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9327 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9328 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9329 to alpha_get_longjmp_target.
9330 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9331 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9332 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9333
9334 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9335
9336 * README: Update to GDB 5.2.
9337
9338 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9339
9340 * gdbarch.sh (LC_ALL): Set to `c'.
9341
9342 2002-04-25 Theodore A. Roth <troth@verinet.com>
9343
9344 * avr-tdep.c: Ran through gdb_indent.sh.
9345
9346 2002-04-25 Theodore A. Roth <troth@verinet.com>
9347
9348 * MAINTAINERS: Add myself as AVR maintainer.
9349 * NEWS: Note new target avr.
9350
9351 2002-04-25 Theodore A. Roth <troth@verinet.com>
9352
9353 * Makefile.in: Add support for AVR target.
9354 * configure.tgt: Add support for AVR target.
9355 * avr-tdep.c: New file
9356 * config/avr/avr.mt: New file.
9357
9358 2002-04-25 Theodore A. Roth <troth@verinet.com>
9359
9360 * MAINTAINERS: Add myself to write-after-approval.
9361
9362 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9363
9364 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9365 with fprintf_unfiltered (gdb_stderr,....
9366
9367 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9368
9369 Fix PR gdb/508.
9370 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9371
9372 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9373
9374 * p-exp.y: Also use new prev_lexptr variable
9375 to improve error reporting. Based on Michael Snyder
9376 2002-04-24 dated patch to c-exp.y.
9377
9378 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9379
9380 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9381 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9382 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9383 to 0.
9384 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9385 and struct value.
9386 (FUNCTION_START_OFFSET): Remove.
9387 (BREAKPOINT): Ditto.
9388
9389 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9390
9391 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9392 * NEWS: Ditto.
9393
9394 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9395
9396 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9397 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9398 alpha_linux_pc_in_sigtramp.
9399 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9400 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9401 alpha_osf1_pc_in_sigtramp.
9402 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9403 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9404 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9405 alphafbsd_pc_in_sigtramp.
9406 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9407 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9408 alphanbsd_pc_in_sigtramp.
9409 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9410 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9411
9412 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9413
9414 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9415
9416 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9417
9418 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9419 alphanbsd-tdep.c.
9420 (alphanbsd-nat.o): New dependency list.
9421 (alphanbsd-tdep.o): Ditto.
9422 * NEWS: Note new native NetBSD/alpha configuration.
9423 * alphanbsd-nat.c: New file.
9424 * alphanbsd-tdep.c: Ditto.
9425 * configure.host (alpha*-*-netbsd*): New host.
9426 * configure.tgt (alpha*-*-netbsd*): New target.
9427 * config/alpha/nbsd.mh: New file.
9428 * config/alpha/nbsd.mt: Ditto.
9429 * config/alpha/nm-nbsd.h: Ditto.
9430 * config/alpha/tm-nbsd.h: Ditto.
9431
9432 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9433
9434 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9435 (alpha-osf1-tdep.o): New dependency list.
9436 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9437 and skip_sigtramp_frame members.
9438 * alpha-linux-tdep.c: Include gdbcore.h.
9439 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9440 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9441 * alpha-osf1-tdep.c: New file.
9442 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9443 alpha-osf1-dep.c.
9444 (alpha_frame_past_sigtramp_frame): New function.
9445 (alpha_dynamic_sigtramp_offset): Ditto.
9446 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9447 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9448 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9449 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9450 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9451 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9452 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9453 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9454 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9455 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9456 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9457 to find_solib_trampoline_target.
9458 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9459 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9460 (SKIP_TRAMPOLINE_CODE): Remove.
9461 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9462 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9463 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9464 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9465 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9466 (PROC_SIGTRAMP_MAGIC): Ditto.
9467 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9468 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9469 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9470 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9471 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9472
9473 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9474
9475 * NEWS: Note that Alpha targets are now multi-arch.
9476
9477 2002-04-24 Michael Snyder <msnyder@redhat.com>
9478
9479 * parser-defs.h (prev_lexptr): New external variable.
9480 * parse.c (parse_exp_1): Set prev_lexptr to null before
9481 calling the language-specific parser.
9482 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9483 (yyerror): Use prev_lexptr in error reporting.
9484
9485 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9486
9487 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9488 * gregset.h: If FILL_FPXREGSET is defined, provide
9489 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9490 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9491 is defined, call fill_fpxregset.
9492
9493 2002-04-24 Roland McGrath <roland@frob.com>
9494
9495 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9496 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9497 (supply_gregset, supply_fpregset): New functions.
9498
9499 * gnu-nat.c (gnu_find_memory_regions): New function.
9500 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9501 (gnu_xfer_memory): Add a cast.
9502
9503 2002-04-24 Michael Snyder <msnyder@redhat.com>
9504
9505 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9506 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9507 of argument regs ("str r(0123), [r11, #-nn"]).
9508 (arm_skip_prologue): Better handling for frameless functions.
9509 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9510 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9511
9512 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9513
9514 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9515 NUM_PSEUDO_REGS can be used.
9516
9517 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9518
9519 * arch-utils.h: Update copyright.
9520
9521 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9522 * gdbarch.h, gdbarch.c: Re-generate.
9523
9524 * inferior.h (IN_SIGTRAMP): Delete definition.
9525 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9526 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9527
9528 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9529 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9530 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9531 (find_proc_framesize): Ditto.
9532 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9533 (alpha_init_extra_frame_info): Ditto.
9534 * infrun.c (handle_inferior_event): Ditto.
9535 (handle_inferior_event): Ditto.
9536 (check_sigtramp2): Ditto.
9537 * blockframe.c (create_new_frame): Ditto.
9538 (get_prev_frame): Ditto.
9539 * ppc-linux-tdep.c: Update comments.
9540 * i386-linux-tdep.c: Update comments.
9541 * breakpoint.c (bpstat_what): Update comment.
9542
9543 2002-04-24 David S. Miller <davem@redhat.com>
9544
9545 * i960-tdep.c (register_in_window_p): New function.
9546 (i960_find_saved_register): Use it instead of
9547 REGISTER_IN_WINDOW_P.
9548 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9549
9550 * symtab.h (find_stab_function_addr): Kill extern.
9551 * minsyms.c (find_stab_function_addr): Remove from here...
9552 * dbxread.c: ... to here, and mark it static.
9553
9554 2002-04-20 David S. Miller <davem@redhat.com>
9555
9556 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9557 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9558
9559 2002-04-21 David S. Miller <davem@redhat.com>
9560
9561 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9562 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9563 (vx_write_register): Likewise.
9564
9565 2002-04-23 J. Brobecker <brobecker@gnat.com>
9566
9567 * source.c (is_regular_file): New function.
9568 (openp): Check wether file to open is a regular file
9569 to avoid opening directories.
9570
9571 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9572
9573 * findvar.c (extract_signed_integer): Cast printf argument
9574 to suppress format warning.
9575 (extract_unsigned_integer): Likewise.
9576 * infcmd.c (registers_info): Likewise.
9577 * top.c (get_prompt_1): Likewise.
9578 * valops.c (value_assign): Likewise.
9579 * valprint.c (print_decimal): Likewise.
9580
9581 2002-04-22 H.J. Lu (hjl@gnu.org)
9582
9583 * c-exp.y (typebase): Support
9584
9585 [long|long long|short] [signed|unsigned] [int|]
9586
9587 and
9588
9589 signed [long|long long|short] int
9590
9591 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9592
9593 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9594 and vax-tdep.h.
9595 * vax-tdep.h: New file.
9596 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9597 Make several routines static.
9598 (vax_get_saved_register): New function.
9599 (vax_gdbarch_init): New function.
9600 (_initialize_vax_tdep): Register vax_gdbarch_init.
9601 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9602 Remove macros now under the control of gdbarch.
9603
9604 2002-04-22 Michael Snyder <msnyder@redhat.com>
9605
9606 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9607 Some whitespace and coding standards tweaks.
9608
9609 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9610
9611 * vax-tdep.c: Include regcache.h.
9612 (vax_call_dummy_words): New.
9613 (sizeof_vax_call_dummy_words): New.
9614 (vax_fix_call_dummy): New function.
9615 (vax_saved_pc_after_call): Ditto.
9616 * config/vax/tm-vax.h: Don't include regcache.h.
9617 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9618 (CALL_DUMMY): Remove.
9619 (CALL_DUMMY_WORDS): Define.
9620 (SIZEOF_CALL_DUMMY_WORDS): Define.
9621 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9622
9623 2002-04-18 Michael Snyder <msnyder@redhat.com>
9624
9625 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9626
9627 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9628
9629 * vax-tdep.c (vax_frame_chain): New function.
9630 (vax_push_dummy_frame): Ditto.
9631 (vax_pop_frame): Ditto.
9632 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9633 (FRAMELESS_FUNCTION_INVOCATION): Use
9634 generic_frameless_function_invocation_not.
9635 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9636 (POP_FRAME): Use vax_pop_frame.
9637
9638 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9639
9640 * vax-tdep.c (vax_store_struct_return): New function.
9641 (vax_extract_return_value): Ditto.
9642 (vax_store_return_value): Ditto.
9643 (vax_extract_struct_value_address): Ditto.
9644 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9645 vax_store_struct_return.
9646 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9647 (STORE_RETURN_VALUE): Use vax_store_return_value.
9648 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9649
9650 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9651
9652 * vax-tdep.c (vax_frame_saved_pc): New function.
9653 (vax_frame_args_address_correct): Ditto.
9654 (vax_frame_args_address): Ditto.
9655 (vax_frame_locals_address): Ditto.
9656 (vax_frame_num_args): Move code to be in proximity to
9657 other frame-related functions.
9658 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9659 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9660 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9661 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9662 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9663
9664 2002-04-22 H.J. Lu (hjl@gnu.org)
9665
9666 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9667 includedir.
9668
9669 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9670
9671 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9672 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9673 (FRAME_INIT_SAVED_REGS): New macro.
9674
9675 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9676
9677 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9678
9679 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9680
9681 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9682 where needed.
9683 (fetch_osf_core_registers): Likewise.
9684 (supply_gregset): Likewise.
9685
9686 2002-04-22 J. Brobecker <brobecker@gnat.com>
9687
9688 * symfile.h (get_section_index): Define.
9689 * symfile.c (get_section_index): New function.
9690 * mdebugread.c (SC_IS_SBSS): New macro.
9691 (SC_IS_BSS): Return true for the scBss storage class only, as
9692 the scSBss storage class refers to the .sbss section.
9693 (parse_partial_symbols): Discard the symbols which associated
9694 section does not exist.
9695 Make sure to use the .sbss section index for symbols which
9696 storage class is scBss, rather than using the .bss section index.
9697
9698 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9699
9700 * vax-tdep.c: Update copyright years.
9701 (vax_register_name): New function.
9702 (vax_register_byte): Ditto.
9703 (vax_register_raw_size): Ditto.
9704 (vax_register_virtual_size): Ditto.
9705 (vax_register_virtual_type): Ditto.
9706 * config/vax/tm-vax.h: Update copyright years.
9707 (REGISTER_NAMES): Remove.
9708 (REGISTER_NAME): Define.
9709 (REGISTER_BYTE): Use vax_register_byte.
9710 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9711 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9712 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9713
9714 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9715
9716 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9717 declaration
9718 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9719
9720 2002-04-21 David S. Miller <davem@redhat.com>
9721
9722 * arch-utils.c (generic_prologue_frameless_p): Kill
9723 SKIP_PROLOGUE_FRAMELESS_P code.
9724 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9725 references.
9726 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9727 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9728 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9729 references.
9730 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9731 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9732 (sparc_gdbarch_init): Pass it to
9733 set_gdbarch_prologue_frameless_p.
9734
9735 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9736
9737 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9738 (alphabsd-nat.o): New dependency list.
9739
9740 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9741
9742 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9743 alphafbsd-tdep.c.
9744 (alpha-linux-tdep.o): New dependency list.
9745 (alphafbsd-tdep.o): Likewise.
9746
9747 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9748
9749 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9750 to here...
9751 * alpha-tdep.c: ...from here.
9752 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9753
9754 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9755
9756 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9757 prototype from here...
9758 * alpha-tdep.h: ...to here.
9759
9760 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9761
9762 * frame.h (selected_frame_level): Document as deprecated.
9763 (frame_relative_level): Declare.
9764 * stack.c (frame_relative_level): New function.
9765 (selected_frame_level): Document as deprecated.
9766 (select_frame): Do not set the selected_frame_level.
9767
9768 * stack.c (frame_info, record_selected_frame): Update.
9769 (frame_command, current_frame_command): Update.
9770 (up_silently_base, up_command, down_silently_base): Update.
9771 (down_command): Update.
9772 * inflow.c (kill_command): Update.
9773 * tracepoint.c (finish_tfind_command): Update.
9774 * corelow.c (core_open): Update.
9775 * thread.c (info_threads_command): Update.
9776 (do_captured_thread_select): Update.
9777 * infcmd.c (finish_command): Update.
9778 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9779
9780 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9781
9782 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9783
9784 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9785
9786 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9787 type const.
9788
9789 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9790
9791 * alphafbsd-tdep.c: Update copyright years. Include
9792 alpha-tdep.h.
9793 (alphafbsd_use_struct_convention): Make static.
9794 (alphafbsd_init_abi): New function.
9795 (_initialize_alphafbsd_tdep): New function.
9796 * config/alpha/tm-fbsd.h: Update copyright years.
9797 (USE_STRUCT_CONVENTION): Remove.
9798
9799 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9800
9801 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9802 an Alpha ABI variant.
9803 (alpha_abi_handler_list): Declare.
9804 (alpha_gdbarch_register_os_abi): New function.
9805 (alpha_gdbarch_init): Give registered ABI variant handlers a
9806 chance to tweak the gdbarch once we have set up defaults.
9807 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9808
9809 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9810
9811 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9812 to standard_coerce_float_to_double.
9813 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9814
9815 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9816
9817 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9818 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9819 from gdbarch_tdep rather than a constant.
9820 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9821 the default text address for all Alpha Unix ABIs.
9822 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9823 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9824
9825 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9826
9827 * alpha-tdep.h: New file. Includes several Alpha target constants
9828 taken from...
9829 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9830 let gdbarch deal with.
9831 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9832 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9833 to dependency list.
9834 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9835 Alpha target register names.
9836 * alphabsd-nat.c: Likewise.
9837 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9838 Alpha target register names. Make serveral routines static.
9839 (alpha_get_saved_register): New function.
9840 (alpha_abi_names): New.
9841 (process_note_abi_tag_sections): New function.
9842 (get_elfosabi): New function.
9843 (alpha_gdbarch_init): New function.
9844 (alpha_dump_tdep): New function.
9845 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9846
9847 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9848
9849 * frame.c (find_saved_register): Delete #ifdef
9850 HAVE_REGISTER_WINDOWS code.
9851 * config/sparc/tm-sparc.h: Update comments.
9852 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9853
9854 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9855
9856 * i960-tdep.c (i960_find_saved_register): New function.
9857 (i960_get_saved_register): New function.
9858 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9859 (i960_get_saved_register): Declare.
9860 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9861
9862 2002-04-20 David S. Miller <davem@redhat.com>
9863
9864 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9865
9866 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9867
9868 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9869 instead of NUM_PSEUDO_REGS.
9870
9871 2002-04-20 David S. Miller <davem@redhat.com>
9872
9873 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9874 GDB_MULTI_ARCH_PARTIAL
9875 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9876 define, let tm-sp64.h do it.
9877
9878 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9879
9880 * frame.c (find_saved_register): Avoid a NULL pointer
9881 dereference and actually walk the frame list.
9882
9883 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9884
9885 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9886 sorted in most most-recent-used order. Document.
9887 * gdbarch.h, gdbarch.c: Regenerate.
9888
9889 2002-04-19 Andrew Cagney <ac131313@redhat.com>
9890
9891 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9892 instead of ->prev.
9893 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9894 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9895 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9896 instead of ->prev.
9897
9898 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
9899
9900 Fix PR gdb/471.
9901 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9902 (build_builtin_type_vec128): Ditto.
9903 (append_composite_type_field): Fix calculation of type length in
9904 union case.
9905
9906 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9907
9908 * config/djgpp/README: Update.
9909
9910 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9911 compiler warnings.
9912
9913 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9914
9915 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9916 (alpha_setup_arbitrary_frame): ...to this.
9917 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9918 for alpha_setup_arbitrary_frame.
9919
9920 2002-04-18 Andrew Cagney <cagney@redhat.com>
9921
9922 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9923 * gdbarch.h, gdbarch.c: Regenerate.
9924
9925 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9926 * target.h (memory_breakpoint_from_pc): Update declaration.
9927 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9928
9929 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9930 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9931 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9932 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9933 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9934 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9935 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9936 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9937 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9938 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9939 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9940 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9941
9942 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9943 const pointer.
9944 * monitor.c (monitor_insert_breakpoint): Ditto.
9945 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9946
9947 * config/mcore/tm-mcore.h: Update copyright.
9948 * mem-break.c: Ditto.
9949 * xstormy16-tdep.c: Ditto.
9950
9951 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9952
9953 * p-exp.y: Add precedence rule for '^' token.
9954 This removes the shift/reduce conflicts.
9955 Remove the comment concerning these shift/reduce conflicts.
9956
9957 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
9958
9959 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9960 (registers_powerpc_nofp): New register set for processors
9961 without floating point unit.
9962
9963 2002-04-18 David S. Miller <davem@redhat.com>
9964
9965 * MAINTAINERS: Add myself to write-after-approval.
9966
9967 2002-04-17 Michael Snyder <msnyder@redhat.com>
9968
9969 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9970
9971 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9972
9973 * rs6000-tdep.c (frame_initial_stack_address): Use
9974 frame_register_read to read the alloca_reg.
9975
9976 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9977
9978 * frame.c (find_saved_register): Find saved registers in the next
9979 not prev frame.
9980 Fix PR gdb/365.
9981
9982 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9983
9984 * gdbarch.sh (LANG): Set to ``c''.
9985
9986 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9987
9988 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
9989
9990 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9991
9992 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9993 Update copyright.
9994
9995 * hpread.c (hpread_get_lntt): Add declaration.
9996 Also fix PR gdb/391.
9997
9998 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9999
10000 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10001 * aclocal.m4, configure: Re-generate.
10002 Fix PR gdb/391.
10003
10004 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10005
10006 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10007 instead of tm_print_insn.
10008
10009 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10010
10011 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10012
10013 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10014
10015 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10016 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10017 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10018
10019 2002-04-12 Don Howard <dhoward@redhat.com>
10020
10021 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10022 max_user_call_depth.
10023 (init_cmd_lists): Initialize the new value;
10024 * cli/cli-script.c (execute_user_command): Limit the call depth of
10025 user defined commands. This avoids a core-dump when user commands
10026 are infinitly recursive.
10027
10028 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10029
10030 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10031 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10032 from tdep struct instead of DEFAULT_LR_SAVE.
10033 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10034 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10035 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10036
10037 2002-04-12 Michael Snyder <msnyder@redhat.com>
10038
10039 * Remote.c: Spelling fix.
10040 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10041 If no symbol found for "sbrk", try "_sbrk".
10042 (make_output_phdrs): Use bfd_section_name.
10043 (gcore_copy_callback): Use bfd_section_name.
10044 * eval.c: Indentation fix-ups.
10045 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10046 in case it gets applied to an address that is already
10047 in the instruction space.
10048 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10049 * symfile.c: Fix indentation, long lines.
10050 * source.c: White space fix-up.
10051
10052 2002-04-12 Andrew Cagney <cagney@redhat.com>
10053
10054 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10055 * frame.c (frame_register_read): New function. Return non-zero on
10056 success.
10057 (read_relative_register_raw_bytes_for_frame): Delete.
10058 (read_relative_register_raw_bytes): Delete.
10059 * frame.h (frame_register_read): Declare.
10060 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10061 * sh-tdep.c: Ditto.
10062 * infcmd.c (do_registers_info): Ditto.
10063 * hppa-tdep.c: Ditto.
10064 * rs6000-tdep.c: Ditto.
10065 * h8500-tdep.c: Ditto.
10066 * mips-tdep.c: Ditto.
10067 * h8300-tdep.c: Ditto.
10068 * z8k-tdep.c: Ditto.
10069
10070 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10071
10072 From Jimi X <jimix@watson.ibm.com>:
10073 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10074 64-bit SysV ABI.
10075
10076 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10077
10078 From Jimi X <jimix@watson.ibm.com>:
10079 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10080 bfd info.
10081
10082 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10083
10084 From Jimi X <jimix@watson.ibm.com>:
10085 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10086 register sets for these processor variants.
10087
10088 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10089
10090 * regformats/reg-ppc.dat: Support FPSCR.
10091
10092 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10093
10094 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10095 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10096 Add fpscr as an invalid/unfetchable register.
10097 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10098 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10099 (fill_fpregset): Add support for register fpscr.
10100 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10101 (fill_gregset): Account for the fact that register ``mq'' might
10102 not exist.
10103 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10104 (registers_power): Add fpscr to register set at slot 71.
10105 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10106 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10107
10108 2002-04-11 Michael Snyder <msnyder@redhat.com>
10109
10110 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10111 * configure: Regenerate.
10112 * config.in: Regenerate.
10113 * acconfig.h: Add define for _SYSCALL32.
10114 * core-sol2.c: Remove #define _SYSCALL32.
10115 * solib-legacy.c: Remove #define _SYSCALL32.
10116
10117 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10118
10119 * stack.c (select_frame): Cleanup internal error message, do not
10120 use %p.
10121
10122 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10123
10124 * stack.c (select_frame): Check that selected_frame and the
10125 specified level are as expected.
10126 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10127 Update copyright.
10128 * frame.h (struct frame_info): Add field `level'. Update
10129 copyright.
10130 Work-in-progress PR gdb/464.
10131
10132 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10133
10134 * maint.c (maint_print_section_info): Rename print_section_info.
10135 (print_bfd_section_info, print_objfile_section_info): Update.
10136 * inferior.h (struct gdbarch): Add opaque declaration.
10137 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10138 * gdbarch.h: Regenerate.
10139
10140 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10141
10142 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10143 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10144 (kernel_u_size): Added.
10145 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10146 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10147
10148 2002-04-04 Jim Ingham <jingham@apple.com>
10149
10150 * valarith.c (find_size_for_pointer_math): New function, either returns
10151 the size for a pointer's target, returns 1 for void *, or errors for
10152 incomplete types.
10153 (value_add, value_sub): use find_size_for_pointer_math.
10154
10155 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10156
10157 * linux-low.c (linux_look_up_symbols): New hook.
10158 (linux_target_ops): Add linux_look_up_symbols.
10159 * remote-utils.c (decode_address): New function.
10160 (look_up_one_symbol): New function.
10161 * server.c (handle_query): Call target look_up_symbols hook.
10162 * server.h (look_up_one_symbol): Add prototype.
10163 * target.h (struct target_ops): Add look_up_symbols hook.
10164
10165 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10166
10167 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10168 override FP_REGNUM with frame->fp. Update copyright.
10169 * parse.c (num_std_regs, std_regs): Delete.
10170 (target_map_name_to_register): Do not search std_regs. Update
10171 function description.
10172 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10173 declarations. Update copyright.
10174 Fix PR gdb/251.
10175
10176 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10177
10178 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10179 after the last symbol in a block.
10180
10181 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10182
10183 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10184 is non zero as a found symbol.
10185
10186 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10187
10188 * findvar.c: Include "builtin-regs.h".
10189 (value_of_register): Call value_of_builtin_reg when applicable.
10190 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10191 (target_map_name_to_register): Call
10192 builtin_reg_map_name_to_regnum.
10193 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10194 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10195 (builtin_regs_h): Define.
10196 (builtin-regs.o): New target.
10197 (findvar.o): Add $(builtin_regs_h).
10198 * builtin-regs.c, builtin-regs.h: New files.
10199 * std-regs.c: New file.
10200 Partial fix for PR gdb/251.
10201
10202 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10203
10204 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10205 it's no longer required.
10206
10207 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10208
10209 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10210
10211 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10212
10213 From Jimi X <jimix@watson.ibm.com>:
10214 * rs6000-tdep.c (rs6000_software_single_step): Use
10215 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10216 and size. Use target_insert_breakpoint() and
10217 target_remove_breakpoint() to insert and remove breakpoints
10218 instead of explicit memory reads and writes.
10219
10220 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10221
10222 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10223 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10224 ELF_OBJECT_FORMAT ifdef.
10225
10226 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10227
10228 From Jimi X <jimix@watson.ibm.com>:
10229 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10230
10231 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10232
10233 From Jimi X <jimix@watson.ibm.com>:
10234 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10235 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10236
10237 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10238
10239 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10240 s/asprintf/xasprintf/.
10241 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10242
10243 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10244
10245 I believe Jeff Law denies responsability for this one:
10246 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10247 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10248 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10249 Work-around for PR gdb/366.
10250
10251 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10252
10253 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10254 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10255 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10256
10257 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10258
10259 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10260 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10261 information.
10262
10263 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10264
10265 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10266 maintainer.
10267
10268 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10269
10270 * README (Reporting Bugs in GDB): Document the bug web page as the
10271 prefered way of submitting bugs.
10272 Fix PR gdb/402.
10273
10274 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10275
10276 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10277 -1. Update comment.
10278 * gdbarch.h, gdbarch.c: Re-generate.
10279
10280 2002-04-07 Andreas Schwab <schwab@suse.de>
10281
10282 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10283 buffer to regcache_collect.
10284
10285 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10286
10287 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10288 * gdbarch.c, gdbarch.h: Re-generate.
10289
10290 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10291
10292 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10293 declaration. Fix -Werror.
10294
10295 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10296
10297 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10298 * gdbarch.c: Regenerate.
10299
10300 2002-04-05 Michael Snyder <msnyder@redhat.com>
10301
10302 * breakpoint.c (clear_command): Rewrite middle section to
10303 combine two loops with identical control conditions.
10304 Add a cleanup to eliminate a memory leak.
10305 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10306
10307 2002-04-05 H.J. Lu (hjl@gnu.org)
10308
10309 * solib-svr4.c (bkpt_names): Add "__start".
10310
10311 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10312
10313 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10314 as test for 64 bit target.
10315
10316 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10317
10318 * h8500-tdep.c (h8500_write_fp): Delete function.
10319 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10320 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10321 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10322 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10323 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10324 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10325 (s390_write_fp):
10326 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10327 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10328 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10329 (d10v_write_fp): Delete function.
10330 * inferior.h (write_fp, generic_target_write_fp): Delete
10331 declarations.
10332 * regcache.c (generic_target_write_fp): Delete function.
10333 (write_fp): Delete function.
10334 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10335 * gdbarch.h, gdbarch.c: Regenerate.
10336 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10337 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10338 (sparc64_write_fp): Delete declaration.
10339 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10340 (h8500_write_fp): Delete declaration.
10341
10342 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10343
10344 * sparc-tdep.c (sparc64_write_fp): Delete.
10345 (sparc_push_dummy_frame): Replace write_fp call with code to store
10346 the FP directly.
10347 (sparc_gdbarch_init): Do not initialize write_fp.
10348
10349 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10350
10351 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10352 clause.
10353
10354 2002-03-29 Jim Blandy <jimb@redhat.com>
10355
10356 * stack.c (get_selected_block): Add new argument `addr_in_block',
10357 used to return the exact code address we used to select the block,
10358 not just the block.
10359 * blockframe.c (get_frame_block, get_current_block): Same.
10360 * frame.h (get_frame_block, get_current_block,
10361 get_selected_block): Update declarations.
10362 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10363 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10364
10365 2002-04-05 Michael Snyder <msnyder@redhat.com>
10366
10367 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10368 warning message.
10369
10370 2002-04-05 J. Brobecker <brobecker@gnat.com>
10371
10372 * utils.c (xfullpath): New function.
10373 * defs.h (xfullpath): Add declaration.
10374 * source.c (openp): Use xfullpath in place of gdb_realpath to
10375 avoid resolving the basename part of filenames when the
10376 associated file is a symbolic link. This fixes a potential
10377 inconsistency between the filenames known to GDB and the
10378 filenames it prints in the annotations.
10379 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10380 to be able to match a filename with either the real filename, or
10381 the name of any symbolic link to this file.
10382 (lookup_partial_symtab): Ditto.
10383
10384 2002-04-04 Michael Snyder <msnyder@redhat.com>
10385
10386 * breakpoint.c: Add support for hardware breakpoints in overlays.
10387 (overlay_events_enabled): New state variable.
10388 (insert_breakpoints): Use overlay_events_enabled to decide
10389 whether to attempt to set a breakpoint at the overlay load addr.
10390 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10391 (remove_breakpoint): Use overlay_events_enabled to decide
10392 whether breakpoints need to be removed from overlay load addr.
10393 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10394 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10395 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10396 disable_overlay_breakpoints): Update overlay_events_enabled.
10397
10398 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10399
10400 * dwarf2read.c (struct function_range): New.
10401 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10402 (check_cu_functions): New.
10403 (read_file_scope): Initialize global function lists.
10404 Call dwarf_decode_line after processing children.
10405 (read_func_scope): Add to global function list.
10406 (dwarf_decode_lines): Call check_cu_functions everywhere
10407 record_line is called. Call record_line with a linenumber
10408 of 0 to mark sequence ends.
10409
10410 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10411
10412 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10413 change sync with glibc.
10414
10415 2002-04-03 Jim Blandy <jimb@redhat.com>
10416
10417 * configure.in: Call AC_C_INLINE.
10418 * configure: Regenerated.
10419
10420 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10421
10422 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10423 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10424
10425 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10426
10427 * NEWS: Mention gcore support on FreeBSD/i386.
10428
10429 * fbsd-proc.c: New file.
10430 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10431 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10432
10433 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10434 while statement.
10435
10436 2002-03-29 Jim Blandy <jimb@redhat.com>
10437
10438 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10439 unescaped newlines in string literals, but newer ones don't. So
10440 escape them.
10441
10442 2002-03-26 Michael Snyder <msnyder@redhat.com>
10443 Andrew Cagney <cagney@redhat.com>
10444
10445 * cli/cli-dump.c: New file. Dump memory to file,
10446 restore file to memory.
10447 * cli/cli-dump.h: New file.
10448 * Makefile.in: Add rules, dependencies for cli-dump.o.
10449 * NEWS: Mention new commands.
10450
10451 2002-03-28 Michael Snyder <msnyder@redhat.com>
10452
10453 * symfile.c (symbol_file_add): Move test for null symbols to later.
10454
10455 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10456
10457 From veksler at il.ibm.com:
10458 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10459 the xstrduped original path.
10460 Fix PR gdb/417.
10461
10462 2002-03-27 Michael Snyder <msnyder@redhat.com>
10463
10464 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10465 * infcmd.c (_initialize_infcmd): Ditto.
10466 * language.c (_initialize_language): Ditto.
10467 * symfile.c (_initialize_symfile): Ditto.
10468 * top.c (_init_main): Ditto.
10469 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10470
10471 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10472
10473 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10474 vector registers handling.
10475 (skip_prologue): Handle new AltiVec instructions. Fill in new
10476 fields of frame data.
10477 (frame_get_saved_regs): Fill in information for AltiVec registers.
10478
10479 2002-03-27 Jim Blandy <jimb@redhat.com>
10480
10481 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10482 a function; leave this macro here to invoke that function.
10483 (symbol_init_mangled_name): Declaration for that function.
10484 * symtab.c (symbol_init_mangled_name): New function.
10485
10486 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10487
10488 * valarith.c: Replace strerror with safe_strerror.
10489 * tracepoint.c: Ditto.
10490 * lin-lwp.c: Ditto.
10491 * go32-nat.c: Ditto.
10492 * inflow.c: Ditto.
10493 * gnu-nat.c: Ditto.
10494
10495 2002-03-27 Andreas Schwab <schwab@suse.de>
10496
10497 * event-top.c (command_line_handler): Remove useless if.
10498
10499 2002-03-27 Andreas Jaeger <aj@suse.de>
10500
10501 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10502 comment.
10503
10504 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10505
10506 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10507 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10508 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10509 (x86_64_linux_dr_get_status, supply_gregset),
10510 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10511 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10512 (x86_64_register_info_table): Add.
10513 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10514 (x86_64_register_raw_size, x86_64_register_virtual_type),
10515 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10516 general x86_64_register_info_table.
10517 (i386_gdbarch_init): gdbarch_register_bytes is now set
10518 dynamicaly during initialization.
10519 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10520 * gdbserver/linux-x86-64-low.c: Ditto.
10521
10522 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10523
10524 * gdbserver/server.c (main): Call target_signal_to_host_p
10525 and target_signal_to_host on signals received from the remote.
10526 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10527 target_signal_from_host on signals sent to the remote.
10528 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10529 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10530
10531 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10532
10533 * signals/signals.c: Include "server.h" in gdbserver build.
10534 (target_signal_from_name): Don't use STREQ.
10535 (_initialize_signals): Likewise. Don't include function in
10536 gdbserver build.
10537
10538 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10539
10540 * signals.c: Moved to...
10541 * signals/signals.c: Here.
10542 * Makefile (signals.o): Update.
10543
10544 2002-03-26 Jeff Law (law@redhat.com)
10545
10546 * somread.c (som_symtab_read): Remove some commented out code and
10547 updated related comments. Do not set the minimal symbol table to
10548 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10549 in a dynamic executable.
10550 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10551 where we are unable to find the minimal symbol for the given
10552 PC value.
10553
10554 2002-03-25 Jeff Law (law@redhat.com)
10555
10556 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10557
10558 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10559
10560 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10561
10562 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10563
10564 * command.h: Update copyright.
10565 (struct cmd_list_element): Replace definition with opaque
10566 declaration.
10567 (enum cmd_types): Document that it will eventually be moved to
10568 cli/cli-decode.h
10569 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10570 (MALLOCED_REPLACEMENT): Delete macro.
10571 * Makefile.in (cli_decode_h): Add $(command_h).
10572 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10573 * top.c: Include "cli/cli-decode.h".
10574 * completer.c: Include "cli/cli-decode.h".
10575 * maint.c: Include "cli/cli-decode.h".
10576 * cli/cli-decode.h: Include "command.h".
10577 (enum command_class): Delete.
10578 (enum cmd_types): Comment out.
10579 (enum cmd_auto_boolean): Delete.
10580 (enum var_types): Delete.
10581
10582 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10583
10584 * cli/cli-decode.c: Include "gdb_assert.h".
10585 (add_set_or_show_cmd): New static function.
10586 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10587 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10588 all fields, such as func, from the set command.
10589
10590 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10591
10592 * MAINTAINERS (sh-elf): Change warning flag to -w.
10593
10594 2002-03-23 Andrew Cagney <cagney@redhat.com>
10595
10596 * defs.h (error): Add printf format attribute.
10597 * thread-db.c (thread_from_lwp): Fix error format string.
10598 * stack.c (parse_frame_specification): Ditto.
10599 * cli/cli-decode.c (undef_cmd_error): Ditto.
10600 * scm-lang.c (scm_lookup_name): Ditto.
10601 * tracepoint.c (trace_error): Ditto.
10602 * remote-utils.c (usage): Ditto.
10603 * remote.c (compare_sections_command): Ditto.
10604 Fix PR gdb/328.
10605
10606 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10607
10608 * gdbtypes.c (append_composite_type_field): New function.
10609 (init_composite_type): New function.
10610 * gdbtypes.h (append_composite_type_field): Declare.
10611 (init_composite_type): Ditto.
10612
10613 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10614
10615 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10616 function.
10617 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10618 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10619 structure returning convention for SYSV ABI case, but not
10620 for GNU/Linux, FreeBSD, or NetBSD.
10621
10622 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10623
10624 * symtab.h (lookup_block_symbol): Add mangled_name argument
10625 to prototype.
10626
10627 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10628 with new mangled_name argument.
10629 * linespec.c (decode_line_1): Likewise.
10630 * valops (value_of_this): Likewise.
10631 * symtab.c (lookup_transparent_type): Likewise.
10632 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10633 (lookup_symbol): If we are given a mangled name, pass it down
10634 to lookup_symbol_aux.
10635 (lookup_block_symbol): If we are given a mangled name to check
10636 against, only return symbols which match it.
10637
10638 2002-03-22 Christopher Faylor <cgf@redhat.com>
10639
10640 * win32-nat.c (child_create_inferior): Check for proper shell to use
10641 here, in case the user changes it on the fly.
10642 (_initialize_inftarg): Remove shell path considerations.
10643
10644 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10645
10646 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10647 for gdbarch_max_register_raw_size and max_register_virtual_size.
10648 Adjust copyright year.
10649
10650 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10651
10652 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10653 in a function to cover the entire beginning of the function
10654 as well if it does not already.
10655
10656 2002-03-21 Tom Rix <trix@redhat.com>
10657
10658 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10659 (rs6000_ptrace64): Renamed from ptrace64.
10660
10661 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10662
10663 * gdbserver/remote-utils.c (remote_open): Don't call
10664 getprotobyname, we're all using TCP here so just use
10665 IPPROTO_TCP.
10666 * gdbserver/gdbreplay.c (remote_open): Ditto.
10667
10668 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10669
10670 * regcache.c (_initialize_regcache): No need to call
10671 build_regcache() at this time; it gets called whenever
10672 the gdbarch changes.
10673
10674 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10675
10676 * sparc-nat.c: Include sys/param.h where possible.
10677
10678 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10679
10680 Fix PR gdb/422.
10681 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10682 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10683 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10684 complex types.
10685 * stabsread.c (rs6000_builtin_type): Likewise.
10686 (read_sun_floating_type): Likewise.
10687
10688 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10689
10690 * stabsread.c (read_member_functions): Remove skip code for duplicate
10691 constructor/destructor methods. Use standard parsing for these
10692 methods and just do not chain them to the list of methods after
10693 parsing.
10694
10695 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10696
10697 * coffread.c: Remove redundant static declarations. Replace
10698 occurrences of `PTR' with `void *'.
10699 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10700 * top.h (quit_cover): Likewise.
10701 * defs.h (catch_errors): Likewise.
10702
10703 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10704
10705 * defs.h (XMALLOC): Define.
10706 * gdb-events.sh (XMALLOC): Delete macro.
10707 * gdb-events.c, gdb-events.h: Regenerate.
10708 * gdbarch.sh (XMALLOC): Delete macro.
10709 * gdbarch.c: Regenerate.
10710 * serial.c (XMALLOC): Delete macro.
10711 * ui-file.c (XMALLOC): Ditto.
10712 * ser-unix.h (XMALLOC): Ditto.
10713 * sh-tdep.c (XMALLOC): Ditto.
10714 * ui-out.c (XMALLOC): Ditto.
10715 * utils.c (XMALLOC): Ditto.
10716 * i386-tdep.c (XMALLOC): Ditto.
10717 * gdb-events.c (XMALLOC): Ditto.
10718 * d10v-tdep.c (XMALLOC): Ditto.
10719 * cli-out.c (XMALLOC): Ditto.
10720
10721 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10722 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10723 * ui-file.c, ui-out.c: Ditto.
10724
10725 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10726
10727 * command.h (struct cmd_list_element): Add field context.
10728 (set_cmd_context, get_cmd_context): Declare.
10729 * cli/cli-decode.h: Ditto.
10730 * cli/cli-decode.c (get_cmd_context): New function.
10731 (set_cmd_context): New function.
10732 (add_cmd): Initialize context.
10733 Part of fixing PR gdb/145 and PR gdb/146.
10734
10735 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10736
10737 * cli/cli-decode.c (cmd_type): New function.
10738 * command.h (cmd_type): Declare.
10739 * infrun.c (set_schedlock_func): Call function cmd_type.
10740 * kod.c (kod_set_os): Call cmd_type.
10741 * cris-tdep.c (cris_version_update): Use function cmd_type.
10742 (cris_mode_update, cris_abi_update): Ditto.
10743
10744 * command.h: (execute_cmd_post_hook): Declare.
10745 (execute_cmd_pre_hook): Declare.
10746 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10747 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10748 functions. Execute pre/post hook while ensuring that afterwords
10749 hook_in is cleared.
10750 * top.c (execute_command): Use execute_cmd_post_hook, and
10751 execute_cmd_pre_hook to execute pre/post commands.
10752 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10753 hook_stop_stub.
10754 (hook_stop_stub): Call execute_cmd_pre_hook.
10755
10756 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10757
10758 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10759 set'' and this leads to a core dump. Move xstrdup of
10760 operating_system to after check that it is not NULL.
10761
10762 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10763
10764 * kod.c (kod_set_os): Remove unnecessary check that
10765 ``command->type'' is set_cmd.
10766
10767 * valprint.c (set_input_radix): Use input_radix.
10768 (set_output_radix): Use output_radix.
10769 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10770 isn't reverted.
10771
10772 2002-03-16 Andrew Cagney <ac131313@redhat.com>
10773
10774 * value.h (struct value): Delete field ``substring_addr''. Change
10775 aligner fields to force_doublest_align, force_longest_align,
10776 force_core_addr_align and force_pointer_aligh.
10777
10778 * value.h (struct value): Fix typo in above change.
10779
10780 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10781
10782 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10783 to fix internal_error from ``maintenance print architecture''.
10784
10785 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10786
10787 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10788 for gcc versions after gcc-2.8.1.
10789
10790 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10791
10792 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10793 for method resolution. Restore adjustment of ``this'' pointer after
10794 calling value_struct_elt, which was accidentally removed during the
10795 HP merge.
10796
10797 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10798
10799 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10800 value_of_register.
10801 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10802 get_saved_register.
10803 * value.h (value_of_register): Update.
10804
10805 2002-03-14 Richard Henderson <rth@redhat.com>
10806
10807 * configure.in: Detect declaration for canonicalize_file_name.
10808 * utils.c (canonicalize_file_name): Declare, if needed.
10809 (gdb_realpath): Prefer realpath if available and usable.
10810 * config.in, configure: Rebuild.
10811
10812 2002-03-14 Richard Henderson <rth@redhat.com>
10813
10814 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10815 a constant array bound.
10816
10817 * MAINTAINERS: Add myself to write-after-approval.
10818
10819 2002-03-14 Michael Snyder <msnyder@redhat.com>
10820
10821 * symfile.c (syms_from_objfile): Return immediately if no syms.
10822 (symbol_file_add): Return immediately if no syms.
10823 (find_sym_fns): Return immediately if no syms.
10824
10825 2002-03-13 Michal Ludvig <mludvig@suse.cz>
10826
10827 * gdbserver/remote-util.c (remote_open): Print remote-side's
10828 IP address when remote debugging over the network.
10829
10830 2002-03-12 David O'Brien <obrien@FreeBSD.org>
10831
10832 * config/sparc/fbsd.mh: Fix copyright.
10833 * config/sparc/fbsd.mt: Likewise.
10834
10835 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
10836
10837 * MAINTAINERS: Fix typo in name of gdb warnings option.
10838 (x86-64): Fix formating so that this can be parsed by awk.
10839
10840 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10841
10842 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10843 * defs.h: Include "gdb/signals.h".
10844 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10845
10846 2002-03-10 Michal Ludvig <mludvig@suse.cz>
10847
10848 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10849 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10850 from x86-64-tdep.h
10851
10852 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10853 Don Howard <dhoward@redhat.com>
10854
10855 * mips-tdep.c (ST0_FR): Define.
10856 (mips2_fp_compat): New function, temporarily disabled.
10857 (mips_read_fp_register_single): New function.
10858 (mips_read_fp_register_double): New function.
10859 (mips_print_register): Use them.
10860 (do_fp_register_row): Likewise.
10861
10862 2002-03-09 Andrew Cagney <ac131313@redhat.com>
10863
10864 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10865 approval''.
10866
10867 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10868
10869 * stabsread.c (read_member_functions): Fix is_stub test for
10870 static member functions, improve comment.
10871
10872 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10873
10874 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10875 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10876 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10877 commands that set boolean values.
10878 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10879 (arm_rdi_resume): Always initialize PC.
10880 (arm_rdi_open): Don't use rslt as a boolean.
10881 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10882 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10883 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10884 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10885
10886 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
10887
10888 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10889 * configure: Rebuilt.
10890
10891 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10892
10893 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10894 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10895
10896 2002-03-06 Andrew Cagney <ac131313@redhat.com>
10897
10898 * cli/cli-decode.c (set_cmd_completer): New function.
10899 * command.h (set_cmd_completer): Declare.
10900 * cli/cli-decode.h (set_cmd_completer): Ditto.
10901
10902 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10903 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10904 * win32-nat.c (_initialize_inftarg): Ditto.
10905 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10906 * proc-api.c (_initialize_proc_api): Ditto.
10907 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10908 * source.c (_initialize_source): Ditto.
10909 * exec.c (_initialize_exec): Ditto.
10910 * solib.c (_initialize_solib): Ditto.
10911 * top.c (init_main): Ditto.
10912 * tracepoint.c (_initialize_tracepoint): Ditto.
10913 * symfile.c (_initialize_symfile): Ditto.
10914 * printcmd.c (_initialize_printcmd): Ditto.
10915 * infcmd.c (_initialize_infcmd): Ditto.
10916 * corefile.c (_initialize_core): Ditto.
10917
10918 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10919
10920 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10921
10922 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10923
10924 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10925
10926 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10927
10928 * NEWS: Update headings, 5.2 has branched.
10929
10930 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
10931
10932 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10933 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10934 (register_addr, REGISTER_RAW_SIZE): Likewise.
10935 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10936 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10937
10938 2002-03-03 Michal Ludvig <mludvig@suse.cz>
10939
10940 * MAINTAINERS (x86-64): Add myself.
10941 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10942 changed value_ptr -> struct value *
10943
10944 2002-03-01 David O'Brien <obrien@FreeBSD.org>
10945
10946 * configure.host (sparc64-*-freebsd): Add.
10947 * configure.tgt: Likewise.
10948 * config/sparc/fbsd.mh: New file.
10949 * config/sparc/fbsd.mt: Likewise.
10950 * config/sparc/nm-fbsd.h: Likewise.
10951 * config/sparc/tm-fbsd.h: Likewise.
10952
10953 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
10954
10955 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10956 regformats/reg-s390x.dat.
10957
10958 2002-03-01 Andrew Cagney <ac131313@redhat.com>
10959
10960 * utils.c: Add FIXME explaining true/false problem.
10961
10962 2002-02-28 Andrew Cagney <ac131313@redhat.com>
10963
10964 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10965
10966 2002-02-28 Michael Chastain <mec@shout.net>
10967
10968 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10969
10970 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
10971
10972 * gdbserver/linux-s390-low.c: New file.
10973 * regformats/reg-s390.dat: New file.
10974 * regformats/reg-s390x.dat: New file.
10975 * gdbserver/configure.srv: Add S/390.
10976 * gdbserver/Makefile.in: Add S/390.
10977 * configure.tgt: Enable gdbserver for S/390.
10978
10979 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10980
10981 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10982 first line of the doc string for "info dos", except at the end of
10983 the sentence, since the short help stops at the first period.
10984
10985 2002-02-28 Jason Merrill <jason@redhat.com>
10986
10987 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10988
10989 2002-02-27 Fred Fish <fnf@redhat.com>
10990
10991 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10992 comment (dumy -> dummy).
10993
10994 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10995
10996 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10997
10998 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
10999
11000 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11001
11002 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11003
11004 * gdbserver/acconfig.h: New file.
11005 * gdbserver/i387-fp.c: New file.
11006 * gdbserver/i387-fp.h: New file.
11007 * gdbserver/linux-x86-64.c: New file.
11008 * regformats/reg-x86-64.dat: New file.
11009 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11010 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11011 * gdbserver/configure.in: Add support for regsets.
11012 * gdbserver/config.in: Regenerate.
11013 * gdbserver/configure: Regenerate.
11014 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11015 * gdbserver/linux-low.h: New file.
11016 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11017 for regsets.
11018 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11019 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11020 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11021 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11022 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11023 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11024 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11025 "i387-fp.h". Add PTRACE_GETREGS and friends.
11026 * gdbserver/regcache.c (supply_register): New function.
11027 (supply_register_by_name): New function.
11028 (collect_register): New function.
11029 (collect_register_by_name): New function.
11030
11031 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11032
11033 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11034 (config.status): Add configure.srv dependency.
11035 (server_h): Add config.h dependency.
11036
11037 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11038
11039 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11040 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11041 * gdbserver/configure.srv: Change i386-*-linux* to use
11042 reg-i386-linux.o.
11043
11044 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11045
11046 * x86-64-tdep.c: Re-indent. Update copyright date.
11047
11048 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11049
11050 From Michal Ludvig <mludvig@suse.cz>:
11051 * x86-64-tdep.c (value.h): Delete.
11052 (gdb_assert.h): Include.
11053 (x86_64_register_convert_to_virtual,
11054 x86_64_register_convert_to_raw ): Add check which lets only
11055 floating-point values to be converted.
11056 (value_push): Delete.
11057 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11058 (i386_gdbarch_init): Number of register_bytes fixed.
11059
11060 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11061
11062 * MAINTAINERS: Add x86-64 target.
11063
11064 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11065
11066 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11067 * osfsolib.c (solib_map_sections): Ditto.
11068 * irix5-nat.c (solib_map_sections): Ditto.
11069 * corelow.c (gdb_check_format): Ditto.
11070 * symfile.c (symfile_bfd_open): Ditto.
11071 * solib.c (solib_map_sections): Ditto.
11072 Fix PR gdb/354.
11073
11074 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11075
11076 * remote.c (_initialize_remote): By default, disable ``e'' and
11077 ``E'' step out-of-range packets.
11078
11079 2002-02-26 Andreas Schwab <schwab@suse.de>
11080
11081 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11082 m68k_linux_frame_saved_pc.
11083 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11084 in_sigtramp.
11085 (SIGCONTEXT_PC_OFFSET): Remove.
11086 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11087 m68k_linux_sigtramp_saved_pc): New functions.
11088 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11089 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11090 (UCONTEXT_PC_OFFSET): Define.
11091 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11092 non-RT and RT signal trampolines.
11093
11094 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11095
11096 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11097 (TARGET_NBPG, STACK_END_ADDR): Delete
11098 (VARIABLES_INSIDE_BLOCK): Delete.
11099
11100 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11101
11102 * utils.c (perror_with_name): Make string parameter constant.
11103 (print_sys_errmsg): Ditto.
11104 (query): Ditto.
11105 * defs.h (perror_with_name): Update.
11106 (print_sys_errmsg): Update.
11107 (query): Update.
11108
11109 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11110
11111 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11112 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11113
11114 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11115
11116 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11117 if it already matches the current architecture from the exec file.
11118 Include arch-utils.h for gdbarch_info_init prototype.
11119 * Makefile.in (rs6000-nat.o): Update dependencies.
11120
11121 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11122
11123 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11124 list of exported variables.
11125
11126 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11127
11128 * gdbserver/configure.srv: New file.
11129 * gdbserver/configure.in: Use configure.srv instead
11130 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11131 from it.
11132 * gdbserver/configure: Regenerated.
11133 * gdbserver/terminal.h: New file.
11134 * gdbserver/Makefile.in: Update for configure changes. Remove
11135 more unneeded include paths.
11136
11137 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11138
11139 From wiz at danbala:
11140 * config/sparc/tm-sp64.h: Fix grammar and typos.
11141 Fix PR gdb/287.
11142
11143 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11144
11145 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11146 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11147 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11148 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11149 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11150 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11151 * s390-tdep.c: Ditto.
11152 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11153 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11154 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11155 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11156 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11157 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11158 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11159 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11160 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11161 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11162 Fix PR gdb/378.
11163
11164 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11165
11166 * lin-thread.c: Delete file.
11167 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11168 to gdb_proc_service.h.
11169 * configure: Re-generate.
11170
11171 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11172 * serial.c (serial_open): Delete check for "ocd".
11173 Fix PR gdb/349.
11174
11175 * Makefile.in (linux-thread.o): Delete target.
11176 * linux-thread.c: Delete file.
11177
11178 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11179 renamed SH files to be consistent.
11180
11181 * symtab.c (sort_search_symbols): Use xfree.
11182
11183 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11184
11185 * arm-linux-tdep.c (arm_linux_init_abi): Register
11186 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11187 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11188 definition with undef, since we don't want the sysvr4 definition.
11189 (SKIP_TRAMPOLINE_CODE): Likewise.
11190
11191 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11192
11193 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11194
11195 * configure.in: (AC_CHECK_FUNCS) Added test for
11196 canonicalize_file_name Regenerated.
11197 * config.in, configure: Regenerated.
11198 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11199 defined use canonicalize_file_name.
11200
11201 2002-02-23 Michael Chastain <mec@shout.net>
11202
11203 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11204
11205 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11206
11207 * README: Remove references to cygnus.com.
11208 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11209 dot com'' form. Remove references to cygnus.com and sourceware.
11210
11211 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11212
11213 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11214 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11215 1003.1-2001 no longer allows "head -1".
11216 * gdb/Makefile.in (version.c): Likewise.
11217 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11218 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11219 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11220
11221 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11222
11223 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11224 * command.h (cmd_cfunc_eq): Declare.
11225 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11226
11227 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11228 ``struct cmd_list_element *''.
11229 * cli/cli-cmds.c (is_complete_command): Update. Use
11230 cmd_cfunc_eq.
11231 * top.c (execute_command): Pass the command to
11232 is_complete_command.
11233 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11234
11235 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11236
11237 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11238 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11239 architecture defines.
11240 * s390-tdep.c (s390_gdbarch_init): Likewise.
11241
11242 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11243
11244 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11245 (arm_linux_push_arguments): Likewise.
11246 (arm_linux_init_abi): Register them. Also register linux-specific
11247 call_dummy_words.
11248 (find_minsym_and_objfile): Use strcmp, not STREQ.
11249 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11250 (arm_linux_call_dummy_words): Delete declaration.
11251 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11252 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11253 declarations.
11254 (LOWEST_PC): Delete.
11255
11256 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11257
11258 * maint.c (print_section_info): Do not prepend `0x' to filepos
11259 output, it will be handled by local_hex_string_custom.
11260
11261 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11262
11263 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11264 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11265 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11266
11267 2002-02-22 Jim Blandy <jimb@redhat.com>
11268
11269 Indicate that the bcache functions don't change the strings
11270 they're passed.
11271 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11272 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11273
11274 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11275
11276 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11277
11278 2002-02-21 Christopher Faylor <cgf@redhat.com>
11279
11280 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11281 find the complete path to a loaded DLL.
11282
11283 2002-02-21 Fred Fish <fnf@redhat.com>
11284
11285 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11286 that marks the end of the range of a function, enter a line number
11287 entry that has a line number of zero and a PC offset that matches
11288 the end of the function. This starts a range of PC's for which no
11289 line number information is known.
11290 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11291 PC's for which no line number info is found (line number is zero)
11292 then we didn't find any valid line information.
11293 * symtab.h: Document use of zero line number entry.
11294
11295 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11296
11297 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11298 (have_ptrace_getvrregs): Define for run time checks.
11299 (gdb_vrregset_t): New type for Altivec register handling.
11300 (fetch_register, store_register): Fetch/store altivec register
11301 when needed.
11302 (fetch_altivec_register, store_altivec_register): New functions.
11303 (supply_vrregset, fill_vrregset): New functions.
11304 (fetch_altivec_registers, store_altivec_registers): New functions.
11305 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11306 registers as well.
11307
11308 2002-02-21 Jiri Smid <smid@suse.cz>
11309
11310 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11311
11312 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11313
11314 * Makefile.in (armnbsd-nat.o): Update dependencies.
11315 * armnbsd-nat.c (supply_gregset): New function. Common code to
11316 supply the integer register set.
11317 (supply_fparegset): New function. Similar for FPA registers.
11318 (fetch_regs, fetch_fp_regs): Use them.
11319 (fetch_core_registers): Likewise.
11320 (fetch_elfcore_registers): New function.
11321 (arm_netbsd_elfcore_fns): New core-file type specification.
11322 (_initialize_arm_netbsd_nat): Register it.
11323
11324 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11325
11326 * armnbsd-nat.c: Include gdbcore.h.
11327 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11328 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11329 'void' to declaration, to shut up ARI.
11330 (fetch_core_registers): Make static. Rewrite using supply_register.
11331 (arm_netbsd_core_fns): New core-file type specification.
11332 (_initialize_arm_netbsd_nat): New function.
11333
11334 2002-02-21 Christopher Faylor <cgf@redhat.com>
11335
11336 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11337 value.
11338
11339 2002-02-20 Christopher Faylor <cgf@redhat.com>
11340
11341 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11342 fails.
11343
11344 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11345
11346 * jv-exp.y (parse_number): Change type of implicit longs
11347 to builtin_type_uint64.
11348
11349 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11350
11351 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11352 to be an integer instead of a `union wait'.
11353
11354 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11355
11356 * mips-linux-nat.c: Call the operating system GNU/Linux.
11357 * mips-linux-tdep.c: Likewise.
11358 * mips-tdep.c: Likewise.
11359
11360 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11361
11362 Fix PR gdb/265.
11363 * jv-exp.y (parse_number): Handle 64-bit integers.
11364
11365 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11366
11367 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11368 AC_STDC_HEADERS to AC_HEADER_STDC.
11369 * gdbserver/configure: Regenerated.
11370
11371 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11372
11373 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11374 is defined.
11375 * sparc-tdep.c (get_longjmp_target): Likewise.
11376
11377 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11378
11379 * News: Add news about ARM and Multi-arch. Mention the new target
11380 arm*-*-netbsd*.
11381
11382 2002-02-19 Jim Blandy <jimb@redhat.com>
11383
11384 * stabsread.c (error_type_complaint): Improve error message.
11385
11386 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11387
11388 * gdbserver/README: Update documentation.
11389 * gdbserver/configure.in: Update configury to match documentation.
11390 * gdbserver/Makefile.in: Likewise.
11391 * gdbserver/configure: Regenerated.
11392 * gdbserver/aclocal.m4: New file, generated by aclocal.
11393 * gdbserver/config.in: New file, generated by autoheader.
11394
11395 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11396
11397 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11398 armnbsd-nat.c.
11399
11400 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11401
11402 * arm-tdep.h (enum arm_float_model): New enum.
11403 (struct gdbarch_tdep): Add fp_model.
11404 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11405 up floating-point conversions until we know the floating-point model
11406 in use by the inferior. Don't complain about being unable to
11407 determine the ABI of the inferior when we don't have one.
11408 (arm_extract_return_value): Support different floating-point models.
11409 (arm_store_return_value): Likewise.
11410 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11411 ARM_FLOAT_SOFT.
11412 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11413
11414 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11415
11416 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11417 of ``current_gdbarch''.
11418
11419 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11420
11421 * armnbsd-nat.c : ANSIfy all function declarations.
11422 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11423 (fetch_inferior_registers): Re-implement in terms of above.
11424 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11425 (store_inferior_registers): Re-implement in terms of above.
11426
11427 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11428
11429 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11430 kernel.
11431 * arm-linux-tdep.c: Likewise.
11432 * config/arm/tm-linux.h: Likewise.
11433
11434 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11435
11436 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11437 * config/arm/nbsd.mt (TM_FILE): Delete.
11438 * config/arm/tm-nbsd.h: Delete.
11439
11440 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11441
11442 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11443 Initialize CALL_DUMMY_LENGTH.
11444
11445 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11446
11447 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11448 function.
11449 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11450 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11451 defines one thing and that is incorrect for this port.
11452 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11453
11454 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11455
11456 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11457
11458 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11459
11460 * win32-nat.c (display_selector): New function. Displays information
11461 about the information returned by GetThreadSelectorEntry API function.
11462 (display_selectors): New function. Displays the infomation of
11463 the selector given as argument, or of CS, DS ans FS selectors
11464 if no argument is given.
11465 ( _initialize_inftarg): Add "w32" as info prefix command.
11466 Add "info w32 selector" as command calling display_selectors.
11467
11468 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11469
11470 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11471 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11472 if not defined.
11473
11474 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11475
11476 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11477
11478 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11479
11480 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11481 (arm_fix_call_dummy): Call it.
11482 (arm_call_dummy_breakpoint_offset): Delete.
11483 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11484 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11485
11486 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11487
11488 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11489 Default to func_frame_chain_valid.
11490 * gdbarch.h, gdbarch.c: Re-generate.
11491 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11492
11493 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11494
11495 * ppc-linux-nat.c: Update copyright.
11496 (fetch_register, store_register): Add tid parameter, don't compute
11497 tid here.
11498 (fetch_ppc_registers, store_ppc_registers): Add tid
11499 parameter. Pass it along to callees.
11500 (fetch_inferior_registers, store_inferior_registers): Compute tid
11501 here, and pass it to calleed functions.
11502 (fill_gregset, supply_fpregset): Clean up formatting.
11503
11504 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11505
11506 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11507 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11508
11509 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11510
11511 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11512 * gdbarch.c gdbarch.h: Regenerate.
11513 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11514 function.
11515 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11516 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11517 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11518
11519 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11520 * arm-tdep.c (arm_get_longjmp_target): New function.
11521 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11522 this to a positive value register arm_get_longjmp_target as the
11523 longjmp handler.
11524 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11525 (arm_linux_init_abi): Set up longjmp description in tdep.
11526 * armnbsd-nat.c (get_longjmp_target): Delete.
11527 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11528 description in tdep.
11529 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11530 (get_longjmp_target): Delete declaration.
11531 (GET_LONGJMP_TARGET): Delete.
11532 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11533 (GET_LONGJMP_TARGET): Delete.
11534
11535 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11536
11537 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11538 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11539 of ``current_gdbarch''.
11540
11541 2002-02-17 Tom Tromey <tromey@redhat.com>
11542
11543 * cli/cli-cmds.c (compare_strings): New function.
11544 (complete_command): Only print each unique item once.
11545 * completer.h (complete_line): Declare.
11546 * completer.c (complete_line): New function.
11547 (line_completion_function): Use it.
11548
11549 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11550
11551 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11552 * gdbarch.h, gdbarch.c: Re-generate.
11553
11554 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11555
11556 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11557
11558 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11559
11560 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11561 * valops.c (value_arg_coerce): Don't take the address of a reference
11562 to convert an argument to a reference.
11563
11564 2002-02-15 Christopher Faylor <cgf@redhat.com>
11565
11566 * win32-nat.c (get_image_name): New function.
11567 (handle_load_dll): Use get_image_name function.
11568 (get_child_debug_event): Avoid registering debug events until possibly
11569 execed process is started.
11570 (child_create_inferior): Allow invocation via shell so that command
11571 line redirection, etc. works ok.
11572 (_initialize_inftarg): Add new command: "set shell" to control whether
11573 a shell is used to start a process.
11574
11575 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11576
11577 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11578 instead of find_register_by_number.
11579 (cannot_store_register): Likewise.
11580
11581 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11582
11583 * dwarf2read.c: Replace fprintf (stderr, ...) by
11584 fprintf_unfiltered (gdb_stderr, ...).
11585
11586 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11587
11588 * gdbserver/gdbserver.1: Document --attach.
11589
11590 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11591
11592 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11593 descriptions.
11594 * arm-tdep.c (arm_default_arm_le_breakpoint)
11595 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11596 (arm_default_thumb_be_breakpoint): New. Initialize them from
11597 traditional breakpoint defines.
11598 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11599 (arm_gdbarch_init): Initialize new breakpoint variables.
11600 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11601 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11602 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11603 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11604 code out to ...
11605 (arm_netbsd_init_abi_common): ... here; new function.
11606 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11607 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11608 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11609 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11610
11611 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11612
11613 * arm-tdep.h (enum arm_abi): New enum.
11614 (struct gdbarch_tdep): New structure.
11615 (LOWEST_PC): Provide a default.
11616 (arm_gdbarch_register_os_abi): Declare new function.
11617 * arm-tdep.c (arm_abi_names): New array.
11618 (process_note_abi_tag_sections): New function.
11619 (get_elfosabi): New function.
11620 (arm_gdbarch_register_os_abi): New function.
11621 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11622 support for that ABI has been built in, then call the appropriate
11623 configuration routine. Use gdbarch_num_regs() to get the number
11624 of registers.
11625 (arm_dump_tdep): New function.
11626 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11627 place-holder functions.
11628 (_initialize_arm_tdep): Register them.
11629 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11630
11631 * armnbsd-tdep.c: New file.
11632 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11633 * config/arm/nbsd.mt (TDEPFILES): Add it.
11634 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11635
11636 * armnbsd-nat.c: Include regcache.h.
11637 * Makefile.in (armnbsd-nat.o): Update dependency list.
11638
11639 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11640
11641 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11642
11643 * gdbserver/Makefile.in: Fix typos in target rules.
11644
11645 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11646
11647 Fix part of PR gdb/267.
11648 * linespec.c (find_methods): Handle constructors specially for now.
11649
11650 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11651
11652 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11653 handling.
11654 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11655 standard_coerce_float_to_double().
11656
11657 2002-02-14 Christopher Faylor <cgf@redhat.com>
11658
11659 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11660 GDBINIT_FILENAME.
11661
11662 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11663
11664 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11665 find_variant_by_name, because it confuses the multiarch
11666 framework. Return NULL if there isn't an architecture with the
11667 user supplied name, instead of forcing a different one without
11668 recording the change with the multiarch machinery.
11669 (find_variant_by_name): Delete.
11670
11671 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11672
11673 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11674 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11675
11676 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11677
11678 * stack.c (print_frame_info_base): When calling
11679 print_frame_info_listing_hook, set current_source_symtab.
11680
11681 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11682
11683 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11684 and remove unused $(INCLUDE_DIR).
11685 Add regcache.c to OBS.
11686 Add generated register protocol files to clean target.
11687 Update dependencies for new objects, obsolete old target code.
11688
11689 * gdbserver/linux-low.c: Remove all platform-specific code to
11690 new files. Remove various dead code. Update to use regcache
11691 functionality.
11692 * gdbserver/remote-utils.c (fromhex): Add return statement
11693 to quiet warning.
11694 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11695 constant.
11696 (input_interrupt): Add integer parameter to match prototype
11697 of a signal handler.
11698 (outreg): Use register_data ().
11699 (prepare_resume_reply): Use gdbserver_expedite_regs.
11700 * gdbserver/server.c (main): Dynamically allocate own_buf because
11701 PBUFSIZ is no longer constant. Use registers_to_string () and
11702 registers_from_string ().
11703 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11704 for error (), fatal (), and warning (). Update definition of
11705 PBUFSIZ to use regcache functionality. Add include guard.
11706 * gdbserver/utils.c (fatal): Add missing ``const''.
11707 (warning): New function.
11708
11709 * regformats/regdat.sh: Include "regcache.h" in generated files.
11710 Provide init_registers () function.
11711 * regformats/regdef.h: Add prototype for set_register_cache ().
11712 Add include guard.
11713
11714 * gdbserver/linux-arm-low.c: New file.
11715 * gdbserver/linux-i386-low.c: New file.
11716 * gdbserver/linux-ia64-low.c: New file.
11717 * gdbserver/linux-m68k-low.c: New file.
11718 * gdbserver/linux-mips-low.c: New file.
11719 * gdbserver/linux-ppc-low.c: New file.
11720 * gdbserver/linux-sh-low.c: New file.
11721
11722 * gdbserver/regcache.c: New file.
11723 * gdbserver/regcache.h: New file.
11724
11725 * gdbserver/low-linux.c: Removed obsolete file.
11726
11727 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11728
11729 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11730 * config/i386/linux.mt: Likewise.
11731 * config/ia64/linux.mt: Likewise.
11732 * config/m68k/linux.mh: Likewise.
11733 * config/powerpc/linux.mh: Likewise.
11734 * config/mips/linux.mt: Likewise.
11735
11736 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11737
11738 * config/i386/i386lynx.mh: Mark gdbserver variables
11739 as (currently) obsolete for this target.
11740 * config/i386/nbsd.mt: Likewise.
11741 * config/i386/nbsdelf.mt: Likewise.
11742 * config/m32r/m32r.mt: Likewise.
11743 * config/m68k/m68klynx.mh: Likewise.
11744 * config/m68k/nbsd.mt: Likewise.
11745 * config/m68k/sun3os4.mh: Likewise.
11746 * config/mips/vr5000.mt: Likewise.
11747 * config/ns32k/nbsd.mt: Likewise.
11748 * config/pa/hppabsd.mh: Likewise.
11749 * config/pa/hppaosf.mh: Likewise.
11750 * config/powerpc/nbsd.mt: Likewise.
11751 * config/rs6000/rs6000lynx.mh: Likewise.
11752 * config/s390/s390.mt: Likewise.
11753 * config/s390/s390x.mt: Likewise.
11754 * config/sparc/sparclynx.mh: Likewise.
11755 * config/sparc/sun4os4.mh: Likewise.
11756 * config/i386/x86-64linux.mt: Likewise.
11757 * config/sparc/linux.mh: Likewise.
11758
11759 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11760
11761 * configure.tgt: Configure gdbserver only for known working
11762 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11763 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11764 SUBDIRS if it is configured. Update comment for ${nativefile}.
11765 * configure: Regenerated.
11766
11767 2002-02-13 Michael Snyder <msnyder@redhat.com>
11768
11769 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11770
11771 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11772 (default_gcore_mach): Just return 0, work around a problem in bfd.
11773 (default_gcore_target): OK to return NULL if exec_bfd is null.
11774 (make_mem_sec): Use a cast, avoid a warning.
11775
11776 * procfs.c (find_memory_regions_callback): Use a cast instead of
11777 calling host_pointer_to_address (which complains if
11778 sizeof (host pointer) != sizeof (target pointer)).
11779 (procfs_make_note_section): Avoid overflow in psargs string.
11780
11781 * procfs.c (procfs_make_note_section): Make the default
11782 implementation return an error.
11783
11784 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
11785
11786 * procfs.c (procfs_make_note_section): Provide a default definition
11787 (for alpha-dec-osf4.0f). Fix typos.
11788
11789 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11790
11791 * linux-proc.c: Add include of regcache.h.
11792 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11793
11794 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11795
11796 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11797 * memattr.c (create_mem_region): Disallow useless empty region.
11798 Regions are half-open intervals, so allow [A..B) [B..C) as
11799 non-overlapping.
11800
11801 2002-02-13 Michael Chastain <mec@shout.net>
11802
11803 * defs.h: Kill CONST_PTR.
11804 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11805 * c-lang.c (c_builtin_types): Likewise.
11806 * ch-lang.c (ch_builtin_types): Likewise.
11807 * f-lang.c (f_builtin_types): Likewise.
11808 * language.c (unknown_builtin_types): Likewise.
11809 * m2-lang.c (m2_builtin_types): Likewise.
11810 * p-lang.c (pascal_builtin_types): Likewise.
11811 * scm-lang.c (c_builtin_types): Likewise.
11812
11813 2002-02-13 Keith Seitz <keiths@redhat.com>
11814
11815 * arm-tdep.h (arm_get_next_pc): Add declaration.
11816
11817 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
11818
11819 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11820 with other related struct-returning functions.
11821 (arm_extract_struct_value_address): New function.
11822 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11823 initialize float_format, double_format and long_double_format as
11824 appropriate to the endianness of the target.
11825 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11826 (arm_use_struct_convention): Delete declaration.
11827 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11828
11829 2002-02-13 Keith Seitz <keiths@redhat.com>
11830
11831 * defs.h (core_addr_to_string_nz): New function.
11832
11833 2002-02-13 Mark Kettenis <kettenis@gnu.org>
11834
11835 Apply missing bits of 2002-01-15 patch.
11836 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11837 (fill_fpregset): Use i387_fill_fsave.
11838
11839 2002-02-12 Keith Seitz <keiths@redhat.com>
11840
11841 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11842 (core_addr_to_string_nz): New function.
11843
11844 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11845
11846 * arm-linux-nat.c: Really include arm-tdep.h.
11847 * config/arm/tm-linux.h (struct type, struct value): Declare.
11848
11849 2002-02-11 Michael Snyder <msnyder@redhat.com>
11850
11851 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11852 (gcore section): Ifdef for Solaris and Unixware only.
11853 (procfs_do_thread_registers): Unixware needs one lwpstatus
11854 per thread (not one prstatus or pstatus).
11855 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11856 not over all gdb threads. For unixware, call elfcore_write_pstatus
11857 once before iterating over threads.
11858
11859 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11860
11861 * arm-tdep.h: New file.
11862 * arm-tdep.c: Include arm-tdep.h.
11863 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11864 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11865 (arm_print_float_info, arm_register_type, convert_to_extended)
11866 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11867 (arm_extract_return_value, arm_register_name): Make static.
11868 (arm_software_single_step): Similarly. Fix types in declaration.
11869 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11870 (arm_store_return_value, arm_store_struct_return): New functions.
11871 (arm_gdbarch_init): Register the above functions. Also register
11872 call_dummy_start_offset, sizeof_call_dummy_words,
11873 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11874 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
11875 max_register_virtual_size, register_size. Set up
11876 prologue_cache.saved_regs here, rather than ...
11877 (_initialize_arm_tdep): ... here.
11878 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11879 declarations.
11880 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11881 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11882 (arm_print_float_info, arm_register_type, convert_to_extended)
11883 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11884 (arm_extract_return_value, arm_register_name): Delete declarations.
11885 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11886 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11887 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11888 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11889 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11890 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11891 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11892 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11893 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11894 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11895 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11896 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11897 interface.
11898 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11899 * remote-rdi.c remote-rdp.c: Likewise.
11900 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11901 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11902 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11903 definition.
11904
11905 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11906 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11907 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11908 from non-ARM_ prefixed definitions.
11909 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11910 all uses of above.
11911 * remote-rdi.c remote-rdp.c: Likewise.
11912 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11913
11914 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11915
11916 * arm-tdep.c (arm_frameless_function_invocation)
11917 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11918 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11919 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11920 (arm_pop_frame, arm_get_next_pc): Make static.
11921 (arm_gdbarch_init): Register above in gdbarch structure.
11922 (arm_read_fp): Renamed from arm_target_read_fp.
11923 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11924 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11925 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11926 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11927 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11928 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11929 (arm_pc_is_thumb_dummy): Delete declarations.
11930 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11931 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11932 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11933 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
11934
11935 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
11936
11937 * symtab.c (compare_search_syms): New function.
11938 (sort_search_symbols): New function.
11939 (search_symbols): Sort symbols after searching rather than
11940 before.
11941
11942 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11943
11944 * NEWS: Linux -> GNU/Linux.
11945
11946 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11947
11948 * gdbarch.sh: For for level one methods, disallow a definition
11949 when partially multi-arched. Add comments explaining rationale.
11950 * gdbarch.h: Re-generate.
11951
11952 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11953
11954 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11955 multi-arch partial.
11956
11957 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11958
11959 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11960 field. Use diff -u.
11961 * gdbarch.c: Re-generate.
11962
11963 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11964
11965 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
11966 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11967 partial.
11968
11969 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11970
11971 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11972 multi-arch partial.
11973 (PUSH_ARGUMENTS): Switch to using predefault.
11974 * gdbarch.c: Regenerate.
11975
11976 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11977
11978 * valops.c (PUSH_ARGUMENTS): Delete definition.
11979 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11980 partial. Default to default_push_arguments.
11981 * gdbarch.h, gdbarch.c: Regenerate.
11982
11983 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11984
11985 * defs.h (throw_exception): Rename return_to_top_level. Update
11986 comments.
11987 * utils.c (error_stream, internal_verror, quit): Ditto.
11988 * top.c (throw_exception, catcher): Ditto.
11989 * sparclet-rom.c (sparclet_load): Ditto.
11990 * remote.c (interrupt_query, minitelnet): Ditto.
11991 * remote-sds.c (interrupt_query): Ditto.
11992 * remote-mips.c (mips_error, mips_kill): Ditto.
11993 * ocd.c (interrupt_query): Ditto.
11994 * monitor.c (monitor_interrupt_query): Ditto.
11995 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11996 * target.h: Update comment.
11997
11998 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
11999
12000 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12001
12002 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12003 default_double_format.
12004 * gdbarch.h, gdbarch.c: Re-generate.
12005 * findvar.c (floatformat_unknown): Delete variable definition.
12006 * doublest.h (floatformat_unknown): Delete variable declaration.
12007
12008 2002-02-09 Jim Blandy <jimb@redhat.com>
12009
12010 * stabsread.c (read_type): Add code to parse Sun's syntax for
12011 prototyped function types.
12012
12013 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12014
12015 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12016 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12017
12018 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12019
12020 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12021 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12022 now _initialize_xcoffsolib gets called again and overrides the
12023 commands from solib.c in a native configuration.
12024
12025 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12026
12027 * doublest.c (store_typed_floating): Don't try to return a value.
12028 Fixes PR gdb/290.
12029
12030 2002-02-08 Jim Blandy <jimb@redhat.com>
12031
12032 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12033 is prototyped and has no arguments, print its argument list as
12034 `(void)'.
12035
12036 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12037
12038 * MAINTAINERS (write-after-approval): Add myself.
12039 (paper-trail): I've escaped!
12040
12041 2002-02-08 Christopher Faylor <cgf@redhat.com>
12042
12043 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12044 changes.
12045 (_initialize_check_for_gdb_ini): Ditto.
12046
12047 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12048
12049 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12050 xaprintf -> xasprintf.
12051
12052 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12053
12054 * win32-nat.c: Remove use of printf and sprintf functions.
12055
12056 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12057
12058 * arm-tdep.c (arm_frame_chain_valid): Make static.
12059 (arm_push_arguments): Likewise.
12060 (arm_gdbarch_init): New function.
12061 (_initialize_arm_tdep): Call it.
12062 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12063 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12064 (FRAME_CHAIN_VALID): Delete.
12065 (arm_frame_chain_valid): Delete declaration.
12066 (PUSH_ARGUMENTS): Delete.
12067 (arm_push_arguments): Delete declaration.
12068 (CALL_DUMMY_P): Delete.
12069
12070 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12071 Corinna Vinschen <vinschen@redhat.com>
12072
12073 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12074 on builtin float types.
12075
12076 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12077
12078 * utils.c: Include <curses.h> before "bfd.h".
12079 * tui/tui-hooks.c: Likewise.
12080 * tui/tui.c: Likewise.
12081 * tui/tuiCommand.c: Likewise.
12082 * tui/tuiData.c: Likewise.
12083 * tui/tuiDataWin.c: Likewise.
12084 * tui/tuiDisassem.c: Likewise.
12085 * tui/tuiGeneralWin.c: Likewise.
12086 * tui/tuiIO.c: Likewise.
12087 * tui/tuiLayout.c: Likewise.
12088 * tui/tuiRegs.c: Likewise.
12089 * tui/tuiSource.c: Likewise.
12090 * tui/tuiSourceWin.c: Likewise.
12091 * tui/tuiStack.c: Likewise.
12092 * tui/tuiWin.c: Likewise.
12093
12094 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12095
12096 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12097 to include space for pseudoregs as well. Update loops accordingly.
12098 (sh_fp_frame_init_saved_regs): Ditto.
12099 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12100
12101 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12102
12103 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12104 Add Richard Earnshaw to Arm maintainers.
12105
12106 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12107
12108 * defs.h (warning_begin): Delete declaration.
12109
12110 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12111 Delete macro.
12112
12113 2002-02-07 Michael Snyder <msnyder@redhat.com>
12114
12115 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12116 Logic bug, remove misplaced else.
12117
12118 2002-02-07 Klee Dienes <klee@apple.com>
12119
12120 * fork-inferior.c (fork_inferior): Add '!' to the list of
12121 characters that need to be quoted when building a string for the
12122 shell. Quote '!' specifically with a backslash, since CSH chokes
12123 when trying to evaluate "str!str".
12124
12125 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12126
12127 * rdi-share/host.h: Only provide a typedef for bool if it is not
12128 defined.
12129
12130 2002-02-04 Michael Snyder <msnyder@redhat.com>
12131
12132 * breakpoint.h (enum bptype): Add new overlay event bp type.
12133 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12134
12135 * breakpoint.c (create_internal_breakpoint): New function.
12136 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12137 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12138 (create_thread_event_breakpoint): Ditto.
12139 (create_solib_event_breakpoint): Ditto.
12140 (create_overlay_event_breakpoint): New function.
12141 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12142 (update_breakpoints_after_exec): Delete and re-initialize
12143 overlay event breakpoints after an exec. Add FIXME comment
12144 about longjmp breakpoint.
12145 (print_it_typical): Ignore overlay event breakpoints.
12146 (print_one_breakpoint): Ditto.
12147 (mention): Ditto.
12148 (bpstat_what): Do not stop for overlay event breakpoints.
12149 (delete_breakpoint): Don't delete overlay event breakpoints.
12150 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12151 (breakpoint_re_set): Re-create overlay event breakpoint.
12152
12153 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12154 (overlay_manual_command): Disable overlay breakpoints.
12155 (overlay_off_command): Disable overlay breakpoints.
12156
12157 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12158
12159 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12160 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12161 to here from config/tm-arm.h.
12162 (coff_sym_is_thumb): Make static.
12163 (arm_elf_make_msymbol_special): New function.
12164 (arm_coff_make_msymbol_special): New function.
12165 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12166 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12167 (coff_sym_is_thumb): Delete declaration.
12168 (arm_elf_make_msymbol_special): Declare.
12169 (arm_coff_make_msymbol_special): Declare.
12170 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12171 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12172
12173 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12174
12175 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12176
12177 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12178
12179 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12180 * gdbarch.c gdbarch.h: Regenerate.
12181 * arch-utils.c (default_print_float_info): New function.
12182 * arch-utils.h (default_print_float_info): Prototype it.
12183 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12184 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12185 (PRINT_FLOAT_INFO): Document it.
12186
12187 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12188 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12189 (PRINT_FLOAT_INFO): Define.
12190
12191 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12192
12193 * win32-nat.c (_initialize_check_for_gdb_ini):
12194 Add typecast to sprintf argument to suppress a warning.
12195
12196 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12197
12198 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12199 to allow easier handling of pass state.
12200 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12201 that gives exception name and address.
12202 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12203 and set last_sig value to ourstatus->value.sig. Some missing
12204 exceptions added.
12205 (child_continue): Correctly report continue_status.
12206 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12207 TARGET_SIGNAL_0 (new default value).
12208 (child_resume): consider sig argument passed to decide if
12209 the exception should be passed to debuggee or not.
12210
12211 2002-02-05 Michael Snyder <msnyder@redhat.com>
12212
12213 * regcache.c (fetch_register): Call target_fetch_register
12214 only if we don't call FETCH_PSEUDO_REGISTER.
12215 (store_register): Call target_store_register only if we
12216 don't call STORE_PSEUDO_REGISTER.
12217
12218 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12219
12220 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12221 ELF_MAKE_MSYMBOL_SPECIAL.
12222 * gdbarch.c, gdbarch.h: Regenerate.
12223 * arch-utils.c (default_make_msymbol_special): New function.
12224 * arch-utils.h (default_make_msymbol_special): Export.
12225 * elfread.c (elf_symtab_read): Compile use of
12226 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12227 multiarched.
12228 * coffread.c (coff_symtab_read): Ditto, for
12229 COFF_MAKE_MSYMBOL_SPECIAL.
12230
12231 2002-02-05 Jim Blandy <jimb@redhat.com>
12232
12233 * solib-svr4.c (svr4_truncate_ptr): New function.
12234 (svr4_relocate_section_addresses): Do the address arithmetic with
12235 the appropriate truncation for target addresses, even when
12236 CORE_ADDR is larger than a target address.
12237
12238 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12239
12240 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12241 to (int *).
12242
12243 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12244
12245 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12246 code.
12247
12248 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12249
12250 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12251
12252 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12253
12254 * gdbserver/linux-low.c: Remove unused include files.
12255
12256 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12257
12258 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12259 (read_inferior_memory): Use it.
12260 (write_inferior_memory): Likewise.
12261
12262 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12263
12264 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12265 grubbing through sys_errlist.
12266
12267 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12268
12269 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12270
12271 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12272 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12273
12274 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12275
12276 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12277 (do_sfunc, set_cmd_sfunc): New functions.
12278
12279 * command.h (struct cmd_list_element): Add field func.
12280 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12281 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12282 * cli/cli-decode.h: Ditto.
12283
12284 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12285 (help_all, help_cmd_list): Ditto.
12286 (find_cmd, complete_on_cmdlist): Ditto.
12287 * top.c (execute_command): Ditto.
12288
12289 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12290 function.sfunc.
12291
12292 * infcmd.c (notice_args_read): Fix function signature.
12293
12294 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12295 * cli/cli-decode.c (add_set_cmd): Ditto.
12296 * utils.c (initialize_utils): Ditto.
12297 * maint.c (_initialize_maint_cmds): Ditto.
12298 * infrun.c (_initialize_infrun): Ditto.
12299 * demangle.c (_initialize_demangler): Ditto.
12300 * remote.c (add_packet_config_cmd): Ditto.
12301 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12302 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12303 * proc-api.c (_initialize_proc_api): Ditto.
12304 * kod.c (_initialize_kod): Ditto.
12305 * valprint.c (_initialize_valprint): Ditto.
12306 * top.c (init_main): Ditto.
12307 * infcmd.c (_initialize_infcmd): Ditto.
12308 * corefile.c (_initialize_core): Ditto.
12309 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12310 * arch-utils.c (initialize_current_architecture): Ditto.
12311 (_initialize_gdbarch_utils): Ditto.
12312 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12313
12314 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12315 * wince.c (_initialize_inftarg): Ditto.
12316 * symfile.c (_initialize_symfile): Ditto.
12317 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12318 * language.c (_initialize_language): Ditto.
12319 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12320
12321 2002-02-04 Michael Snyder <msnyder@redhat.com>
12322
12323 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12324
12325 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12326
12327 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12328 Add rules for building the register data files.
12329
12330 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12331
12332 * regformats/regdat.sh: Add braces to the definition of
12333 expedite_regs_${arch}.
12334
12335 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12336
12337 * regformats/regdef.h (struct reg): Add comment describing the
12338 requirements for offset and size fields.
12339
12340 2002-02-04 Andreas Schwab <schwab@suse.de>
12341
12342 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12343 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12344
12345 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12346
12347 * gdbarch.sh (copyright): Update years in generated header.
12348 (SMASH_TEXT_ADDRESS): Add rule.
12349 * gdbarch.h, gdbarch.c: Re-generate.
12350 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12351 * dbxread.c: Likewise.
12352 * dwarfread.c: Likewise.
12353 * elfread.c: Likewise.
12354 * somread.c: Likewise.
12355
12356 * arm-tdep.c (arm_smash_text_address): New function.
12357 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12358
12359 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12360
12361 Add support for hardware watchpoints on win32 native.
12362 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12363 CONTEXT_DEBUG_REGISTERS.
12364 (dr variable): New variable. Static array containing a local copy
12365 of debug registers.
12366 (debug_registers_changed): New variable. Reflects when debug registers
12367 are changed and need to be written to inferior.
12368 (debug_registers_used): New variable. Reflects when any debug register
12369 was set, used when new threads are created.
12370 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12371 i386-nat code.
12372 (thread_rec): Set dr array if id is the thread of current_event .
12373 (child_continue, child_resume): Change the debug registers for all
12374 threads if debug_registers_changed.
12375 (child_add_thread): Change the debug registers if debug_registers_used.
12376 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12377 Link nm.h to new nm-cygwin.h file.
12378 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12379 of hardware registers.
12380
12381 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12382
12383 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12384 Restore behavour broken by 2002-01-20 Andrew Cagney
12385 <ac131313@redhat.com> IEEE_FLOAT removal.
12386
12387 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12388
12389 * c-valprint.c (c_val_print): Pass a proper valaddr to
12390 cp_print_class_method.
12391 * valops.c (search_struct_method): If there is only one method
12392 and args is NULL, return that method.
12393
12394 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12395
12396 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12397 accessing tag_name directly.
12398
12399 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12400
12401 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12402 of accessing tag_name directly.
12403
12404 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12405
12406 PR gdb/280
12407 * gdbtypes.c (replace_type): New function.
12408 * gdbtypes.h (replace_type): Add prototype.
12409 * stabsread.c (read_type): Use replace_type.
12410
12411 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12412
12413 * Makefile.in (memattr.o): Add missing dependencies rule.
12414
12415 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12416
12417 * breakpoint.c (break_at_finish_command): Really export.
12418 (break_at_finish_at_depth_command): Ditto.
12419 (tbreak_at_finish_command): Ditto.
12420 * hppa-tdep.c: Include completer.h.
12421 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12422 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12423
12424 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12425
12426 * utils.c (do_write): New function.
12427 (error_stream): Rewrite combining the code from error_begin and
12428 verror.
12429 (verror): Rewrite using error_stream.
12430 (error_begin): Delete function.
12431
12432 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12433
12434 * utils.c (error_begin): Make static.
12435 * defs.h (error_begin): Delete declaration.
12436
12437 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12438 (decode_line_1): Use cplusplus_error instead of error_begin,
12439 cplusplus_hint and return_to_top_level.
12440 * coffread.c (coff_symfile_read): Use error instead of error_begin
12441 and return_to_top_level.
12442 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12443
12444 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12445
12446 * language.h (type_error, range_error): Make string parameter
12447 constant.
12448 * language.c (warning_pre_print): Delete extern declaration.
12449 * dwarfread.c (warning_pre_print): Ditto.
12450 * language.c (type_error, range_error): Rewrite to use verror and
12451 vwarning instead of warning_begin.
12452
12453 2002-02-01 Michael Snyder <msnyder@redhat.com>
12454
12455 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12456 (set_ignore_count): Move misplaced comment back where it belongs.
12457
12458 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12459
12460 * command.h (NO_FUNCTION): Delete macro.
12461 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12462 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12463 * tracepoint.c (_initialize_tracepoint): Ditto.
12464 * cli/cli-decode.c (add_set_cmd): Ditto.
12465 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12466
12467 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12468
12469 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12470 Update ``this'' pointer when calling virtual functions.
12471
12472 2002-02-01 Michael Snyder <msnyder@redhat.com>
12473
12474 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12475 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12476
12477 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12478
12479 * regformats/reg-arm.dat: New file.
12480 * regformats/reg-i386.dat: New file.
12481 * regformats/reg-ia64.dat: New file.
12482 * regformats/reg-m68k.dat: New file.
12483 * regformats/reg-mips.dat: New file.
12484 * regformats/reg-ppc.dat: New file.
12485 * regformats/reg-sh.dat: New file.
12486 * regformats/regdef.h: New file.
12487 * regformats/regdat.sh: New file.
12488
12489 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12490
12491 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12492 (arm_frame_args_address, arm_frame_locals_address): New functions.
12493 (arm_frame_num_args): New function.
12494 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12495 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12496 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12497
12498 2002-01-31 Michael Snyder <msnyder@redhat.com>
12499
12500 * breakpoint.c (break_at_finish_command): Export.
12501 (break_at_finish_at_depth_command): Export.
12502 (tbreak_at_finish_command): Export.
12503 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12504 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12505 "txbreak" commands, which are HPPA specific.
12506
12507 * printcmd.c (disassemble_command): Remove an ancient
12508 artifact of an old merge.
12509
12510 * symfile.h (enum overlay_debugging_state):
12511 Define enum constant values for overlay mode.
12512 * symfile.c (overlay_debugging): Use enums instead of literals.
12513 (overlay_is_mapped, overlay_auto_command,
12514 overlay_manual_command): Ditto.
12515
12516 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12517 breakpoint_here_p, breakpoint_inserted_here_p,
12518 breakpoint_thread_match, bpstat_stop_status,
12519 describe_other_breakpoints, check_duplicates, clear_command):
12520 Coding standard fixes.
12521
12522 * target.c (target_xfer_memory): Add spaces, coding standard.
12523 (do_xfer_memory): Add missing line to trust-readonly
12524 code: check bfd SEC_READONLY flag for section.
12525
12526 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12527
12528 * PROBLEMS: Fix typo, 5.1->5.1.1.
12529
12530 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12531
12532 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12533 data symbols, since we search based on textlow and texthigh.
12534 (find_pc_sect_symtab): Likewise.
12535
12536 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12537
12538 * defs.h (vwarning): Declare.
12539 * utils.c (vwarning): New function.
12540 (warning): Call vwarning.
12541 (warning_begin): Delete function.
12542
12543 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12544 the warning message.
12545 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12546 warning_begin.
12547
12548 2002-01-30 Michael Snyder <msnyder@redhat.com>
12549
12550 * NEWS: Mention "set trust-readonly-sections" command.
12551 Mention generate-core-file command.
12552
12553 2002-01-15 Michael Snyder <msnyder@redhat.com>
12554
12555 * target.c: New command, "set trust-readonly-sections on".
12556 (do_xfer_memory): Honor the suggestion to trust readonly sections
12557 by reading them from the object file instead of from the target.
12558 (initialize_targets): Register command "set trust-readonly-sections".
12559
12560 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12561
12562 * parse.c (target_map_name_to_register): Simplify, search regs and
12563 pseudo-regs using a single loop.
12564
12565 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12566
12567 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12568
12569 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12570
12571 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12572 * config/i386/i386v42mp.mh: Add i387-nat.o .
12573 * i386v4-nat.c: Include i387-nat.h.
12574 (supply_fpregset): Use i387_supply_fsave.
12575 (fill_fpregset): Use i387_fill_fsave.
12576
12577 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12578
12579 * arm-tdep.c (arm_call_dummy_words): Define.
12580 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12581 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12582 (CALL_DUMMY_WORDS): Define.
12583 (arm_call_dummy_words): Declare.
12584 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12585 (arm_linux_call_dummy_words): Declare.
12586
12587 2002-01-30 Andreas Schwab <schwab@suse.de>
12588
12589 * m68klinux-nat.c: Fix last change to use regcache_collect
12590 instead of referencing registers[] directly.
12591
12592 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12593
12594 * parse.c (target_map_name_to_register): Delete code wrapped in
12595 #ifdef REGISTER_NAME_ALIAS_HOOK.
12596
12597 2002-01-28 Michael Snyder <msnyder@redhat.com>
12598
12599 * regcache.c (legacy_read_register_gen): Need to be able to
12600 read pseudo-register as well as real register.
12601 (legacy_write_register_gen): Ditto.
12602
12603 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12604
12605 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12606 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12607 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12608 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12609 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12610 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12611 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12612 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12613 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12614 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12615 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12616 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12617 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12618 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12619 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12620 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12621 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12622 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12623 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12624 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12625
12626 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12627
12628 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12629 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12630 (initialize_current_architecture): Update target_byte_order using
12631 information from BFD.
12632 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12633 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12634
12635 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12636
12637 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12638 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12639
12640 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12641 #ifdef INVALID_FLOAT.
12642 * infcmd.c (do_registers_info): Ditto.
12643 * values.c (unpack_double): Ditto. Add comment.
12644
12645 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12646 already commented out.
12647
12648 2002-01-26 Andreas Schwab <schwab@suse.de>
12649
12650 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12651 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12652 registers and add support for PTRACE_GETREGS.
12653
12654 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12655
12656 GDB 5.1.1 released from 5.1 branch.
12657 * NEWS: Add 5.1.1 news.
12658 * README: Sync with 5.1 branch.
12659
12660 2002-01-23 Fred Fish <fnf@redhat.com>
12661
12662 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12663 stabstring on initial malloc. Reallocing will copy it for us,
12664 if necessary.
12665
12666 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12667
12668 * Makefile.in (hpread_h): Delete.
12669 (HFILES_NO_SRCDIR): Remove hpread.h.
12670 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12671 (hpread.o): Update dependencies.
12672 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12673
12674 * hp-psymtab-read.c: Remove file.
12675 * hp-symtab-read.c: Remove file.
12676 * hpread.h: Remove file.
12677
12678 * hpread.c: Merge all contents of hp-psymtab-read.c,
12679 hp-symtab-read.c and hpread.h into this file, as it was prior to
12680 January 1999.
12681
12682 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12683 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12684 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12685 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12686
12687 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12688
12689 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12690 fill_gregset): Call gdbarch_tdep() just once, assign result to
12691 variable and use that, instead of calling the function several
12692 times.
12693
12694 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12695
12696 * configure.host: Accept sparcv9 as alias for sparc64.
12697 * configure.tgt: Likewise.
12698
12699 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12700
12701 * solib-aix5.c (build_so_list_from_mapfile)
12702 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12703 arguments is not reversed.
12704 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12705 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12706
12707 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
12708
12709 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12710 modified version of obsolete sh_fetch_pseudo_register.
12711 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12712 (sh4_register_read): New function.
12713 (sh_pseudo_register_write): New function. Renamed and modified
12714 version of obsolete sh_store_pseudo_register.
12715 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12716 (sh4_register_write): New function.
12717 (sh_gdbarch_init): Remove setting of gdbarch function
12718 fetch_pseudo_register and store_pseudo_register. Remove setting of
12719 register_convert_to_raw, register_convert_to_virtual,
12720 register_convertible.
12721 (sh_sh4_register_convertible): Delete. No longer needed. All is
12722 taken care by architecture specific functions
12723 register_read/register_write.
12724 (sh_sh4_register_convert_to_virtual): Make static.
12725 (sh_sh4_register_convert_to_raw): Ditto.
12726
12727 2002-01-22 Andrew Cagney <ac131313@redhat.com>
12728
12729 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12730 (floatformat_is_nan, floatformat_mantissa): Ditto.
12731
12732 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12733 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12734 builtin_type_ieee_double_little,
12735 builtin_type_ieee_double_littlebyte_bigword,
12736 builtin_type_m68881_ext, builtin_type_i960_ext,
12737 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12738 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12739 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12740 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12741
12742 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
12743
12744 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12745 parameter. Set frameless flag if it exists and depended of
12746 whether the scanned function is frameless or not.
12747 (xstormy16_skip_prologue): If function is frameless, return
12748 result of xstormy16_scan_prologue().
12749 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12750 call.
12751
12752 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
12753
12754 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12755 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12756 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12757 sh_sh4_register_byte, sh_sh4_register_raw_size,
12758 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12759 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12760 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12761 sh_store_pseudo_register, sh_do_pseudo_register): Call
12762 gdbarch_tdep() just once, assign result to variable and use that,
12763 instead of calling the function several times.
12764
12765 2002-01-20 Mark Kettenis <kettenis@gnu.org>
12766
12767 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12768 macros instead of LAST_FPU_CTRL_REGNUM.
12769 (store_register): Likewise.
12770
12771 2002-01-21 Jim Blandy <jimb@redhat.com>
12772
12773 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12774 is up-to-date before running the program, not just when a program
12775 exits.
12776
12777 2002-01-21 Fred Fish <fnf@redhat.com>
12778
12779 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12780 when we have found all instructions we are looking for.
12781
12782 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12783
12784 * arm-tdep.c (arm_register_name): New function.
12785 (arm_registers_names): Make static.
12786 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12787 (arm_register_name): Declare.
12788 (REGISTER_NAME): Use it.
12789
12790 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12791 Kevin Buettner <kevinb@redhat.com>
12792
12793 Convert arm targets to new FRAME interface.
12794 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12795 (arm_frame_find_save_regs): Delete.
12796 (arm_frame_init_saved_regs): New.
12797 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12798 Allocate extra_info as required. Convert all uses of fsr.regs
12799 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12800 to use extra_info.
12801 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12802 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12803 (check_prologue_cache, save_prologue_cache): Likewise.
12804 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12805 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12806 (FRAME_FIND_SAVED_REGS): Delete.
12807 (arm_frame_find_saved_regs): Delete prototype.
12808 (arm_frame_init_saved_regs): New prototype.
12809 (FRAME_INIT_SAVED_REGS): Define.
12810
12811 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12812
12813 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12814
12815 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12816
12817 From Jeff Law <law@redhat.com>:
12818 * infttrace.c: Include <sys/pstat.h>.
12819 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12820 exec file if the ttrace equivalent fails.
12821
12822 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12823
12824 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12825 (closeLogFile): Ditto.
12826
12827 2002-01-20 Michael Chastain <mec@shout.net>
12828
12829 * top.c (print_gdb_version): Bump copyright year to 2002.
12830
12831 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12832
12833 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12834 Zannoni and Eli Zaretskii.
12835
12836 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12837
12838 * buildsym.c: Update copyright years.
12839 * c-typeprint.c: Likewise.
12840 * dwarf2read.c: Likewise.
12841 * f-typeprint.c: Likewise.
12842 * gdbtypes.c: Likewise.
12843 * gdbtypes.h: Likewise.
12844 * hp-symtab-read.c: Likewise.
12845 * hpread.c: Likewise.
12846 * mdebugread.c: Likewise.
12847 * p-typeprint.c: Likewise.
12848
12849 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12850
12851 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12852 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12853 byte-order selectable.
12854 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12855 * arch-utils.c: Ditto.
12856 (set_endian): Ditto.
12857 (set_endian_from_file): Ditto.
12858 * gdbserver/low-sim.c (create_inferior): Ditto.
12859 * gdbarch.sh: Ditto.
12860 * gdbarch.h: Re-generate.
12861 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12862 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12863 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12864 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12865 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12866 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12867 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
12868 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12869 macro definition.
12870 * config/mips/tm-wince.h: Remove #undef of macro
12871 TARGET_BYTE_ORDER_SELECTABLE.
12872 * config/sh/tm-wince.h: Ditto.
12873
12874 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12875
12876 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12877 member function fields. Add accessor macro
12878 TYPE_FN_FIELD_ARTIFICIAL.
12879 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12880 * c-typeprint.c (c_type_print_base): Skip artificial member
12881 functions.
12882
12883 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12884
12885 * f-typeprint.c: Delete unused function f_type_print_args.
12886 * p-typeprint.c: Delete unused function pascal_type_print_args.
12887
12888 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12889
12890 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12891 comment. Add ``artificial'' to ``union field_location''.
12892
12893 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12894
12895 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12896 * mdebugread.c (parse_symbol): Likewise.
12897 * stabsread.c (define_symbol): Likewise.
12898 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12899 initializing TYPE_FIELD_BITPOS to n (obsolete).
12900 (hpread_doc_function_type): Likewise.
12901 * hpread.c (hpread_function_type): Likewise.
12902
12903 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12904
12905 * configure.in (host_makefile_frag): Only require a host makefile
12906 fragment when a native build.
12907 * configure: Re-generate.
12908
12909 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12910
12911 * doublest.h (floatformat_from_type): Declare.
12912 * doublest.c (floatformat_from_type): New function.
12913 (convert_typed_floating): Use.
12914
12915 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12916 call to function floatformat_from_type.
12917
12918 * gdbarch.sh (IEEE_FLOAT): Delete.
12919 * gdbarch.h, gdbarch.c: Re-generate.
12920 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12921 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12922 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12923 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12924 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12925 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12926 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12927 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12928 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12929 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12930 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
12931 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12932
12933 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12934 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12935 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12936 * sh-tdep.c (sh_gdbarch_init): Ditto.
12937 * mips-tdep.c (mips_gdbarch_init): Ditto.
12938 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12939 * cris-tdep.c (cris_gdbarch_init): Ditto.
12940
12941 2002-01-20 Jiri Smid <smid@suse.cz>
12942
12943 * configure.host, configure.tgt: Support x86-64.
12944 * NEWS: Note new target x86-64.
12945
12946 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12947 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12948 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12949 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12950 x86-64-linux-nat.o): Fix dependencies.
12951
12952 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12953
12954 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12955 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12956 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12957 * config/sparc/xm-sun4os4.h: Delete file.
12958 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
12959
12960 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12961
12962 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12963 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12964 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12965 * config/i386/i386lynx.mh (XM_FILE): Delete.
12966 * config/rs6000/xm-rs6000ly.h: Delete file.
12967 * config/sparc/xm-sparclynx.h: Delete file.
12968 * config/m68k/xm-m68klynx.h: Delete file.
12969 * config/i386/xm-i386lynx.h: Delete file.
12970 * config/xm-lynx.h: Delete file.
12971 * config/djgpp/fnchange.lst: Update.
12972
12973 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12974
12975 * alpha-tdep.c (alpha_register_byte): New function.
12976 (alpha_register_raw_size): Ditto.
12977 (alpha_register_virtual_size): Ditto.
12978 (alpha_skip_prologue_internal): Renamed from
12979 alpha_skip_prologue.
12980 (alpha_skip_prologue): New version that calls
12981 alpha_skip_prologue_internal.
12982 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12983 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12984 second argument from alpha_skip_prologue.
12985 (REGISTER_BYTE): Use alpha_register_byte.
12986 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12987 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12988 (FRAMELESS_FUNCTION_INVOCATION): Use
12989 generic_frameless_function_invocation_not.
12990 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12991 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12992
12993 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12994
12995 * config/mips/xm-news-mips.h: Delete file.
12996 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12997
12998 * config/m88k/xm-m88k.h: Delete file.
12999 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13000 * config/m88k/xm-delta88v4.h: Ditto.
13001 * config/m88k/xm-delta88.h: Ditto.
13002
13003 * config/alpha/xm-fbsd.h: Delete file.
13004 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13005
13006 * config/sparc/xm-sparc.h: Delete file.
13007 * Makefile.in (xm-sun4os4.h): Delete dependency.
13008 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13009 * config/sparc/xm-sun4os4.h: Ditto.
13010 * config/sparc/xm-linux.h: Ditto.
13011
13012 * config/i386/xm-windows.h: Delete file.
13013
13014 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13015
13016 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13017 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13018
13019 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13020
13021 * alpha-tdep.c (alpha_call_dummy_words): New.
13022 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13023 (CALL_DUMMY_P): Define.
13024 (CALL_DUMMY_WORDS): Define.
13025 (SIZEOF_CALL_DUMMY_WORDS): Define.
13026
13027 2002-01-19 Per Bothner <per@bothner.com>
13028
13029 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13030 isn't NULL, which can happen with some gcj-3.x-produced code.
13031
13032 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13033
13034 * alpha-tdep.c (alpha_register_virtual_type): New function.
13035 (alpha_init_frame_pc_first): Ditto.
13036 (alpha_fix_call_dummy): Ditto.
13037 (alpha_store_struct_return): Ditto.
13038 (alpha_extract_struct_value_address): Ditto.
13039 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13040 alpha_register_virtual_type.
13041 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13042 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13043 alpha_extract_struct_value_address.
13044 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13045 (INIT_FRAME_PC): Use init_frame_pc_noop.
13046 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13047
13048 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13049
13050 * i386gnu-nat.c: Include "i386-tdep.h".
13051 (fetch_fpregs): Simplify code dealing with uninitialized floating
13052 point states such that it doesn't require FP7_REGNUM.
13053
13054 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13055
13056 * alpha-tdep.c (frame_extra_info): New.
13057 (alpha_find_saved_regs): Make static. Use
13058 frame->extra_info.
13059 (alpha_frame_init_saved_regs): New function.
13060 (alpha_frame_saved_pc): Use frame->extra_info.
13061 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13062 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13063 (init_extra_frame_info): Rename to...
13064 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13065 (alpha_print_extra_frame_info): New function.
13066 (alpha_frame_locals_address): Ditto.
13067 (alpha_frame_args_address): Ditto.
13068 (alpha_pop_frame): Use frame->extra_info.
13069 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13070 alpha_frame_args_address.
13071 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13072 (alpha_find_saved_regs): Remove prototype.
13073 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13074 (EXTRA_FRAME_INFO): Remove.
13075 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13076 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13077
13078 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13079
13080 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13081 (alpha_cannot_fetch_register): Ditto.
13082 (alpha_cannot_store_register): Ditto.
13083 (alpha_register_convertible): Ditto.
13084 (alpha_use_struct_convention): Ditto.
13085 * config/alpha/tm-alpha.h: Update copyright years.
13086 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13087 (INNER_THAN): Use core_addr_lessthan.
13088 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13089 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13090 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13091 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13092 (FRAME_CHAIN): Remove unnecessary cast.
13093
13094 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13095
13096 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13097 obsolete.
13098
13099 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13100
13101 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13102 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13103 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13104 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13105 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13106 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13107 * x86-64-linux-nat.c: Ditto.
13108
13109 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13110
13111 * alpha-tdep.c (alpha_register_name): New function.
13112 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13113 (REGISTER_NAME): Define.
13114
13115 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13116
13117 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13118
13119 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13120
13121 * alpha-tdep.c: Update copyright years.
13122 (alpha_next_pc): New function.
13123 (alpha_software_single_step): Ditto.
13124 * config/alpha/tm-alpha.h: Add prototype for
13125 alpha_software_single_step.
13126
13127 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13128
13129 * alphabsd-nat.c: Update copyright years.
13130 (fill_gregset): Use regcache_collect.
13131 (fill_fpregset): Likewise.
13132 (fetch_inferior_registers): Only fetch integer registers
13133 if requested to do so.
13134 (store_inferior_registers): Only store integer registers
13135 if requested to do so.
13136
13137 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13138
13139 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13140 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13141 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13142 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13143 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13144 * config/arm/linux.mh (XDEPFILES): Delete.
13145 * config/arm/nbsd.mh (XDEPFILES): Delete.
13146 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13147 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13148 * config/i386/i386m3.mh (XDEPFILES): Delete.
13149 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13150 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13151 * config/i386/fbsd.mh (XDEPFILES): Delete.
13152 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13153 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13154 * config/i386/i386v4.mh (XDEPFILES): Delete.
13155 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13156 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13157 * config/i386/i386aix.mh (XDEPFILES): Delete.
13158 * config/i386/go32.mh (XDEPFILES): Delete.
13159 * config/i386/cygwin.mh (XDEPFILES): Delete.
13160 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13161 * config/i386/i386mach.mh (XDEPFILES): Delete.
13162 * config/i386/i386v32.mh (XDEPFILES): Delete.
13163 * config/i386/linux.mh (XDEPFILES): Delete.
13164 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13165 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13166 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13167 * config/i386/i386sco.mh (XDEPFILES): Delete.
13168 * config/i386/i386v.mh (XDEPFILES): Delete.
13169 * config/i386/nbsd.mh (XDEPFILES): Delete.
13170 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13171 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13172 * config/i386/symmetry.mh (XDEPFILES): Delete.
13173 * config/i386/obsd.mh (XDEPFILES): Delete.
13174 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13175 * config/ia64/linux.mh (XDEPFILES): Delete.
13176 * config/ia64/aix.mh (XDEPFILES): Delete.
13177 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13178 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13179 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13180 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13181 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13182 * config/m68k/linux.mh (XDEPFILES): Delete.
13183 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13184 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13185 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13186 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13187 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13188 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13189 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13190 * config/m88k/delta88.mh (XDEPFILES): Delete.
13191 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13192 * config/m88k/m88k.mh (XDEPFILES): Delete.
13193 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13194 * config/mips/linux.mh (XDEPFILES): Delete.
13195 * config/mips/irix6.mh (XDEPFILES): Delete.
13196 * config/mips/irix5.mh (XDEPFILES): Delete.
13197 * config/mips/irix4.mh (XDEPFILES): Delete.
13198 * config/mips/irix3.mh (XDEPFILES): Delete.
13199 * config/mips/decstation.mh (XDEPFILES): Delete.
13200 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13201 (NATDEPFILES): Move core-aout.o to here.
13202 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13203 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13204 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13205 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13206 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13207 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13208 * config/pa/hpux11.mh (XDEPFILES): Delete.
13209 * config/powerpc/aix.mh (XDEPFILES): Delete.
13210 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13211 * config/powerpc/linux.mh (XDEPFILES): Delete.
13212 * config/romp/rtbsd.mh: Rename XDEPFILES.
13213 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13214 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13215 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13216 * config/s390/s390.mh (XDEPFILES): Delete.
13217 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13218 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13219 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13220 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13221 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13222 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13223 * config/sparc/linux.mh (XDEPFILES): Delete.
13224 * config/vax/vaxult.mh (XDEPFILES): Delete.
13225 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13226 * Makefile.in (DEPFILES): Remove XDEPFILES.
13227
13228 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13229
13230 * utils.c (internal_verror): Fix comments, default is yes not no.
13231 Update queries to match. Default to quit and dump core.
13232
13233 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13234
13235 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13236 copyright.
13237 * defs.h, event-top.c, gdbcmd.h: Ditto.
13238 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13239 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13240 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13241 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13242 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13243 * mi/mi-main.c:Ditto.
13244
13245 * stack.c, symfile.c: Update copyright.
13246
13247 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13248
13249 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13250 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13251 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13252 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13253
13254 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13255
13256 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13257 * gdbserver/low-lynx.c (myattach): Likewise.
13258 * gdbserver/low-nbsd.c (myattach): Likewise.
13259 * gdbserver/low-sim.c (myattach): Likewise.
13260 * gdbserver/low-sparc.c (myattach): Likewise.
13261 * gdbserver/low-sun3.c (myattach): Likewise.
13262
13263 * gdbserver/low-linux.c (myattach): New function.
13264
13265 * gdbserver/server.c (attach_inferior): New function.
13266 (main): Handle "--attach".
13267
13268 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13269
13270 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13271 maintainer.
13272
13273 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13274
13275 * c-typeprint.c (is_type_conversion_operator): Add additional
13276 check for non-conversion operators.
13277
13278 2002-01-15 Michael Snyder <msnyder@redhat.com>
13279
13280 * linux-proc.c: Add "info proc" command, a la procfs.c.
13281 (read_mapping): New function, abstract and re-use code.
13282 (linux_find_memory_regions): Use new func read_mapping.
13283 (linux_info_proc_cmd): New function, implement "info proc".
13284 (_initialize_linux_proc): Add new command "info proc".
13285
13286 2002-01-15 Michael Snyder <msnyder@redhat.com>
13287
13288 * symfile.c (generic_load): Use bfd_map_over_sections method
13289 instead of manipulating bfd structure members directly.
13290 (add_section_size_callback): New function, bfd sections callback
13291 used by generic_load.
13292 (load_sections_callback): New function, bfd sections callback
13293 used by generic_load.
13294
13295 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13296
13297 [Based on work by Jim Blandy]
13298 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13299 (builtin_type_vec128): Export.
13300 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13301 types.
13302 (builtin_type_vec128): New builtin type for 128 bit vector
13303 registers.
13304 (build_gdbtypes): Initialize builtin_type_v16qi and
13305 builtin_type_v8hi. Create the vec128 register builtin type
13306 structure.
13307 (build_builtin_type_vec128): New function.
13308 (_initialize_gdbtypes): Register builtin_type_v16qi and
13309 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13310 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13311 AltiVec register to new builtin type.
13312
13313 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13314
13315 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13316 to make_cv_type.
13317
13318 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13319
13320 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13321 CLEAN_UP_REGISTER_VALUE.
13322 * regcache.c (supply_register): Update only call.
13323
13324 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13325
13326 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13327 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13328 a29k-*-vxworks* targets as obsolete.
13329
13330 2002-01-14 Michael Snyder <msnyder@redhat.com>
13331
13332 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13333 until we can resolve portability issues.
13334 * gregset.h: Remove references to fpxregs.
13335 * gcore.c (gcore_command): Initialize note_sec to NULL.
13336
13337 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13338
13339 * signals.c (target_signal_to_name): Rewrite. Only use
13340 signals[].name when in bounds and non-NULL.
13341
13342 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13343
13344 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13345 * signals.c (target_signal_to_name): Verify that SIG is within the
13346 bounds of the signals array.
13347
13348 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13349
13350 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13351
13352 2002-01-13 Keith Seitz <keiths@redhat.com>
13353
13354 * stack.c (print_frame_info_base): Print the frame's pc
13355 only if when print_frame_info_listing_hook is not defined.
13356
13357 2002-01-13 Keith Seitz <keiths@redhat.com>
13358
13359 * varobj.c (varobj_set_value): Make sure that there were no
13360 errors evaluating the object before attempting to set its
13361 value.
13362 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13363 so this offset adjustment is no longer necessary.
13364 (create_child): Don't set the error flag if the child is
13365 a CPLUS_FAKE_CHILD.
13366 (value_of_child): If value_fetch_lazy fails, return NULL
13367 so that callers will be notified that an error occurred.
13368 (c_value_of_variable): Delay check of variable's validity
13369 until later. We actually want all structs and unions to have
13370 the value "{...}".
13371 Do not return "???" for variables which could not be evaluated.
13372 This error condition must be returned to the caller so that it
13373 can get the error condition from gdb.
13374 (cplus_name_of_child): Adjust index for vptr before figuring
13375 out the name of the child.
13376 (cplus_value_of_child): If a child's (real) parent is not valid,
13377 don't even bother trying to give a value for it. Just return
13378 an error. Change all instances in this function.
13379 (cplus_type_of_child): If our parent is one of the "fake"
13380 parents, we need to get at the type of the real parent, and
13381 derive the child's true type using this information.
13382
13383 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13384
13385 From 2002-01-09 John Marshall <johnm@falch.net>:
13386 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13387 sources.redhat.com, and tweak some related URLs which had
13388 suffered from linkrot.
13389
13390 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13391
13392 From Jeff law:
13393 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13394 structures passed in registers.
13395
13396 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13397
13398 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13399 white space which prevented compilation. Reported by DSK
13400 <dsk@student.unsw.edu.au>.
13401
13402 2002-01-11 Michael Snyder <msnyder@redhat.com>
13403
13404 * symfile.c (build_section_addr_info_from_section_tab):
13405 Use bfd access method instead of manipulating bfd directly.
13406 (syms_from_objfile): Ditto.
13407 (simple_overlay_update_1): Ditto.
13408 (simple_overlay_update): Ditto.
13409 (generic_load): Ditto.
13410 (overlay_unmapped_address): FIXME comment, bfd access methods.
13411 (sections_overlap): FIXME comment, bfd access methods.
13412 (pc_in_mapped_range): FIXME comment, bfd access methods.
13413 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13414 (section_is_mapped): FIXME comment, bfd access methods.
13415 (section_is_overlay): FIXME comment, bfd access methods.
13416
13417 * symfile.c (generic_load): Whitespace and long line cleanups.
13418 Remove duplicate variable, change several local variables to
13419 more appropriate data types.
13420 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13421
13422 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13423
13424 From Peter Schauer:
13425 * language.c (longest_local_hex_string_custom): Use phex_nz to
13426 convert NUM to a hex string.
13427
13428 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13429
13430 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13431 the function.
13432 Update Copyright year.
13433
13434 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13435
13436 * language.c (longest_raw_hex_string): Delete unused function.
13437
13438 2002-01-11 Petr Sorfa <petrs@caldera.com>
13439
13440 * MAINTAINERS (write-after-approval): Add myself.
13441 * dwarf2read.c (read_tag_string_type): Handling of
13442 DW_AT_byte_size.
13443 (read_tag_string_type): FORTRAN fix to prevent propagation of
13444 first string size.
13445 (set_cu_language): Handling of DW_LANG_Fortran95
13446
13447 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13448
13449 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13450 GETPID(inferior_ptid).
13451 (store_inferior_registers): Likewise.
13452
13453 2002-01-10 Jason Merrill <jason@redhat.com>
13454
13455 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13456 Fix DW_OP_minus.
13457
13458 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13459
13460 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13461 and bfd/elf32-sh-nbsd.c.
13462
13463 2002-01-10 Michael Snyder <msnyder@redhat.com>
13464
13465 * NEWS: Mention --pid and corefile/proc-id behavior change.
13466
13467 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13468 * gcore.c: Include cli/cli-decode.h instead of command.h.
13469
13470 * main.c (captured_main): Add new command line option "--pid".
13471 If the second command line argument (following the symbol-file)
13472 begins with a digit, try to attach to it before trying to open
13473 it as a corefile.
13474 (print_gdb_help): Document the "--pid" argument.
13475
13476 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13477
13478 * completer.c (command_completer): New function.
13479
13480 * completer.h <command_completer>: Add prototype.
13481
13482 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13483 completer for the "help" command.
13484
13485 2002-01-09 Jason Merrill <jason@redhat.com>
13486
13487 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13488
13489 2002-01-09 Michael Snyder <msnyder@redhat.com>
13490
13491 * i386-linux-nat.c (fill_fpxregset): Make global.
13492 (store_fpxregset): Ditto.
13493
13494 * gregset.h (gdb_fpxregset_t): Define.
13495 (supply_fpxregset): Prototype.
13496 (fill_fpxregset): Prototype.
13497
13498 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13499
13500 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13501
13502 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13503 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13504 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13505
13506 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13507
13508 * MAINTAINERS: Update target maintainer rules so that any
13509 Maintainer can approve a tested patch for a maintenance-only
13510 target.
13511
13512 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13513
13514 * MAINTAINERS (write-after-approval): Add myself.
13515
13516 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13517 IN_SIGTRAMP.
13518
13519 2002-01-08 Michael Snyder <msnyder@redhat.com>
13520
13521 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13522 real name of the executable, rather than the /proc name.
13523
13524 2002-01-03 Michael Snyder <msnyder@redhat.com>
13525
13526 Implement a "generate-core-file" command in gdb, save target state.
13527 * gcore.c: New file. Implement new command 'generate-core-file'.
13528 Save a corefile image of the current state of the inferior.
13529 * linux-proc.c: Add linux-specific code for saving corefiles.
13530 * target.h (struct target_ops): Add new target vectors for saving
13531 corefiles; to_find_memory_regions and to_make_corefile_notes.
13532 (target_find_memory_regions): New macro.
13533 (target_make_corefile_notes): New macro.
13534 * target.c (update_current_target): Inherit new target methods.
13535 (dummy_find_memory_regions): New place-holder method.
13536 (dummy_make_corefile_notes): New place-holder method.
13537 (init_dummy_target): Initialize new dummy target vectors.
13538 * exec.c (exec_set_find_memory_regions): New function.
13539 Allow the exec_ops vector for memory regions to be taken over.
13540 (exec_make_note_section): New function, target vector method.
13541 * defs.h (exec_set_find_memory_regions): Export prototype.
13542 * procfs.c (proc_find_memory_regions): New function, corefile method.
13543 (procfs_make_note_section): New function, corefile method.
13544 (init_procfs_ops): Set new target vector pointers.
13545 (find_memory_regions_callback): New function.
13546 (procfs_do_thread_registers): New function.
13547 (procfs_corefile_thread_callback): New function.
13548 * sol-thread.c (sol_find_memory_regions): New function.
13549 (sol_make_note_section): New function.
13550 (init_sol_thread_ops): Initialize new target vectors.
13551 * inftarg.c (inftarg_set_find_memory_regions): New function.
13552 Allow to_find_memory_regions vector to be taken over.
13553 (inftarg_set_make_corefile_notes): New function.
13554 Allow to_make_corefile_notes vector to be taken over.
13555 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13556 interface layer if not target_has_execution (may be a corefile).
13557 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13558 * config/sparc/sun4sol2.mh: Ditto.
13559 * config/alpha/alpha-linux.mh: Ditto.
13560 * config/arm/linux.mh: Ditto.
13561 * config/i386/x86-64linux.mh: Ditto.
13562 * config/ia64/linux.mh: Ditto.
13563 * config/m68k/linux.mh: Ditto.
13564 * config/mips/linux.mh: Ditto.
13565 * config/powerpc/linux.mh: Ditto.
13566 * config/sparc/linux.mh: Ditto.
13567
13568 2002-01-07 Michael Snyder <msnyder@redhat.com>
13569
13570 * arm-linux-nat.c: Remove references to regcache.c internal data
13571 (registers[] and register_valid[]).
13572
13573 2002-01-07 Michael Snyder <msnyder@redhat.com>
13574
13575 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13576 so that attaching to a pid will automatically read the process's
13577 symbol file and shlibs.
13578 * Makefile.in: Add rule for linux-proc.o.
13579 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13580 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13581 * config/arm/linux.mh: Ditto.
13582 * config/i386/linux.mh: Ditto.
13583 * config/i386/x86-64linux.mh: Ditto.
13584 * config/ia64/linux.mh: Ditto.
13585 * config/m68k/linux.mh: Ditto.
13586 * config/mips/linux.mh: Ditto.
13587 * config/powerpc/linux.mh: Ditto.
13588 * config/sparc/linux.mh: Ditto.
13589
13590 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13591
13592 * win32-nat.c: Add i386-tdep.h dependency.
13593
13594 2002-01-07 Michael Snyder <msnyder@redhat.com>
13595
13596 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13597 instead of bfd_get_arch_size. Don't bail out just because
13598 there's no exec_bfd.
13599
13600 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13601 * p-valprint.c (pascal_object_print_value): Ditto.
13602 * somread.c (som_symtab_read): Ditto.
13603 * symfile.c (simple_free_overlay_region_table): Ditto.
13604 * valops.c (value_assign): Ditto.
13605
13606 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13607 use tilde_expand and strerror for opening save-tracepoints file.
13608
13609 * thread-db.c (thread_db_new_objfile): Indendation fix.
13610
13611 * infptrace.c (GDB_MAX_ALLOCA): New define.
13612 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13613 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13614 can be overridden with whatever value is appropriate to the host).
13615 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13616 alloca to allocate potentially large buffer.
13617 * rs6000-nat.c (child_xfer_memory): Ditto.
13618 * symm-nat.c (child_xfer_memory): Ditto.
13619 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13620
13621 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13622
13623 From Nick Clifton <nickc@redhat.com>
13624 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13625
13626 2002-01-07 Michael Snyder <msnyder@redhat.com>
13627
13628 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13629 Don't use exec_bfd if it's NULL.
13630
13631 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13632
13633 * valops.c (value_arg_coerce): Fix formatting.
13634
13635 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13636
13637 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13638 * gnu-nat.c: Ditto.
13639
13640 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13641
13642 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13643 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13644 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13645 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13646 z8k-coff have not been multi-arched. Update z8k-coff build
13647 status.
13648
13649 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13650
13651 * MAINTAINERS: Mark a29k target as obsolete.
13652 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13653 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13654 comments.
13655 * NEWS: Note that a29k targets are obsolete.
13656 * a29k-tdep.c: Mark as obsolete.
13657 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13658 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13659 a29k-*-vxworks* targets as obsolete.
13660 * remote-adapt.c: Obsolete.
13661 * remote-eb.c: Obsolete.
13662 * remote-mm.c: Obsolete.
13663 * remote-udi.c: Obsolete.
13664 * config/a29k/a29k-udi.mt: Obsolete.
13665 * config/a29k/a29k.mt: Obsolete.
13666 * config/a29k/tm-a29k.h: Obsolete.
13667 * config/a29k/tm-vx29k.h: Obsolete.
13668 * config/a29k/vx29k.mt: Obsolete.
13669
13670 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13671
13672 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13673 with BFD_ENDIAN_BIG.
13674
13675 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13676
13677 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13678 * configure, config.in: Re-generate.
13679 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13680 * defs.h: Do not include <endian.h>.
13681
13682 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13683
13684 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13685 * config.in: Regenerate.
13686 * configure.in: Update copyright years.
13687 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13688 * configure: Regenerate.
13689 * i386bsd-nat.c: Update copyright years.
13690 (fill_gregset): Use regcache_collect.
13691 (fetch_inferior_registers): Only fetch integer registers
13692 if requested to do so. Add support for XMM registers
13693 using PT_GETXMMREGS.
13694 (store_inferior_registers): Only store integer registers
13695 if requested to do so. Add support for XMM registers
13696 using PT_SETXMMREGS.
13697 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13698 (store_inferior_registers): Remove.
13699 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13700 (fetch_elfcore_registers): New function.
13701 (i386nbsd_elfcore_fns): New.
13702 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13703 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13704 i386bsd-nat.o.
13705 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13706 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13707 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13708 * config/i386/tm-nbsd.h: Update copyright years.
13709 (HAVE_SSE_REGS): Define.
13710 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13711 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13712 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13713 (SIGCONTEXT_PC_OFFSET): Remove.
13714 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13715
13716 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13717
13718 * configure.tgt: Remove powerpc-*-macos* target.
13719 * config/m68k/xm-mpw.h: Delete file.
13720 * config/xm-mpw.h: Delete file.
13721 * ser-mac.c: Delete file.
13722 * mpw-make.sed: Delete file.
13723 * mpw-config.in: Delete file.
13724 * mac-xdep.c: Delete file.
13725 * mac-gdb.r: Delete file.
13726 * mac-defs.h: Delete file.
13727 * mac-nat.c: Delete file.
13728 * config/powerpc/macos.mh: Delete file.
13729 * config/powerpc/macos.mt: Delete file.
13730 * config/powerpc/nm-macos.h: Delete file.
13731 * config/powerpc/tm-macos.h: Delete file.
13732 * source.c (openp, open_source_file): Remove obsolete code.
13733 * top.c (gdb_readline): Ditto.
13734 * utils.c (query): Ditto.
13735 * event-top.c (display_gdb_prompt): Ditto.
13736 * Makefile.in (ser-mac.o): Delete obsolete target.
13737 * NEWS: Update.
13738
13739 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13740
13741 * defs.h (BIG_ENDIAN): Delete macro definition.
13742 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13743 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13744 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13745 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13746 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13747 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13748 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13749 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13750 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13751 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13752 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13753 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13754 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13755 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13756 * gdbarch.c: Re-generate.
13757
13758 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13759
13760 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13761 for core files.
13762
13763 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13764
13765 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13766
13767 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13768
13769 * value.h (value_ptr): Delete typedef.
13770
13771 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13772
13773 * i386nbsd-nat.c: Update copyright years.
13774 Include i386-tdep.h.
13775
13776 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
13777
13778 * stabsread.c: Update copyright years.
13779
13780 From Debashis Mahata <debashis.mahata@wipro.com>:
13781 (read_struct_fields): Deal with Sun C compiler erroneous stab
13782 output for structs and unions.
13783 Fix PR gdb/269.
13784
13785 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13786
13787 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13788 prototype.
13789
13790 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13791
13792 * cp-abi.c: Fix whitespace.
13793 (baseclass_offset): New wrapper function.
13794 * cp-abi.h (baseclass_offset): Add prototype.
13795 (struct cp_abi_ops): Add baseclass_offset pointer.
13796
13797 * valops.c (vb_match): Move to...
13798 * gnu-v2-abi.c (vb_match): here.
13799 * valops.c (baseclass_offset): Move to...
13800 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13801
13802 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13803
13804 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13805 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13806 * hpacc-abi.c (init_hpacc_ops): Likewise.
13807
13808 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13809
13810 * valops.c (find_overload_match): Accept obj as a
13811 reference parameter. Update it before returning.
13812 * value.h (find_overload_match): Update prototype.
13813 * eval.c (evaluate_subexp_standard): Pass object to
13814 find_overload_match by reference.
13815
13816 2002-01-03 Andrew Cagney <ac131313@redhat.com>
13817
13818 * valarith.c: Replace value_ptr with struct value pointer. Remove
13819 register attribute from value declarations.
13820 * valops.c: Ditto.
13821 * value.h: Ditto.
13822 * scm-lang.c (scm_lookup_name): Ditto.
13823
13824 2002-01-03 Michael Snyder <msnyder@redhat.com>
13825
13826 Abstract the functionality of iterating over mapped memory
13827 regions into a general purpose iterator function.
13828 * procfs.c (iterate_over_mappings): New function, general purpose
13829 iterator for memory sections.
13830 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13831 (solib_mappings_callback): New function, callback for above.
13832 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13833 (info_mappings_callback): New function, callback for above.
13834
13835 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13836
13837 2002-01-01 Mark Kettenis <kettenis@gnu.org>
13838
13839 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13840 * i386-tdep.c: Include "elf-bfd.h".
13841 (process_note_abi_tag_sections): New function.
13842 (i386_gdbarch_init): Add code to recognize various OS/ABI
13843 combinations.
13844
13845 * maint.c (_initialize_maint_cmds): Add missing \ in
13846 string-literal.
13847
13848 For older changes see ChangeLog-2001
13849 \f
13850 Local Variables:
13851 mode: change-log
13852 left-margin: 8
13853 fill-column: 74
13854 version-control: never
13855 End:
This page took 0.347084 seconds and 5 git commands to generate.