Add n64 core file support for Linux/MIPS.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f1253c7b
DC
12002-12-04 David Carlton <carlton@math.stanford.edu>
2
3 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
4
406bc4de
DC
52002-12-04 David Carlton <carlton@math.stanford.edu>
6
7 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
8 function.
9 (lookup_symbol_aux_minsyms): New function.
10
2a3750c5
JB
112002-12-04 J. Brobecker <brobecker@gnat.com>
12
13 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
14
961d8652
JB
152002-12-04 J. Brobecker <brobecker@gnat.com>
16
17 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
18 which is an obsolete macro name.
19
38c52d5a
DJ
202002-12-04 Daniel Jacobowitz <drow@mvista.com>
21
22 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
23 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
24
d8ef46f5
DJ
252002-12-03 H.J. Lu (hjl@gnu.org)
26
27 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
28 (create_breakpoints): Make sure the addr_string field is not
29 NULL.
30
02ae7771
AC
312002-12-03 Andrew Cagney <ac131313@redhat.com>
32
33 * sparc-nat.c (fetch_inferior_registers)
34 (store_inferior_registers): Add comment on problem of LWP vs
35 threads.
36
37 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
38 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
39 (lin_lwp_store_registers): Remove.
40 (init_lin_lwp_ops): Use fetch_inferior_registers
41 and store_inferior_registers directly.
42 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
43 (store_inferior_registers): Likewise.
44 Fix PR gdb/725.
45
7a424e99
AC
462002-12-03 Andrew Cagney <ac131313@redhat.com>
47
48 * frame.h (get_frame_id): Convert to a function.
49 (null_frame_id, frame_id_p): Declare.
50 (frame_id_eq, frame_id_inner): Declare.
51 (frame_id_build): New function.
52 * frame.c (get_frame_id): Update. Use null_frame_id.
53 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
54 frame_id_inner.
55 (null_frame_id, frame_id_p): Define.
56 (frame_id_eq, frame_id_inner): Define.
57 (frame_id_build): New function.
58 * varobj.c (varobj_create): Update.
59 (varobj_update): Update.
60 * valops.c (value_assign): Update.
61 (new_root_variable): Update.
62 * infrun.c (save_inferior_status): Update.
63 * breakpoint.c (watch_command_1): Update.
64
891c7f5f
JB
652002-12-03 J. Brobecker <brobecker@gnat.com>
66
67 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
68 (SNAP2): Likewise.
69
144da3c1
AC
702002-12-03 Andrew Cagney <cagney@redhat.com>
71
46248966
AC
72 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
73 patch.
74
144da3c1
AC
75 * PROBLEMS: Mention PR gdb/725.
76
03c6228e
AS
772002-12-03 Andreas Schwab <schwab@suse.de>
78
79 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
80
36e53c63
AF
812002-12-02 Adam Fedor <fedor@gnu.org>
82 Klee Dienes <kdienes@apple.com>
83
84 * objc-lang.c (objc_printstr): Add width arg to match
85 printstr prototype.
86 (compare_selectors): Add 'const' to arg types.
87 (compare_classes): Likewise.
88 (find_imps): Cast msym pointer to avoid compiler warning.
89 (print_object_command): Validate the address before
90 passing it to the print routine.
91 (find_objc_msgcall_submethod): Change function argument to
92 return an int.
93 * objc-lang.h: Add 'extern' to all function declarations.
94 (value_nsstring): Add declaration.
95
504d5c7e
JB
962002-12-02 J. Brobecker <brobecker@gnat.com>
97
98 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
99 Fixes a build failure on HP/UX.
100
101 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
102 failure on HP/UX.
103 (hpread_has_name): Advance declaration to avoid a compilation warning.
104 (pst_syms_count): Add missing variable type. By change, the compiler
105 was defaulting to int, which seems a good choice. Fixes a compilation
106 warning.
107 (pst_syms_size): Likewise.
108
59623e27
JB
1092002-12-02 J. Brobecker <brobecker@gnat.com>
110
111 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
112 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
113 later to set the proper gdbarch methods depending on the osabi.
114 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
115
a09a320d
JB
1162002-12-02 J. Brobecker <brobecker@gnat.com>
117
118 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
119 * osabi.c (gdb_osabi_name): Add strings images for the two new
120 enum values.
121 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
122
8a81a99e
AC
1232002-12-02 Andrew Cagney <ac131313@redhat.com>
124
125 * MAINTAINERS (Java): Global maintainers are responible for Java.
126 (Past Maintainers): Mention both Anthony Green and Per Bothner as
127 part Java maintainers.
128
7af35dad
JB
1292002-12-02 J. Brobecker <brobecker@gnat.com>
130
131 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
132 Fixes a compilation failure on AiX.
133
f4ede9bc
JB
1342002-12-02 J. Brobecker <brobecker@gnat.com>
135
136 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
137 why aix-thread.o is not listed.
138
ae45cd16
AC
1392002-12-01 Andrew Cagney <ac131313@redhat.com>
140
141 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
142 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
143 * gdbarch.h, gdbarch.c: Re-generate.
144 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
145 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
146 * config/pa/tm-hppa.h, frame.h: Update.
147 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
148 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
149 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
150 * cris-tdep.c, alpha-tdep.c: Update.
151 * frame.c (set_unwind_by_pc, create_new_frame): Use either
152 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
153 (get_prev_frame): Ditto.
154
020cc13c
AC
1552002-11-30 Andrew Cagney <cagney@redhat.com>
156
157 * exec.c (xfer_memory): Replace boolean with int.
158 * p-exp.y: Use 0 instead of false.
159 * corelow.c (gdb_check_format): Change return type to int from
160 boolean.
161 * utils.c: Don't include <curses.h> or <term.h> first.
162
1d9b2aa8
SC
1632002-11-29 Stephane Carrez <stcarrez@nerim.fr>
164
165 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
166 (m68hc11_register_byte): Remove.
167 (m68hc11_gdbarch_init): Don't set the above.
168
a193e397
AC
1692002-11-29 Andrew Cagney <cagney@redhat.com>
170
171 * remote-mips.c (mips_initialize): Force a selected frame rebuild
172 by calling get_selected_frame.
173 * ocd.c (ocd_start_remote): Use get_selected frame instead of
174 set_current_frame, create_new_frame, select_frame and
175 get_current_frame.
176 * remote-e7000.c (e7000_start_remote): Ditto.
177 * remote-mips.c (common_open): Ditto
178 * remote-rdp.c (remote_rdp_open): Ditto.
179
b5fc49aa
AS
1802002-11-29 Andreas Schwab <schwab@suse.de>
181
182 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
183 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
184 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
185 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
186 read_memory_unsigned_integer instead of read_memory_integer when
187 dealing with addresses and instruction opcodes.
188 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
189 (m68k_linux_frame_saved_pc): Likewise.
190
6e7f8b9c
AC
1912002-11-29 Andrew Cagney <ac131313@redhat.com>
192
193 * stack.c (selected_frame, select_frame): Move from here ...
194 * frame.c (selected_frame, select_frame): ... to here. Include
195 "language.h".
196 * Makefile.in (frame.o): Update dependencies.
197 * frame.c (get_selected_frame): New function.
198 * frame.h (get_selected_frame): Declare.
199 (deprecated_selected_frame): Rename selected_frame.
200 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
201 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
202 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
203 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
204 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
205 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
206 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
207 * z8k-tdep.c, cli/cli-cmds.c: Update.
208
805e2818
AC
2092002-11-29 Andrew Cagney <ac131313@redhat.com>
210
211 * frame.h (get_selected_block): Add comments.
212
1058bca7
AC
2132002-11-28 Andrew Cagney <ac131313@redhat.com>
214
215 * frame.c (pc_notcurrent): New function.
216 (find_frame_sal): New function.
217 * frame.h (find_frame_sal): Declare.
218 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
219 * stack.c (print_frame_info_base): Use find_frame_sal instead of
220 find_pc_line.
1058bca7
AC
221 (frame_info): Ditto.
222 * ada-lang.c (find_printable_frame): Ditto.
223
d92419e5
JB
2242002-11-28 J. Brobecker <brobecker@gnat.com>
225
226 * configure.in: Check that the pthdebug library is recent enough
227 before enabling thread support on native AiX.
228 * configure: Regenerate.
229
230 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
231 from the list of object files as it is now appended by configure
232 if thread support is enabled.
233 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
234 if thread support is enabled.
235
8c69fc49
AC
2362002-11-28 Andrew Cagney <cagney@redhat.com>
237
238 * stack.c (get_selected_block): In-line get_current_block.
239 * frame.h (get_current_block): Delete declaration.
240 * blockframe.c (get_current_block): Delete function.
241
07555a72
AC
2422002-11-28 Andrew Cagney <ac131313@redhat.com>
243
244 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
245 USE_GENERIC_DUMMY_FRAMES.
246 * gdbarch.h, gdbarch.c: Regenerate.
247 * valops.c, frame.c: Update.
248 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
249 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
250 * config/pa/tm-hppa.h, blockframe.c: Update.
251 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
252 * m68k-tdep.c, alpha-tdep.c: Ditto.
253
254 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
255 * mips-tdep.c: Ditto.
256
b99fa2d2
AC
2572002-11-27 Andrew Cagney <ac131313@redhat.com>
258
259 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
260 (USE_GENERIC_DUMMY_FRAMES): Default to true.
261 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
262 * gdbarch.c, gdbarch.h: Re-generate.
263 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
264 (CALL_DUMMY_LOCATION): Delete macro definition.
265 (PC_IN_CALL_DUMMY): Delete macro definitions.
266
267 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
268 default is already generic_pc_in_call_dummy.
269 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
270 * v850-tdep.c (v850_gdbarch_init): Ditto.
271 * sh-tdep.c (sh_gdbarch_init): Ditto.
272 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
273 * mips-tdep.c (mips_gdbarch_init): Ditto.
274 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
275 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
276 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
277 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
278 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
279 * avr-tdep.c (avr_gdbarch_init): Ditto.
280
281 * arm-tdep.c (arm_gdbarch_init): Do not set
282 use_generic_dummy_frames, default is already 1.
283 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
284 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
285 * v850-tdep.c (v850_gdbarch_init): Ditto.
286 * sh-tdep.c (sh_gdbarch_init): Ditto.
287 * s390-tdep.c (s390_gdbarch_init): Ditto.
288 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
289 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
290 * mips-tdep.c (mips_gdbarch_init): Ditto.
291 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
292 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
293 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
294 * i386-tdep.c (i386_gdbarch_init): Ditto.
295 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
296 * frv-tdep.c (frv_gdbarch_init): Ditto.
297 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
298 * cris-tdep.c (cris_gdbarch_init): Ditto.
299 * avr-tdep.c (avr_gdbarch_init): Ditto.
300
301 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
302 call_dummy_location, default is already AT_ENTRY_POINT.
303 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
304 * v850-tdep.c (v850_gdbarch_init): Ditto.
305 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
306 * sh-tdep.c (sh_gdbarch_init): Ditto.
307 * s390-tdep.c (s390_gdbarch_init): Ditto.
308 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
309 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
310 * mips-tdep.c (mips_gdbarch_init): Ditto.
311 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
312 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
313 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
314 * i386-tdep.c (i386_gdbarch_init): Ditto.
315 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
316 * frv-tdep.c (frv_gdbarch_init): Ditto.
317 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
318 * cris-tdep.c (cris_gdbarch_init): Ditto.
319 * avr-tdep.c (avr_gdbarch_init): Ditto.
320 * arm-tdep.c (arm_gdbarch_init): Ditto.
321 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
322
abc0af47
AC
3232002-11-28 Andrew Cagney <cagney@redhat.com>
324
325 * frame.h: Update comments on set_current_frame, create_new_frame,
326 flush_cached_frames, reinit_frame_cache, select_frame and
327 selected_frame.
328
ed5cedc5
AC
3292002-11-27 Andrew Cagney <cagney@redhat.com>
330
331 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
332 deprecated pc_in_call_dummy function.
333 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
334 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
335 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
336 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
337 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
338
b2a1bd4f
MH
3392002-11-26 Martin M. Hunt <hunt@redhat.com>
340
341 * Makefile.in: Remove Tix dependencies.
342 * acinclude.m4: Ditto.
343 * aclocal.m4: Ditto.
344 * configure.in: Ditto.
345 * configure: Regenerated.
346
f09cffaa
AC
3472002-11-26 Andrew Cagney <ac131313@redhat.com>
348
349 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
350 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
351 * gdbarch.c: Re-generate.
352
e92b0cc9
AC
3532002-11-26 Andrew Cagney <ac131313@redhat.com>
354
355 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
356 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
357 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
358 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
359 pc_in_call_dummy_at_entry_point.
360 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
361 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
362 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
363 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
364 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
365 pc_in_call_dummy_on_stack.
366 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
367 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
368 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
369 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
370 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
371
b4b88177
AC
3722002-11-26 Andrew Cagney <ac131313@redhat.com>
373
374 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
375 pc_in_call_dummy_before_text_end
376 (deprecated_pc_in_call_dummy_after_text_end): Rename
377 pc_in_call_dummy_after_text_end.
378 (deprecated_pc_in_call_dummy_on_stack): Rename
379 pc_in_call_dummy_on_stack.
380 (deprecated_pc_in_call_dummy_at_entry_point): Rename
381 pc_in_call_dummy_at_entry_point.
382 * m68k-tdep.c (m68k_gdbarch_init): Update.
383 * s390-tdep.c (s390_gdbarch_init): Update.
384 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
385 * vax-tdep.c (vax_gdbarch_init): Update.
386 * sparc-tdep.c (sparc_gdbarch_init): Update.
387 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
388 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
389 * i386-tdep.c (i386_gdbarch_init): Update.
390 * frv-tdep.c (frv_gdbarch_init): Update.
391 * cris-tdep.c (cris_gdbarch_init): Update.
392 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
393 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
394 (deprecated_pc_in_call_dummy_after_text_end)
395 (deprecated_pc_in_call_dummy_on_stack)
396 (deprecated_pc_in_call_dummy_at_entry_point): Update.
397 * alpha-tdep.c (alpha_gdbarch_init): Update.
398
eb784848
DJ
3992002-11-25 Daniel Jacobowitz <drow@mvista.com>
400
401 * acconfig.h (HAVE_PREAD64): Add.
402 * configure.in: Check for pread64.
403 * config.in: Regenerated.
404 * configure: Regenerated.
405 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
406 * linux-proc.c (linux_proc_xfer_memory): New function.
407 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
408
933c6fe4
DC
4092002-11-25 David Carlton <carlton@math.stanford.edu>
410
411 * dwarf2read.c (scan_partial_symbols): Descend into namespace
412 pdi's with no name.
413
158a8022
AC
4142002-11-25 Andrew Cagney <ac131313@redhat.com>
415
416 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
417 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
418
481d0f41
JB
4192002-11-25 Jim Blandy <jimb@redhat.com>
420
e8289572
JB
421 * symfile.c (init_objfile_sect_indices): New function.
422 (default_symfile_offsets): Move the section-index-initializing
423 stuff into init_objfile_sect_indices, and call that.
424
b29c9944
JB
425 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
426 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
427
13de58df
JB
428 * symfile.c (syms_from_objfile): Adjust indentation.
429
481d0f41
JB
430 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
431 || info_verbose isn't true.
432
7d6a26a7
AC
4332002-11-24 Andrew Cagney <ac131313@redhat.com>
434
435 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
436 default to get_frame_base.
437 * gdbarch.h, gdbarch.c: Regenerate.
438 * arch-utils.c (default_frame_address): Delete function.
439 * arch-utils.h (default_frame_address): Delete declaration
440
6abe1021
PM
4412002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
442
443 * varobj.c (find_frame_addr_in_frame_chain):
444 Use get_frame_base instead of FRAME_FP,
445 obvious fix.
446
c193f6ac
AC
4472002-11-19 Andrew Cagney <ac131313@redhat.com>
448
449 * frame.h (FRAME_FP): Delete macro.
450 (get_frame_base): New function declaration.
451 * frame.c (get_frame_base): New function.
452 (get_frame_id): Use ->frame.
453 (frame_find_by_id): Rewrite to use get_frame_id.
454 * blockframe.c: Use get_frame_base instead of FRAME_FP.
455 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
456 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
457 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
458 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
459 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
460 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
461
e5d2af14
AC
4622002-11-24 Andrew Cagney <ac131313@redhat.com>
463
464 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
465
931d12c6
AC
4662002-11-24 Andrew Cagney <ac131313@redhat.com>
467
468 * frame.c (set_unwind_by_pc): Revert change below, use
469 PC_IN_CALL_DUMMY.
470 (get_prev_frame): Ditto.
471
5e0f933e
AC
4722002-11-24 Andrew Cagney <ac131313@redhat.com>
473
474 * dummy-frame.c (pc_in_dummy_frame): New function.
475 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
476 (find_dummy_frame): Update comment.
477 (generic_pop_current_frame): Use get_frame_type.
478 * dummy-frame.h (pc_in_dummy_frame): Declare.
479 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
480 (create_new_frame): Use pc_in_dummy_frame.
481 (get_prev_frame): Use pc_in_dummy_frame.
482 (frame_saved_regs_register_unwind): Use get_prev_frame.
483 (deprecated_generic_get_saved_register): Use get_prev_frame.
484
7d8547c9
AC
4852002-11-23 Andrew Cagney <ac131313@redhat.com>
486
487 * blockframe.c (find_frame_addr_in_frame_chain): Move function
488 from here ...
489 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
490 (varobj_create): Note that frame ID should be used.
491 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
492
0225421b
AC
4932002-11-23 Andrew Cagney <ac131313@redhat.com>
494
495 * breakpoint.c: Include "gdb_assert.h".
496 (deprecated_frame_in_dummy): Assert that generic dummy frames are
497 not being used.
498 * Makefile.in (breakpoint.o): Update dependencies.
499 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
500 deprecated_frame_in_dummy.
501 * stack.c (print_frame_info_base): Ditto.
502 (frame_info): Ditto.
503 (print_frame_info_base): Ditto. Delete dead code.
504
32eeb91a
AS
5052002-11-23 Andreas Schwab <schwab@suse.de>
506
507 * Makefile.in (m68k_tdep_h): Define.
508 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
509 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
510 * m68k-tdep.c: Move register number enum ...
511 * m68k-tdep.h: ... to this new file and rename the constants from
512 E_* to M68K_*. All uses changed.
513 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
514 * abug-rom.c: Include "m68k-tdep.h". Use
515 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
516 * cpu32bug-rom.c: Likewise.
517 * dbug-rom.c: Likewise.
518 * m68k-tdep.c: Likewise.
519 * m68klinux-nat.c: Likewise.
520 * remote-est.c: Likewise.
521 * rom68k-rom.c: Likewise.
522 * config/m68k/tm-linux.h: Likewise.
523
9648bac8
AC
5242002-11-23 Andrew Cagney <ac131313@redhat.com>
525
526 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
527 dummy frame initialization code.
528 * mips-tdep.c (mips_gdbarch_init): Ditto.
529
91a175b3
CF
5302002-11-22 Christopher Faylor <cgf@redhat.com>
531
532 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
533 attach will hang.
534
f4ded5b1
AC
5352002-11-22 Andrew Cagney <ac131313@redhat.com>
536
537 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
538 to default_frame_address.
539 * gdbarch.h, gdbarch.c: Re-generate.
540
541 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
542 or frame_locals_address to default_frame_address.
543 * m68k-tdep.c (m68k_gdbarch_init): Update.
544 * i386-tdep.c (i386_gdbarch_init): Update.
545 * frv-tdep.c (frv_gdbarch_init): Update.
546 * sh-tdep.c (sh_gdbarch_init): Update.
547 * v850-tdep.c (v850_gdbarch_init): Update.
548 * sparc-tdep.c (sparc_gdbarch_init): Update.
549 * mips-tdep.c (mips_gdbarch_init): Update.
550 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
551 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
552 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
553
554 * cris-tdep.c (cris_frame_args_address): Delete function.
555 (cris_frame_locals_address): Delete function.
556 (cris_gdbarch_init): Do not set frame_args_address or
557 frame_locals_address.
558
f7c1e0f3
MS
5592002-11-22 Michael Snyder <msnyder@redhat.com>
560
561 * thread-db.c (thread_db_load): Tell the user what's going on
562 if dlopen fails on libthread_db.
563
03dac896
AS
5642002-11-23 Andreas Schwab <schwab@suse.de>
565
566 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
567 invariant return values.
568
7a67d0fe
AS
5692002-11-22 Andreas Schwab <schwab@suse.de>
570
571 * valops.c (value_slice): Move declaration of `offset' to avoid
572 warning.
573
5633f842
CF
5742002-11-22 Christopher Faylor <cgf@redhat.com>
575
576 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
577 (struct so_stuff): Add end_addr field.
578 (register_loaded_dll): Calculate and store end address of loaded dll.
579 (solib_address): New function.
580 (child_solib_loaded_library_pathname): Pass carefully constructed
581 section info to safe_symbol_file_add rather than ignoring it.
582 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
583 DLL is loaded.
584 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
585 (child_create_inferior): Fix a compiler warning.
586 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
587 (solib_address): Declare new function.
588
d85fe7f7
AS
5892002-11-22 Andreas Schwab <schwab@suse.de>
590
591 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
592 and FPS registers.
593
8308e54c
DJ
5942002-11-21 Daniel Jacobowitz <drow@mvista.com>
595
596 * maint.c (_initialize_maint_cmds): Fix typo. From
597 Francesco Potorti` <pot@gnu.org>.
598
8997bd5e
AC
5992002-11-21 Andrew Cagney <cagney@redhat.com>
600
601 * mips-tdep.c (mips_dump_tdep): Delete references to
602 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
603 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
604 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
605 * printcmd.c (build_address_symbolic): Delete calls to
606 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
607 (address_info): Ditto.
608 Fix PR gdb/773.
609
4e87b832
KD
6102002-11-19 Klee Dienes <kdienes@apple.com>
611 Adam Fedor <fedor@gnu.org>
612
613 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
614 the ability to explicitly specify the quote characters and word
615 break characters; if NULL is specified for either, use the old
616 behavior of using the characters used by the completer.
617 (skip_chars): New function. Convenience wrapper around
618 skip_quoted_chars to provide the original skip_chars behavior.
619 * completer.h (skip_quoted_chars): Add prototype.
620
9ba8d803
AC
6212002-11-19 Andrew Cagney <ac131313@redhat.com>
622
623 Problems reported by Paul Eggert.
624 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
625
0a595803
AS
6262002-11-19 Andreas Schwab <schwab@suse.de>
627
628 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
629 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
630 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
631 (m68k_linux_frame_saved_pc): Move to ...
632 * m68klinux-tdep.c: ... here. New file.
633 * Makefile.in (m68klinux-tdep.o): Add dependencies.
634 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
635
e8afa4d7
AF
6362002-11-19 Adam Fedor <fedor@gnu.org>
637
638 * objc-exp.y: Revert to old skip_quoted usage.
639
a76c9d72
AF
6402002-11-19 Adam Fedor <fedor@gnu.org>
641
642 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
643 (objc_lang_h): Define.
644 (YYFILES): Add objc-exp.tab.c.
645 (local-maintainer-clean): Remove objc-exp.tab.c.
646 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
647
fd0e9d45
PM
6482002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
649
650 * p-exp.y (typecast rule): Add automatic dereference of
651 pascal classes if needed.
652 (THIS): Set current_type.
653 Automatically dereference pascal classes.
654 (typebase rule): Add ^typebase recognition.
655
82eeeb94
AF
6562002-11-18 Adam Fedor <fedor@gnu.org>
657
658 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
659 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
660 (op_name): Handle OP_OBJC_SELF.
661 * Makefile.in (expprint.o): Add additional depends.
662
646df18d
AF
6632002-11-18 Adam Fedor <fedor@gnu.org>
664
665 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
666 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
667 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
668 * objc-exp.y: Likewise.
669
379b85df
AF
6702002-11-18 Adam Fedor <fedor@gnu.org>
671
672 * gdb/parser-defs.h: (struct objc_class_str): New structure
673 for parsing ObjC classes.
674
85cf597a
AC
6752002-11-18 Andrew Cagney <ac131313@redhat.com>
676
677 * stack.c (frame_relative_level): Copy function from here ...
678 * frame.c (frame_relative_level): ...to here.
679
5a203e44
AC
6802002-11-18 Andrew Cagney <ac131313@redhat.com>
681
682 * frame.h (enum frame_type): Define.
683 (get_frame_type): Declare.
684 (struct frame_info): Add field `type'. Delete field
685 signal_handler_caller.
686 (deprecated_set_frame_signal_handler_caller): Declare.
687 * frame.c (get_frame_type): New function.
688 (deprecated_set_frame_type): New function.
689 (create_new_frame): Set the frame's type.
690 (get_prev_frame): Similar.
691 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
692 * s390-tdep.c: Ditto.
693 * m68klinux-nat.c: Ditto.
694 * ns32k-tdep.c: Ditto.
695 * x86-64-linux-tdep.c: Ditto.
696 * vax-tdep.c: Ditto.
697 * rs6000-tdep.c: Ditto.
698 * ppc-linux-tdep.c: Ditto.
699 * i386-interix-tdep.c: Ditto.
700 * mips-tdep.c: Ditto.
701 * m68k-tdep.c: Ditto.
702 * hppa-tdep.c: Ditto.
703 * ia64-tdep.c: Ditto.
704 * cris-tdep.c: Ditto.
705 * arm-tdep.c: Ditto.
706 * alpha-tdep.c: Ditto.
707 * i386-tdep.c: Ditto.
708 * stack.c: Ditto.
709 * ada-lang.c: Ditto.
710 * blockframe.c: Update.
711 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
712 deprecated_set_frame_type instead of signal_handler_caller.
713 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
714 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
715 * breakpoint.h: Delete FIXME suggesting get_frame_type.
716
bf4ae8b2
KD
7172002-11-18 Klee Dienes <kdienes@apple.com>
718
719 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
720
a672ef13
KD
7212002-11-18 Klee Dienes <kdienes@apple.com>
722
723 * buildsym.c (pop_context): Add comment.
724
0c5e171a
KD
7252002-11-18 Klee Dienes <kdienes@apple.com>
726
727 * buildsym.h (pop_context): Convert to function, defined in
728 buildsym.c.
729 * buildsym.c: Include gdb_assert.h.
730 (pop_context): Implement as C function. Add check for stack
731 underflow.
732 * dbxread.c (process_one_symbol): Complain and stop processing
733 that symbol if we are already at the top of the context stack for
734 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
735 when processing N_RBRAC.
736
8a1f4c4c
DJ
7372002-11-16 Daniel Jacobowitz <drow@mvista.com>
738
739 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
740 define.
741 (struct target_waitstatus): Add opaque definition.
742 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
743 * exec.c (init_exec_ops): Likewise.
744 * fork-child.c (clone_and_follow_inferior): Remove.
745 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
746 * inferior.h (clone_and_follow_inferior): Remove prototype.
747 * infrun.c (follow_fork_mode_both): Remove.
748 (follow_fork_mode_kind_names): Remove commented out "both".
749 (follow_inferior_fork): Remove follow_fork_mode_both support.
750 * inftarg.c (child_clone_and_follow_inferior): Remove.
751 (child_post_follow_inferior_by_clone): Remove.
752 (init_child_ops): Don't set to_clone_and_follow_inferior
753 or to_post_follow_inferior_by_clone.
754 * target.c (default_clone_and_follow_inferior): Remove.
755 (cleanup_target): Don't set to_clone_and_follow_inferior
756 or to_post_follow_inferior_by_clone.
757 (find_default_clone_and_follow_inferior): Remove.
758 (init_dummy_target): Don't set to_clone_and_follow_inferior.
759 (debug_to_clone_and_follow_inferior): Remove.
760 (debug_to_post_follow_inferior_by_clone): Remove.
761 (setup_target_debug): Don't set to_clone_and_follow_inferior
762 or to_post_follow_inferior_by_clone.
763 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
764 and to_post_follow_inferior_by_clone.
765 (child_clone_and_follow_inferior): Remove prototype.
766 (child_post_follow_inferior_by_clone): Remove prototype.
767 (target_clone_and_follow_inferior): Remove macro.
768 (target_post_follow_inferior_by_clone): Remove macro.
769 (find_default_clone_and_follow_inferior): Remove prototype.
770
47932f85
DJ
7712002-11-16 Daniel Jacobowitz <drow@mvista.com>
772
773 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
774 inferior_has_vforked, and inferior_has_execd instead of
775 target_has_forked, target_has_vforked, and target_has_execd.
776 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
777 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
778 (CHILD_WAIT): Define.
779 (child_wait): Add prototype.
780 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
781 Add prototype.
782 (hpux_has_vforked): Likewise, from child_has_vforked.
783 (hpux_has_execd): Likewise, from child_has_execd.
784 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
785 (not_same_real_pid, child_wait): New, copied from inftarg.c.
786 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
787 and hpux_has_syscall_event instead of the target hooks.
788 * infrun.c (inferior_has_forked, inferior_has_vforked)
789 (inferior_has_execd): New functions.
790 * inftarg.c (not_same_real_pid): Remove.
791 (child_wait): Remove references to not_same_real_pid,
792 target_has_forked, target_has_vforked, target_has_execd,
793 and target_has_syscall_event.
794 (child_has_forked, child_has_vforked, child_has_execd)
795 (child_has_syscall_event): Remove.
796 (init_child_ops): Remove references to child_has_forked,
797 child_has_vforked, child_has_execd, and child_has_syscall_event.
798 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
799 (hpux_has_vforked): Likewise, from child_has_vforked.
800 (hpux_has_execd): Likewise, from child_has_execd.
801 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
802 * target.c (cleanup_target): Remove references to
803 to_has_forked, to_has_vforked, to_has_execd, and
804 to_has_syscall_event.
805 (update_current_target): Likewise.
806 (setup_target_debug): Likewise.
807 (debug_to_has_forked): Remove.
808 (debug_to_has_vforked): Remove.
809 (debug_to_has_execd): Remove.
810 (debug_to_has_syscall_event): Remove.
811 * target.h (struct target_ops): Remove to_has_forked.
812 to_has_vforked, to_has_execd, and to_has_syscall_event.
813 (child_has_forked, child_has_vforked, child_has_execd)
814 (child_has_syscall_event): Remove prototypes.
815 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
816 prototypes.
817 (target_has_forked, target_has_vforked, target_has_execd)
818 (target_has_syscall_event): Remove macros.
819
4088142a
DJ
8202002-11-16 Daniel Jacobowitz <drow@mvista.com>
821
822 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
823 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
824 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
825 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
826 * target.c (cleanup_target): Remove reference to
827 to_can_follow_vfork_prior_to_exec.
828 (update_current_target): Likewise.
829 (debug_to_can_follow_vfork_prior_to_exec): Remove.
830 (setup_target_debug): Remove reference to
831 to_can_follow_vfork_prior_to_exec.
832 * target.h (struct target_ops): Remove
833 to_can_follow_vfork_prior_to_exec.
834 (child_can_follow_vfork_prior_to_exec): Remove prototype.
835 (target_can_follow_vfork_prior_to_exec): Remove definition.
836 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
837 define.
838 * infrun.c (follow_vfork_when_exec): Remove.
839 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
840 (follow_exec): Likewise.
841 (handle_inferior_event): Likewise.
842 (keep_going): Likewise.
843
18cde8d5
AC
8442002-11-15 Andrew Cagney <cagney@redhat.com>
845
846 * frame.c (generic_unwind_get_saved_register): Make static.
847 * frame.h (generic_unwind_get_saved_register): Delete declaration.
848 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
849 defaults to generic_unwind_get_saved_register.
850 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
851 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
852 * frv-tdep.c (frv_gdbarch_init): Ditto.
853 * i386-tdep.c (i386_gdbarch_init): Ditto.
854 * s390-tdep.c (s390_gdbarch_init): Ditto.
855 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
856 * v850-tdep.c (v850_gdbarch_init): Ditto.
857 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
858 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
859 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
860
a6b063af
AC
8612002-11-15 Andrew Cagney <cagney@redhat.com>
862
863 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
864 i386-tdep.c.
865
f407986f
AC
8662002-11-15 Andrew Cagney <cagney@redhat.com>
867
868 * frame.h (sigtramp_saved_pc): Delete declaration.
869 * blockframe.c (sigtramp_saved_pc): Delete function.
870 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
871 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
872 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
873 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
874
f18c5a73
AC
8752002-11-15 Andrew Cagney <ac131313@redhat.com>
876
877 * frame.c (frame_pc_unwind): New function.
878 (frame_saved_regs_pc_unwind): New function.
879 (frame_register_unwind): Pass unwind_cache instead of
880 register_unwind_cache.
881 (set_unwind_by_pc): Add unwind_pc parameter, set.
882 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
883 (get_prev_frame): Ditto.
884 * frame.h (frame_pc_unwind_ftype): Declare.
885 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
886 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
887 (frame_pc_unwind): Declare.
888 * dummy-frame.c (dummy_frame_pc_unwind): New function.
889 (struct dummy_frame): Add comment mentioning that values are for
890 previous frame.
891 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
892 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
893 (generic_file_frame_chain_valid): Ditto.
894 * stack.c (frame_info): Ditto.
895
d9285969 8962002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
897
898 * linespec.c (locate_first_half): New function.
899 (decode_line_1): Move code into locate_first_half.
900
d741b867
AC
9012002-11-15 Andrew Cagney <ac131313@redhat.com>
902
903 * complaints.h: Add comment explaining how to eliminate a
904 deprecated_complain call.
24382c5c 905 * complaints.h: Fix spelling errors.
d741b867 906
82d03c99
DC
9072002-11-15 David Carlton <carlton@math.stanford.edu>
908
909 * printcmd.c: Remove #include "disasm.h".
910
c97eb5d9
AC
9112002-11-14 Andrew Cagney <ac131313@redhat.com>
912
913 * frame.h: Move the most relevant interface functions to the start
914 of the file.
915
524d7c18
AC
9162002-11-14 Andrew Cagney <ac131313@redhat.com>
917
918 * regcache.h (deprecated_registers): Rename registers.
919 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
920 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
921 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
922 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
923 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
924 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
925 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
926 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
927 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
928 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
929 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
930 * v850ice.c: Update.
931
6411e720
AC
932Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
933
934 * utils.c (gdb_realpath): Add comment mentioning realpath with a
935 NULL buffer.
936
73937e03
AC
9372002-11-13 Andrew Cagney <cagney@redhat.com>
938
939 * regcache.h (deprecated_read_register_bytes): Rename
940 read_register_bytes.
941 (deprecated_write_register_bytes): Rename write_register_bytes.
942 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
943 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
944 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
945 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
946 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
947 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
948 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
949 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
950 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
951 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
952 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
953 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
954 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
955 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
956
fb0cd46e
JB
9572002-11-13 Jim Blandy <jimb@redhat.com>
958
959 * findvar.c (read_var_value): Doc fix.
960
2d28509a
AC
9612002-11-13 Andrew Cagney <cagney@redhat.com>
962
963 * regcache.c (struct regcache): Replace passthough_p with
964 readonly_p.
965 (regcache_xmalloc): Initialize readonly_p.
966 (build_regcache): Initialize readonly_p.
967 (regcache_save): New function.
968 (regcache_restore): New function.
969 (regcache_cpy): Re-implement using regcache_save and
970 regcache_restore.
971 (regcache_raw_read): Update.
972 (regcache_cooked_read): When a read-only cache, checked for cached
973 pseudo register values.
974 (regcache_raw_write): Assert that the cache is not read-only.
975 Remove code handling a non-passthrough cache.
976 * regcache.h (regcache_save): Declare.
977 (regcache_restore): Declare.
978
067df2e5
AC
9792002-11-13 Andrew Cagney <cagney@redhat.com>
980
981 * regcache.c (struct regcache_descr): Add fields
982 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
983 (init_legacy_regcache_descr): Compute the size of a cooked
984 register cache and then assign that to sizeof_raw_registers. Set
985 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
986 (init_legacy_regcache_descr): Ditto.
987
51b1fe4e
AC
9882002-11-13 Andrew Cagney <cagney@redhat.com>
989
990 * regcache.c (register_buffer): Move to near start of file, update
991 description.
992 (regcache_raw_read): Use.
993 (regcache_raw_write): Use.
994 (struct regcache): Rename raw_registers to registers and
995 raw_register_valid_p to register_valid_p.
996 (regcache_xmalloc): Update.
997 (regcache_xfree): Update.
998 (register_buffer): Update.
999 (regcache_cpy): Update.
1000 (regcache_cpy_no_passthrough): Update.
1001 (regcache_valid_p): Update.
1002 (deprecated_grub_regcache_for_registers): Update.
1003 (deprecated_grub_regcache_for_register_valid): Update.
1004 (set_register_cached): Update.
1005 (regcache_raw_write): Update.
1006
80b4c677
PM
10072002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1008
1009 * p-exp.y (name_not_typename): Use copy_name to
1010 set current_type variable for fields of THIS.
1011
0f3fafde
DJ
10122002-11-12 Daniel Jacobowitz <drow@mvista.com>
1013
1014 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1015 * monitor.c (init_base_monitor_ops): Likewise.
1016 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1017 * remote-array.c (init_array_ops): Likewise.
1018 * remote-e7000.c (init_e7000_ops): Likewise.
1019 * remote-es.c (init_es1800_ops): Likewise.
1020 (init_es1800_child_ops): Likewise.
1021 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1022 * remote-sim.c (init_gdbsim_ops): Likewise.
1023 * remote-st.c (init_st2000_ops): Likewise.
1024 * sol-thread.c (init_sol_core_ops): Likewise.
1025 (init_sol_thread_ops): Likewise.
1026 * v850ice.c (init_850ice_ops): Likewise.
1027 * win32-nat.c (init_child_ops): Likewise.
1028 * wince.c (init_child_ops): Likewise.
1029
82c0260e
AC
10302002-11-12 Andrew Cagney <ac131313@redhat.com>
1031
1032 * utils.c (gdb_realpath): Make rp a constant pointer.
1033
70d35819
AC
10342002-11-12 Andrew Cagney <ac131313@redhat.com>
1035
1036 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1037 a constant buffer; cannonicalize_file_name(); realpath() with a
1038 pathconf() defined buffer, xstrdup().
1039
9835a8b0
AC
10402002-11-12 Andrew Cagney <ac131313@redhat.com>
1041
1042 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1043 to hang2.C; hang3.c to hang3.C.
1044
3f47be5c
EZ
10452002-11-11 Elena Zannoni <ezannoni@redhat.com>
1046
1047 * findvar.c (read_var_value): Reenable TLS code.
1048
10492002-11-11 Elena Zannoni <ezannoni@redhat.com>
1050 Jim Blandy <jimb@redhat.com>
1051
1052 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1053 * target.c (update_current_target): Add
1054 to_get_thread_local_address.
1055 * target.h (to_get_thread_local_address): Export.
1056 (target_get_thread_local_address): Define.
1057 (target_get_thread_local_address_p): Define.
1058 * thread-db.c: Include solib-svr4.h.
1059 (td_thr_tls_get_addr_p): Define.
1060 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1061 (thread_db_get_thread_local_address): New function.
1062 (init_thread_db_ops): Initialize to_get_thread_local_address.
1063 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1064 * configure: Regenerate.
1065 * config.in: Regenerate.
1066
636b1a6d
DC
10672002-11-11 David Carlton <carlton@math.stanford.edu>
1068
1069 * linespec.c (set_flags): New function.
1070 (decode_line_1): Move code into set_flags.
1071
44fe14ab
DC
10722002-11-11 David Carlton <carlton@math.stanford.edu>
1073
1074 * linespec.c (decode_line_1): Move chunks of code to separate
1075 functions.
1076 (initialize_defaults): New function.
1077 (decode_indirect): New function.
1078
e6f181f5
AC
10792002-11-11 Andrew Cagney <ac131313@redhat.com>
1080
8971b011
AC
1081 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1082 instead of void_code_ptr.
1083 (sigtramp_saved_pc): Ditto.
1084
e6f181f5
AC
1085 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1086 i386_fp_regnum_p.
1087
01ad7f36
DJ
10882002-11-10 Daniel Jacobowitz <drow@mvista.com>
1089
1090 * gdbtypes.h (struct main_type): Move artificial flag out of
1091 loc. New member of ``struct field'' named static_kind. Reduce
1092 overloaded meaning of bitsize.
1093 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1094 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1095 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1096
1097 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1098 new fields.
1099 (template_to_fixed_record_type, template_to_static_fixed_type)
1100 (to_record_with_fixed_variant_part): Likewise.
1101 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1102 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1103 * dwarfread.c (struct_type, enum_type): Likewise.
1104 * hpread.c (hpread_read_enum_type)
1105 (hpread_read_function_type, hpread_read_doc_function_type)
1106 (hpread_read_struct_type): Likewise.
1107 * mdebugread.c (parse_symbol): Likewise.
1108
bf1e52be
AC
11092002-11-10 Andrew Cagney <ac131313@redhat.com>
1110
1111 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1112 * stack.c (print_frame_info_base): Update.
1113 (print_frame_info_base, frame_info): Update.
1114 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1115 (sparc_frame_saved_pc): Update.
1116 * ada-lang.c (find_printable_frame): Update.
1117 * breakpoint.c (deprecated_frame_in_dummy): Update.
1118
ce556f85
MK
11192002-11-09 Mark Kettenis <kettenis@gnu.org>
1120
1121 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1122 defined.
1123 (regmap): Extend to cover all registers.
1124 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1125 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1126 definitions.
1127 (fetch_register, sore_register): Simplify.
1128 (old_fetch_inferior_registers, old_store_inferior_registers):
1129 Remove functions.
1130 (cannot_fetch_register, cannot_store_register): Change
1131 implementation to use regmap array to decide which registers
1132 cannot be fetched/stored. This removes $orig_eax from the
1133 registers that cannot be fetched/stored.
1134 (fetch_inferior_registers): Call fetch_register directly instead
1135 of calling old_fetch_inferior_registers.
1136 (store_inferior_registers): Call store_register directly instead
1137 of calling old_store_inferior_registers.
1138 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1139 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1140 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1141
932bb524
KD
11422002-11-09 Klee Dienes <kdienes@apple.com>
1143
1144 * i387-tdep.c (i387_supply_register): When called with NULL as a
1145 buffer, mark the register as not provided (to mirror the behavior
1146 of supply_register).
1147 (i387_supply_fxsave): Ditto.
1148 (i387_supply_fsave): Ditto (inherits the behavior from
1149 i387_supply_register).
1150
ebe68b27
KD
11512002-11-09 Klee Dienes <kdienes@apple.com>
1152
1153 * blockframe.c (sigtramp_saved_pc): Use
1154 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1155 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1156 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1157
15220c65
AC
11582002-11-09 Andrew Cagney <ac131313@redhat.com>
1159
1160 * frame.c (get_prev_frame): Test prev_p to identify a previously
1161 unwound frame. Initialize prev_p.
1162 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1163 comment.
1164
95adb866
AC
11652002-11-09 Andrew Cagney <ac131313@redhat.com>
1166
1167 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1168 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1169 more comments. Zap dead code.
1170
e71ecd70
MK
11712002-11-09 Mark Kettenis <kettenis@gnu.org>
1172
1173 * infcmd.c (print_vector_info, print_float_info): Move code that
1174 checks whether the target has any registers and whether there is a
1175 selected frame up, such that it is also used if a target provides
1176 multi-arch definitions of these functions.
1177
c525330d
AC
11782002-11-08 Andrew Cagney <ac131313@redhat.com>
1179
72bdd927
AC
1180 * Makefile.in (DESTDIR): Define.
1181 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1182 prefix.
1183
c525330d
AC
1184 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1185 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1186
38c968cf
AC
11872002-11-08 Andrew Cagney <ac131313@redhat.com>
1188
1189 * i386-linux-tdep.c: Include "reggroups.h".
1190 (i386_linux_register_reggroup_p): New function.
1191 (i386_linux_init_abi): Set register_reggroup_p to
1192 i386_linux_register_reggroup_p.
1193 * i386-tdep.h (i386_register_reggroup_p): Declare.
1194 * i386-tdep.c: Include "reggroups.h".
1195 (i386_init_reggroups): New function.
1196 (i386_add_reggroups): New function.
1197 (i386_register_reggroup_p): New function.
1198 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1199 (_initialize_i386_tdep): Call i386_init_reggroups.
1200 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1201 specific reggroups.
1202
19e33363
MK
12032002-11-09 Mark Kettenis <kettenis@gnu.org>
1204
371a6e84
MK
1205 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1206 request that's available in *BSD.
1207
94ba925a
MK
1208 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1209
19e33363
MK
1210 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1211 FDOFF_REGNUM.
1212
8779790c
AC
12132002-11-08 Andrew Cagney <ac131313@redhat.com>
1214
1215 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1216 * dummy-frame.c (find_dummy_frame): Rename
1217 generic_find_dummy_frame, make static. Return the dummy frame
1218 instead of the regcache.
1219 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1220 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1221 (dummy_frame_register_unwind): Rename
1222 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1223 * dummy-frame.h (dummy_frame_register_unwind): Rename
1224 generic_call_dummy_register_unwind.
1225
8674b74f
MK
12262002-11-08 Mark Kettenis <kettenis@gnu.org>
1227
1228 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1229 except the inclusion of "i386/tm-i386.h", to...
1230 * config/i386/nm-i386v42mp.h: ...here.
1231 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1232
4c1e7e9d
AC
12332002-11-08 Andrew Cagney <ac131313@redhat.com>
1234
1235 * Makefile.in (frame.o): Update dependencies.
1236 * blockframe.c (current_frame, frame_obstack_alloc)
1237 (frame_saved_regs_zalloc, get_current_frame)
1238 (set_current_frame, create_new_frame)
1239 (set_unwind_by_pc, get_next_frame)
1240 (flush_cached_frames, reinit_frame_cache)
1241 (frame_saved_regs_register_unwind)
1242 (deprecated_generic_get_saved_register)
1243 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1244 (_initialize_blockframe): Move frame code from here...
1245 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1246 "annotate.h" and "dummy-frame.h".
1247 (_initialize_frame): New function.
1248
921e78cf
JB
12492002-11-08 Jim Blandy <jimb@redhat.com>
1250
1251 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1252 when we finish a function a context.
1253 * buildsym.h (outermost_context_p): New macro.
1254 (Bug analyzed by David Edelsohn.)
1255
9c1412c1
AC
12562002-11-08 Andrew Cagney <ac131313@redhat.com>
1257
1258 * blockframe.c: Include "dummy-frame.h".
1259 (struct dummy_frame, dummy_frame_stack)
1260 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1261 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1262 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1263 (generic_save_call_dummy_addr, generic_pop_current_frame)
1264 (generic_pop_dummy_frame, generic_fix_call_dummy)
1265 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1266 dummy frame code from here...
1267 * dummy-frame.c: ...to here. New file.
1268 * dummy-frame.h: New file.
1269 (generic_call_dummy_register_unwind): Declare.
1270 (generic_find_dummy_frame): Declare.
1271 * Makefile.in (SFILES): Add dummy-frame.c.
1272 (dummy-frame.o): Specify dependencies.
1273 (dummy_frame_h): Define.
1274 (COMMON_OBS): Add dummy-frame.o.
1275 (blockframe.o): Update dependencies.
1276
208d8187
JB
12772002-11-08 Jim Blandy <jimb@redhat.com>
1278
1279 * dwarf2read.c (read_func_scope): Restore local_symbols and
1280 param_symbols after we finish the function context. (Based on a
1281 patch from David Edelsohn.)
1282
413dad4d
DC
12832002-11-08 David Carlton <carlton@math.stanford.edu>
1284
1285 * linespec.c (symbol_found): New function.
1286 (minsym_found): New function.
1287 (decode_line_1): Separate out some code into separate functions.
1288
5512c44a
JB
12892002-11-08 Joel Brobecker <brobecker@gnat.com>
1290
1291 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1292 the benefit of the interix target.
1293 * i386-tdep.h (i386_frameless_signal_p): Declare.
1294
1b33ef47
AC
12952002-11-08 Andrew Cagney <ac131313@redhat.com>
1296
1297 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1298 declaration that snuck in from change below.
1299
23a34459
AC
13002002-11-06 Andrew Cagney <cagney@redhat.com>
1301
1302 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1303 all callers.
1304 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1305 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1306 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1307 (i386_mxcsr_regnum_p): new function. Use instead of
1308 MXCSR_REGNUM_P.
1309 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1310 (i386_sse_regnum_p): Declare.
1311 (i386_mxcsr_regnum_p): Declare.
1312 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1313 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1314 (IS_FP_REGNUM): Update definition.
1315 (IS_FPU_CTRL_REGNUM): Update definition..
1316 (IS_SSE_REGNUM): Update definition..
1317 * i386v-nat.c (register_u_addr): Update.
1318 * go32-nat.c (fetch_register): Update.
1319 (store_register): Update.
1320
d709c020
JB
13212002-11-07 Joel Brobecker <brobecker@gnat.com>
1322
1323 Preparation work to convert the hppa targets to multiarch partial.
1324
1325 * hppa-tdep.c: Add new functions replacing macro bodies from
1326 config/pa/tm-hppa.h. These function will be used to initialize
1327 the gdbarch structure. Import some comments from tm-hppa.h,
1328 and place them where appropriate, to avoid loosing them when
1329 we cleanup this file.
1330 (hppa_reg_struct_has_addr): New function.
1331 (hppa_inner_than): New function.
1332 (hppa_stack_align): New function.
1333 (hppa_pc_requires_run_before_use): New function.
1334 (hppa_instruction_nullified): New function.
1335 (hppa_register_byte): New function.
1336 (hppa_register_virtual_type): New function.
1337 (hppa_store_struct_return): New function.
1338 (hppa_cannot_store_register): New function.
1339 (hppa_frame_args_address): New function.
1340 (hppa_frame_locals_address): New function.
1341 (hppa_smash_text_address): New function.
1342 (hppa_coerce_float_to_double): New function. Requires the inclusion
1343 of "language.h".
1344
1345 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1346
1347 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1348 gdbarch-eligible macro to a call to the new associated function
1349 created in hppa-tdep.c.
1350 (INNER_THAN): Likewise.
1351 (STACK_ALIGN): Likewise.
1352 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1353 (INSTRUCTION_NULLIFIED): Likewise.
1354 (REGISTER_BYTE): Likewise.
1355 (REGISTER_VIRTUAL_TYPE): Likewise.
1356 (STORE_STRUCT_RETURN): Likewise.
1357 (CANNOT_STORE_REGISTER): Likewise.
1358 (FRAME_ARGS_ADDRESS): Likewise.
1359 (FRAME_LOCALS_ADDRESS): Likewise.
1360 (SMASH_TEXT_ADDRESS): Likewise.
1361 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1362 (ABOUT_TO_RETURN): Delete, as no longer used.
1363
83c31e7d
FN
13642002-11-07 Fernando Nasser <fnasser@redhat.com>
1365
1366 * printcmd.c (disassemble_command): Remove obsolete function.
1367 (_initialize_printcmd): Do not create disassemble command here.
1368 * cli/cli-cmds.c (disassemble_command): New function. Implements
1369 disassemble command.
1370 (init_cli_cmds): Create disassemble command here instead.
1371
0ec30a36
AC
13722002-11-07 Andrew Cagney <ac131313@redhat.com>
1373
1374 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1375
e600bd34
AC
13762002-11-07 Andrew Cagney <ac131313@redhat.com>
1377
1378 * regcache.h (regcache_cooked_read_using_offset_hack)
1379 (regcache_cooked_write_using_offset_hack): Delete declarations.
1380 (register_changed): Delete declaration.
1381 * regcache.c (regcache_cooked_read_using_offset_hack)
1382 (regcache_cooked_write_using_offset_hack): Delete functions.
1383 (cooked_xfer_using_offset_hack): Delete function.
1384 (register_changed): Delete function.
1385
568f8739
JB
13862002-11-07 Jim Blandy <jimb@redhat.com>
1387
1388 * macroscope.c: #include "complaints.h".
1389 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1390 but not in the macro table.
1391 * Makefile.in (macroscope.o): Record dependency.
1392
b0718b7b
JB
13932002-11-07 Joel Brobecker <brobecker@gnat.com>
1394
1395 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1396
2b9e5f3f
AC
13972002-11-07 Andrew Cagney <ac131313@redhat.com>
1398
1399 * regcache.c (deprecated_registers_fetched): Update.
1400 * regcache.h (deprecated_registers_fetched): Rename
1401 registers_fetched.
1402 * remote-vxsparc.c (vx_read_register): Update.
1403 * remote-vxmips.c (vx_read_register): Update.
1404 * remote-vx68.c (vx_read_register): Update.
1405 * irix5-nat.c (fetch_core_registers): Update.
1406 * mipsm3-nat.c (fetch_inferior_registers): Update.
1407 * sun3-nat.c (fetch_inferior_registers): Update.
1408 * symm-nat.c (fetch_inferior_registers): Update.
1409 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1410 (fetch_core_registers): Update.
1411 (fetch_kcore_registers): Update.
1412 * mips-nat.c (fetch_inferior_registers): Update.
1413 * corelow.c (get_core_registers): Update.
1414 * a68v-nat.c (fetch_inferior_registers): Update.
1415
e6e68f1f
JB
14162002-11-06 Joel Brobecker <brobecker@gnat.com>
1417
1418 Put in place the framework necessary for multiarching the hppa targets.
1419 * hppa-tdep.c (hppa_gdbarch_init): New function.
1420 (hppa_dump_tdep): New function.
1421 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1422 tdep structure dumper.
1423 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1424 until the multi-arching conversion has partially been completed.
1425
492254e9
AC
14262002-11-06 Andrew Cagney <ac131313@redhat.com>
1427
1428 * valops.c (value_assign): Merge lval_register case into
1429 lval_reg_frame_relative. Use frame_register and
1430 regcache_cooked_write instead of get_saved_register and
1431 write_register_bytes. After flushing the register cache, try to
1432 re-select the selected frame.
1433
8262ee23
AC
14342002-11-06 Andrew Cagney <ac131313@redhat.com>
1435
1436 * regcache.h (deprecated_register_valid): Rename register_valid.
1437 * regcache.c: Update.
1438 * ia64-aix-nat.c: Update.
1439 * i386gnu-nat.c: Update.
1440 * alpha-nat.c: Update.
1441 * sparc-nat.c: Update.
1442 * lynx-nat.c: Update.
1443 * remote-mips.c: Update.
1444
4facf7e8
JB
14452002-11-06 Joel Brobecker <brobecker@gnat.com>
1446
1447 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1448 to end of file, to be more consistent with the pratice followed
1449 by other targets.
1450
f9418c0f
AC
14512002-11-06 Andrew Cagney <ac131313@redhat.com>
1452
1453 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1454 (print_float_info): Print registers in float_reggroup.
1455 (print_vector_info): Print registers in vector_reggroup.
1456 (default_print_registers_info): When all, print registers in
1457 all_reggroup. Otherwize, print registers in general_reggroup.
1458 (registers_info): Rewrite. Add support for register groups.
1459 Eliminate a goto.
1460
3fe235a7
EZ
14612002-11-06 Elena Zannoni <ezannoni@redhat.com>
1462
1463 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1464 ages.
1465 (symtab_symbol_info): Remove eons old ifdeffed out code.
1466 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1467 command.
1468
ef944135
TR
14692002-11-06 Theodore A. Roth <troth@openavr.org>
1470
1471 * c-exp.y: Add missing semi-colons.
1472 * f-exp.y: Add missing semi-colons.
1473 * m2-exp.y: Add missing semi-colons.
1474 * p-exp.y: Add missing semi-colons.
1475 Add empty action to start rule to avoid a type clash error when
1476 building with bison >= 1.50.
1477
f8302a57
JB
14782002-11-06 Jim Blandy <jimb@redhat.com>
1479
1480 * macrotab.h (struct macro_source_file): Doc fix.
1481
6e382aa3
JJ
14822002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1483
1484 * varobj.c (child_exists, cplus_number_of_children): Change
1485 STREQ macro references to strcmp.
1486 (cplus_name_of_child): Change code to handle the fact that
1487 fields are not necessarily contiguous with regards to their
1488 access control. This is a fix for PR gdb/792.
1489
a216a322
AC
14902002-11-05 Andrew Cagney <ac131313@redhat.com>
1491
1492 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1493 * gdbarch.h, gdbarch.c: Regnerate.
1494 * frame.h (frame_register): Declare.
1495 * frame.c (frame_register): New function.
1496 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1497 GET_SAVED_REGISTER, otherwize call
1498 generic_unwind_get_saved_register.
1499 (frame_register_read): Use frame_register instead of
1500 get_saved_register.
1501
7d5b6fdd
EZ
15022002-11-05 Elena Zannoni <ezannoni@redhat.com>
1503
1504 From Jim Ingham <jingham@apple.com>:
1505 * event-top.c (gdb_disable_readline): New function.
1506 (_initialize_event_loop): Move comment.
1507
b7c64260
EZ
15082002-11-05 Elena Zannoni <ezannoni@redhat.com>
1509
1510 * event-loop.c (start_event_loop): Add comment.
1511 Update copyright.
1512
c2e1b8f2
AC
15132002-11-05 Andrew Cagney <ac131313@redhat.com>
1514
1515 * infcmd.c (default_print_registers_info): Do not call
1516 PRINT_REGISTER_HOOK.
1517
87647bb0
AC
15182002-11-05 Andrew Cagney <ac131313@redhat.com>
1519
1520 * sparc-tdep.c (sparc_print_register_hook): Make static.
1521 (sparc_print_registers_info): New function.
1522 (sparc_do_registers_info): New function.
1523 (sparclet_print_registers_info): New function.
1524 (sparclet_do_registers_info): New function.
1525 (do_sparc_print_registers_info): New function.
1526 (sparc_print_registers): New static function, clone of infcmd.c's
1527 default_print_registers_info.
1528 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1529 (sparclet_do_registers_info): Declare.
1530 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1531 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1532 Re-define.
1533 (sparc_do_registers_info): Declare.
1534 (PRINT_REGISTER_HOOK): Delete macro.
1535 (sparc_print_register_hook): Delete declaration.
1536
8155455b
DC
15372002-11-05 David Carlton <carlton@math.stanford.edu>
1538
1539 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1540 functions.
1541 (lookup_symbol_aux_local): New function.
1542 (lookup_symbol_aux_symtabs): New function.
1543 (lookup_symbol_aux_psymtabs): New function.
1544
29924310
DC
15452002-11-05 David Carlton <carlton@math.stanford.edu>
1546
1547 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1548 previous values of 'objfile' and 'block'.
1549
cc303028
PM
15502002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1551
1552 * values.c (value_change_enclosing_type): Set
1553 enclosing_type field correctly also for the case where
1554 more memory needs to be allocated.
1555
1d70089a
MK
15562002-11-03 Mark Kettenis <kettenis@gnu.org>
1557
f16a25ae
MK
1558 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1559 of puts_filtered.
1560
1d70089a
MK
1561 * i387-tdep.c (i387_print_float_info): Replace calls to
1562 register_read and deprecated_read_register_gen with calls to
1563 frame_register_read, and make the necessary adjustments to the
1564 surrounding code.
1565
7e20f3fb
AC
15662002-11-02 Andrew Cagney <ac131313@redhat.com>
1567
1568 * gdbarch.sh (register_reggroup_p): Allow default value.
1569 * gdbarch.h, gdbarch.c: Regenerate.
1570
192dbe33
AC
15712002-11-02 Andrew Cagney <ac131313@redhat.com>
1572
1573 * regcache.h: Add coment indicating replacements for deprecated
1574 functions.
1575
b59ff9d5
AC
15762002-11-02 Andrew Cagney <cagney@redhat.com>
1577
1578 * reggroups.h, reggroups.c: New files.
1579 * regcache.c: Include "reggroups.h".
1580 (enum regcache_dump_what): Add `regcache_dump_groups'.
1581 (regcache_dump): Contract size of the "Type" column. When
1582 specified, dump the register's groups.
1583 (maintenance_print_register_groups): New function.
1584 (_initialize_regcache): Add command `maint print register-groups'.
1585 * Makefile.in (COMMON_OBS): Add reggroups.o
1586 (SFILES): Add reggroups.c.
1587 (reggroups_h): Define.
1588 (regcache.o, gdbarch.o): Update dependencies.
1589 (reggroups.o): Specify dependencies.
1590 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1591 Add opaque declaration for `struct reggroup' in generated .h file.
1592 Include "reggroups.h" in generated .c file.
1593 gdbarch.h, gdbarch.c: Re-generate.
1594
4caf0990
AC
15952002-11-02 Andrew Cagney <cagney@redhat.com>
1596
1597 * regcache.h (deprecated_read_register_gen): Rename
1598 read_register_gen.
1599 (deprecated_write_register_gen): Rename write_register_gen.
1600 * i387-tdep.c: Update.
1601 * x86-64-linux-nat.c: Update
1602 * wince.c: Update.
1603 * thread-db.c: Update.
1604 * win32-nat.c: Update.
1605 * mips-tdep.c: Update.
1606 * d10v-tdep.c: Update.
1607 * cris-tdep.c: Update.
1608 * remote-sim.c: Update.
1609 * remote-rdi.c: Update.
1610 * remote-rdp.c: Update.
1611 * frame.c: Update.
1612 * target.c: Update.
1613 * blockframe.c: Update.
1614 * x86-64-tdep.c: Update.
1615 * xstormy16-tdep.c: Update.
1616 * sh-tdep.c: Update.
1617 * s390-tdep.c: Update.
1618 * rs6000-tdep.c: Update.
1619 * sparc-tdep.c: Update.
1620 * i386-tdep.c: Update.
1621 * dwarf2cfi.c: Update.
1622 * regcache.c: Update.
1623
7a7adcdf
JB
16242002-11-01 Joel Brobecker <brobecker@gnat.com>
1625
1626 New interix-specific files:
1627 * config/i386/nm-interix.h: New file.
1628 * config/i386/interix.mh: New file.
1629 * config/i386/interix.mt: New file.
1630 * i386-interix-nat.c: New file.
1631 * i386-interix-tdep.c: New file.
1632
bdcdd535
AC
16332002-11-01 Andrew Cagney <cagney@redhat.com>
1634
1635 * frame.h (deprecated_generic_get_saved_register): Rename
1636 generic_get_saved_register.
1637 * blockframe.c (deprecated_generic_get_saved_register): Update.
1638 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1639 (xstormy16_frame_saved_register): Update.
1640 * sh-tdep.c (sh_gdbarch_init): Update.
1641 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1642 * ia64-tdep.c (ia64_get_saved_register): Update.
1643 * cris-tdep.c (cris_gdbarch_init): Update.
1644 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1645 * arm-tdep.c (arm_gdbarch_init): Update.
1646
2a4b7c45
DJ
16472002-10-31 Daniel Jacobowitz <drow@mvista.com>
1648
1649 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1650
ef17e74b
DJ
16512002-10-31 Daniel Jacobowitz <drow@mvista.com>
1652
1653 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1654 trampolines in sigaction.
1655
4904ba5b
AC
16562002-10-31 Andrew Cagney <cagney@redhat.com>
1657
1658 * h8300-tdep.c: Include "gdb_assert.h".
1659 (h8300_print_register): Add gdbarch, file and frame parameters.
1660 Use frame_read_unsigned_register to read the register's value.
1661 Use fprintf_filtered to display output.
1662 (h8300_print_registers_info): Replace h8300_do_registers_info.
1663 (h8300_gdbarch_init): Set print_registers_info.
1664
f908a0eb
AC
16652002-10-31 Andrew Cagney <cagney@redhat.com>
1666
1667 * frame.c (frame_read_unsigned_register): New function.
1668 (frame_read_signed_register): New function.
1669 * frame.h (frame_read_unsigned_register): Declare.
1670 (frame_read_signed_register): Declare.
1671
c5646e11
AC
16722002-10-31 Andrew Cagney <cagney@redhat.com>
1673
1674 * h8500-tdep.c (h8500_print_registers_info): New static function,
1675 clone of infcmd.c's default_print_registers_info.
1676 (h8500_do_registers_info): New funtion.
1677 (h8500_print_register_hook): Rename print_register_hook, make
1678 static.
1679
1680 * config/h8500/tm-h8500.h: Update copyright.
1681 (DEPRECATED_DO_REGISTERS_INFO): Define.
1682 (h8500_do_registers_info: Declare.
1683 (PRINT_REGISTER_HOOK): Delete macro.
1684 (print_register_hook): Delete function.
1685
0bdd672b
AC
16862002-10-31 Andrew Cagney <cagney@redhat.com>
1687
1688 * z8k-tdep.c (z8k_print_register_hook): Make static.
1689 (z8k_print_registers_info): New static function, clone of
1690 infcmd.c's default_print_registers_info.
1691 (z8k_do_registers_info): New function. Wrap
1692 z8k_print_registers_info.
1693 * config/z8k/tm-z8k.h: Update copyright.
1694 (PRINT_REGISTER_HOOK): Delete macro.
1695 (z8k_print_register_hook): Delete declaration.
1696 (DEPRECATED_DO_REGISTERS_INFO): Define.
1697 (z8k_do_registers_info): Declare.
1698
bf9c25dc
JB
16992002-10-30 Joel Brobecker <brobecker@gnat.com>
1700
1701 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1702 as this is already provided by value.h, and was actually causing
1703 a compilation error because of a conflict in parameter type
1704 declaration due to a missing const keyword.
1705 (low_text_segment_addres): Fix a compilation warning.
1706
2c665b51
DJ
17072002-10-29 Daniel Jacobowitz <drow@mvista.com>
1708
1709 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1710 registers without a name.
1711 (mips_linux_cannot_store_register): Don't store registers without
1712 a name.
1713
e70ea697
DC
17142002-10-28 David Carlton <carlton@math.stanford.edu>
1715
1716 * symtab.c (find_addr_symbol): Delete. (It was already commented
1717 out.)
1718 * symtab.h: Delete prototype for find_addr_symbol.
1719
903ad3a6
AC
17202002-10-26 Andrew Cagney <cagney@redhat.com>
1721
1722 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1723 DO_REGISTERS_INFO.
1724 gdbarch.h, gdbarch.c: Re-generate.
1725 * infcmd.c (default_print_registers_info): Update reference.
1726 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1727 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1728 * sh-tdep.c (sh_gdbarch_init): Ditto.
1729 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1730 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1731
ab91194c
MK
17322002-10-26 Mark Kettenis <kettenis@gnu.org>
1733
e3033f15
MK
1734 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1735 cfi_init_extra_frame_info.
1736 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1737 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1738
b83b026c
MK
1739 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1740 target where necessary. Add more comments and remove the ones
1741 that don't provide any useful information.
1742
267bf4bb
MK
1743 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1744 deprecated_read_register_dummy with
1745 frame_unwind_unsigned_register.
1746
751f1375
MK
1747 * i386-tdep.c (i386_extract_struct_value_address): Use
1748 regcache_raw_read_unsigned instead of
1749 regcache_cooked_read_unsigned since we know that the register
1750 we're reading isn't a pseudo register. Rename variable 'val' into
1751 the more descriptive 'addr'.
1752
26abbdc4
MK
1753 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1754 (x86_64_push_return_address): Add comment.
1755 (x86_64_pop_frame): Make static.
1756 (examine_argument): Clarify comment.
1757 (x86_64_skip_prologue): Make prolog_expact variable static.
1758
9f1549cc
MK
1759 * dwarf2cfi.c: Fix some formatting problems.
1760 (context_cpy, read_encoded_pointer): Clarify comments.
1761
ab91194c
MK
1762 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1763 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1764 i386 target back into x86_64_gdbarch_init. Add some comments and
1765 remove meaningless ones.
1766
72367fb4
AC
17672002-10-25 Andrew Cagney <cagney@redhat.com>
1768
1769 * complaints.h (struct deprecated_complaint): Rename `struct
1770 complaint'.
1771 * complaints.c (complain): Update.
1772 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1773 incorrect comment indicating that "symfile.h" was being included
1774 for the `struct complaint' definition.
1775 * remote-vx.c: Update.
1776 * objc-lang.c: Update.
1777 * xcoffread.c: Update.
1778 * hpread.c: Update.
1779 * mdebugread.c: Update.
1780 * stabsread.c: Update.
1781 * dwarf2read.c: Update.
1782 * dwarfread.c: Update.
1783 * elfread.c: Update.
1784 * coffread.c: Update.
1785 * stabsread.h: Update.
1786 * dbxread.c: Update.
1787 * buildsym.c: Update.
1788 * gdbtypes.c: Update.
1789 * macrotab.c: Update.
1790
1f2baacc
MK
17912002-10-25 Mark Kettenis <kettenis@gnu.org>
1792
0c1a73d6
MK
1793 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1794 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1795 (x86_64_init_abi): ...new function.
1796
6aee4d54 1797 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
1798 * i386v-nat.c: Include "i386-tdep.h".
1799
8f9cbe01
AC
18002002-10-25 Andrew Cagney <cagney@redhat.com>
1801
5f11f355
AC
1802 * gdbtypes.c (address_space_name_to_int): Update.
1803 (address_space_int_to_name): Update.
1804 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1805 multi-arch predicate.
1806 (address_class_name_to_type_flags): Ditto.
1807 * gdbarch.h, gdbarch.c: Re-generate.
1808
8f9cbe01
AC
1809 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1810
e8d96a5d
MH
18112002-10-24 Martin M. Hunt <hunt@redhat.com>
1812
1813 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1814
fe39c653
EZ
18152002-10-24 Elena Zannoni <ezannoni@redhat.com>
1816
1817 * symtab.h (INIT_SAL): Delete macro.
1818 (init_sal): Export.
1819 * symtab.c (init_sal): New function.
1820
1821 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1822 to init_sal function call.
1823 (find_sal_from_funcs_and_line): Ditto.
1824 (all_sals_for_line): Ditto.
1825 * breakpoint.c (create_internal_breakpoint): Ditto.
1826 (create_fork_vfork_event_catchpoint): Ditto.
1827 (create_exec_event_catchpoint): Ditto.
1828 (parse_breakpoint_sals): Ditto.
1829 (watch_command_1): Ditto.
1830 (handle_gnu_4_16_catch_command): Ditto.
1831 (clear_command): Ditto.
1832 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1833 * infcmd.c (run_stack_dummy): Ditto.
1834 * infrun.c (process_event_stop_test): Ditto.
1835 (check_sigtramp2): Ditto.
1836 (step_over_function): Ditto.
1837 * linespec.c (decode_line_2): Ditto.
1838 (decode_line_1): Ditto.
1839 * source.c (line_info): Ditto.
1840 * symtab.c (find_pc_sect_line): Ditto.
1841
baed091b
ML
18422002-10-24 Michal Ludvig <mludvig@suse.cz>
1843
1844 * dwarf2cfi.c (struct context)
1845 (struct context_reg): Moved to dwarf2cfi.h
1846 (context_alloc, frame_state_alloc, context_cpy):
1847 Made extern instead of static, removed prototypes.
1848 * dwarf2cfi.h (struct context)
1849 (struct context_reg): New, moved from dwarf2cfi.c
1850 (context_alloc, frame_state_alloc, context_cpy):
1851 New prototypes.
1852 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1853 Changed from static to extern.
1854 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1855 (LINUX_SIGCONTEXT_FP_OFFSET)
1856 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1857 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1858 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1859 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1860 set_gdbarch_*() calls now use x86-64 specific functions
1861 instead of DWARF2 CFI ones.
1862 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1863 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1864 (x86_64_init_extra_frame_info): New prototypes.
1865
c38da1af
DC
18662002-10-23 David Carlton <carlton@math.stanford.edu>
1867
1868 * linespec.c: #include "parser-defs.h".
1869 Delete prototype for find_template_name_end.
1870 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1871
fb9b6b35
JJ
18722002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1873
1874 * NEWS: add recent mi fixes.
1875 * varobj.c (struct varobj): Add new "updated" flag.
1876 (new_variable): Default "updated" flag to 0.
1877 (varobj_set_value): Set "updated" flag to 1 if value
1878 changes.
1879 (varobj_update): Check varobj "updated" flag before
1880 comparing old and refreshed values. Fix for
1881 PR gdb/702.
1882
8da065d5
DC
18832002-10-23 David Carlton <carlton@math.stanford.edu>
1884
1885 * parse.c (parse_exp_1): Use BLOCK_START.
1886 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1887 SYMBOL_BLOCK_VALUE.
1888 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1889
87f2f08c
DC
18902002-10-23 David Carlton <carlton@math.stanford.edu>
1891
1892 * symtab.c: Delete cplusplus_hint.
1893 Delete prototype for find_template_name_end.
1894
88cda038
EZ
18952002-10-23 Elena Zannoni <ezannoni@redhat.com>
1896
1897 * symtab.h: Update comment.
1898
2625d86c
MS
18992002-10-23 Michael Snyder <msnyder@redhat.com>
1900
1901 * printcmd.c (address_info): Restore quotes in output.
1902 * valops.c (value_of_local): Restore quotes in error message.
1903
9cc0d196
EZ
19042002-10-23 Elena Zannoni <ezannoni@redhat.com>
1905
1906 * symtab.c (symbol_demangled_name): New function.
1907 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1908 turning most of it into a function.
1909 (symbol_demangled_name): Export.
1910
19de93d0
MS
19112002-10-23 Michael Snyder <msnyder@redhat.com>
1912
1913 * valops.c (value_of_local): Restore quotes in error message.
1914
89aad1f9
EZ
19152002-10-23 Elena Zannoni <ezannoni@redhat.com>
1916
1917 * symtab.c (symbol_init_language_specific): New function.
1918 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1919 turning most of it into a function.
1920 (symbol_init_language_specific): Export.
1921
d9fa45fe
DC
19222002-10-23 David Carlton <carlton@math.stanford.edu>
1923
1924 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1925 (dwarf_attr_name): Ditto.
1926 (dwarf_type_encoding_name): Ditto.
1927 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1928 (process_die): Handle DW_TAG_namespace,
1929 DW_TAG_imported_declaration, DW_TAG_imported_module.
1930 (read_namespace): New function.
1931
1045b512
JB
19322002-10-22 Joel Brobecker <brobecker@gnat.com>
1933
1934 * configure.in: Define NEW_PROC_API on Interix too.
1935 * configure: Regenerate.
1936
19372002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
1938
1939 * configure: Regenerate using the proper version of autoconf.
1940
3987b9d4
EZ
19412002-10-21 Elena Zannoni <ezannoni@redhat.com>
1942
1943 * findvar.c (read_var_value): Temporarily disable TLS code, until
1944 complete TLS support is added.
1945
9d774e44
EZ
19462002-10-21 Jim Blandy <jimb@redhat.com>
1947 Elena Zannoni <ezannoni@redhat.com>
1948
1949 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1950 for thread local storage locations.
1951 (struct symbol): Add objfile field.
1952 (SYMBOL_OBJFILE): Define.
1953 * dwarf2read.c (is_thread_local): New static variable.
1954 (new_symbol): If variable is in thread local fill in address class
1955 and objfile appropriately.
1956 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1957 stack operation.
1958 * printcmd.c (address_info): Print the information for thread
1959 local storage variable.
1960 * findvar.c (read_var_value): In case of thread local variable,
1961 defer to the target vector code to compute address.
1962
bc4a16ae
EZ
19632002-10-21 Elena Zannoni <ezannoni@redhat.com>
1964
1965 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1966 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1967
407caf07
EZ
19682002-10-21 Elena Zannoni <ezannoni@redhat.com>
1969
1970 * symtab.h (address_class): Rename
1971 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1972 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1973 * printcmd.c (address_info): Ditto.
1974 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1975
005328e3
MK
19762002-10-20 Mark Kettenis <kettenis@gnu.org>
1977
afdb036a
MK
1978 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1979 DBREG_DRX macro to acces debug registers.
1980
ca02e098
MK
1981 * Makefile.in (i386obsd-tdep.o): New target.
1982
03cc47f7
MK
1983 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1984 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1985
005328e3
MK
1986 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1987 * config/i386/obsd.mt: New file.
1988 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1989 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1990 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1991 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1992 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1993 * i386obsd-tdep.c: New file.
1994
9c96f9f2
AF
19952002-10-19 Adam Fedor <fedor@gnu.org>
1996
1997 * objc-exp.y (name_not_typename): Fix invalid comment.
1998
ce1ed485
MK
19992002-10-20 Mark Kettenis <kettenis@gnu.org>
2000
2001 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2002 to allocate partial syms and macro byte caches.
2003
1efc7aaa
DC
20042002-10-18 David Carlton <carlton@math.stanford.edu>
2005
2006 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2007
7e1d63ec
AF
20082002-10-18 Adam Fedor <fedor@gnu.org>
2009
2010 * stabsread.c (find_name_end): New function.
2011 (define_symbol): Use it.
2012
6e8d29a9
DJ
20132002-10-18 Daniel Jacobowitz <drow@mvista.com>
2014
2015 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2016 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2017 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2018 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2019
1efc7aaa 20202002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
2021
2022 * symfile.h: Add opaque declaration for struct obstack.
2023 Declare obsavestring to take a const char *.
2024 * symfile.c (obsavestring): Make first argument a const char *.
2025
1aeae86e
AF
20262002-10-16 Adam Fedor <fedor@gnu.org>
2027
2028 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2029 names when matching breakpoints in current file.
2030
8b2dbe47
KB
20312002-10-16 Kevin Buettner <kevinb@redhat.com>
2032
2033 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2034 (read_tag_pointer_type): Add address class support.
2035 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2036 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2037 New methods.
2038 * gdbarch.h, gdbarch.c: Regenerate.
2039 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2040 (make_type_with_address_space, recursive_type_dump): Add address
2041 class support.
2042 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2043 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2044 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2045
74451869
KD
20462002-10-16 Klee Dienes <kdienes@apple.com>
2047
2048 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2049 to get the last character of a char[] buffer, not
2050 name[sizeof(vptr_name)-1].
2051
ff4cb3e8
AF
20522002-10-14 Adam Fedor <fedor@gnu.org>
2053
2054 * symtab.h: New objc_specific struct.
2055 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2056 (SYMBOL_DEMANGLED_NAME): Likewise.
2057
da2cf7e0
AF
20582002-10-14 Adam Fedor <fedor@gnu.org>
2059
2060 * symfile.c (init_filename_language_table): Add ObjC file extension.
2061
4a351cef
AF
20622002-10-14 Adam Fedor <fedor@gnu.org>
2063
2064 * utils.c (puts_filtered_tabular): New function.
2065 (fprintf_symbol_filtered): Get ObjC demangled name.
2066 * defs.h (puts_filtered_tabular): Declared.
2067
9750e763
KB
20682002-10-14 Kevin Buettner <kevinb@redhat.com>
2069
2070 * c-lang.h (c_type_print_varspec_prefix): Delete.
2071 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2072 ``need_post_space'' parameter. Adjust all callers.
2073
eee771c1
DJ
20742002-10-14 Daniel Jacobowitz <drow@mvista.com>
2075
2076 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2077 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2078 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2079 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2080
46c82446
AF
20812002-10-13 Adam Fedor <fedor@gnu.org>
2082
2083 * source.c (print_source_lines): Update comments.
2084
d069f99d
AF
20852002-10-13 Adam Fedor <fedor@gnu.org>
2086
2087 * valops.c (value_of_local): New function.
2088 (value_of_this): Use it.
2089 * value.h (value_of_local): Declared.
2090
53c551b7
AF
20912002-10-13 Adam Fedor <fedor@gnu.org>
2092
2093 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2094 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2095
eb392fbf
AF
20962002-10-12 Adam Fedor <fedor@gnu.org>
2097
2098 * language.c (binop_result_type): Add language_objc to case.
2099 (integral_type): Likewise.
2100 (character_type): Likewise.
2101 (string_type): Likewise.
2102 (boolean_type): Likewise.
2103 (structured_type): Likewise.
2104 (binop_type_check): Likewise.
2105
e2b23ee9
AF
21062002-10-11 Adam Fedor <fedor@gnu.org>
2107
2108 * printcmd.c (address_info): Print 'self' for ObjC.
2109
b01ab485
AF
21102002-10-11 Adam Fedor <fedor@gnu.org>
2111
2112 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2113 OP_SELF.
2114
806e6073
AF
21152002-10-11 Adam Fedor <fedor@gnu.org>
2116
2117 * language.h (CAST_IS_CONVERSION): Add language_objc.
2118
50f85cdf
AF
21192002-10-11 Adam Fedor <fedor@gnu.org>
2120
2121 * defs.h (enum language): Add language_objc.
2122
0d540cdf
KD
21232002-10-11 Klee Dienes <kdienes@apple.com>
2124
69266111 2125 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
2126 * gdbcore.h (read_memory_typed_address): Add prototype.
2127 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2128 to read a value destined for a CORE_ADDR, not read_memory_integer.
2129 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2130 (f77_get_dynamic_lowerbound): Ditto.
2131
d5dc7960
MH
21322002-10-11 Martin M. Hunt <hunt@redhat.com>
2133
2134 * utils.c (string_to_core_addr): After turning string into
2135 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2136 which will do necessary sign-extension, etc.
2137
8343f86c
DJ
21382002-10-11 Daniel Jacobowitz <drow@mvista.com>
2139
2140 * c-exp.y (THIS): Delete token and grammar rule.
2141 (yylex): Don't return THIS.
2142 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2143 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2144 * demangle.c (cplus_markers): Update comment. Put '$'
2145 first. Remove CPLUS_MARKER.
2146 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2147 * jv-exp.y (THIS): Delete token and grammar rule.
2148 (yylex): Don't return THIS.
2149 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2150 * objc-exp.y (THIS): Delete token and grammar rule.
2151 (yylex): Don't return THIS.
2152 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2153 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2154 (read_member_functions): Likewise for opname.
2155 (read_tilde_fields): Use is_cplus_marker.
2156
2157 * defs.h (CPLUS_MARKER): Don't define.
2158 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2159 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2160 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2161 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2162 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2163
2164 * config/i386/tm-i386v4.h: Delete file.
2165 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2166 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2167 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2168 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2169 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2170 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2171 * config/i386/i386v4.mt (TM_FILE): Likewise.
2172 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2173
967c0d83
MM
21742002-10-10 Marko Mlinar <markom@opencores.org>
2175
2176 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2177 accidentially not commited 2002-10-09
2178 * gdbarch.h, gdbarch.c: Re-generate.
2179
f74fa174
MM
21802002-10-09 Marko Mlinar <markom@opencores.org>
2181
2182 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2183 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2184 * gdbarch.h, gdbarch.c: Re-generate.
2185
57349743
JB
21862002-10-08 Petr Sorfa <petrs@caldera.com>
2187
2188 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2189
2190 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2191 so we can work on more than one compilation unit at a time. This
2192 helps prepare GDB to handle inter-CU die references.
2193 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2194 the code to be defined before struct comp_unit_head.
2195 (comp_unit_head): Added new members - offset, cu_head,
2196 begin_die, next and dwarf2_abbrevs.
2197 (dwarf2_abbrevs): Removed single static var; now member of
2198 struct comp_unit_head.
2199 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2200 members.
2201 (psymtab_to_symtab_1): Changed to work with the new
2202 struct comp_unit_head.
2203 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2204 constructs the dwarf2_abbrevs[] inside the cu_header.
2205 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2206 dwarf2_abbrev table to clean up.
2207 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2208 handling of dwarf2_abbrevs inside the cu_header.
2209 (read_partial_die): Now supports the call to the new
2210 dwarf2_lookup_abbrev.
2211 (read_full_die): Now supports the call to the new
2212 dwarf2_lookup_abbrev.
2213
4092aadb
CF
22142002-10-06 Christopher Faylor <cgf@redhat.com>
2215
2216 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2217 insure that shell variables, such as "transformed_name" are propagated
2218 to later shell statements in rule.
2219
af0b2512
MK
22202002-10-06 Mark Kettenis <kettenis@gnu.org>
2221
2222 * config/i386/nm-i386sco.h: Add protection against
2223 multiple-inclusion. Include "i386/nm-i386v.h".
2224 (REGISTER_U_ADDR): Remove define.
2225 (i386_register_u_addr): Remove prototype.
2226
d6020d45
MS
22272002-10-04 Michael Snyder <msnyder@redhat.com>
2228
2229 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2230 before treating it as a single-step event.
2231
7248f48e
AF
22322002-10-03 Adam Fedor <fedor@gnu.org>
2233
2234 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2235 (objc_demangle): Remove assignment in if statements, Replace
2236 free with xfree.
2237 (add_msglist): Likewise.
2238 (end_msglist): Likewise.
2239 (complare_selectors): Likewise.
2240 (selectors_info): Likewise.
2241 (compare_classes): Likewise.
2242 (classes_info): Likewise.
2243 (print_object_command): Likewise.
2244 (find_objc_msgcall_submethod): Replace PTR with void *.
2245 * objc-lang.h: Remove check for __STDC__.
2246
52c6a6ac
JJ
22472002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2248
2249 * ui-out.h (ui_out_field_fmt_int): New prototype.
2250 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2251 of field width and alignment.
2252 * stack.c (print_frame_info_base): When printing frame level, use
2253 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2254 PR gdb/192
2255
7e3cec17
JJ
22562002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2257
2258 * MAINTAINERS: Add self to Write After Approval list.
2259
a58dd373
EZ
22602002-10-02 Elena Zannoni <ezannoni@redhat.com>
2261
2262 * infcmd.c (interrupt_target_command_wrapper): Delete.
2263 (interrupt_target_command): Make non static.
2264 (nofp_registers_info): Make static.
2265 * stack.c (return_command_wrapper): Delete.
2266 (return_command): Make non static.
2267
cee6ddeb
EZ
22682002-10-02 Elena Zannoni <ezannoni@redhat.com>
2269
2270 * event-top.c (gdb_setup_readline): New function. Code moved from
2271 _initialize_event_loop().
2272 (_initialize_event_loop): Call gdb_setup_readline().
2273
c4ed33b9
AC
22742002-10-02 Andrew Cagney <ac131313@redhat.com>
2275
2276 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2277 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2278 * gdbarch.h, gdbarch.c: Re-generate.
2279
cef4f5dd
DJ
22802002-10-02 Daniel Jacobowitz <drow@mvista.com>
2281
2282 Fix PR gdb/778
2283 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2284 before recursing.
2285 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2286 of fill_in_vptr_fieldno.
2287
36dc181b 22882002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 2289
36dc181b
EZ
2290 * inferior.h (registers_info, stepi_command, nexti_command,
2291 continue_command, interrupt_target_command): Export from infcmd.c.
2292 * frame.h (args_info, selected_frame_level_changed_hook,
2293 return_command): Export from stack.c.
2294 * v850ice.c (stepi_command, nexti_command, continue_command): use
2295 prototypes from inferior.h.
2296 * tracepoint.c (registers_info, args_info, locals_info): Use
2297 prototypes from frame.h and inferior.h.
2298 * Makefile.in (mi-main.o): Add dependency on frame.h.
2299
6f99cb26
AC
23002002-10-02 Andrew Cagney <ac131313@redhat.com>
2301
da3eff49
AC
2302 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2303 value in register 3 adjusted by ppc_gp0_regnum.
2304
6f99cb26
AC
2305 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2306
da615bee
MM
23072002-10-02 Marko Mlinar <markom@opencores.org>
2308
2309 * MAINTAINERS: Add myself to the Write After Approval list.
2310
d154bee2
AO
23112002-10-01 Alexandre Oliva <aoliva@redhat.com>
2312
62a49b2c
AO
2313 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2314 of the section for the N64 ABI, fixed.
2315
d154bee2
AO
2316 * config/mips/tm-irix6.h: Include solib.h.
2317
ed348acc
EZ
23182002-10-01 Elena Zannoni <ezannoni@redhat.com>
2319
2320 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2321 GNU operators.
2322
da0f9dcd
AC
23232002-10-01 Andrew Cagney <ac131313@redhat.com>
2324
2325 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2326 and that "mi0" syntax has been removed.
2327
bdf64bac
DC
23282002-09-30 David Carlton <carlton@math.stanford.edu>
2329
2330 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2331 * ppc-sysv-tdep.c: #include "gdb_string.h".
2332 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2333 pacify GCC.
2334
54c2a1e6
AC
23352002-10-01 Andrew Cagney <ac131313@redhat.com>
2336
2337 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2338 "vrsave"'s register number.
2339
cedea778
AC
23402002-09-30 Andrew Cagney <ac131313@redhat.com>
2341
2342 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2343 use frame_unwind_signed_register to obtain the PC.
2344 (mips_frame_chain): Handle a generic dummy frame.
2345 (mips_init_extra_frame_info): When a generic dummy frame, don't
2346 re-compute the frame base.
2347 (mips_pop_frame): Handle generic dummy frames.
2348 (mips_gdbarch_init): When generic dummy frames, set
2349 use_generic_dummy_frames, push_dummy_frame to
2350 generic_push_dummy_frame, pc_in_call_dummy to
2351 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2352 generic_save_dummy_frame_tos.
2353
68315eb8
AC
23542002-09-30 Andrew Cagney <ac131313@redhat.com>
2355
2356 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2357 against TOP when TOP was explictly set.
2358 (generic_push_dummy_frame): Set TOP to zero.
2359
3b8630c3
EZ
23602002-09-30 Elena Zannoni <ezannoni@redhat.com>
2361
2362 * event-loop.c (start_event_loop): Rename variable 'result' to
2363 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2364
28ee05e9
KS
23652002-09-30 Keith Seitz <keiths@redhat.com>
2366
2367 * gdb-events.sh (selected_thread_changed): New event.
2368 * gdb-events.c: Regenerated.
2369 * gdb-events.h: Regenerated.
2370
6eecb1c8
HPN
23712002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2372
2373 * MAINTAINERS: Add self to Write After Approval list.
2374
92df71f0
FN
23752002-09-30 Fernando Nasser <fnasser@redhat.com>
2376
3b8630c3
EZ
2377 * disasm.c: New file.
2378 * disasm.h: New file.
92df71f0
FN
2379 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2380 (compare_lines): Ditto.
2381 (dump_insns): Ditto.
3b8630c3
EZ
2382 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2383 argument.
92df71f0 2384 (do_assembly_only): Ditto.
3b8630c3
EZ
2385 (do_disassembly): Renamed to gdb_disassembly and moved to
2386 disasm.c. Sdded uiout argument.
2387 * Makefile.in: Add new files. Reorder SFILES list. Update
2388 dependencies. Include libgdb.a later in the insight executable.
92df71f0 2389
0c22854d
AC
23902002-09-29 Andrew Cagney <ac131313@redhat.com>
2391
2392 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2393 bfd/elf64-alpha-fbsd.c.
2394
e67f2023
AC
23952002-09-29 Andrew Cagney <ac131313@redhat.com>
2396
2397 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2398 i386gnu-tdep.c.
2399
89396210
AC
24002002-09-29 Andrew Cagney <ac131313@redhat.com>
2401
2402 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2403 __FUNCTION__.
2404 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2405 function name.
2406 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2407 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2408 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2409 (S_msg_sig_post_reply): Ditto.
2410
7079c36c
CV
24112002-09-28 Corinna Vinschen <vinschen@redhat.com>
2412
89396210
AC
2413 * sh-tdep.c (sh_use_struct_convention): Use definition according
2414 to ABI.
7079c36c
CV
2415 (sh_push_arguments): Store in register with correct endianess.
2416 (sh_default_store_return_value): Ditto.
2417 (sh_gdbarch_init): Set sizeof long double to 8.
2418
975ac915
MK
24192002-09-27 Mark Kettenis <kettenis@gnu.org>
2420
2421 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2422 Fix some whitespace problems.
2423
9bbe19fb
DC
24242002-09-27 David Carlton <carlton@math.stanford.edu>
2425
2426 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2427 (mcore-tdep.o): Ditto.
2428 (ns32k-tdep.o): Ditto.
2429 (ns32knbsd-tdep.o): Ditto.
2430 (sh3-rom.o): Ditto.
2431 (vax-tdep.o): Ditto.
2432 * cris-tdep.c: #include "gdb_string.h"
2433 * mcore-tdep.c: Ditto.
2434 * ns32k-tdep.c: Ditto.
2435 * ns32knbsd-tdep.c: Ditto.
2436 * sh3-rom.c: Ditto.
2437 * vax-tdep.c: Ditto.
2438
43b2fdc7
DC
24392002-09-27 David Carlton <carlton@math.stanford.edu>
2440
2441 * config/djgpp/fnchange.lst: Add entries for
2442 gdb/testsuite/gdb.c++/m-static files.
2443
e8cfbbd9
JW
24442002-09-27 Jim Wilson <wilson@redhat.com>
2445
2446 * MAINTAINERS: Add myself to the Write After Approval list.
2447
43b2fdc7 24482002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2449
2450 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2451
2452
9f3b7f07
AC
24532002-09-26 Andrew Cagney <ac131313@redhat.com>
2454
2455 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2456 frame.
2457
11269d7e
AC
24582002-09-26 Andrew Cagney <ac131313@redhat.com>
2459
2460 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2461 (rs6000_struct_return_address): Delete variable.
2462 (rs6000_store_struct_return): Update.
2463 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2464 deprecated_extract_struct_value_address.
2465 (rs6000_frame_align): New function.
2466 (rs6000_gdbarch_init): Set frame_align.
2467
f15ab4a7
AC
24682002-09-26 Andrew Cagney <ac131313@redhat.com>
2469
2470 From Grace Sainsbury <graces@redhat.com>:
2471 * Makefile.in (gdbtk-main.o): New target.
2472 (gdb.o): New target.
2473 (main_h): Define.
2474 (main.o): Update dependencies.
2475 (gdb$(EXEEXT)): Add gdb.o.
2476 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2477 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2478 (SUBDIR_GDBTK_CLEAN): Set.
2479 (install-gdbtk): Install the insight binary.
2480 (uninstall-gdbtk): New target.
2481 (all-gdbtk, clean-gdbtk): New rule.
2482 * top.c (use_windows): Default to zero.
2483 * main.c: Include "main.h".
2484 (main): Delete.
2485 (struct captured_main_args): Delete.
2486 (gdb_main): New function.
2487 * main.h: New file.
2488 * gdb.c: New File.
2489
e36180d7
AC
24902002-09-25 Andrew Cagney <cagney@redhat.com>
2491
2492 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2493 (frame_map_regnum_to_name): New function.
2494 (frame_map_name_to_regnum): New function.
2495 * frame.h (frame_map_name_to_regnum): Declare.
2496 (frame_map_regnum_to_name): Declare.
2497 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2498 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2499 * parse.c: Do not include "builtin-regs.h".
2500 (target_map_name_to_register): Delete function.
2501 (write_dollar_variable): Use frame_map_name_to_regnum.
2502 * parser-defs.h (target_map_name_to_register): Delete declaration.
2503 * expprint.c: Include "frame.h".
2504 (print_subexp): Use frame_map_regnum_to_name.
2505 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2506 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2507
8b69000d
AC
25082002-09-25 Andrew Cagney <ac131313@redhat.com>
2509
2510 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2511 wasn't saved, and the next innermost frame is a dummy, return the
2512 dummy frame's link register.
2513
046ca86a
JB
25142002-09-24 Jim Blandy <jimb@redhat.com>
2515
2516 Fix from Paul Breed:
2517 * main.c (captured_main): Add a `break' after the case for 'b'.
2518
94b66fa7
KS
25192002-09-24 Keith Seitz <keiths@redhat.com>
2520
2521 * varobj.c (c_type_of_child): Use get_target_type instead
2522 of TYPE_TARGET_TYPE.
2523
c214a6fd
FN
25242002-09-22 Fernando Nasser <fnasser@redhat.com>
2525
53cb0458
FN
2526 * source.c (get_current_or_default_source_symtab_and_line): Remove
2527 function.
2528 (set_default_source_symtab_and_line): New function. Attempts to
2529 determine a source file to list lines from if one is not currently
2530 defined.
2531 (get_current_source_symtab_and_line): Initialize sal.pc and
2532 sal.end fields.
2533 (set_current_source_symtab_and_line): Mark argument as const.
2534 * source.h: Update declarations and comments.
2535 * linespec.c (decode_line_1): Replace call to removed routine above.
2536 * stack.c (print_frame_info_base): Ditto.
2537 * cli/cli-cmds.c (edit_command): Ditto.
2538 (list_command): Ditto.
2539
25402002-09-22 Fernando Nasser <fnasser@redhat.com>
2541
d6020d45 2542 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2543 sal.pc and sal.end fields.
c214a6fd
FN
2544 (get_current_or_default_source_symtab_and_line): Ditto.
2545 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2546 so we do not cause a new source symtab to be searched for (reverting an
2547 unintentional change from the 2002-09-20 patch).
2548 * scm-lang.c (scm_unpac): Ditto.
2549
cc3b68a5
AC
25502002-09-21 Andrew Cagney <cagney@redhat.com>
2551
2552 * complaints.c (symfile_explanations): Remove new-line from
2553 ``isolated_message''.
2554 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2555 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2556
5835abe7
NC
25572002-09-20 Nick Clifton <nickc@redhat.com>
2558
2559 * NEWS: Announce that V850EA ISA is no longer supported.
2560 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2561
a15ef5f5
DC
25622002-09-20 David Carlton <carlton@math.stanford.edu>
2563
06ba1b39
DC
2564 * Makefile.in (c-lang.o): Correct dependencies.
2565 (utils.o): Gather dependencies.
2566 (charset.o): Move.
a15ef5f5
DC
2567 * c-lang.c: #include "gdb_string.h"
2568
87885426
FN
25692002-09-20 Fernando Nasser <fnasser@redhat.com>
2570
2571 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2572 * cli/cli-cmds.c (list_command): New function. Implements the new
2573 cli edit command.
2574 (_init_cli_cmds): Add new command definition.
2575 * gdb.1: Document edit command.
2576 * doc/gdb.texinfo: Document edit command.
2577
25782002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2579
2580 * source.c: Make global variables current_source_symtab and
2581 current_source_line static.
2582 (list_command): Moved to cli/cli-cmds.c.
2583 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2584 (get_first_line_listed): New accessor function.
2585 (get_lines_to_list): New accessor function.
2586 (get_current_source_symtab_and_line): New function. Retrieves the
2587 position in the source code that we consider current.
2588 (get_current_or_default_source_symtab_and_line): New function.
2589 Like the above but attempts to determine a default position if one
2590 is not currently defined.
2591 (set_current_source_symtab_and_line): New function. Sets the source
2592 code position considered current and returns the previously set one.
2593 (clear_current_source_symtab_and_line): Reset stored information about
2594 a current source line.
2595 (_initialize_source): Remove registration for the "list" command and
2596 its alias.
2597 * source.h: Add declarations for the new functions above.
2598 * symtab.h: Remove declarations for the global variables mentioned
2599 above.
2600 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2601 obtain current source line.
2602 * linespec.c (decode_line_1): Ditto.
2603 * macroscope.c (default_macro_scope): Ditto.
2604 * scm-lang.c (scm_unpac): Ditto.
2605 * stack.c (print_frame_info_base): Ditto.
2606 * symfile.c (clear_symtab_users): Ditto.
2607 * symtab.c (decode_line_spec): Ditto.
2608 * cli/cli-cmds.c (list_command): Moved here from source.c.
2609 (ambiguous_line_spec): Moved here from source.c.
2610 (_init_cli_cmds): Add definition for "list" and its alias.
2611 * Makefile.in: Update dependencies.
2612
ddd216ea
CV
26132002-09-20 Corinna Vinschen <vinschen@redhat.com>
2614
2615 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2616 with what gcc thinks is correct.
2617
6d305052
CV
26182002-09-20 Corinna Vinschen <vinschen@redhat.com>
2619
2620 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2621 multiple register push instruction.
2622
234b45d4
KB
26232002-09-19 Jim Blandy <jimb@redhat.com>
2624
2625 Add support for distinct host and target character sets.
2626 * charset.c, charset.h: New files.
2627 * c-exp.y: #include "charset.h".
2628 (yylex): Convert character and string literals to the target
2629 character set, before returning them as the semantic value of the
2630 token.
2631 * c-lang.c: #include "charset.h".
2632 (c_emit_char): Use charset-specific methods to recognize
2633 characters with backslash escape forms, to decide which characters
2634 to print literally and which to print using numeric escape
2635 sequences, and to convert target characters to host characters
2636 before printing.
2637 * utils.c: #include "charset.h".
2638 (no_control_char_error): New function.
2639 (parse_escape): Use charset-specific methods to recognize
2640 backslash escapes, parse `control character' notation, and convert
2641 characters from the host character set to the target character set.
2642 * configure.in: Set the default host character set.
2643 Check where to find iconv, and what its argument types might be.
2644 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2645 * Makefile.in (SFILES): List charset.c.
2646 (COMMON_OBS): List charset.o.
2647 (charset.o): New rule.
2648 (charset_h): New header dependency variable.
2649 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2650 (LIBICONV): New variable, set by configure.
2651 (CLIBS): Include $(LIBICONV) here.
2652 * aclocal.m4, config.in, configure: Regenerated.
2653
525d6a61
JB
26542002-09-19 Joel Brobecker <brobecker@gnat.com>
2655
2656 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2657 bison 1.35 warning.
2658
3ed93867
RE
26592002-09-19 Richard Earnshaw <rearnsha@arm.com>
2660
2661 * gdb_mbuild.sh: New file.
2662
437666f8
AC
26632002-09-19 Andrew Cagney <ac131313@redhat.com>
2664
2665 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2666
389e51db
AC
26672002-09-18 Andrew Cagney <ac131313@redhat.com>
2668
2669 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2670 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2671 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2672 valops.c, value.h: Revert previous change.
2673
3b4efeaa
MS
26742002-09-18 Michael Snyder <msnyder@redhat.com>
2675
2676 Preliminary support for Objective-C:
2677 * defs.h (language_objc): New enum value.
2678 (puts_filtered_tabular): Declaration only, exported from utils.c.
2679 (skip_quoted): Delete, declared in completer.h.
2680 * c-exp.y: Include completer.h.
2681 * p-exp.y: Ditto.
2682 * jv-exp.y: Ditto.
2683 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2684 New operator enum values.
2685 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2686 * language.c (binop_result_type): Handle language_objc case.
2687 (integral_type, character_type, string_type, boolean_type,
2688 structured_type, binop_type_check): Ditto.
2689 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2690 (struct objc_specific): Add to general_symbol_info.
2691 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2692 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2693 * parser-defs.h (struct objc_class_str): New struct type.
2694 (start_msglist, end_msglist, add_msglist): Declaration only,
2695 exported from objc-lang.c.
2696 * value.h (value_of_local, value_nsstring,
2697 call_function_by_hand_expecting_type): Exported from valops.c.
2698 * valops.c (find_function_addr): Export.
2699 (call_function_by_hand_expecting_type): New function.
2700 (value_of_local): New function.
2701 * symfile.c (init_filename_language_table): Add ".m" extension
2702 for Objective-C.
2703 * utils.c (puts_filtered_tabular): New function.
2704 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2705 (set/show demangle): Extend help-string to refer to ObjC.
2706 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2707 * stabsread.c (symbol_reference_defined): Objective-C symbols
2708 may contain colons: make allowances when scanning stabs strings
2709 for colons.
2710 (objc_find_colon): New function.
2711 * printcmd.c (address_info): If language == objc then print
2712 "self" instead of "this".
2713 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2714 OP_NSSTRING, and OP_SELF.
2715 (prefixify_subexp): Ditto.
2716 * source.c (print_source_lines): Mention objc in comment.
2717 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2718 method names.
2719
b9caf505
AC
27202002-09-18 Andrew Cagney <ac131313@redhat.com>
2721
2722 * complaints.h: Update copyright.
2723 (struct complaints): Declare.
2724 (struct complaint): Make `message' constant.
2725 (internal_complaint): Declare.
2726 (complaint): Declare.
2727 (complaint_root): Delete declaration.
2728 (symfile_complaints): Delete declaration.
2729 (struct complaints): Add opaque declaration.
2730 (clear_complaints): Add a complaints parameter.
2731 * complaints.c: Update copyright.
2732 (enum complaint_series): Define.
2733 (complaint_root): Delete.
2734 (struct complaints): Define.
2735 (complaint_sentinel, symfile_complaint_book): New variables.
2736 (symfile_explanations, symfile_complaints): New variables.
2737 New variables.
2738 (get_complaints): New function.
2739 (vcomplaint): New function.
2740 (complaint): New function.
2741 (internal_complaint): New function.
2742 (complain): Call vcomplain with symfile_complaint.
2743 (clear_complaints): Rewrite.
2744 (_initialize_complaints): Use add_setshow_command.
2745 * Makefile.in (complaints.o): Update dependencies.
2746 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2747 to call to clear_complaints.
2748 (new_symfile_objfile, reread_symbols): Ditto.
2749 (oldsyms_complaint): Delete.
2750 (empty_symtab_complaint, unknown_option_complaint): Delete.
2751 (free_named_symtabs): Use complaint instead of complain.
2752
d2e6263c
MS
27532002-09-18 Michael Snyder <msnyder@redhat.com>
2754
5fb2031a
AC
2755 Contributed by Apple Computer, Inc. Merged with current sources
2756 by Adam Fedor <fedor@doc.com> [cagney].
2757
d2e6263c
MS
2758 * objc-lang.c: First clean-up round: comments, indentation.
2759 * objc-lang.h: Ditto.
2760 * objc-lang.y: Ditto.
2761
dec43320
AC
27622002-09-18 Andrew Cagney <ac131313@redhat.com>
2763
2764 * maint.c (maintenance_internal_error): Print the parameter as the
2765 error message.
2766 (maintenance_internal_warning): New function.
2767 (_initialize_maint_cmds): Add command `maint internal-warning'.
2768
2769 * defs.h (internal_warning, internal_vwarning): Declare.
2770 * utils.c (struct internal_problem): Define.
2771 (internal_vproblem): New function.
2772 (internal_warning): New function.
2773 (internal_vwarning): New function.
2774 (internal_warning_problem, internal_error_problem): New variables.
2775 (internal_verror): Just call internal_vproblem.
2776
b81654f1
MS
27772002-09-18 Michael Snyder <msnyder@redhat.com>
2778
2779 * objc-lang.c: New file, support for Objective-C.
2780 Preliminary check-in, not yet integrated into gdb.
2781 * objc-lang.h: New file.
2782 * objc-exp.y: New file.
2783
0542c381
AC
27842002-09-18 Andrew Cagney <ac131313@redhat.com>
2785
7bda5e4a
AC
2786 * infrun.c (signal_stop_update): Convert definition to ISO C.
2787 (signal_print_update): Ditto.
2788 (signal_pass_update): Ditto.
2789 * inflow.c (terminal_save_ours): Ditto.
2790
5247b418
AC
2791 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2792 comments.
2793
fc60962c
AC
2794 * config/djgpp/fnchange.lst: Handle name clashes between
2795 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2796 bfd/coff-tic80.c.
2797
0542c381
AC
2798 * i386-linux-tdep.h: Fix tipo.
2799
5b924b9b
AF
28002002-09-18 Adam Fedor <fedor@gnu.org>
2801
2802 * MAINTAINERS: Add myself to the Write After Approval list.
2803
5afc051b
JB
28042002-09-18 Jim Blandy <jimb@redhat.com>
2805
2806 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2807 texthigh and textlow to reader-specific structs caused
2808 objfile_relocate to miss them. This is fixable, but the work that
2809 the change was supposed to prepare GDB for never got done anyway.
2810
eb944380
DC
28112002-09-18 David Carlton <carlton@math.stanford.edu>
2812
2813 * MAINTAINERS: Alphabetize Write After Approval list.
2814
948e66d9
DJ
28152002-09-18 Daniel Jacobowitz <drow@mvista.com>
2816
2817 Fix PR gdb/709
2818 * values.c (value_static_field): Call read_var_value.
2819
dc604539
AC
28202002-09-18 Andrew Cagney <ac131313@redhat.com>
2821
2822 * valops.c (hand_function_call): Align the initial stack pointer
2823 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2824 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2825 return value.
2826 * mips-tdep.c (mips_frame_align): New function.
2827 (mips_gdbarch_init): Set frame_align.
2828 * gdbarch.sh (FRAME_ALIGN): New method.
2829 * gdbarch.h, gdbarch.c: Re-generate.
2830
cb7e422f
ML
28312002-09-18 Michal Ludvig <mludvig@suse.cz>
2832
2833 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2834 registers.
2835
a094c6fb
AC
28362002-09-17 Andrew Cagney <ac131313@redhat.com>
2837
2838 * NEWS: Mention that MIPS $fp behavior changed.
2839 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2840 reference to FP_REGNUM.
2841 (mipsnbsd_cannot_store_register): Ditto.
2842 * mips-linux-nat.c: Update copyright.
2843 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2844 (mips_linux_cannot_store_register): Ditto.
2845 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2846 * config/mips/tm-mips.h: Update copyright.
2847 (FP_REGNUM): Delete macro.
2848 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2849 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2850 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2851 (mips_r3041_reg_names, mips_r3051_reg_names)
2852 (mips_r3081_reg_names): Replace "fp" with "".
2853 Fix PR gdb/480.
2854
45cf40d1
TR
28552002-09-17 Theodore A. Roth <troth@verinet.com>
2856
2857 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2858 generic_read_register_dummy() (PR gdb/703).
2859 (avr_push_return_address): #if 0 out unused vars.
2860 (avr_gdbarch_init): Enable use of avr_push_return_address().
2861
c7e701b5
MS
28622002-09-17 Michael Snyder <msnyder@redhat.com>
2863
d76ba2a5 2864 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
2865 RTE will take care of it.
2866
20bcf01c
AC
28672002-09-17 Andrew Cagney <ac131313@redhat.com>
2868
2869 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2870 invalid, return SP_REGNUM.
2871
009a9971 28722002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
2873
2874 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2875 point registers without sign extension.
2876
135c175f
AC
28772002-09-17 Andrew Cagney <cagney@redhat.com>
2878
2879 * blockframe.c (deprecated_read_register_dummy): Rename
2880 generic_read_register_dummy.
2881 * frame.c (frame_unwind_signed_register): New function.
2882 (frame_unwind_unsigned_register): New function.
2883 * frame.h (frame_unwind_signed_register): Declare.
2884 (frame_unwind_unsigned_register): Declare.
2885 (deprecated_read_register_dummy): Rename
2886 generic_read_register_dummy.
2887
2888 * h8300-tdep.c (h8300_frame_chain): Update.
2889 (h8300_frame_saved_pc): Update.
2890 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2891 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2892 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2893 (s390_frame_chain): Update.
2894 * v850-tdep.c (v850_find_callers_reg): Update.
2895 (v850_frame_saved_pc): Update.
2896 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2897 (m32r_find_callers_reg): Update.
2898 (m32r_frame_saved_pc): Update.
2899 * sh-tdep.c (sh_find_callers_reg): Update.
2900 (sh64_get_saved_pr): Update.
2901 (sh_init_extra_frame_info): Update.
2902 (sh_init_extra_frame_info): Update.
2903 (sh64_init_extra_frame_info): Update.
2904 (sh64_init_extra_frame_info): Update.
2905 * mcore-tdep.c (mcore_find_callers_reg): Update.
2906 (mcore_frame_saved_pc): Update.
2907 (mcore_init_extra_frame_info): Update.
2908 * i386-tdep.c (i386_frame_saved_pc): Update.
2909 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2910 (ia64_init_extra_frame_info): Update.
2911 (ia64_init_extra_frame_info): Update.
2912 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2913 * cris-tdep.c (cris_init_extra_frame_info): Update.
2914 * avr-tdep.c (avr_frame_chain): Update.
2915 (avr_init_extra_frame_info): Update.
2916 (avr_frame_saved_pc): Update.
2917 * arm-tdep.c (arm_find_callers_reg): Update.
2918 (arm_init_extra_frame_info): Update.
2919 (arm_frame_saved_pc): Update.
2920
a741e514
TT
29212002-09-17 Tom Tromey <tromey@redhat.com>
2922
2923 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2924 is "'".
2925
d1a8e808
CV
29262002-09-17 Corinna Vinschen <vinschen@redhat.com>
2927
2928 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2929 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2930 NEXT_PROLOGUE_INSN.
2931 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2932 NEXT_PROLOGUE_INSN.
2933
d9025a18
JB
29342002-09-16 Joel Brobecker <brobecker@gnat.com>
2935
2936 * osfsolib.c: Remove file, replaced by solib-osf.c.
2937 * Makefile.in: Remove compilation rules for osfsolib.c.
2938
1b2ef1b6
DC
29392002-09-16 David Carlton <carlton@math.stanford.edu>
2940
2941 * cp-valprint.c (cp_print_class_method): Correct args to
2942 check_stub_method_group.
2943
928e48af
CV
29442002-09-16 Corinna Vinschen <vinschen@redhat.com>
2945
2946 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2947 `set architecture'. Unify naming convention of functions.
2948 (h8300_skip_prologue): Improve prologue analysis.
2949 (h8300_push_arguments): Rewritten to more closely match GCC's
2950 bizarre argument-passing behavior, along with the comment describing
2951 said behavior.
2952 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2953 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2954 sim, remote-e7000.c, remote-hms.c and remote.c
2955
5e3397bb
MK
29562002-09-15 Mark Kettenis <kettenis@gnu.org>
2957
2958 * i386-tdep.c (gdb_print_insn_i386): Removed.
2959 (i386_print_insn): New function.
2960 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2961 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2962 tm_print_insn_info.
2963
f710f4fc
MK
29642002-09-14 Mark Kettenis <kettenis@gnu.org>
2965
2966 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2967 zero.
2968
db54fef4
CV
29692002-09-14 Corinna Vinschen <vinschen@redhat.com>
2970
2971 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2972 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2973 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2974
2becadee
CF
29752002-09-13 Christopher Faylor <cgf@redhat.com>
2976
2977 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2978
de17c821
DJ
29792002-09-13 Daniel Jacobowitz <drow@mvista.com>
2980
2981 * gdbtypes.c (check_stub_method): Make static.
2982 (check_stub_method_group): New function.
2983 * gdbtypes.h: Update prototypes.
2984 * cp-support.c: New file.
2985 * cp-support.h: New file.
2986
2987 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2988 (update_method_name_from_physname): New function.
2989 (read_member_functions): Correct method names for operators
2990 and v3 constructors/destructors. Separate v2 constructors and
2991 destructors.
2992 * Makefile.in (stabsread.o): Update dependencies.
2993 (SFILES): Add cp-support.c.
2994 (COMMON_OBS): Add cp-support.o.
2995 (cp_support_h, cp-support.o): Add.
2996
2997 * cp-valprint.c (cp_print_class_method): Call
2998 check_stub_method_group instead of check_stub_method. Remove
2999 extraneous QUITs.
3000 * p-valprint.c (pascal_object_print_class_method): Likewise.
3001 * valops.c (search_struct_method): Likewise.
3002 (find_method_list, value_struct_elt_for_reference): Likewise.
3003
e76cff22
AC
30042002-09-13 Andrew Cagney <cagney@redhat.com>
3005
3006 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3007 * gdbarch.h, gdbarch.c: Regenerate.
3008
905abb3f
AC
30092002-09-13 Andrew Cagney <ac131313@redhat.com>
3010
3011 * frame.c (find_saved_register): Delete function.
3012 * frame.h (find_saved_register): Delete declaration.
3013 Fix PR gdb/631.
3014
64159455
AC
3015Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3016
3017 * mips-tdep.c (read_next_frame_reg): Re-hack using
3018 frame_register_unwind.
3019
795e1e11
AC
3020Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3021
3022 * mips-tdep.c (mips_get_saved_register): Re-hack using
3023 frame_register_unwind.
3024
5720643c
JB
30252002-09-12 Joel Brobecker <brobecker@gnat.com>
3026
3027 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3028 vector. Will be useful for Interix.
3029 * gdbarch.h, gdbarch.c: Regenerate.
3030
3031 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3032 name of the malloc function by NAME_OF_MALLOC.
3033
3bada2a2
JB
30342002-09-12 Joel Brobecker <brobecker@gnat.com>
3035
3036 * value.h (find_function_in_inferior): Add const keyword to
3037 one of the parameters. Allows us to invoke this function with
3038 a const char *.
3039 * valops.c (find_function_in_inferior): Likewise.
3040
3db26b01
JB
30412002-09-12 Joel Brobecker <brobecker@gnat.com>
3042
3043 * exec.c (xfer_memory): Fix compilation warning with old versions
3044 of GCC.
3045 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3046
17c5ed2c
DC
30472002-09-12 David Carlton <carlton@math.stanford.edu>
3048
3049 * symtab.h: Run through gdb_indent.h.
3050 Add 2002 to Copyright year list.
3051
ecd1107e
AM
30522002-09-12 Alan Modra <amodra@bigpond.net.au>
3053
3054 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3055 mach constants.
3056 * MAINTAINERS: Add myself to write after approval list.
3057
e64f66d1
JB
30582002-09-11 J. Brobecker <brobecker@gnat.com>
3059
3060 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3061
f9395794
JB
30622002-09-11 J. Brobecker <brobecker@gnat.com>
3063
3064 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3065 Interix.
3066
1a303dec
MS
30672002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3068
3069 * procfs.c (do_detach): Clear current signal, not just fault.
3070 Corrects problem with breakpoint trap signal leaking to detached
3071 process on Tru64.
3072
c0219d42
MS
30732002-09-10 Michael Snyder <msnyder@redhat.com>
3074
3075 * buildsym.c (finish_block): Protect against null pointer.
3076
9d84ac84
AC
30772002-09-10 Andrew Cagney <cagney@redhat.com>
3078
3079 * infcmd.c (default_print_registers_info): Send all output to
3080 ``file'' instead of ``gdb_stdout''.
3081
77d8f2b4
MS
30822002-09-10 Michael Snyder <msnyder@redhat.com>
3083
3084 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3085 LONGEST, and use signed register read (addresses are sign-
3086 extended for mips).
3087
99656a61
SC
30882002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3089
3090 * event-loop.c (gdb_do_one_event): Make public.
3091 * event-loop.h (gdb_do_one_event): Declare.
3092
da12f4d8
JL
30932002-09-10 Jeff Law <law@redhat.com>
3094
3095 * infttrace.c (child_resume): Simplify and rework to avoid
3096 TT_PROC_CONTINUE.
3097
d0aee0c4
FF
30982002-09-09 Fred Fish <fnf@intrinsity.com>
3099
3100 * printcmd.c (print_scalar_formatted): "len" is the number of
3101 target bytes, NOT the number of target bits.
3102
7cb3ec5e
EZ
31032002-09-09 Elena Zannoni <ezannoni@redhat.com>
3104
3105 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3106 * top.c (init_main): Set rl_terminal_name.
3107
4dc81987
AS
31082002-09-08 Aidan Skinner <aidan@velvet.net>
3109
3110 * ada-lang.c (ada_array_bound, ada_type_match,
3111 _initialize_ada_language): Fix K&R definitions.
3112 * ada-tasks.c (get_current_task): Fix K&R definitions.
3113 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3114
842330b4
CF
31152002-09-07 Christopher Faylor <cgf@redhat.com>
3116
3117 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3118 Add XP.
3119
43156d82
MK
31202002-09-06 Mark Kettenis <kettenis@gnu.org>
3121
66da5fd8
MK
3122 * i386-tdep.c (i386_register_virtual_type,
3123 i386_register_convertible, i386_register_convert_to_virtual,
3124 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3125 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3126 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3127 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3128 Don't set push_arguments twice.
3129
4b218c18
MK
3130 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3131 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3132 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3133 sigtramp_end to NULL.
3134 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3135 defines.
3136 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3137
4cc314d5
MK
3138 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3139 whitespace.
3140
43156d82
MK
3141 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3142 * gdbarch.h, gdbarch.c: Re-generate.
3143 * blockframe.c (find_pc_sect_partial_function): Convert to use
3144 SIGTRAMP_START_P predicate.
3145
6672060b
MS
31462002-09-05 Michael Snyder <msnyder@redhat.com>
3147
a90c3637
MS
3148 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3149 generic_dummy_frame method and old method. Also distinguish
3150 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 3151 (arm_extract_return_value): Use new regcache method.
a90c3637 3152
6672060b
MS
3153 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3154 adjustment that doesn't conform to the ABI.
3155 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3156 saved regcache, not from current regcache.
3157
299ffc64
AC
31582002-09-05 Andrew Cagney <ac131313@redhat.com>
3159
3160 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3161 * README: Update.
3162
a3a2ee65
JT
31632002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3164
3165 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3166 if arm_apcs_32 is false.
3167
2bc7eea9
AC
31682002-09-04 Andrew Cagney <ac131313@redhat.com>
3169
3170 GDB 5.3 branch created.
3171
8a55a7c5
TR
31722002-09-03 Theodore A. Roth <troth@verinet.com>
3173
3174 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3175 generic_unwind_get_saved_register.
3176
e26fb1d7
DC
31772002-09-03 David Carlton <carlton@math.stanford.edu>
3178
3179 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3180 argument (PR gdb/653). Update call to smash_to_method_type.
3181 (read_structure_scope): Update call to dwarf2_add_member_fn.
3182
30d52491
ML
31832002-09-03 Michal Ludvig <mludvig@suse.cz>
3184
3185 * x86-64-linux-tdep.c: Include gdb_string.h
3186 * x86-64-linux-nat.c: Ditto.
3187
06891d83
JT
31882002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3189
3190 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3191 when YYDEBUG is set to 1.
3192 * c-exp.y: Likewise.
3193 * f-exp.y: Likewise.
3194 * jv-exp.y: Likewise.
3195 * m2-exp.y: Likewise.
3196 * p-exp.y: Likewise.
3197
7d400e77
JT
31982002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3199
3200 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3201 dependency list.
3202 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3203 solib_svr4_fetch_link_map_offsets to
3204 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3205 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3206 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3207 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3208 solib-svr4.o, and solib-legacy.o.
3209 * config/i386/tm-nbsd.h: Include solib.h.
3210
704a27c4
JT
32112002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3212
3213 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3214 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3215 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3216 comment noting that this needs its own target configuration.
3217 * config/i386/nbsd.mt: New file.
3218 * config/i386/nbsdaout.mt: Remove.
3219 * config/i386/nbsdelf.mt: Ditto.
3220 * config/i386/tm-nbsdaout.h: Ditto.
3221
d66198e1
JT
32222002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3223
3224 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3225 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3226 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3227 tdep->sigtramp_end.
3228 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3229 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3230 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3231
3cac699e
JT
32322002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3233
3234 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3235 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3236 * i386-tdep.h (i386bsd_init_abi): New prototype.
3237 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3238 function declaration.
3239 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3240 for NetBSD-a.out or NetBSD-ELF.
3241 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3242 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3243 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3244 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3245 and nbsd-tdep.h.
3246 (i386nbsd_pc_in_sigtramp): New function.
3247 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3248 i386nbsd_pc_in_sigtramp.
3249 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3250 and i386nbsdelf_init_abi OS ABI handlers.
3251 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3252 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3253
7010ca0a
MK
32542002-09-02 Mark Kettenis <kettenis@gnu.org>
3255
3256 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3257 registers if the target really has them.
3258
6dd93b72
JT
32592002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3260
3261 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3262 than nbsd-tdep.h.
3263
2ca8ae21
JT
32642002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3265
3266 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3267 list.
3268 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3269 (alphanbsd_skip_sigtramp_frame): New functions.
3270 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3271 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3272 to alphanbsd_sigcontext_addr.
3273
3d9b49b0
JT
32742002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3275
3276 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3277 list.
3278 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3279 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3280 nbsd_pc_in_sigtramp.
3281 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3282 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3283 * nbsd-tdep.c: Include gdb_string.h.
3284 (nbsd_pc_in_sigtramp): New function.
3285 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3286 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3287 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3288 ppcnbsd_pc_in_sigtramp.
3289 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3290 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3291 shnbsd_pc_in_sigtramp.
3292 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3293 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3294 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3295
c860120c
PM
32962002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3297
3298 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3299 watchpoints to NULL.
3300 (insert_breakpoints): set val field of watchpoints if NULL.
3301
3302
c7612d53
JB
33032002-08-29 Jim Blandy <jimb@redhat.com>
3304
3305 * symtab.c (lookup_symbol_aux): In the cases where we find a
3306 minimal symbol of an appropriate name and use its address to
3307 select a symtab to read and search, use `name' (as passed to us)
3308 as the demangled name when searching the symtab's global and
3309 static blocks, not the minsym's name.
3310
66609862
KS
33112002-08-29 Keith Seitz <keiths@redhat.com>
3312
3313 * stack.c (print_frame_info_base): Always set current_source_symtab
3314 and current_source_line.
3315
151fefe2
JB
33162002-08-29 Donn Terry <donnte@microsoft.com>
3317
3318 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3319
bfb3754e
KS
33202002-08-28 Keith Seitz <keiths@redhat.com>
3321
3322 * stack.c (select_frame): Add FIXME concerning selected-frame
3323 events.
3324 (select_frame_command): Send selected-frame-level-changed
3325 event notification, but only if the level actually changed.
3326 (up_silently_base): Add selected-frame-level-changed event
3327 notification.
3328 (down_silently_base): Likewise.
3329
e822a2a0
AC
33302002-08-28 Andrew Cagney <ac131313@redhat.com>
3331
3332 * Makefile.in: Update dependencies for all gdb/*.c files.
3333
309367d4
TT
33342002-08-27 Tom Tromey <tromey@redhat.com>
3335
3336 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3337 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3338 Update dependencies.
3339 * i387-tdep.c: Include gdb_string.h.
3340 * osabi.c: Likewise.
3341 * i386-linux-nat.c: Likewise.
3342 * lin-lwp.c: Likewise.
3343 * ax-gdb.c: Likewise.
3344 * signals/signals.c: Likewise.
3345 * jv-valprint.c: Likewise.
3346 * p-lang.c: Likewise.
3347 * c-valprint.c: Likewise.
3348 * cp-abi.c: Likewise.
3349
e1507482
EZ
33502002-08-27 Elena Zannoni <ezannoni@redhat.com>
3351
3352 * cli/cli-script.h (copy_command_lines): Export.
3353 * breakpoint.c: Include cli/cli-script.h.
3354 * Makefile.in (breakpoint.o): Update dependencies.
3355
c6510018
MS
33562002-08-26 Michael Snyder <msnyder@redhat.com>
3357
3358 * breakpoint.c (insert_breakpoints): Protect all references
3359 to 'process_warning'. Shorten long lines.
3360
c2b8ed2c
MS
33612002-08-26 Joel Brobecker <brobecker@gnat.com>
3362
3363 * cli/cli-script.c (copy_command_lines): New function.
3364 * defs.h (copy_command_lines): Export.
3365 * testsuite/gdb.base/commands.exp: New tests for commands
3366 attached to a temporary breakpoint, and for commands that
3367 delete the breakpoint they are attached to.
3368
33692002-08-26 Michael Snyder <msnyder@redhat.com>
3370
3371 * breakpoint.c (bpstat_stop_status): Instead of copying the
3372 pointer to the breakpoint commands struct, make a new copy
3373 of the struct and point to that.
3374 (bpstat_clear): Free the commands struct.
3375 (bpstat_clear_actions): Free the commands struct.
3376 (bpstat_do_actions): Free the command actions. Also execute
3377 the local cleanups, instead of deleting them.
3378 (delete_breakpoint): Leave the commands field of the bpstat
3379 chain alone -- it will be freed later.
3380
64b84175
KB
33812002-08-26 Kevin Buettner <kevinb@redhat.com>
3382
3383 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3384 deleted in 2002-08-20 commit. This function is still used by
3385 ppc-linux-nat.c.
3386
55970da6
KS
33872002-08-26 Keith Seitz <keiths@redhat.com>
3388
3389 * gdb-events.sh: Add selected-frame-level-changed event.
3390 * gdb-events.c: Regenerated.
3391 * gdb-events.h: Regenerated.
3392
a790ad35
SC
33932002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3394
3395 Fix PR gdb/393:
3396 * inflow.c (terminal_save_ours): New function to save terminal
3397 settings.
3398 * inferior.h (terminal_save_ours): Declare.
3399 * target.c (debug_to_terminal_save_ours): New function.
3400 (cleanup_target): Defaults to_terminal_save_ours.
3401 (update_current_target): Inherit to_terminal_save_ours.
3402 (setup_target_debug): Set to_terminal_save_ours.
3403 * target.h (target_terminal_save_ours): New to save terminal settings.
3404 (target_ops): New member to_terminal_save_ours.
3405 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3406 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3407 * inftarg.c (init_child_ops): Likewise.
3408 * m3-nat.c (init_m3_ops): Likewise.
3409 * procfs.c (init_procfs_ops): Likewise.
3410 * wince.c (init_child_ops): Likewise.
3411 * win32-nat.c (init_child_ops): Likewise.
3412 * sol-thread.c (init_sol_thread_ops): Likewise.
3413
c00dcbe9
MK
34142002-08-26 Mark Kettenis <kettenis@gnu.org>
3415
3d7f4f49
MK
3416 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3417 use regcache_* functions.
3418 (i386_gdbarch_init): Set store_return_value instead of
3419 deprecated_store_return_value.
3420
c00dcbe9
MK
3421 * regcache.c (regcache_raw_write_signed,
3422 regcache_raw_write_unsigned): New functions.
3423 * regcache.h (regcache_raw_write_signed,
3424 regcache_raw_write_unsigned): New prototypes.
3425
0e0d15ca
AC
34262002-08-25 Andrew Cagney <ac131313@redhat.com>
3427
3428 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3429 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3430 source file dependencies. Cleanup corresponding generator rules.
3431
d3b22ed5
AC
34322002-08-25 Andrew Cagney <ac131313@redhat.com>
3433
3434 * regcache.h (register_offset_hack): Declare.
3435 (regcache_cooked_read_using_offset_hack): Declare.
3436 (regcache_cooked_write_using_offset_hack): Declare.
3437
3438 * regcache.c (register_offset_hack): New function.
3439 (regcache_cooked_read_using_offset_hack): New function.
3440 (regcache_cooked_write_using_offset_hack): New function.
3441 (regcache_dump): Check that the registers, according to their
3442 offset, are packed hard against each other.
3443 (cooked_xfer_using_offset_hack): New function.
3444
bb425013
AC
34452002-08-25 Andrew Cagney <ac131313@redhat.com>
3446
3447 * regcache.c (struct regcache_descr): Add field register_type.
3448 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3449 in as a parameter
3450 (init_regcache_descr): Initialize register_type. Pass the descr
3451 to init_legacy_regcache_descr. Use register_type instead of
3452 REGISTER_VIRTUAL_TYPE.
3453 (register_type): New function.
3454 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3455 * regcache.h (register_type): Declare.
3456
d0403e00
AC
34572002-08-25 Andrew Cagney <ac131313@redhat.com>
3458
3459 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3460 instead of deprecated_store_return_value. Fix fallout from
3461 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3462
0ed04cce
AC
34632002-08-25 Andrew Cagney <ac131313@redhat.com>
3464
3465 * regcache.c (max_register_size): New function.
3466 (init_legacy_regcache_descr): Ensure that max_register_size is
3467 large enough for REGISTER_VIRTUAL_SIZE.
3468 * regcache.h (max_register_size): Declare.
3469
46d79c04
AC
34702002-08-24 Andrew Cagney <ac131313@redhat.com>
3471
3472 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3473 store_return_value.
3474 (e500_extract_return_value): Change type of valbuf pointer to
3475 void.
3476
853c7bd0
MK
34772002-08-24 Mark Kettenis <kettenis@gnu.org>
3478
cd87e769
MK
3479 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3480 workaround.
3481
853c7bd0
MK
3482 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3483 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3484 long long) to prevent compiler warning on 64-bit systems.
3485
ebba8386
AC
34862002-08-23 Andrew Cagney <cagney@redhat.com>
3487
3488 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3489 (DEPRECATED_STORE_RETURN_VALUE): New method.
3490 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3491 * gdbarch.h, gdbarch.c: Re-generate.
3492
3493 * values.c (set_return_value): Pass current_regcache to
3494 STORE_RETURN_VALUE.
3495 * arch-utils.h (legacy_store_return_value): Declare.
3496 * arch-utils.c (legacy_store_return_value): New function.
3497 (legacy_extract_return_value): Update parameters.
3498
3499 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3500 STORE_RETURN_VALUE.
3501 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3502 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3503 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3504 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3505 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3506 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3507 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3508 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3509 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3510 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3511
3512 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3513 * i386-tdep.c (i386_extract_return_value): Update.
3514 * arch-utils.c (legacy_extract_return_value): Update.
3515 * frv-tdep.c (frv_gdbarch_init): Update.
3516 * cris-tdep.c (cris_gdbarch_init): Update.
3517 * d10v-tdep.c (d10v_gdbarch_init): Update.
3518 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3519 * m68k-tdep.c (m68k_gdbarch_init): Update.
3520 * mcore-tdep.c (mcore_gdbarch_init): Update.
3521 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3522 * s390-tdep.c (s390_gdbarch_init): Update.
3523 * sparc-tdep.c (sparc_gdbarch_init): Update.
3524 * sh-tdep.c (sh_gdbarch_init): Update.
3525 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3526 * v850-tdep.c (v850_gdbarch_init): Update.
3527 * avr-tdep.c (avr_gdbarch_init): Update.
3528 * ia64-tdep.c (ia64_gdbarch_init): Update.
3529 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3530 * vax-tdep.c (vax_gdbarch_init): Update.
3531 * alpha-tdep.c (alpha_gdbarch_init): Update.
3532 * arm-tdep.c (arm_gdbarch_init): Update.
3533 * mips-tdep.c (mips_gdbarch_init): Update.
3534 * i386-tdep.c (i386_gdbarch_init): Update.
3535
5bd8c6d0
AC
35362002-08-23 Andrew Cagney <ac131313@redhat.com>
3537
3538 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3539 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3540
e73e1724
MK
35412002-08-24 Mark Kettenis <kettenis@gnu.org>
3542
3543 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3544 problems.
3545
3e6564e1
JB
35462002-08-23 Joel Brobecker <brobecker@gnat.com>
3547
3548 * infrun.c (handle_inferior_event): Move a comment outside of a
3549 function call, in order to avoid indent reformatting this part
3550 of the code in an unreadable way.
3551
81d0cc19
GS
35522002-08-23 Grace Sainsbury <graces@redhat.com>
3553
3554 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3555 when breakpoints fail. Move general breakpoint error messages to
3556 insert_breakpoints.
3557 * breakpoint.c (insert_breakpoints): Change warnings when
3558 breakpoints are nto inserted to specify the type. Remove call to
3559 memory_error when hardware breakpoints can't be inserted. Remove
3560 multiple calls to warning so all messages are sent to the user at
3561 once.
3562 (delete_breakpoints): Make insert error messsages more explicit.
3563
17574093
DJ
35642002-08-23 Daniel Jacobowitz <drow@mvista.com>
3565
3566 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3567 gdbserver/ChangeLog.
3568
8acc2935
MK
35692002-08-23 Mark Kettenis <kettenis@gnu.org>
3570
dfe01d39
MK
3571 * i386-tdep.c: Include "objfiles.h".
3572 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3573 skip_trampoline_code.
3574 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3575 (CPLUS_MARKER): Define to '.'.
3576
8acc2935
MK
3577 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3578 member.
3579 (linux_corefile_thread_callback): Increase args->num_notes.
3580 (linux_make_note_section): Initialize thread_args.num_notes, and
3581 use it to determine whether notes for any threads were created.
3582
151fefe2 35832002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3584
3585 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3586 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3587 and PCUNKILL.
3588 (write_with_trace): Conditionalize out the switch branch handling
3589 PCSHOLD if the corresponding macro is not defined. Likewise for
3590 PRSABORT and PRSTOP.
3591 This change will be needed by the Interix port.
3592
e1507482
EZ
35932002-08-22 Elena Zannoni <ezannoni@redhat.com>
3594
3595 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3596 write_register wherever possible instead of manipulating the
3597 register bytes directly.
3598 Assign VALUE_CONTENTS to a variable and use that.
3599 The GPR numbers are now dependent on the architecture.
3600
96ff0de4
EZ
36012002-08-22 Elena Zannoni <ezannoni@redhat.com>
3602
3603 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3604 ev_offset fields.
3605 (skip_prologue): Add support for BookE/e500 instructions.
3606 (e500_extract_return_value): New function.
3607 (frame_get_saved_regs): Add support for saving ev registers and
3608 pseudo gpr's.
3609 (e500_store_return_value): New function.
3610 (rs6000_gdbarch_init): Move up default intializations of
3611 deprecated_extract_return_value and store_return_value. Overwrite
3612 init of store_return_value with e500 specific version.
3613 Set extract_return_value for e500.
3614
fbefca5b
EZ
36152002-08-22 Elena Zannoni <ezannoni@redhat.com>
3616
3617 * blockframe.c (generic_call_dummy_register_unwind): Use
3618 regcache_cooked_read to catch cases in which the variable is
3619 stored in a pseudo register.
3620
4d210288
AC
36212002-08-22 Andrew Cagney <cagney@redhat.com>
3622
3623 * NEWS: Mention that the i960 has been made obsolete.
3624 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3625 i960-tdep.c
3626 (remote-nrom.o): Obsolete target.
3627 (remote-nindy.o, i960-tdep.o): Ditto.
3628 * remote-nrom.c: Make file obsolete.
3629 * remote-nindy.c, remote-vx960.c: Ditto.
3630 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3631 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3632 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3633 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3634 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3635 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3636 i960-*-vxworks* obsolete.
3637 * MAINTAINERS: Note that the i960 is obsolete.
3638
6c0c456d
CV
36392002-08-21 Corinna Vinschen <vinschen@redhat.com
3640
3641 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3642 detach to allow reinitialization.
3643
9f9d12b3
AC
36442002-08-22 Andrew Cagney <ac131313@redhat.com>
3645
3646 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3647 attempt).
3648
ebeb39fe
JB
36492002-08-22 Jim Blandy <jimb@redhat.com>
3650
3651 * coffread.c (coff_symfile_read): Don't try to read the line
3652 number table from disk if the image file doesn't have a symbol
3653 table; we'll never actually look at the info anyway, and Windows
3654 ships DLL's with bogus file offsets for the line number data.
3655
5bf1c677
EZ
36562002-08-21 Elena Zannoni <ezannoni@redhat.com>
3657
3658 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3659 an e500 executable.
3660
71b8ef93
MS
36612002-08-21 Michael Snyder <msnyder@redhat.com>
3662
3663 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3664 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
3665 (DEFAULT_MIPS_TYPE): Delete unused macro.
3666 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3667 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 3668
d174216d
JB
36692002-08-21 Jim Blandy <jimb@redhat.com>
3670
3671 * valops.c (value_cast): Simplify and correct logic for doing a
3672 static cast from a pointer to a base class to a pointer to a
3673 derived class.
3674
0ab7a791
AC
36752002-08-21 Andrew Cagney <ac131313@redhat.com>
3676
3677 * infcmd.c (default_print_registers_info): Replace
3678 do_registers_info.
3679 (registers_info): Use gdbarch_print_registers_info instead of
3680 DO_REGISTERS_INFO.
3681 * inferior.h (default_print_registers_info): Replace
3682 do_registers_info.
3683 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3684 (DO_REGISTERS_INFO): Change to a predicate function.
3685 * gdbarch.h, gdbarch.c: Regenerate.
3686
e23792cc
KS
36872002-08-21 Keith Seitz <keiths@redhat.com>
3688
3689 * gdb-events.sh: Add target-changed event.
3690 * gdb-events.c: Regenerated.
3691 * gdb-events.c: Regenerated.
3692 * valops.c (value_assign): Add target-changed event notification
3693 to inlval_register, lval_memory, and lval_reg_frame_relative.
3694
9fb14e79
JB
36952002-08-21 Joel Brobecker <brobecker@gnat.com>
3696
3697 * NEWS: Add an entry regarding the improvement of the next/step
3698 operation on Alpha Tru64 multi-processor machines.
3699
6d39a69f
AC
37002002-08-21 Andrew Cagney <ac131313@redhat.com>
3701
72acd513
AC
3702 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3703 directores.
342af04b 3704 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
3705 * Makefile.in (install-gdbtk): Move to install section.
3706 (rdi-share/libangsd.a): Move to end of file.
3707
fa5f27c7
AC
37082002-08-19 Andrew Cagney <ac131313@redhat.com>
3709
3710 * frame.c (frame_register_unwind): When a register, set addrp to
3711 the register's byte.
3712
5a89d8aa
MS
37132002-08-20 Michael Snyder <msnyder@redhat.com>
3714
3715 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3716 used locally, so move them from the target machine header to here.
3717 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3718 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3719 Make static.
3720 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3721
822e978b
AC
37222002-08-20 Andrew Cagney <cagney@redhat.com>
3723
3724 * NEWS: Mention that the Apollo line was made obsolete.
3725 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3726 m68*-hp-hpux* obsolete.
3727 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3728 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3729 * buildsym.c (make_blockvector): Make static.
3730 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3731 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3732 (ALLDEPFILES): Remove dstread.c.
3733 (dstread.o): Obsolete make rule.
3734 * dstread.c: Makefile obsolete.
3735 * dst.h: Ditto.
3736 * config/m68k/hp300hpux.mt: Ditto.
3737 * config/m68k/hp300hpux.mh: Ditto.
3738 * config/m68k/hp300bsd.mt: Ditto.
3739 * config/m68k/hp300bsd.mh: Ditto.
3740 * config/m68k/apollo68b.mt: Ditto.
3741 * config/m68k/apollo68v.mh: Ditto.
3742 * config/m68k/apollo68b.mh: Ditto.
3743
e41b17f0
MS
37442002-08-20 Michael Snyder <msnyder@redhat.com>
3745
3746 * mips-tdep.c (mips_in_return_stub): Make static.
3747 (mips_gdbarch_init): Set in_solib_return_trampoline.
3748 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3749
d50355b6
MS
37502002-08-20 Michael Snyder <msnyder@redhat.com>
3751
3752 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3753 * gdbarch.c, gdbarch.h: Regenerate.
3754 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3755 Add.
3756 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3757
757a7cc6
MS
37582002-08-20 Michael Snyder <msnyder@redhat.com>
3759
3760 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3761 (mips_gdbarch_init): Set skip_trampoline_code,
3762 in_solib_call_trampoline.
3763 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3764 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3765
c8001721
EZ
37662002-08-20 Elena Zannoni <ezannoni@redhat.com>
3767
3768 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3769
3770 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3771 vector type for ev registers.
3772 (e500_pseudo_register_read): New function.
3773 (e500_pseudo_register_write): New function.
3774 (e500_dwarf2_reg_to_regnum): New function.
3775 (PPC_UISA_NOFP_SPRS): New macro.
3776 (PPC_EV_REGS): New macro.
3777 (PPC_GPRS_PSEUDO_REGS): New macro.
3778 (registers_e500): New register set for e500.
3779 (variants): Add e500 variant.
3780 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3781 before setting architectural dependent variations. Initialize ev
3782 registers numbers. Add case for e500 architecture. Set the
3783 number of pseudo registers.
3784
64366f1c
EZ
37852002-08-20 Elena Zannoni <ezannoni@redhat.com>
3786
3787 * rs6000-tdep.c: Clean up comments.
3788
7e78f0ca
AC
37892002-08-20 Andrew Cagney <cagney@redhat.com>
3790
3791 * h8300-tdep.c: Re-indent file.
3792
697f7479
JB
37932002-08-20 Jim Blandy <jimb@redhat.com>
3794
3795 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3796 default for this.
697f7479 3797
e86ae29f
KS
37982002-08-20 Keith Seitz <keiths@redhat.com>
3799
3800 * breakpoints.c (watch_command_1): Use internal breakpoint
3801 when setting a watchpoint_scope breakpoint.
3802
216b504f
EZ
38032002-08-20 Elena Zannoni <ezannoni@redhat.com>
3804
3805 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3806 (build_builtin_type_vec64i): Ditto.
3807 (build_builtin_type_vec128): Ditto.
3808 (build_builtin_type_vec128i): Ditto.
3809
f7ab6ec6
MS
38102002-08-19 Michael Snyder <msnyder@redhat.com>
3811
3812 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3813 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3814 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3815 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3816 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3817 CALL_DUMMY_ADDRESS): Delete.
3818 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3819 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3820 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3821 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3822 push_return_address.
3823 (mips_register_raw_size, mips_eabi_use_struct_convention,
3824 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3825 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3826 mips_init_extra_frame_info, mips_eabi_push_arguments,
3827 mips_n32n64_push_arguments, mips_push_return_address,
3828 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3829 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3830
b5d1566e
MS
38312002-08-19 Michael Snyder <msnyder@redhat.com>
3832
3833 * mips-tdep.c (mips_frame_num_args): New function.
3834 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3835 frame_saved_pc, frame_args_address, frame_locals_address,
3836 frame_num_args, and frame_args_skip.
3837 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3838 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3839 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3840 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3841
2f1488ce
MS
38422002-08-20 Michael Snyder <msnyder@redhat.com>
3843
3844 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3845 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3846 * mips-tdep.c (mips_store_struct_return): New function.
3847 (mips_extract_struct_value_address): New function.
3848 (mips_gdbarch_init): Set store_struct_return and
3849 extract_struct_value_address.
3850
41ff2da1
DC
38512002-08-20 David Carlton <carlton@math.stanford.edu>
3852
3853 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3854 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3855 (read_file_scope): Check that line_header is nonzero before
3856 decoding macro information.
3857
e5451d58
MK
38582002-08-20 Mark Kettenis <kettenis@gnu.org>
3859
3860 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3861 flag the general-purpose registers as floating-point on targets
3862 that don't support the floating-point registers.
3863
4a6daafa
EZ
38642002-08-20 Elena Zannoni <ezannoni@redhat.com>
3865
3866 * rs6000-tdep.c (altivec_register_p): Delete.
3867 (rs6000_do_altivec_registers): Delete.
3868 (rs6000_altivec_registers_info): Delete.
3869 (rs6000_do_registers_info): Delete.
3870 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3871 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3872
ab4327e0
EZ
38732002-08-20 Elena Zannoni <ezannoni@redhat.com>
3874
3875 * infcmd.c (do_registers_info): Print vector registers in hex
3876 format only.
3877 (print_vector_info): Check that printing registers
3878 makes sense.
3879 (print_float_info): Ditto.
3880
cb1d2653
AC
38812002-08-20 Andrew Cagney <ac131313@redhat.com>
3882
3883 * mips-tdep.c (mips_gdbarch_init): Update.
3884 (mips_o32_extract_return_value): Rewrite.
3885 (mips_o32_store_return_value): Rewrite.
3886 (mips_o32_xfer_return_value): New function.
3887 (mips_xfer_register): Tweak debug print message. Allow for
3888 buf_offset when dumping the value transfered.
3889
dfc3d9b2
AC
38902002-08-20 Andrew Cagney <ac131313@redhat.com>
3891
3892 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3893 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3894 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3895 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3896 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3897
7807aa61
MS
38982002-08-14 Michael Snyder <msnyder@redhat.com>
3899
3900 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3901
489461e2
EZ
39022002-08-19 Elena Zannoni <ezannoni@redhat.com>
3903
3904 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3905 register.
3906 (P): New macro to define a register as a pseudo register.
3907 (R, R4, R8, R16, FR32, R64, R0): Updated.
3908 (struct variant): Add new fields for number of pseudo registers
3909 and number of total registers.
3910 (tot_num_registers): New macro replacing....
3911 (num_registers): ...deleted macro.
3912 (num_registers): New function.
3913 (num_pseudo_registers): New function.
3914 (variants): Update all variants to intialize new fields correctly.
3915 Postpone initialization of number of pseudo regs and real regs.
3916 (init_variants): New function.
3917 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3918 registers offsets.
3919
fcaffe4c
DC
39202002-08-19 David Carlton <carlton@math.stanford.edu>
3921
2c2738a0
DC
3922 * valops.c (search_struct_field): Change error message to treat
3923 return value of 0 from value_static_field as meaning that field is
3924 optimized out.
3925 (value_struct_elt_for_reference): Ditto.
3926 * values.c (value_static_field): Treat an unresolved location the
3927 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
3928 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3929 enclosed. Fix PR gdb/574.
fcaffe4c
DC
3930 * MAINTAINERS: Add self to Write After Approval list.
3931
88658117
AC
39322002-08-19 Andrew Cagney <ac131313@redhat.com>
3933
3934 * mips-tdep.c (mips_xfer_register): New function.
3935 (mips_n32n64_extract_return_value): Rewrite.
3936 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3937 instead of deprecated_extract_return_value.
3938
21283beb
EZ
39392002-08-19 Elena Zannoni <ezannoni@redhat.com>
3940
3941 * rs6000-tdep.c (TDEP): Delete macro.
3942 (branch_dest): Replace use of TDEP macro with its body.
3943 (rs6000_pop_frame): Ditto.
3944 (rs6000_push_arguments): Ditto.
3945 (rs6000_skip_trampoline_code): Ditto.
3946 (rs6000_frame_saved_pc): Ditto.
3947 (rs6000_frame_chain): Ditto.
3948 (rs6000_register_name): Ditto.
3949 (rs6000_register_byte): Ditto.
3950 (rs6000_register_raw_size): Ditto.
3951 (rs6000_register_virtual_type): Ditto.
3952 (rs6000_register_convertible): Ditto.
3953 (rs6000_convert_from_func_ptr_addr): Ditto.
3954
bf072999
DJ
39552002-08-19 Daniel Jacobowitz <drow@mvista.com>
3956
3957 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3958 conditionally.
3959 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3960 MIPS_LINUX_JB_ELEMENT_SIZE.
3961 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3962 for MAX_REGISTER_RAW_SIZE arrays.
3963 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3964 MIPS_LINUX_JB_ELEMENT_SIZE.
3965
9b949a49
PM
39662002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3967
3968 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3969
6d3e79c6
AS
39702002-08-19 Aidan Skinner <aidan@velvet.net>
3971
3972 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3973 ada-valprint.c ada-tasks.c.
3974 (YYFILES): Add ada-exp.y.
3975 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3976 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3977 (ada-exp.tab.o): New target.
3978
06c0b04e
AC
39792002-08-18 Andrew Cagney <ac131313@redhat.com>
3980
3981 * regcache.c (regcache_xfer_part): New function.
3982 (regcache_raw_read_part): New function.
3983 (regcache_raw_write_part): New function.
3984 (regcache_cooked_read_part): New function.
3985 (regcache_cooked_write_part): New function.
3986 * regcache.h (regcache_raw_read_part): Declare.
3987 (regcache_raw_write_part): Declare.
3988 (regcache_cooked_read_part): Declare.
3989 (regcache_cooked_write_part): Declare.
3990
92d1e331
DJ
39912002-08-18 Daniel Jacobowitz <drow@mvista.com>
3992
3993 * remote.c (remote_open_1): Add async_p.
3994 (remote_async_open_1): Delete.
3995 (open_remote_target): Delete.
3996 (remote_open, extended_remote_open): Update calls to remote_open_1.
3997 (remote_async_open, extended_remote_async_open): Call
3998 remote_open_1 instead of remote_async_open_1.
3999
247055de
MK
40002002-08-19 Mark Kettenis <kettenis@gnu.org>
4001
4002 * blockframe.c: Fix a few coding standard violations.
4003
641eda39
MK
40042002-08-19 Mark Kettenis <kettenis@gnu.org>
4005
0b717710
MK
4006 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4007 here from ...
4008 * config/i386/tm-i386sco5.h: ... here. File removed.
4009 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4010
26d28e12 4011 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
4012 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4013 (TM_FILE): Set to tm-i386.h.
4014 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4015 * config/i386/tm-i386v.h: Remove file.
4016 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4017 instead of "i386/tm-i386v.h".
4018 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4019 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4020 "i386/tm-i386v.h".
4021 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4022 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4023 "i386/tm-i386.h".
4024
d4e0bab4
MK
40252002-08-18 Mark Kettenis <kettenis@gnu.org>
4026
4027 * config/i386/nm-i386v.h: Add protection against
4028 multiple-inclusion.
4029 (i386_register_u_addr): Remove prototype.
4030 (register_u_addr): New prototype.
4031 (REGISTER_U_ADDR): Redefine accordingly.
4032 * i386v-nat.c: Improve several comments.
4033 (i386_register_u_addr): Change signature and rename to
4034 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4035 ubase variable.
4036
46cac009
AC
40372002-08-18 Andrew Cagney <ac131313@redhat.com>
4038
4039 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4040 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4041 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4042 deprecated_extract_return_value.
4043 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4044 rename mips_o32o64_push_arguments.
4045 (mips_gdbarch_init): Update.
4046 (mips_extract_return_value): Delete.
4047 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4048 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4049 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4050 (mips_n32n64_extract_return_value): Clone
4051 mips_extract_return_value.
4052 (mips_store_return_value): Delete.
4053 (mips_o32_store_return_value): Clone mips_store_return_value.
4054 (mips_o64_store_return_value): Clone mips_store_return_value.
4055 (mips_eabi_store_return_value): Clone mips_store_return_value.
4056 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4057
d2e4a39e
AS
40582002-08-18 Aidan Skinner <aidan@velvet.net>
4059
0c30c098
AS
4060 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4061 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4062
40632002-08-18 Aidan Skinner <aidan@velvet.net>
4064
4065 * ada-lang.c: Run through gdb_indent.sh.
4066 * ada-lang.h: Run through gdb_indent.sh.
4067 * ada-tasks.c: Run through gdb_indent.sh.
4068 * ada-typeprint.c: Run through gdb_indent.sh.
4069 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 4070
01fc4e33
AC
40712002-08-18 Andrew Cagney <ac131313@redhat.com>
4072
4073 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4074 ABI.
4075
d8ee244c
MK
40762002-08-18 Mark Kettenis <kettenis@gnu.org>
4077
c38d8261
MK
4078 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4079
222db64c
MK
4080 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4081 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4082
c2848c82
MK
4083 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4084 write_register_gen instead of write_register_bytes.
4085
d8ee244c
MK
4086 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4087 i[3456]-*-osf1mk* configurations have been made obsolete.
4088 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4089 i[3456]86-*-osf1mk* hosts obsolete.
4090 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4091 targets obsolete.
4092 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4093 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4094 config/i386/i386m3.mt, config/i386/nm-m3.h,
4095 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4096 config/i386/i386mk.mh, config/i386/i386mk.mt,
4097 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4098 obsolete.
4099 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4100 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4101 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4102
61d8d407
AC
41032002-08-18 Andrew Cagney <ac131313@redhat.com>
4104
4105 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4106 (hppa_value_returned_from_stack): Declare.
4107 (hppa_extract_return_value): Declare.
4108 * config/pa/hppa.mt: New file.
4109 * configure.tgt: Recognize hppa*-*-*.
4110 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4111
0c52bd59
MK
41122002-08-18 Mark Kettenis <kettenis@gnu.org>
4113
4114 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4115 comment.
4116
b5686e99
MK
41172002-08-17 Mark Kettenis <kettenis@gnu.org>
4118
4119 * top.c (gdb_rl_operate_and_get_next): Make sure
4120 operate-and-get-next functions correctly even when the history
4121 list is completely filled.
4122
c1bab85b
AC
41232002-08-18 Andrew Cagney <ac131313@redhat.com>
4124
4125 * MAINTAINERS (Target Instruction Set Architectures): Rename
4126 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4127 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4128 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4129 already listed under Host/Native.
4130
4131 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4132 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4133 mips*-*-*.
4134
32089c7c
AC
41352002-08-17 Andrew Cagney <ac131313@redhat.com>
4136
4137 * config/ia64/ia64.mt: New file.
4138 * config/alpha/alpha.mt: New file.
4139 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4140 ia64-linux-gnu. Mention that ia64-elf is broken.
4141 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4142
b4671f85
MK
41432002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4144
4145 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4146 generic_func_frame_valid instead of func_frame_valid.
4147
c8edd8b4
JB
41482002-08-16 Joel Brobecker <brobecker@gnat.com>
4149
4150 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4151 procfs appears to be broken when debugging on multi-processor
4152 machines. So enable software single stepping in order to avoid
4153 using the procfs interface to do next/step operations, using
4154 internal breakpoints instead.
4155
4156 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4157 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4158 make this pc address equal to the value it would have if the
4159 system stepping capability was used. Also set a new flag used
4160 to ensure that we don't readjust the PC one more time later.
4161
4162 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4163 address by DECR_PC_AFTER_BREAK when software single step is
4164 in use for this architecture, as this has already been taken
4165 care of in handle_inferior_event().
4166
238617f6
JB
41672002-08-16 Joel Brobecker <brobecker@gnat.com>
4168
4169 * infrun.c (handle_inferior_event): Minor reformatting, to make
4170 a rather long condition expression easier to read.
4171
541a7aac
AC
41722002-08-16 Andrew Cagney <ac131313@redhat.com>
4173
4174 * Makefile.in (gdbtk.o): Move to end of file.
4175 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4176 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4177 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4178 (gdbtk-wrapper.o, gdbres.o): Ditto.
4179
f92d4a7b
AC
41802002-08-16 Andrew Cagney <ac131313@redhat.com>
4181
4182 * Makefile.in (copying.o): Separate out compile rule.
4183 (hpux-thread.o, procfs.o, signals.o): Ditto.
4184 (v850ice.o, z8k-tdep.o): Ditto.
4185 (tui-file.o): Move to TUI section.
4186 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4187 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4188
1cce71eb
JB
41892002-08-16 Joel Brobecker <brobecker@gnat.com>
4190
4191 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4192 skip_trampoline_code, for better namespace-proofing.
4193
4194 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4195
0851f23d
JB
41962002-08-16 Joel Brobecker <brobecker@gnat.com>
4197
4198 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4199
f8d40ec8
JB
42002002-08-16 Joel Brobecker <brobecker@gnat.com>
4201
4202 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4203 signal, check whether we hit a breakpoint before checking for a
4204 single step breakpoint. Otherwise, GDB fails to notice that a
4205 breakpoint has been hit when stepping onto a breakpoint.
4206
63d022e0
KS
42072002-08-16 Keith Seitz <keiths@redhat.com>
4208
4209 * gdb-events.sh (clear_gdb_event_hooks): New function.
4210 * gdb-events.c: Regenerate.
4211 * gdb-events.h: Regenerate.
4212
6e31adb3
AC
42132002-08-16 Andrew Cagney <ac131313@redhat.com>
4214
4215 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4216 not_a_sw_breakpoint.
4217 * breakpoint.h (bpstat_stop_status): Add parameter names.
4218
c8189ed1
GS
42192002-08-16 Grace Sainsbury <graces@redhat.com>
4220
4221 * remote.c (remote_insert_hw_breakpoint)
4222 (remote_remove_hw_breakpoint): Fix calculation of length field
4223 for Z-packet.
4224
d05285fa
MS
42252002-08-15 Michael Snyder <msnyder@redhat.com>
4226
466d7106
MS
4227 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4228 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4229 (supply_fpregset): Ditto.
4230
d05285fa
MS
4231 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4232 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4233 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 4234 (TARGET_READ_SP): Delete.
bf1f5b4c 4235 (DO_REGISTERS_INFO): Delete.
102182a9
MS
4236 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4237 Delete.
4238 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4239 from macros to functions.
bf1f5b4c 4240
d05285fa
MS
4241 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4242 (mips_register_convertible, mips_register_convert_to_virtual,
4243 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
4244 (mips_read_sp): New function.
4245 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
4246 (mips_do_registers_info): Make static.
4247 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
4248 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4249 (mips_register_convert_from_type, mips_register_convert_to_type):
4250 New functions.
4251 (mips_gdbarch_init): Set up function_start_offset,
4252 register_virtual_size, pc_in_sigtramp.
d05285fa 4253
e76f1f2e
AC
42542002-08-15 Andrew Cagney <ac131313@redhat.com>
4255
4256 * infcmd.c (vector_info): New function.
4257 (_initialize_infcmd): Add command "info vector".
4258 (print_vector_info): New function.
4259
4260 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4261 * gdbarch.h, gdbarch.c: Regenerate.
4262
4782dc19
AC
42632002-08-15 Andrew Cagney <ac131313@redhat.com>
4264
4265 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4266 ``print_all''. Only print vector registers when ``print_all''.
4267
23e3a7ac
AC
42682002-08-15 Andrew Cagney <ac131313@redhat.com>
4269
8e186fd6
AC
4270 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4271 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4272
23e3a7ac
AC
4273 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4274 Add `args' parameter.
4275 * gdbarch.h, gdbarch.c: Regenerate.
4276
4277 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4278
4279 * infcmd.c (float_info): Call print_float_info.
4280 (print_float_info): New function. By default, print the
4281 floating-point registers.
4282
4283 * arch-utils.h (default_print_float_info): Delete declaration.
4284 * arch-utils.c (default_print_float_info): Delete function.
4285
e0ca2bb9
MK
42862002-08-16 Mark Kettenis <kettenis@gnu.org>
4287
3f733acc
MK
4288 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4289 out define.
4290
7d8d2918
MK
4291 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4292 FRAME.
4293
1c7cc583
MK
4294 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4295 * configure.host: Make i[3456]86-*-aix host obsolete.
4296 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4297 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4298 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4299 config/i386/xm-i386aix.h: Make files obsolete.
4300 * i386aix-nat.c: Make file obsolete.
4301 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4302 (i386aix-nat.o): Make target obsolete.
4303
e0ca2bb9
MK
4304 * config/i386/nm-gnu.h: Removed.
4305 * config/i386/nm-i386gnu.h: New file.
4306 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4307 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4308 Moved here from ...
4309 * config/i386/tm-i386gnu.h: ... here. Removed.
4310 * config/i386/xm-i386gnu.h: Removed.
4311 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4312 (NAT_FILE): Set to nm-i386gnu.h.
4313 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4314 * i386-tdep.c: New file.
4315 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4316 (i386gnu-tdep.o): Specify dependencies.
4317
16057ec7 43182002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 4319
6b99ee2e
MK
4320 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4321 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4322 Adjust a few comments to reflect reality a bit closer.
4323 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4324 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4325 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4326 target_insert_watchpoint, target_remove_watchpoint):
4327 Move defines to ...
4328 * config/i386/nm-i386sco5.h: ... here.
4329 (kernel_u_size): Add prototype. Improve a few comments and add
4330 protection against multiple inclusion.
4331
d9a6f65c
MK
4332 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4333 out define.
4334
047eff6a
MK
4335 * uw-thread.c (SP_ARG0): Define if not already defined.
4336 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4337
dcdb1290
MK
4338 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4339
5d2d0b2a
MK
4340 * config/i386/tm-i386.h: Don't include "regcache.h".
4341
61113f8b
MK
4342 * i387-tdep.h (i387_print_float_info): New prototype.
4343 * i387-tdep.c (print_i387_value, print_i387_ext,
4344 print_i387_status_word, print_i387_control_word): Add `struct
4345 ui_file *' argument and use it for output.
4346 (i387_print_float_info): Renamed from i387_float_info. Add
4347 `struct gdbarch *' and `struct ui_file *' arguments and use the
4348 latter for output.
4349 * i386-tdep.c: Include "i387-tdep.h".
4350 (i386_gdbarch_init): Set print_float_info.
4351 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4352 (FLOAT_INFO): Remove define.
4353
46e0f506
MS
43542002-08-13 Michael Snyder <msnyder@redhat.com>
4355
4356 * mips-tdep.c (mips_push_arguments): Rename to
4357 mips_eabi_push_arguments, and tune for EABI.
4358 (MIPS_REGS_HAVE_HOME_P): Delete.
4359 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4360 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4361 Delete references to mips_regs_have_home_p.
4362
409268de
KS
43632002-08-14 Keith Seitz <keiths@redhat.com>
4364
4365 * Makefile.in (install-gdbtk): Create insight plugin directory.
4366 Install plugins.tcl file.
4367
ffc6a242
KS
43682002-08-14 Keith Seitz <keiths@redhat.com>
4369
4370 * configure.in: Move SUBDIRS to near top of the file so that
4371 --enable options may add things to it.
4372 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4373 * configure: Regenerate.
4374
ebafbe83
MS
43752002-08-13 Michael Snyder <msnyder@redhat.com>
4376
4377 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4378 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4379 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4380
32f6f25d
AC
43812002-08-13 Andrew Cagney <ac131313@redhat.com>
4382
4383 * vax-tdep.c (vax_get_saved_register): Delete function.
4384 (vax_gdbarch_init): Update.
4385 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4386 (ns32k_gdbarch_init): Update.
4387 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4388 (alpha_gdbarch_init): Update.
4389
53826de9
AC
43902002-08-13 Andrew Cagney <cagney@redhat.com>
4391
4392 * regcache.c (init_regcache_descr): Overallocate the
4393 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4394 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4395 nr_raw_registers.
4396 (set_register_cached): Add range checking assertions. Use
4397 current_regcache.
4398
16057ec7 43992002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
4400
4401 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4402 numbers for MMX registers.
4403
7b4c2dce
AC
44042002-08-13 Andrew Cagney <cagney@redhat.com>
4405
4406 * i386-tdep.c (i386_gdbarch_init): Use
4407 generic_unwind_get_saved_register.
4408
1e03ad20
KB
44092002-08-13 Kevin Buettner <kevinb@redhat.com>
4410
4411 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4412 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4413 target vector.
4414 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4415 Delete. Add comment regarding this now-deleted target method.
4416
548bcbec
SC
44172002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4418
4419 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4420 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4421 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4422 real PC and the page number (if it's within the memory bank window).
4423 (m68hc11_pseudo_register_write): Likewise when saving.
4424 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4425 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4426 (m68hc11_register_raw_size): And use 32-bit for it.
4427 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4428 16K memory bank is used by the prog; also use the virtual pc.
4429
7df11f59
SC
44302002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4431
4432 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4433 (m68hc11_gdbarch_init): Install it in gdbarch.
4434 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4435 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4436 (MSYMBOL_SIZE): New for documentation.
4437 (insn_return_kind): Enum to specify how a function returns.
4438 (frame_extra_info): Cleanup and record the return mode.
4439 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4440 register in address computation.
4441 (m68hc11_get_return_insn): New to obtain the return instruction used
4442 by the function.
4443 (m68hc11_frame_init_saved_regs): Take into account the return
4444 instruction used by the function for far and interrupt functions.
4445 (m68hc11_init_extra_frame_info): Take into account page register.
4446 (m68hc11_frame_args_address): Adjust according to the return mode.
4447 (show_regs): Print page register only when it's used.
4448
5706502a
SC
44492002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4450
4451 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4452 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4453 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4454 registers.
4455 (m68hc11_register_raw_size): Likewise.
4456
28fc6740
AC
44572002-08-13 Andrew Cagney <cagney@redhat.com>
4458
4459 * i386-tdep.c (i386_register_name): Handle mmx registers.
4460 (mmx_regnum_p): New function.
4461 (i386_mmx_names): New array.
4462 (mmx_num_regs): New variable.
4463 (i386_pseudo_register_read): New function.
4464 (i386_pseudo_register_write): New function.
4465 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4466
4467 * regcache.c (regcache_raw_read_unsigned): New function.
4468 (regcache_raw_read_signed): New function.
4469 * regcache.h (regcache_raw_read_unsigned): Declare.
4470 (regcache_raw_read_signed): Declare.
4471
a378f419
AC
44722002-08-13 Andrew Cagney <cagney@redhat.com>
4473
4474 * regcache.c (regcache_raw_read_as_address): Delete function.
4475 (regcache_cooked_read_signed): New function.
4476 (regcache_cooked_read_unsigned): New function.
4477 * regcache.h (regcache_cooked_read_signed): Declare.
4478 (regcache_cooked_read_unsigned): Declare.
4479 (regcache_raw_read_as_address): Delete declaration.
4480
4481 * blockframe.c (generic_read_register_dummy): Use
4482 regcache_cooked_read_unsigned.
4483 * i386-tdep.c (i386_extract_struct_value_address): Use
4484 regcache_cooked_read_unsigned.
4485
81967506
SC
44862002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4487
4488 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4489 double sizes according to ELF ABI flags.
4490 (gdbarch_tdep): Record elf_flags.
4491
ffe1f3ee
SC
44922002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4493
4494 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4495 (m6812_prolog): They can appear in 68HC12 function prologue.
4496 (m68hc11_frame_chain): Cleanup.
4497
98216c5d
AC
44982002-08-12 Andrew Cagney <cagney@redhat.com>
4499
4500 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4501 declarations.
4502 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4503 (i386_linux_register_raw_size): Delete function.
4504 (i386_linux_init_abi): Update.
4505 * i386-tdep.c (i386_register_raw_size): Delete function.
4506 (i386_register_byte): Delete function.
4507 (i386_gdbarch_init): Update.
4508 (i386_register_size): Delete array.
4509 (i386_register_offset): Delete array.
4510
4511 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4512 (REGISTER_RAW_SIZE): Delete macro.
4513 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4514 (REGISTER_BYTE): Delete macro.
4515
3b19021e
AS
45162002-08-11 Aidan Skinner <aidan@velvet.net>
4517
4518 * ada-lang.c (ada_lookup_partial_symbol)
4519 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4520 prototype names so that grep ^func works properly.
4521
4522 * ada-lang.c (ada_array_element_type)
4523 (ada_lookup_partial_symbol): Fix typos in parameter list.
4524
4525 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4526 Fix prototype names so that grep ^func works properly.
4527
b063e7a2
AC
45282002-08-10 Andrew Cagney <cagney@redhat.com>
4529 Elena Zannoni <ezannoni@redhat.com>
4530 Martin M. Hunt <hunt@redhat.com>
4531
4532 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4533 (build_builtin_type_vec128i): Set the vector bit.
4534 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4535 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4536 (build_builtin_type_vec64): New function.
4537 (build_builtin_type_vec64i): New function.
4538 (build_gdbtypes): Initialize builtin_type_vec64 and
4539 builtin_type_vec64i.
4540
a7e3c2ad
AC
45412002-08-09 Andrew Cagney <cagney@redhat.com>
4542
4543 * regcache.c (regcache_dump): Compare the register offset
4544 with REGISTER_BYTE.
4545 * arch-utils.c (generic_register_byte): New function.
4546 * arch-utils.h (generic_register_byte): Declare.
4547 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4548 * gdbarch.h, gdbarch.c: Regenerate.
4549
af030b9a
AC
45502002-08-09 Andrew Cagney <cagney@redhat.com>
4551
4552 * regcache.c: Include "gdbcmd.h"
4553 (_initialize_regcache): Add commands "maintenance print
4554 registers", "maintenance print raw-registers" and "maintenance
4555 print cooked-registers".
4556 (enum regcache_dump_what): Define.
4557 (dump_endian_bytes): New function.
4558 (regcache_dump): New function.
4559 (regcache_print): New function.
4560 (maintenance_print_registers): New function.
4561 (maintenance_print_raw_registers): New function.
4562 (maintenance_print_cooked_registers): New function.
4563 * Makefile.in (regcache.o): Update dependencies.
4564
cb3d25d1
MS
45652002-08-09 Michael Snyder <msnyder@redhat.com>
4566
4567 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4568 (mips_push_arguments): Correct some comments. Use paddr_nz
4569 for printing addresses in debug output. Replace static
4570 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4571 (mips_n32n64_push_arguments): New function, cloned from
4572 mips_push_arguments and tuned for the n32/n64 ABI.
4573 (mips_push_register): Buffer needs dynamic allocation.
4574 (mips_print_register): Ditto.
4575 (do_gp_register_row): Ditto.
4576 (mips_store_return_value): Ditto.
4577 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4578
2163ab9d
DH
45792002-08-09 Don Howard <dhoward@redhat.com>
4580
4581 * memattr.c (mem_info_command): Print special case of upper bound
4582 as max CORE_ADDR + 1.
4583
b78bcb18
MS
45842002-08-08 Michael Snyder <msnyder@redhat.com>
4585
4586 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4587 returns structs by ref if they're too big to fit in two registers.
4588
ffabd70d
KB
45892002-08-09 Kevin Buettner <kevinb@redhat.com>
4590
4591 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4592 saved regs value.
4593 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4594 mips_find_saved_regs().
4595 (mips_pop_frame): Likewise.
4596
fbcdb4a3
KB
45972002-08-09 Kevin Buettner <kevinb@redhat.com>
4598
4599 * blockframe.c (frame_saved_regs_register_unwind): Revise
4600 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4601 frames are in use.
4602
3c3bea1c
GS
46032002-08-09 Grace Sainsbury <graces@redhat.com>
4604
4605 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4606 T-packets; the 'a' is not taken as a register number.
4607 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4608 (remote_stopped_data_address): New functions; add to target
4609 vector.
4610 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4611 prototypes to match other implementations of this
4612 function. replace integer argument with pointer -- the length
4613 field in the Z-packet is the length of what is pointed to or 1 if
4614 pointer is null. Add to target vector.
4615 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4616 target vector.
4617
4618 From Mark Salter:
4619 * remote.c (remote_wait): Add support to extract optional
4620 watchpoint information from T-packet. Ignore unrecognized
4621 optional info in T-packet.
4622 (remote_async_wait): Ditto.
4623
5d1d95de
CV
46242002-08-09 Corinna Vinschen <vinschen@redhat.com>
4625
4626 * cli/cli-dump.c: Change fopen modes to use binary open modes
4627 as defined in include/fopen-bin.h throughout.
4628
c86b5b38
MS
46292002-08-08 Michael Snyder <msnyder@redhat.com>
4630
4631 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4632
b30590dc
KB
46332002-08-08 Kevin Buettner <kevinb@redhat.com>
4634
4635 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4636 assertion failure by returning early after a warning.
4637
498868ed
KB
46382002-08-08 Kevin Buettner <kevinb@redhat.com>
4639
4640 * mips-tdep.c (mips_find_saved_regs): Make static.
4641 (mips_frame_init_saved_regs): New function.
4642 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4643 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4644 (mips_find_saved_regs): Delete declaration.
4645
b2dd6311
GS
46462002-08-08 Grace Sainsbury <graces@redhat.com>
4647
3c3bea1c
GS
4648 * remote.c (remote_wait, remote_async_wait): Change
4649 thread_num from int to ULONGEST.
4650 (unpack_varlen_hex): Change result parameter from
4651 int * to ULONGEST *.
b2dd6311 4652
ea47855f
AC
46532002-08-08 Andrew Cagney <ac131313@redhat.com>
4654
4655 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4656 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4657 powerpc*-*-*.
4658 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4659
69db8bae
AC
46602002-08-08 Andrew Cagney <cagney@redhat.com>
4661
4662 * gcore.c (override_derive_stack_segment): Delete variable.
4663 (preempt_derive_stack_segment): Delete function.
4664 (derive_stack_segment): Delete function.
4665 (default_derive_stack_segment): Renamed to derive_stack_segment.
4666 (override_derive_heap_segment): Delete variable.
4667 (preempt_derive_heap_segment): Delete function.
4668 (derive_heap_segment): Delete function.
4669 (default_derive_heap_segment): Rename to derive_heap_segment.
4670
cb811fe7
MS
46712002-08-06 Michael Snyder <msnyder@redhat.com>
4672
4673 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4674 * mips-tdep.c (mips_EABI_use_struct_convention,
4675 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4676 New functions. (mips_use_struct_convention): Delete.
4677 (mips_gdbarch_init): set use_gdbarch_convention.
4678
8b389c40
MS
46792002-08-06 Michael Snyder <msnyder@redhat.com>
4680
4681 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4682 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4683 mips_o32_reg_struct_has_addr): New functions.
4684 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4685
5c27f28a
AC
46862002-08-07 Andrew Cagney <ac131313@redhat.com>
4687
4688 * regcache.c (pseudo_register): Delete function.
4689 (fetch_register): Delete function.
4690 (store_register): Delete function.
4691 (regcache_raw_read, legacy_read_register_gen): Use
4692 target_fetch_registers instead of fetch_register.
4693 (legacy_write_register_gen, regcache_raw_write): Use
4694 target_store_register instead of store_register.
4695 (write_register_bytes): Ditto.
4696
4697 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4698 (STORE_PSEUDO_REGISTER): Delete.
4699 * gdbarch.h, gdbarch.c: Regenerate.
4700
5b331675
CV
47012002-08-06 Corinna Vinschen <vinschen@redhat.com>
4702
4703 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4704 write dump file binary.
4705
6acdf5c7
MS
47062002-08-05 Michael Snyder <msnyder@redhat.com>
4707
4708 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4709 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4710 (mips_gdbarch_init): Set N32 target to be mips64.
4711
b2f01c35
KB
47122002-08-06 Kevin Buettner <kevinb@redhat.com>
4713
4714 * frame.c (find_saved_register): Break out of loop once saved
4715 register address is found. Don't mention sparc in loop comment
4716 anymore.
4717
63db5580
KB
47182002-08-06 Kevin Buettner <kevinb@redhat.com>
4719
4720 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4721 mips_default_saved_regsize to 8.
4722
5e34e75e
AC
47232002-08-06 Andrew Cagney <ac131313@redhat.com>
4724
4725 * gcore.c: Do not include <sys/procfs.h>.
4726 * Makefile.in (gcore.o): Update dependencies.
4727
eb4c54a2
AC
47282002-08-06 Andrew Cagney <cagney@redhat.com>
4729
4730 * configure.tgt: Make arc-*-* obsolete.
4731 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4732 * MAINTAINERS: Make arc-elf obsolete.
4733 * arc-tdep.c: Make file obsolete.
4734 * config/arc/arc.mt: Ditto.
4735 * config/arc/tm-arc.h: Ditto.
4736
ced15480
TR
47372002-08-05 Theodore A. Roth <troth@verinet.com>
4738
c1bab85b 4739 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 4740
b4743822
AC
47412002-08-05 Andrew Cagney <ac131313@redhat.com>
4742
4743 * mcore-tdep.c (mcore_gdbarch_init): Use
4744 generic_unwind_get_saved_register instead of
4745 generic_get_saved_register.
4746 * v850-tdep.c (v850_gdbarch_init): Ditto.
4747 * frv-tdep.c (frv_gdbarch_init): Ditto.
4748 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4749 * s390-tdep.c (s390_gdbarch_init): Ditto.
4750 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4751 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4752 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4753
3956d554
JB
47542002-08-05 Joel Brobecker <brobecker@gnat.com>
4755
4756 * objfiles.h: Add missing #include "symfile.h"
4757
4758 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4759
8249c0d6
AC
47602002-08-04 Andrew Cagney <ac131313@redhat.com>
4761
4762 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4763 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4764 of FIELD_BITSIZE.
4765
b9d14705
DJ
47662002-08-04 Daniel Jacobowitz <drow@mvista.com>
4767
4768 * NEWS: Cleanup and nitpick.
4769
dd73b9bb
AC
47702002-08-03 Andrew Cagney <ac131313@redhat.com>
4771
4772 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4773
043a27f8
AC
47742002-08-03 Andrew Cagney <ac131313@redhat.com>
4775
4776 * Makefile.in (gdbtk-bp.o): Update dependencies.
4777 (gdbtk-register.o): Ditto.
4778 (gdbtk-varobj.o): Ditto.
4779
46ce284d
AC
47802002-08-03 Andrew Cagney <cagney@redhat.com>
4781
4782 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4783 m68hc11_fetch_pseudo_register.
4784 (m68hc11_pseudo_register_write): Replace
4785 m68hc11_store_pseudo_register.
4786 (m68hc11_gdbarch_init): Update.
4787
b66d6d2e
AC
4788Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4789
4790 * gdbarch.sh: Include "gdb_string.h".
4791 * gdbarch.c: Regenerate.
4792
4793 * regcache.c: Include "gdb_string.h".
4794 * ax-general.c: Ditto.
4795 * varobj.c: Ditto.
4796 * std-regs.c: Ditto.
4797 * fbsd-proc.c: Ditto.
4798 * thread.c: Ditto.
4799
4800 * Makefile.in (regcache.o): Update dependencies.
4801 (thread.o, gdbarch.o): Ditto.
4802 (ax-general.o, gdbarch.o): Ditto.
4803 (varobj.o, std-regs.o): Ditto.
4804 (fbsd-proc.o): Specify dependencies.
4805
29e1842b
AC
48062002-08-02 Andrew Cagney <cagney@redhat.com>
4807
4808 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4809 regnum.
4810 (regcache_cooked_write): Ditto.
4811
68365089
AC
48122002-08-02 Andrew Cagney <ac131313@redhat.com>
4813
4814 * regcache.c (regcache_cooked_read): New function.
4815 (regcache_cooked_write): New function.
4816 (read_register_gen): Rewrite using regcache_cooked_read.
4817 (write_register_gen): Rewrite using regcache_cooked_write.
4818
4819 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4820 Declare.
4821
d8124050
AC
48222002-08-02 Andrew Cagney <cagney@redhat.com>
4823
4824 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4825 Replace the architecture methods register_read and register_write.
4826 * gdbarch.h, gdbarch.c: Regenerate.
4827 * regcache.c (init_regcache_descr): Update.
4828 (read_register_gen): Update.
4829 (write_register_gen): Update.
4830 (supply_register): Update comment.
4831
4832 * sh-tdep.c (sh_gdbarch_init): Update.
4833 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4834 `regcache' and `gdbarch' parameters. Make `buffer' a void
4835 pointer. Update code.
4836 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4837 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4838 void pointer. Update code.
4839 (sh64_register_write): Delete.
4840 (sh4_register_read): Delete.
4841 (sh64_register_read): Delete.
4842 (sh4_register_write): Delete.
4843 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4844 void pointer, `to' parameter a void pointer.
4845 (sh_sh64_register_convert_to_raw): Ditto.
4846
a6425924
KB
48472002-08-01 Kevin Buettner <kevinb@redhat.com>
4848
4849 * mips-tdep.c (mips_register_virtual_type): Use architecture
4850 invariant return values.
4851
ff5922b5
AC
48522002-08-01 Andrew Cagney <cagney@redhat.com>
4853
4854 * linux-proc.c: Include "gdb_string.h".
4855 * Makefile.in (linux-proc.o): Update dependency list.
4856
32a6503c
KB
48572002-08-01 Kevin Buettner <kevinb@redhat.com>
4858
4859 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4860 comment.
4861
ccaa32c7
GS
48622002-08-01 Grace Sainsbury <graces@redhat.com>
4863
4864 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4865 to_insert_watchpoint, to_remove_watchpoint,
4866 to_stopped_by_watchpoint, to_stopped_data_address,
4867 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4868 target vecctor. Define their corresponding macros so they call
4869 them.
4870
4871 * target.c: Add default and debug versions of for
4872 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4873 to_insert_watchpoint, to_remove_watchpoint,
4874 to_stopped_by_watchpoint, to_stopped_data_address,
4875 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4876
78fde5f8
KB
48772002-08-01 Kevin Buettner <kevinb@redhat.com>
4878
4879 * mips-tdep.c (mips_register_virtual_type): New function.
4880 (mips_gdbarch_init): Register mips_register_virtual_type()
4881 with gdbarch machinery.
4882 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4883 this file instead of tm-bigmips.h.
4884 (MIPS_REGSIZE): Delete this macro.
4885 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4886 multiarch version in mips-tdep.c will be found.
4887
db034ac5
AC
48882002-08-01 Andrew Cagney <cagney@redhat.com>
4889
4890 * NEWS: Menion that CHILL has been made obsolete.
4891
4892 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
4893 * stabsread.c (read_range_type): Ditto.
4894 * gdbtypes.h: Ditto.
4895 * language.c (binop_type_check): Ditto.
4896 (binop_result_type): Ditto.
4897 (integral_type): Ditto.
4898 (character_type): Ditto.
4899 (string_type): Ditto.
4900 (boolean_type): Ditto.
4901 (structured_type): Ditto.
4902 (lang_bool_type): Ditto.
4903 (binop_type_check): Ditto.
4904 * language.h (_LANG_chill): Ditto.
4905 * dwarfread.c (set_cu_language): Ditto.
4906 * dwarfread.c (CHILL_PRODUCER): Ditto.
4907 * dwarfread.c (handle_producer): Ditto.
4908 * expression.h (enum exp_opcode): Ditto.
4909 * eval.c: Ditto for comments.
4910 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4911 * expprint.c (print_subexp): Ditto.
4912 (print_subexp): Ditto.
4913 * valops.c (value_cast): Ditto.
4914 (search_struct_field): Ditto.
4915 * value.h (COERCE_VARYING_ARRAY): Ditto.
4916 * symfile.c (init_filename_language_table): Ditto.
4917 (add_psymbol_with_dem_name_to_list): Ditto.
4918 * valarith.c (value_binop): Ditto.
4919 (value_neg): Ditto.
4920 * valops.c (value_slice): Ditto.
4921 * symtab.h (union language_specific): Ditto.
4922 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4923 (SYMBOL_DEMANGLED_NAME): Ditto.
4924 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4925 * defs.h (enum language): Ditto.
4926 * symtab.c (got_symtab): Ditto.
4927 * utils.c (fprintf_symbol_filtered): Ditto.
4928
4929 * ch-typeprint.c: Make file obsolete.
4930 * ch-valprint.c: Make file obsolete.
4931 * ch-lang.h: Make file obsolete.
4932 * ch-exp.c: Make file obsolete.
4933 * ch-lang.c: Make file obsolete.
4934
4935 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4936 CHILL_LIB.
4937 (TARGET_FLAGS_TO_PASS): Ditto.
4938 (CHILLFLAGS): Obsolete.
4939 (CHILL): Obsolete.
4940 (CHILL_FOR_TARGET): Obsolete.
4941 (CHILL_LIB): Obsolete.
4942 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4943 ch-valprint.c.
4944 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4945 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4946 ch-lang.o.
4947 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4948 targets.
4949
8aaf0b47
JB
49502002-07-31 Joel Brobecker <brobecker@gnat.com>
4951
4952 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4953 This does not change anything at the moment, but will be helpful
4954 later when full Ada support is integrated.
4955
f3a7b3a5
KB
49562002-07-31 Kevin Buettner <kevinb@redhat.com>
4957
4958 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4959 help message.
4960
fb850278
KB
49612002-07-31 Kevin Buettner <kevinb@redhat.com>
4962
4963 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4964 and save it in a local variable. Use variable in later test.
4965
e3bddbfa
KB
49662002-07-31 Kevin Buettner <kevinb@redhat.com>
4967
4968 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4969 test. (Thanks to Daniel Jacobowitz.)
4970
28d169de
KB
49712002-07-31 Kevin Buettner <kevinb@redhat.com>
4972
4973 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4974 (mips_abi_strings): Add "n64".
4975 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4976
7fe7e44e
KB
49772002-07-31 Kevin Buettner <kevinb@redhat.com>
4978
4979 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4980 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4981
c6caf090
KB
49822002-07-31 Kevin Buettner <kevinb@redhat.com>
4983
4984 * utils.c (host_pointer_to_address, address_to_host_pointer):
4985 Use gdb_assert() instead of explicit call to internal_error().
4986
c41669e0
KB
49872002-07-30 Kevin Buettner <kevinb@redhat.com>
4988
4989 * Makefile.in (rs6000-nat.o): Update dependencies.
4990
4991 From Nicholas Duffek:
4992 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4993 (aix-thread.o): New rule.
4994 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4995 * config/powerpc/aix432.mh: New file.
4996
2fda4977
DJ
49972002-07-30 Daniel Jacobowitz <drow@mvista.com>
4998
4999 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5000 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5001 (fetch_core_registers, ppc_linux_supply_gregset)
5002 (ppc_linux_supply_fpregset): New functions.
5003 (ppc_linux_regset_core_fns): New.
5004 (_initialize_ppc_linux_tdep): Call add_core_fns.
5005 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5006 and ppc_linux_supply_gregset.
5007 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5008 (supply_fpregset): Call ppc_linux_supply_fpregset.
5009 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5010 corelow.o.
5011 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5012
729051e6
DJ
50132002-07-30 Daniel Jacobowitz <drow@mvista.com>
5014
5015 * symtab.c (lookup_symbol): Demangle before lowercasing.
5016
5f8a3188
AC
50172002-07-30 Andrew Cagney <ac131313@redhat.com>
5018
5019 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5020 declaration.
5021 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5022 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5023 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5024 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5025 "gdb_string.h".
5026 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5027 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5028 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5029 (avr-tdep.o, mon960-rom.o): Ditto.
5030 (aout_stabs_gnu_h): Define.
5031 (symtab_h): Remove $(gdb_obstack_h).
5032
67f07146
JB
50332002-07-30 Jim Blandy <jimb@redhat.com>
5034
5035 Patch from David Carlton <carlton@math.stanford.edu>:
5036 * gdbinit.in: Move the `dir' commands that add GDB's own source
5037 directory to the search path to the end, so that the `gdb' source
5038 directory will be searched first.
5039
04ea0df1
AC
50402002-07-29 Andrew Cagney <ac131313@redhat.com>
5041
5042 * gdb_obstack.h: New file.
5043 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5044 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5045 * objfiles.h: Include "gdb_obstack.h".
5046 * Makefile.in (gdb_obstack_h): Define.
5047 (symtab_h): Add $(gdb_obstack_h).
5048 (objfiles_h): Add $(gdb_obstack_h).
5049
5050 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5051 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5052 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5053 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5054 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5055 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5056 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5057 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5058
5059 * Makefile.in (bcache.o): Update dependencies.
5060 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5061 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5062 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5063 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5064 (stabsread.o, symfile.o, symmisc.o): Ditto.
5065 (symtab.o, typeprint.o, macroexp.o): Ditto.
5066 (macrotab.o, mdebugread.o): Ditto.
5067 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5068 (coff_ecoff_h, aout_aout64_h): Define.
5069 (aout_stabs_gnu_h, libaout_h): Define.
5070
d138e37a
AC
50712002-07-29 Andrew Cagney <cagney@redhat.com>
5072
5073 * regcache.c (struct regcache_descr): Rename nr_registers to
5074 nr_cooked_registers. Revise comments describing the structure
5075 member fields.
5076 (init_regcache_descr): Update.
5077 (init_legacy_regcache_descr): Update.
5078 (read_register_gen, write_register_gen): When a cooked register in
5079 the raw register range, directly access the value from the raw
5080 register cache.
5081
460e6ec3
AC
50822002-07-29 Andrew Cagney <ac131313@redhat.com>
5083
5084 * z8k-tdep.c: Do not include "obstack.h".
5085 * h8300-tdep.c, h8500-tdep.c: Ditto.
5086 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5087 * valprint.c, v850-tdep.c: Ditto.
5088 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5089 * mn10200-tdep.c: Ditto.
5090
5091 * Makefile.in (z8k-tdep.o): Update dependencies.
5092 (m68hc11-tdep.o, valprint.o): Ditto.
5093 (v850-tdep.o, d10v-tdep.o): Ditto.
5094 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5095 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5096 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5097 (sh_opc_h, gdb_sim_sh_h): Define.
5098 (elf_sh_h, elf_bfd_h): Define.
5099 (opcode_m68hc11_h): Define.
5100 (OPCODES_SRC, OPCODES_DIR): define.
5101 (OPCODES): Use $(OPCODES_DIR).
5102 (gdb_sim_d10v_h): Rename sim_d10v_h.
5103 (gdb_sim_arm_h): Rename sim_arm_h.
5104
790c9cf0
KB
51052002-07-26 Kevin Buettner <kevinb@redhat.com>
5106
5107 * utils.c (host_pointer_to_address, address_to_host_pointer):
5108 Change internal_error() message to indicate function responsible
5109 for the error.
5110
9647fa49
KB
51112002-07-26 Kevin Buettner <kevinb@redhat.com>
5112
5113 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5114 calls to local_hex_string_custom().
5115
dabbe2c0
KB
51162002-07-26 Kevin Buettner <kevinb@redhat.com>
5117
5118 * irix5-nat.c: Move IRIX shared library support from here...
5119 * solib-irix.c: ...to here. Revised substantially to work with
5120 generic solib framework.
5121
b96d0a4e
KB
5122 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5123 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5124 * mips-irix-tdep.c: New file.
5125
313fb2f6
KB
5126 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5127 (mips-irix-tdep.o, solib-irix.o): New rules.
5128 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5129 solib-irix.o.
5130 * config/mips/irix6.mt (TDEPFILES): Likewise.
5131 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5132
ab2eaf26
KB
51332002-07-26 Kevin Buettner <kevinb@redhat.com>
5134
177e4768 5135 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
5136 disabled (via ``#if 0'') includes.
5137
7244546a
KB
51382002-07-26 Kevin Buettner <kevinb@redhat.com>
5139
5140 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5141 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5142 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5143 Add support for the fpscr register.
5144 * rs6000-nat.c (regmap, fetch_inferior_registers)
5145 (store_inferior_registers, fetch_core_registers): Likewise.
5146
dd7be90a
KB
51472002-07-26 Kevin Buettner <kevinb@redhat.com>
5148
5149 * rs6000-nat.c (language.h): Include.
5150 (special_regs): Delete this array.
5151 (regmap): New function.
5152 (fetch_register, store_register): Use regmap() to map gdb
5153 register numbers to ptrace register numbers. Also, use
5154 outputs from regmap() to make decisions regarding type of
5155 ptrace() call to make. In particular, don't compare against
5156 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5157 (fetch_inferior_registers, store_inferior_registers): Where
5158 possible, obtain register numbers from tdep struct. Don't
5159 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5160 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5161 (LAST_UISA_SP_REGNUM): Delete.
5162
11bf77db
KB
51632002-07-25 Kevin Buettner <kevinb@redhat.com>
5164
5165 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
5166 (fetch_registers, store_register, fetch_core_registers): Don't
5167 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
5168 regcache_collect() as appropriate.
5169 (find_toc_address): Format hex address with local_hex_string().
5170
06afebeb
AC
51712002-07-25 Andrew Cagney <ac131313@redhat.com>
5172
5173 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5174 bfd/elf32-frv.c.
5175
8c554d79
TT
51762002-07-24 Tom Tromey <tromey@redhat.com>
5177
5178 * jv-exp.y: Marked all strings with _().
5179 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5180 internal_error.
5181 (MethodInvocation, CastExpression, parse_number, yyerror,
5182 java_type_from_name, push_expression_name, yylex): Typo fixes.
5183
e4c242d9
DJ
51842002-07-24 Daniel Jacobowitz <drow@mvista.com>
5185
5186 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5187 (tee_file_flush, tee_file_write, tee_file_fputs)
5188 (tee_file_isatty): New.
5189 * ui-file.h (tee_file_new): Add prototype.
5190
ebf56fd3
AS
51912002-07-24 Aidan Skinner <aidan@velvet.net>
5192
5193 * ada-lang.c: Change k&r style function definitions to prototyped
5194 form.
5195 * ada-typeprint.c: Change k&r style function definitions to prototyped
5196 form.
5197 * ada-valprint.c: Change k&r style function definitions to prototyped
5198 form.
5199
7fb623f7
AC
52002002-07-24 Andrew Cagney <cagney@redhat.com>
5201
5202 * README: Remove reference to remote-bug.
5203 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5204 remote-bug.c.
5205 (m88k-nat.o): Delete rule.
5206 (m88k-tdep.o): Delete rule.
5207 (remote-bug.o): Delete rule.
5208 * MAINTAINERS: Mark as obsolete.
5209 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5210 * m88k-tdep.c: Make file obsolete.
5211 * config/m88k/m88k.mh: Ditto.
5212 * config/m88k/delta88v4.mh: Ditto.
5213 * config/m88k/delta88v4.mt: Ditto.
5214 * config/m88k/delta88.mt: Ditto.
5215 * config/m88k/delta88.mh: Ditto.
5216 * remote-bug.c: Ditto.
5217 * config/m88k/tm-delta88.h: Ditto.
5218 * config/m88k/nm-delta88v4.h: Ditto.
5219 * config/m88k/xm-delta88.h: Ditto.
5220 * config/m88k/xm-dgux.h: Ditto.
5221 * config/m88k/tm-m88k.h: Ditto.
5222 * config/m88k/nm-m88k.h: Ditto.
5223 * config/m88k/tm-delta88v4.h: Ditto.
5224 * m88k-nat.c: Ditto.
5225 * cxux-nat.c: Ditto.
5226 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5227 and m88*-*-* obsolete.
5228 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5229 m88*-*-* obsolete.
5230
37611a2b
AC
52312002-07-24 Andrew Cagney <cagney@redhat.com>
5232
5233 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5234 constant. Same for local pointer variables.
5235 (extract_signed_integer): Ditto.
5236 * defs.h (extract_unsigned_integer): Update.
5237 (extract_signed_integer): Update.
5238
1aaa5f99
AC
52392002-07-24 Andrew Cagney <cagney@redhat.com>
5240
5241 * regcache.c (regcache_raw_write): Change buf parameter to a
5242 constant void pointer.
5243 (regcache_raw_read): Change buf parameter to a void pointer.
5244 (legacy_write_register_gen): Change myaddr parameter a constant
5245 void pointer.
5246 (supply_register): Change val parameter to a const void pointer.
5247 * regcache.h (regcache_raw_write): Update declaration.
5248 (regcache_raw_read): Update declaration.
5249 (supply_register): Update declaration.
5250
b4f5539f
TT
52512002-07-24 Tom Tromey <tromey@redhat.com>
5252
5253 * defs.h (gdb_readline_wrapper): Declare.
5254 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5255 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5256 * top.c (gdb_readline_wrapper): New function.
5257 (command_line_input): Use it.
5258
0818c12a
AC
52592002-07-24 Andrew Cagney <cagney@redhat.com>
5260
5261 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5262 regcache_read and regcache_write.
5263 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5264 * regcache.c: Update.
5265 * sh-tdep.c (sh64_push_arguments): Update comment.
5266 (sh_pseudo_register_read): Update.
5267 (sh_pseudo_register_write): Update.
5268 (sh4_register_read): Update.
5269 (sh4_register_write): Update.
5270 (sh64_pseudo_register_read): Update.
5271 (sh64_pseudo_register_write): Update.
5272 (sh64_register_read): Update.
5273 (sh64_register_write): Update.
5274 * i386-tdep.c (i386_extract_return_value): Update.
5275 (i386_extract_struct_value_address): Update.
5276 (i386_extract_return_value): Update.
5277 * blockframe.c (generic_read_register_dummy): Update.
5278 (generic_call_dummy_register_unwind): Update
5279 * infrun.c (write_inferior_status_register): Update.
5280
f7321c06
JB
52812002-07-23 Jim Blandy <jimb@redhat.com>
5282
5283 * parser-defs.h (expression_context_pc): Make this extern.
5284 (Thanks to Michael Snyder.)
5285
2037aebb
AC
52862002-07-23 Andrew Cagney <ac131313@redhat.com>
5287
5288 GDB 5.2.1 released from 5.2 branch.
5289 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5290 * README: Update to mention 5.2.1.
5291
66504d44
MS
52922002-07-23 Mark Salter <msalter@redhat.com>
5293
5294 * remote.c (remote_read_bytes): Fix check for error.
5295
27bae383
KB
52962002-07-22 Kevin Buettner <kevinb@redhat.com>
5297
5298 * aix-thread.c (language.h): Include.
5299 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5300 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5301 Print newlines at end of debug messages.
5302 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5303 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5304
53052002-07-22 Kevin Buettner <kevinb@redhat.com>
5306
5307 * aix-thread.c (ppc-tdep.h): Include.
5308 (special_register_p): New function.
5309 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5310 (store_regs_user_thread): Use register number information from
5311 gdbarch_tdep struct instead of hardcoded offsets relative to
5312 FIRST_UISA_SP_REGNUM.
5313 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5314 special_register_p() instead of using FPLAST_REGNUM and
5315 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5316 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5317 will be MQ's register number.
5318
53192002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
5320
5321 * aix-thread.c (ops): Rename to aix_thread_ops.
5322 (base_ops): Rename to base_target.
5323 (ops_attach): Rename to aix_thread_attach.
5324 (ops_detach): Rename to aix_thread_detach.
5325 (ops_resume): Rename to aix_thread_detach.
5326 (ops_wait): Rename to aix_thread_wait.
5327 (ops_kill): Rename to aix_thread_kill.
5328 (init_ops): Rename to init_aix_thread_ops.
5329 (ops_fetch_register): Rename to aix_thread_fetch_register.
5330 (ops_store_register): Rename to aix_thread_store_register.
5331 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5332 (ops_thread_alive): Rename to aix_thread_thread_alive.
5333 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5334 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5335 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5336 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5337 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5338 (store_regs_lib): Rename to store_regs_user_thread.
5339 (store_regs_kern): Rename to store_regs_kernel_thread.
5340
27bae383 53412002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
5342
5343 * aix-thread.c (ops_prepare_to_store): Eliminate.
5344 (init_ops): Don't initialize ops.prepare_to_store.
5345 (store_regs_kern): Pre-fetch register buffers from child,
5346 because some registers may not be in the cache. Copy
5347 regs from register cache only if they are cached.
5348 (store_regs_lib): Copy regs from register cache only
5349 if they are cached.
5350 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5351 fill_gprs64): Ditto.
5352
61c5da0b
KB
53532002-07-22 Kevin Buettner <kevinb@redhat.com>
5354
5355 * aix-thread.c (gdb_assert.h): Include.
5356 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5357 register sizes (from register cache) match size of buffer holding
5358 register data.
5359 (fill_sprs32): Change parameter types to match those in the ptrace()
5360 buffer.
5361 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5362 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5363
53642002-07-22 Michael Snyder <msnyder@redhat.com>
5365
5366 * aix-thread.c (supply_sprs64): Cosmetic change.
5367 (supply_sprs32): Cosmetic change.
5368 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5369 (fill_sprs64): Use regcache_collect instead of read_register.
5370 (store_regs_lib): Use regcache_collect instead of
5371 read_register. Use fill_sprs32 instead of fill_sprs64,
5372 if debugging a 32-bit architecture.
5373 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5374 out of the register cache, instead of passing a pointer into
5375 the register cache directly to ptrace. Use regcache_collect
5376 insteaad of read_register.
5377 (ops_prepare_to_store): Use target_read_registers instead
5378 of read_register_bytes.
5379
36479eb1
AS
53802002-07-20 Aidan Skinner <aidan@velvet.net>
5381
5382 * MAINTAINERS: Add self under write after approval.
5383
80ae6ee2
AS
53842002-07-20 Aidan Skinner <aidan@velvet.net>
5385
5386 * ada-tasks.c: Change k&r style function definitions to prototyped
5387 form.
5388
8a8ab2b9
AC
53892002-07-19 Andrew Cagney <ac131313@redhat.com>
5390
5391 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5392 * x86-64-tdep.c: Include "objfiles.h".
5393 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5394 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5395
fb16b900
ML
53962002-07-17 Michal Ludvig <michal@suse.cz>
5397
5398 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5399 (update_context): Initialise cfa variable.
5400
0fe7bf7b
MS
54012002-07-17 Michael Snyder <msnyder@redhat.com>
5402
5403 * aix-thread.c: Shorten some long lines.
5404 Bring comments into line with code spec.
5405
488f131b
JB
54062002-07-18 Joel Brobecker <brobecker@gnat.com>
5407
5408 * infrun.c: Re-indent using gdb_indent.sh.
5409
46c415d2
JB
54102002-07-18 Joel Brobecker <brobecker@gnat.com>
5411
5412 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5413 Leave the indentation temporarily untouched, to minimize the diffs.
5414
cdecafbe
EZ
54152002-07-18 Elena Zannoni <ezannoni@redhat.com>
5416
5417 * stabsread.c: Make os9k sections of the code obsolete,
5418 for real this time.
5419 * stabsread.h: Make os9k sections of the code obsolete.
5420
7b6aa020
ML
54212002-07-18 Michal Ludvig <mludvig@suse.cz>
5422
09ec9b38
ML
5423 * linux-low.c (regsets_store_inferior_registers): Add free()
5424 at the end of a loop to prevent memory leak.
5425 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5426 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5427 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5428 line a comment.
4894ac5d 5429 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5430
233282cd
JB
54312002-07-17 Jim Blandy <jimb@redhat.com>
5432
5433 * macrocmd.c (info_macro_command): Remove newline from error
5434 message.
5435
7b6aa020 54362002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5437
5438 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5439 (sh_gdbarch_init): Use it for sh-dsp.
5440
f7ef9339
KB
54412002-07-16 Kevin Buettner <kevinb@redhat.com>
5442
5443 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5444 64-bit DWARF2 format.
5445
8dd72958
JB
54462002-07-16 Joel Brobecker <brobecker@gnat.com>
5447
5448 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5449 <sys/proc.h> when not available.
5450
a99a9e1b
AC
54512002-07-16 Andrew Cagney <ac131313@redhat.com>
5452
5453 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5454 * stabsread.c: Make os9k sections of the code obsolete.
5455 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5456 * config/i386/i386os9k.mt: Make file obsolete.
5457 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5458 (COMMON_OBS): Remove os9kread.o
5459 (SFILES): Remove os9kread.c.
5460 (os9kread.o, remote-os9k.o): Make target obsolete.
5461 * remote-os9k.c: Make file obsolete.
5462 * os9kread.c: Make file obsolete.
5463 * Makefile.in
5464
7a3085c1
AC
54652002-07-16 Andrew Cagney <ac131313@redhat.com>
5466
5467 * NEWS: Mention that the FR30 has been made obsolete.
5468 * fr30-tdep.c: Make file obsolete.
5469 * config/fr30/tm-fr30.h: Ditto.
5470 * config/fr30/fr30.mt: Ditto.
5471 * configure.tgt: Make fr30-*-elf obsolete.
5472 * MAINTAINERS: Make fr30-elf obsolete.
5473
28a93f5a
PM
54742002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5475
5476 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5477 found is not inside a section.
5478
be006b8b
KB
54792002-07-15 Kevin Buettner <kevinb@redhat.com>
5480
5481 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5482 strerror().
5483 (pdc_realloc): Use xrealloc() instead of realloc().
5484
14fa3751
KB
54852002-07-15 Kevin Buettner <kevinb@redhat.com>
5486
5487 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5488 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5489 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5490 macros.
5491
42cc437f
KB
54922002-07-15 Kevin Buettner <kevinb@redhat.com>
5493
5494 * aix-thread.c (ptrace_check): Eliminate goto.
5495 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5496 problem.
5497
8e2c28d4
KB
54982002-07-15 Kevin Buettner <kevinb@redhat.com>
5499
5500 * aix-thread.c (gdbcmd.h): Include.
5501 (DEBUG, DBG, DBG2, dbg): Eliminate.
5502 (debug_aix_thread): New static global.
5503 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5504 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5505 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5506 invocations to DBG and DBG2 macros to test against
5507 ``debug_aix_thread'' and call fprintf_unfiltered().
5508 (_initialize_aix_thread): Add new command "set debug aix-thread".
5509
30413464
AC
55102002-07-15 Andrew Cagney <ac131313@redhat.com>
5511
5512 From Gerhard Tonn <TON@de.ibm.com>:
5513 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5514 instead of supply_register.
5515
7c43edc1
AC
55162002-07-15 Andrew Cagney <ac131313@redhat.com>
5517
5518 * dwarf2cfi.c: Include "gdb_assert.h".
5519 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5520 non-NULL.
5521 (update_context): Do not use __func__. Add missing ``break''.
5522 (update_context): Do not use __func__.
5523
9364a0ef
EZ
55242002-07-15 Elena Zannoni <ezannoni@redhat.com>
5525
5526 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5527 and its setting. Set gdbarch instruction printing functions
5528 directly. For non-rs6000 case use new function
5529 gdb_print_insn_powerpc.
5530 (gdb_print_insn_powerpc): New function.
5531
3fbeef0b
AC
55322002-07-13 Andrew Cagney <ac131313@redhat.com>
5533
92eb23c5 5534 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5535 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5536 * configure.tgt: Mark d30v-*-* as obsolete.
5537 * d30v-tdep.c: Mark file as obsolete.
5538 * config/d30v/d30v.mt: Ditto.
5539 * config/d30v/tm-d30v.h: Ditto.
5540
aacb1f0a
AS
55412002-07-13 Aidan Skinner <aidan@velvet.net>
5542
5543 * ada-tasks.c (add_task_entry): replace calls to
5544 malloc() with xmalloc
5545 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5546
5547 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5548 ada_finish_decode_line_1, all_sals_for_line
5549 ada_breakpoint_rewrite): replace calls to free() with xfree()
5550
c11d79f2
KB
55512002-07-12 Kevin Buettner <kevinb@redhat.com>
5552
5553 From Nicholas Duffek (with minor changes by Martin Hunt,
5554 Louis Hamilton, and Kevin Buettner):
5555 * aix-thread.c: New file.
5556
8e19ed76
PS
55572002-07-12 Petr Sorfa <petrs@caldera.com>
5558
5559 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5560 complaint for invalid attribute class or form.
5561 (read_func_scope): DW_AT_frame_base
5562 better handling of DW_AT_block*.
5563 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5564 better handling of DW_AT_block*.
5565 (read_common_block): DW_AT_location
5566 better handling of DW_AT_block*.
5567 (read_partial_die): DW_AT_location better handling
5568 of DW_AT_block*.
5569 (new_symbol): DW_AT_external better handling of
5570 DW_AT_block*. Proper initialization of variable
5571 "addr".
5572 (attr_form_is_block): New function that returns true
5573 if the attribute's form is of DW_FORM_block*.
5574
295401f7
DJ
55752002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5576
5577 * valops.c (find_method_list): Remove comment about
5578 removed STATIC_MEMFUNCP argument.
5579 (value_find_oload_method_list): Likewise.
5580
e42dc924
KB
55812002-07-12 Kevin Buettner <kevinb@redhat.com>
5582
5583 From Nicholas Duffek:
5584 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5585 target_new_objfile_hook.
5586
6904b546
KB
55872002-07-12 Kevin Buettner <kevinb@redhat.com>
5588
5589 From Nicholas Duffek:
5590 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5591 csect.
5592
53fe9346
AC
55932002-07-12 Andrew Cagney <cagney@redhat.com>
5594
5595 * MAINTAINERS: Mention --enable-sim-build-warnings.
5596 (m68hc11-elf): Disable sim build warnings.
5597 (m32r-elf): Mark as broken obsolete candidate.
5598 (x86_64-linux-gnu): Mark as buildable with -Werror.
5599 (arm-elf): Change -w to ``,'' which enables warnings but not
5600 -Werror.
5601
af5f3db6
AC
56022002-07-12 Andrew Cagney <ac131313@redhat.com>
5603
5604 * bcache.h: Update copyright.
5605 (struct bstring, struct bcache): Move definition to "bcache.c".
5606 Replaced by opaque declaration.
5607 (bcache_xfree): Replace free_bcache.
5608 (bcache_xmalloc, bcache_memory_used): Declare.
5609
5610 * bcache.c: Update copyright.
5611 (struct bstring, struct bcache): Moved to here from "bcache.h".
5612 Update comments.
5613 (bcache_xmalloc, bcache_memory_used): New functions.
5614 (bcache_xfree): Replace function free_bcache.
5615
5616 * Makefile.in (objfiles.o): Add $(bcache_h).
5617 (objfiles_h): Remove $(bcache_h).
5618 (symfile.o): Add $(bcache_h).
5619
5620 * symmisc.c: Update copyright.
5621 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5622 (print_objfile_statistics): Use bcache_memory_used.
5623
5624 * symfile.c: Include "bcache.h".
5625 (reread_symbols): Use bcache_xfree.
5626 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5627 (add_psymbol_to_list): Pass psymbol_cache by value.
5628 (add_psymbol_with_dem_name_to_list): Ditto.
5629
5630 * objfiles.h: Update copyright.
5631 (struct bcache): Declare opaque. Do not include "bcache.h".
5632 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5633 bcache'' pointers.
5634 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5635
5636 * objfiles.c: Include "bcache.h". Update copyright.
5637 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5638 macro_cache.
5639 (free_objfile): Use bcache_xfree.
5640
444199e7
GS
56412002-07-11 Grace Sainsbury <graces@redhat.com>
5642
5643 * monitor.c (monitor_fetch_register): Make name a constant.
5644 (monitor_store_register): Same.
5645
261397f8
DJ
56462002-07-11 Daniel Jacobowitz <drow@mvista.com>
5647
5648 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5649 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5650 (finish_block) For non-function blocks, hash the symbol table. For
5651 function blocks, mark the symbol table as unhashed.
5652 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5653 (msymbol_hash_iw): Likewise.
5654 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5655 value.
5656 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5657 (lookup_minimal_symbol): Likewise for both.
5658 * symtab.h (struct block): Add `hashtable' flag. Comment the
5659 hashtable.
5660 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5661 (ALL_BLOCK_SYMBOLS): Update.
5662 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5663 (struct symbol): Add `hash_next' pointer.
5664 * symtab.c (lookup_block_symbol): Search using the hash table when
5665 possible.
5666 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5667 (search_symbols, find_addr_symbol): Likewise.
5668
5669 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5670 (read_dst_symtab): Likewise.
5671 * jv-lang.c (get_java_class_symtab): Likewise.
5672 * mdebugread.c: Include "gdb_assert.h".
5673 (shrink_block): Assert that the block being modified is not hashed.
5674 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5675 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5676 symbols.
5677 (dump_symtab): Recognize hashed blocks.
5678 * printcmd.c (print_frame_args): Assert that function blocks do not
5679 have hashed symbol tables.
5680 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5681 (fill_in_ada_prototype, debug_print_block): Likewise.
5682 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5683
6f0eaa01
CV
56842002-07-11 Corinna Vinschen <vinschen@redhat.com>
5685
5686 * stack.c (print_frame): Use result of frame_address_in_block()
5687 instead of fi->pc when evaluating symbols.
5688 (backtrace_command_1): Ditto.
5689
a208b0cb
AC
56902002-07-11 Andrew Cagney <cagney@redhat.com>
5691
5692 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5693 Make static.
5694
5695 * arm-tdep.c (arm_register_name): Make return type constant.
5696
a6b6b089
AC
56972002-07-10 Andrew Cagney <ac131313@redhat.com>
5698
5ae5f592
AC
5699 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5700 prototype.
5701 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5702 * s390-tdep.c (s390_fp_regnum): Ditto.
5703 (s390_read_fp): Ditto.
5704 (s390_pop_frame): Ditto.
5705 (_initialize_s390_tdep): Ditto.
5706 * remote.c (get_remote_state): Ditto.
5707 * procfs.c (mappingflags): Ditto.
5708 * memattr.c (_initialize_mem): Ditto.
5709 * mcore-tdep.c (mcore_pop_frame): Ditto.
5710 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5711 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5712 * language.c (set_case_str): Ditto.
5713 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5714 * frv-tdep.c (new_variant): Ditto.
5715 (frv_stopped_data_address): Ditto.
5716 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5717 (context_alloc): Ditto.
5718 (frame_state_alloc): Ditto.
5719 (unwind_tmp_obstack_init): Ditto.
5720 (unwind_tmp_obstack_free): Ditto.
5721 (cfi_read_fp): Ditto.
5722 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5723 (cris_pop_frame): Ditto.
5724 * c-lang.c (scanning_macro_expansion): Ditto.
5725 (finished_macro_expansion): Ditto.
5726 (c_preprocess_and_parse): Ditto.
5727 * gdbarch.sh: Ditto.
5728 * gdbarch.h, gdbarch.c: Regenerate.
5729 * config/mn10200/tm-mn10200.h: Adjust indentation.
5730 * target.c: Adjust indentation.
5731 * symtab.h: Adjust indentation.
5732 * stabsread.h: Adjust indentation.
5733 * remote-es.c: Adjust indentation.
5734 * os9kread.c: Adjust indentation.
5735
57362002-07-10 Andrew Cagney <ac131313@redhat.com>
5737
a6b6b089
AC
5738 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5739 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5740
a1789893
GS
57412002-07-10 Grace Sainsbury <graces@redhat.com>
5742
5743 * NEWS: Mention m68k, mcore multi-arching.
5744 * MAINTAINERS: Change status of m68k, mcore to reflect
5745 multi-arching.
5746
02f0d45d
DJ
57472002-07-10 Daniel Jacobowitz <drow@mvista.com>
5748
5749 * valops.c (find_overload_match): Free oload_syms.
5750
f15f768e
JB
57512002-07-09 Joel Brobecker <brobecker@gnat.com>
5752
5753 Define HAVE_SYS_PROC_H if sys/proc.h exists
5754 * configure.in: Add check for sys/proc.h
5755 * config.in: Regenerate.
5756 * configure: Regenerate.
5757
902a7139
GS
57582002-07-09 Grace Sainsbury <graces@redhat.com>
5759
5760 * config/m68k/tm-m68k.h: Remove macros wrapped in
5761 #if !GDB_MULTI_ARCH.
5762
a534e424
AC
57632002-07-08 Andrew Cagney <ac131313@redhat.com>
5764
5765 * config.in, configure: Regenerate.
5766
9b94f7bf
MK
57672002-07-08 Mark Kettenis <kettenis@gnu.org>
5768
5769 * dwarf2cfi.c: Include "gcore.h".
5770 (execute_stack_op): Fix implementation of the
5771 DW_OP_deref and DW_OP_deref_size operators by letting do their
5772 lookup in the target.
5773
1d34db41
MK
57742002-07-07 Mark Kettenis <kettenis@gnu.org>
5775
5776 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5777 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5778 tdep->sc_sp_offset.
5779
79d5b63a
DJ
57802002-07-05 Daniel Jacobowitz <drow@mvista.com>
5781
5782 Fix PR gdb/595, gdb/602
5783 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5784 Don't call value_cast, just read the vtable pointer; update comments
5785 to match.
5786
3bb912e8
GS
57872002-07-05 Grace Sainsbury <graces@redhat.com>
5788
5789 * config/mcore/tm-mcore.h: Remove file.
5790 * config/mcore/mcore.mt: Remove definition of TM_FILE
5791 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5792
ca39387d
MK
57932002-07-05 Mark Kettenis <kettenis@gnu.org>
5794
5795 * i386bsd-tdep.c: Include "gdb_string.h".
5796
efdc1108
GS
57972002-07-04 Grace Sainsbury <graces@redhat.com>
5798
5799 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5800 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5801 mcore-tdep.
5802 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5803 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5804 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5805 (RETVAL_REGNUM): Move macros from tm-mcore.h
5806 (mcore_reg_struct_has_addr): New function.
5807 (mcore_gdbarch_init): Added initializations for the macros removed
5808 from tm-mcore.h.
5809
bb21884d
MK
58102002-07-04 Mark Kettenis <kettenis@gnu.org>
5811
5812 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5813 traditonal string branding within the ELF header.
5814
228c6d41
DJ
58152002-07-04 Daniel Jacobowitz <drow@mvista.com>
5816
5817 * symtab.c (remove_params): New function.
5818 (make_symbol_overload_list): Use it instead of cplus_demangle.
5819 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5820
2404952e
MK
58212002-07-04 Mark Kettenis <kettenis@gnu.org>
5822
e5e4acad
MK
5823 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5824
baadce09
MK
5825 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5826 New variables.
5827 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5828 and tdep->sigtramp_end.
5829 * i386obsd-nat.c: New file.
5830 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5831
2404952e
MK
5832 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5833 Don't call get_current_frame().
5834
9b4f1ba7
PM
58352002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5836
5837 * i386-nat.c (child_post_startup_inferior): New function
5838 calling i386_cleanup_dregs if
5839 I386_USE_GENERIC_WATCHPOINTS is defined.
5840 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5841 conditional to acknowledge that i386-nat.c has its
5842 own child_post_startup_inferior function.
5843
c0d1d883
MK
58442002-07-04 Mark Kettenis <kettenis@gnu.org>
5845
00f8375e
MK
5846 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5847 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5848 instead of MAX_REGISTER_RAW_SIZE.
5849 (i386_extract_return_value, i386_extract_struct_value_address):
5850 Convert to use regcache.
5851 (i386_gdbarch_init): Set max_register_raw_size and
5852 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5853 Set extract_return_value and extract_struct_value_address instead
5854 of their deprecated variants.
5855
c0d1d883
MK
5856 Convert i386 target to generic dummy frames.
5857 * i386-tdep.c: Include "symfile.h".
5858 (i386_frameless_signal_p): Consider a function to be frameless if
5859 the pc points at the first instruction of the function.
5860 (i386_frame_chain): Handle (generic) call dummies.
5861 (i386_frame_saved_pc): Likewise.
5862 (i386_frame_init_saved_regs): Remove code dealing with call
5863 dummies on the stack.
5864 (i386_push_dummy_frame): Removed.
5865 (i386_call_dummy_words): Removed.
5866 (i386_fix_call_dummy): Removed.
5867 (i386_push_return_address): New function.
5868 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5869 parameter, and don't call get_current_frame.
5870 (i386_pop_frame): New function.
5871 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5872 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5873 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5874 call_dummy_length to 0, set call_dummy_words to NULL, set
5875 sizeof_call_dummy_words to 0, set fix_call_dummy to
5876 generic_fix_call_dummy, set pc_in_call_dummy to
5877 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5878 generic_push_dummy_frame, set push_return_address to
5879 i386_push_return_address and set frame_chain_valid to
5880 generic_file_frame_chain_valid.
5881
049ee0e4
AC
58822002-07-03 Andrew Cagney <ac131313@redhat.com>
5883
5884 * gdbarch.sh (struct regcache): Add opaque declaration.
5885 (EXTRACT_RETURN_VALUE): New architecture method.
5886 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5887 * gdbarch.h, gdbarch.c: Regenerate.
5888 * arch-utils.c (legacy_extract_return_value): New function.
5889 * arch-utils.h (legacy_extract_return_value): Declare.
5890 * values.c (value_being_returned): Re-enable code handling
5891 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5892 deprecated_grub_regcache_for_registers call to block handling
5893 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5894 (EXTRACT_RETURN_VALUE): Do not define.
5895
4e0d9804
GS
58962002-07-03 Grace Sainsbury <graces@redhat.com>
5897
5898 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5899 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5900 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5901 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5902 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5903 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5904 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5905 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5906 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5907 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5908 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5909 argument so the function fits the prototype in the architecture
5910 vector.
5911 (mcore_pop_frame): Remove argument so the function fits the
5912 prototype. Use get_current_frame instead of the argument.
5913 (mcore_push_arguments): Change type of struct_return so the
5914 function can be used in the architecture vector.
5915 (mcore_store_struct_return): Add.
5916 (mcore_frame_init_saved_regs): Add.
5917 (mcore_gdbarch_init): Add function calls to replace the macros
5918 removed from tm-mcore.h
5919
36160dc4
AC
59202002-07-03 Andrew Cagney <ac131313@redhat.com>
5921
5922 * infcmd.c (print_return_value): Remove compatibility code calling
5923 deprecated_grub_regcache_for_registers.
5924
5925 * values.c: Include "regcache.h".
5926 (value_being_returned): Update. Use
5927 deprecated_grub_regcache_for_registers to extract the register
5928 buffer address.
5929 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5930 ``struct regcache''.
5931 * Makefile.in (values.o): Add dependency on $(regcache_h).
5932
5933 * inferior.h (run_stack_dummy): Change type of second parameter to
5934 a ``struct regcache''.
5935 * valops.c (hand_function_call): Change type of retbuf to ``struct
5936 regcache''. Allocate using regcache_xmalloc, clean using
5937 make_cleanup_regcache_xfree.
5938 * infcmd.c (run_stack_dummy): Update. Use
5939 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5940
5941 * regcache.c (do_regcache_xfree): New function.
5942 (make_cleanup_regcache_xfree): New function.
5943 * regcache.h (make_cleanup_regcache_xfree): Declare.
5944
e64d9b3d
MH
59452002-07-03 Martin M. Hunt <hunt@redhat.com>
5946
4dd79c29
MH
5947 * event-top.c (command_line_handler): Don't read past
5948 beginning of buffer.
e64d9b3d 5949
4dd79c29
MH
59502002-07-03 Martin M. Hunt <hunt@redhat.com>
5951
e64d9b3d
MH
5952 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5953 struct frame_id.
5954 (varobj_create): Store frame_id for root.
5955 (varobj_gen_name): Use xasprintf.
5956 (varobj_update): Save and restore frame using get_frame_id() and
5957 frame_find_by_id().
5958 (create_child): Use xasprintf.
5959 (new_root_variable): Initialize frame_id.
5960 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5961 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5962 to prevent memory leak.
5963
26e6c56a
AC
59642002-07-03 Andrew Cagney <ac131313@redhat.com>
5965
5966 * valops.c (hand_function_call): Move declaration of retbuf to
5967 start of function, allocate using malloc, add a cleanup but before
5968 the inf_status cleanup, cleanup the buffer. Rename local variable
5969 old_chain to inf_status_cleanup.
5970
f436dd25
MH
59712002-07-03 Martin M. Hunt <hunt@redhat.com>
5972
5973 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5974
5975 * cli/cli-decode.c (cmd_func_p): New function.
5976 (cmd_func): New function.
5977
5978 * command.h: Add cmd_func() and cmd_func_p().
5979
4cfe2084
GS
59802002-07-03 Grace Sainsbury <graces@redhat.com>
5981
5982 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5983 (REGISTER_SIZE): Remove.
5984 (MAX_REGISTER_RAW_SIZE): Remove.
5985 (REGISTER_VIRTUAL_TYPE): Remove.
5986 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5987 (REGISTER_NAME): Remove.
5988 (USE_GENERIC_DUMMY_FRAMES): Remove.
5989 (CALL_DUMMY): Remove.
5990 (CALL_DUMMY_START_OFFSET): Remove.
5991 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5992 (CALL_DUMMY_LOCATION): Remove.
5993 (FIX_CALL_DUMMY): Remove.
5994 (CALL_DUMMY_ADDRESS): Remove.
5995 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5996 (SAVE_DUMMY_FRAME_TOS): Remove.
5997 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5998 (mcore_register_virtual_type): New function.
5999 (mcore_register_byte): New function.
6000 (mcore_register_size): New function.
6001 (mcore_register_name): New function.
6002 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6003 macros removed from tm-mcore.h.
6004 (mcore_dump_tdep): Add.
6005 (_initialize_mcore_tdep): Add gdbarch_register call.
6006
4fd667e9
MK
60072002-07-03 Mark Kettenis <kettenis@gnu.org>
6008
6009 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6010 frameless_look_for_prologue, such that we actually call this
6011 function.
6012
42f99ac2
JB
60132002-07-02 Joel Brobecker <brobecker@gnat.com>
6014
6015 * frame.h (frame_address_in_block): New function.
6016
6017 * blockframe.c (frame_address_in_block): New function extracted
6018 from get_frame_block().
6019 (get_frame_block): Use frame_address_in_block().
6020 (block_innermost_frame): Use frame_address_in_block() to match
6021 the frame pc address against the block boundaries rather than
6022 the frame pc directly. This prevents a failure when a frame pc
6023 is actually a return-address pointing immediately after the end
6024 of the given block.
6025
103a1597 60262002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
6027
6028 * MAINTAINERS: Add self under write after approval.
6029
60302002-07-02 Grace Sainsbury <graces@redhat.com>
6031
103a1597
GS
6032 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6033 used in architecture vector. The default is
6034 m68k_local_breakpoint_from_pc.
6035 (m68k_local_breakpoint_from_pc): Add.
6036 (enum): Add register numbers from tm-m68k.h.
6037 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6038 vector.
6039 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6040 GDB_MULTI_ARCH_PARTIAL.
6041 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6042 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6043 m68k-tdep.c.
6044 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6045 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6046 to enum in m68k-tdep.c
6047
7a5a0534
JB
60482002-07-02 Joel Brobecker <brobecker@gnat.com>
6049
6050 * solib-osf.c (open_map): Compute the list of shared libraries
6051 loaded by the inferior, rather than the list of libraries loaded
6052 by GDB itself. Otherwise, GDB ends up reading the symbols from
6053 the wrong shared libraries...
6054
6f558d74
MK
60552002-07-02 Mark Kettenis <kettenis@gnu.org>
6056
b7d15bf7
MK
6057 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6058 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6059 macros.
6060 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6061 Remove functions.
6062 (FRAMELESS_SIGNAL): Remove function.
6063 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6064 i386_linux_saved_pc_after_call): Removed.
6065 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6066 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6067 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6068
6bff26de
MK
6069 * i386-tdep.c (i386_frameless_signal_p): New function.
6070 (i386_frame_chain): Deal with frameless signals.
6071 (i386_sigtramp_saved_sp): New function.
6072 (i386_frame_saved_pc): Deal with frameless signals.
6073 (i386_saved_pc_after_call): Make sure the correct value is
6074 returned just after entry into a sigtramp.
6075 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6076 i386fbsd4_sc_sp_offset): New variables.
6077 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6078 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6079 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6080 similiar to what we already did for sc_pc_offset.
6081 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6082 tdep->sc_sp_offset.
6083
6f558d74
MK
6084 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6085
145564b7
ML
60862002-07-02 Michal Ludvig <mludvig@suse.cz>
6087
6088 * config/i386/tm-x86-64linux.h: New.
6089 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6090 definitions.
6091 * config/i386/nm-x86-64.h: Rename to ...
6092 * config/i386/nm-x86-64linux.h: ... this one.
6093 * config/i386/x86-64linux.mh: Reflect the above change.
6094
3a1e71e3
MK
60952002-07-01 Mark Kettenis <kettenis@gnu.org>
6096
21d0e8a4
MK
6097 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6098 with sigcontext_addr. Add sc_sp_offset.
6099 (i386bsd_sigtramp_saved_pc): Remove prototype.
6100 (i386bsd_sicontext_addr): Add prototype.
6101 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6102 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6103 (i386_svr4_sigtramp_saved_pc): Removed.
6104 (i386_svr4_sigcontext_addr): New function.
6105 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6106 Initialize tdep->sigcontext_addr instead. Initialize
6107 tdep->sc_pc_offset and tdep->sc_sp_offset.
6108 (i386_gdbarch_init): Likewise.
6109 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6110 any more.
6111 (i386bsd_sigtramp_saved_pc): Remove function.
6112 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6113 Initialize tdep->sigcontext_addr instead. Initialize
6114 tdep->sc_pc_offset.
6115 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6116 of tdep->sigtramp_saved_pc.
6117 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6118 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6119 instead.
6120
3a1e71e3
MK
6121 * i386-tdep.c (i386_frameless_function_invocation,
6122 i386_frame_num_args, i386_frame_init_saved_regs,
6123 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6124 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6125 i386_extract_return_value, i386_store_return_value,
6126 i386_extract_struct_value_address, i386_register_virtual_type,
6127 i386_register_convertible, i386_register_convert_to_virtual,
6128 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6129 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6130 static.
6131
52e9098c
MK
61322002-07-01 Mark Kettenis <kettenis@gnu.org>
6133
77b13a25
MK
6134 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6135
52e9098c
MK
6136 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6137 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6138 this macro. Include "value.h".
6139
1b372fff
AS
61402002-06-30 Aidan Skinner <aidan@velvet.net>
6141
6142 * ada-exp.tab.c: remove as it's a generated file
6143 * ada-lex.c: remove as it's a generated file
6144
9c5045b5
MK
61452002-06-30 Mark Kettenis <kettenis@gnu.org>
6146
4a93c5bb
MK
6147 * config/i386/tm-i386.h (struct frame_info, struct
6148 frame_saved_regs, struct value, struct type): Remove forward
6149 declarations.
6150
322d4fe0
MK
6151 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6152 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6153 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6154 (FILL_FPXREGSET): Define.
6155
fdd8263d
MK
6156 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6157
482e577b
MK
6158 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6159 i[3456]86-*-netbsd* case.
6160 * config/i386/tm-obsd.h: Removed.
6161 * config/i386/obsd.mt: Removed.
6162 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6163 core-aout.o.
6164 (MH_CFLAGS): Add -DYYDEBUG=0.
6165
6916549a
MK
6166 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6167 i386nbsd_sc_pc_offset on OpenBSD too.
6168
9c5045b5
MK
6169 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6170 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6171 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6172 define.
6173 * i386bsd-tdep.c: Include "arch-utils.h".
6174 (i386bsd_aout_in_solib_call_trampoline): New function.
6175 (i386bsd_init_abi): Set in_solib_call_trampoline to
6176 i386bsd_aout_in_solib_call_trampoline.
6177 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6178 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6179
aa84d1bb
AC
61802002-06-28 Andrew Cagney <ac131313@redhat.com>
6181
6182 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6183 (struct obstack, struct bcache): Add opaque declarations.
6184 * Makefile.in (macrotab_h): Update
6185
b4d83933
AC
61862002-06-28 Andrew Cagney <ac131313@redhat.com>
6187
6188 * blockframe.c (generic_find_dummy_frame): Change return type to
6189 ``struct regcache''.
6190 (struct dummy_frame): Replace field ``registers'' with regcache, a
6191 struct regcache object.
6192 (generic_find_dummy_frame): Update.
6193 (generic_push_dummy_frame): Update. Use regcache_xfree,
6194 regcache_xmalloc and regcache_cpy.
6195 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6196 regcache_xfree.
6197 (deprecated_generic_find_dummy_frame): Update.
6198 (generic_read_register_dummy): Update. Use
6199 regcache_read_as_address.
6200 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6201 (generic_get_saved_register): Update. Use regcache_read.
6202
08c0b5bc
AC
62032002-06-28 Andrew Cagney <ac131313@redhat.com>
6204
6205 * Makefile.in (objfiles_h): Add $(bcache_h).
6206 * objfiles.h: Include "bcache.h".
6207
6208 * Makefile.in (symtab_h): Remove $(bcache_h).
6209 * symtab.h: Do not include "bcache.h".
6210
1f89801a
AC
62112002-06-28 Andrew Cagney <ac131313@redhat.com>
6212
6213 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6214 generic_func_frame_chain_valid.
6215
b9644b58
DB
62162002-06-28 David O'Brien <obrien@FreeBSD.org>
6217
6218 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6219 * config/i386/tm-fbsd.h: Likewise.
6220
dd486634
AC
62212002-06-28 Andrew Cagney <ac131313@redhat.com>
6222
6223 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6224 generic_unwind_get_saved_register.
6225
0b434a00
AC
62262002-06-27 Andrew Cagney <ac131313@redhat.com>
6227
6228 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6229 * regcache.c (supply_register): Add missing argument to
6230 register_buffer call.
6231
f30e5a77
AC
62322002-06-27 Andrew Cagney <ac131313@redhat.com>
6233
6234 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6235 Solaris /bin/grep does not not like it. From Peter Schauer.
6236
9f064c95
TT
62372002-06-26 Tom Tromey <tromey@redhat.com>
6238
6239 * command.h (add_setshow_cmd): Declare.
6240 (add_setshow_cmd_full): Declare.
6241 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6242 returns void. Use add_setshow_cmd_full.
6243 (add_setshow_cmd_full): New function.
6244 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6245 (add_setshow_boolean_cmd): Likewise.
6246
099c7589
JT
62472002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6248
6249 * config/vax/tm-vax.h: Protect from multiple inclusion.
6250 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6251 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6252 * config/vax/tm-vaxbsd.h: ...here. New file.
6253 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6254
1d049c5e
JT
62552002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6256
6257 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6258 (BELIEVE_PCC_PROMOTION): Remove.
6259 (AP_REGNUM): Move to...
6260 * config/vax/nm-vax.h: ...here.
6261 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6262 (vax_breakpoint_from_pc): New function.
6263 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6264 and gdbarch_believe_pcc_promotion.
6265
4791e091
JT
62662002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6267
6268 * Makefile.in (vax_tdep_h): Define.
6269 (vax-tdep.o): Use $(vax_tdep_h).
6270 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6271 (vax_dump_tdep): New function.
6272 (_initialize_vax_tdep): Register vax_dump_tdep.
6273 * vax-tdep.h: Include osabi.h.
6274 (struct gdbarch_tdep): New.
6275
da130f98
AC
62762002-06-26 Andrew Cagney <cagney@redhat.com>
6277
6278 * frame.h (deprecated_generic_find_dummy_frame): Rename
6279 generic_find_dummy_frame.
6280 * blockframe.c (generic_find_dummy_frame): Make static.
6281 (deprecated_generic_find_dummy_frame): New function.
6282 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6283 generic_find_dummy_frame with deprecated_find_dummy_frame.
6284 (sh64_nofp_frame_init_saved_regs): Ditto.
6285 (sh_fp_frame_init_saved_regs): Ditto.
6286 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6287 (s390_frame_chain): Ditto.
6288 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6289
6300c360
GS
62902002-06-26 Grace Sainsbury <graces@redhat.com>
6291
6292 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6293 gdbarch vector are at the top.
6294 (NUM_REGS): Remove.
6295 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6296 (FRAME_ARGS_ADDRESS): Remove.
6297 (FRAME_LOCALS_ADDRESS): Remove.
6298 (FRAME_NUM_ARGS): Remove.
6299 (FRAME_ARGS_SKIP): Remove.
6300 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6301 (m68k_gdbarch_init): Add gdbarch initializations for macros
6302 undefined in tm-m68k.h
6303
1c617db8
GS
63042002-06-26 Grace Sainsbury <graces@redhat.com>
6305
6306 * monitor.h: Add the function regname to monitor_ops
6307 structure. This way NUM_REGS does not have to be a constant.
6308 * monitor.c (monitor_fetch_register): Added support for regname
6309 function. The function is called if the array regnames is NULL.
6310 (monitor_store_register): Same.
da130f98
AC
6311 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6312 regnames array.
1c617db8
GS
6313 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6314 cpu32bug_cmds.regname to point to new function.
6315 * abug-rom.c (abug_regname): Same as above.
6316 (init_abug_cmds): Same.
6317 * dbug-rom.c (dbug_regname): Same as above.
6318 (init_dbug_cmds): Same.
6319 * remote-est.c (est_regname): Same.
6320 (init_est_cmds): Same.
6321 * rom68k-rom.c (rom68k_regname): Same.
6322 (init_rom68k_cmds): Same.
6323
ea9365bb
TT
63242002-06-25 Tom Tromey <tromey@redhat.com>
6325
6326 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6327
72cec141
AC
63282002-06-25 Andrew Cagney <cagney@redhat.com>
6329
6330 * infrun.c (stop_registers): Change variable's type to ``struct
6331 regcache'''.
6332 (xmalloc_inferior_status): Delete function.
6333 (free_inferior_status): Delete function.
6334 (normal_stop): Use regcache_cpy.
6335 (struct inferior_status): Change type of fields ``stop_registers''
6336 and ``registers'' to ``struct regcache''.
6337 (write_inferior_status_register): Use regcache_write.
6338 (save_inferior_status): Instead of calling
6339 xmalloc_inferior_status, allocate the inf_status buffer directly.
6340 Use regcache_dup_no_passthrough and regcache_dup to save the
6341 buffers.
6342 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6343 Replace the stop_registers regcache instead of overriding it. Use
6344 regcache_xfree. Instead of calling free_inferior_status, xfree
6345 the buffer directly.
6346 (discard_inferior_status): Use regcache_xfree. Instead of calling
6347 free_inferior_status, xfree the buffer directly.
6348 (build_infrun): Use regcache_xmalloc.
6349 (_initialize_infrun): Delete redundant call to build_infrun.
6350
6351 * Makefile.in (infcmd.o): Add $(regcache_h).
6352
6353 * infcmd.c: Include "regcache.h".
6354 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6355 obtain the address of `stop_registers' register buffer.
6356 (print_return_value): Ditto.
6357
6358 * inferior.h (struct regcache): Add opaque declaration.
6359 (stop_registers): Change variable's declared type to ``struct
6360 regcache''.
6361
defc6f8c
TT
63622002-06-24 Tom Tromey <tromey@redhat.com>
6363
c0e624e7
TT
6364 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6365 * target.c (initialize_targets): Fixed typo in
6366 trust-readonly-sections `show' documentation.
6367
defc6f8c
TT
6368 * main.c: Marked all strings with _().
6369
2b236d82
DH
63702002-06-24 Don Howard <dhoward@redhat.com>
6371
6372 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6373 that means max CORE_ADDR+1.
6374 (lookup_mem_region): Ditto.
6375 (mem_info_command): Ditto.
6376
942dc0e9
GS
63772002-06-24 Grace Sainsbury <graces@redhat.com>
6378
6379 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6380 (REGISTER_BYTES_OK): Remove.
6381 (REGISTER_BYTES): Remove.
6382 (STORE_STRUCT_RETURN): Remove.
6383 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6384 (STORE_RETURN_VALUE): Remove.
6385 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6386 (FRAME_CHAIN): Remove.
6387 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6388 (FRAME_SAVED_PC): Remove.
6389 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6390 (m68k_store_struct_return): Add.
6391 (m68k_deprecated_extract_return_value): Add.
6392 (m68k_deprecated_extract_struct_value_address): Add.
6393 (m68k_store_return_value): Add.
6394 (m68k_frame_chain): Add.
6395 (m68k_frameless_function_invocation): Add.
6396 (m68k_frame_saved_pc): Add.
6397 (m68k_gdbarch_init): added set_gdbarch calls for new
6398 functions and deleted macros.
6399
03c30d4d
TT
64002002-06-23 Tom Tromey <tromey@redhat.com>
6401
6402 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6403 (ALLDEPFILES): Likewise.
6404 (udiheaders): Removed.
6405 (udip2soc.o): Likewise.
6406 (udi2go32.o): Likewise.
6407 (udr.o): Likewise.
6408 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6409
37e71372
AC
64102002-06-22 Andrew Cagney <ac131313@redhat.com>
6411
06a6ac57
AC
6412 * infrun.c (_initialize_infrun): Delete unnecessary call to
6413 build_infrun.
6414
37e71372
AC
6415 * regcache.h: Update comments describing the regcache_cpy family
6416 of functions.
6417 (regcache_save, regcache_restore): Delete declaration.
6418 (regcache_save_no_passthrough): Delete declaration.
6419 (regcache_restore_no_passthrough): Delete declaration.
6420 * regcache.c (regcache_save): Delete function.
6421 (regcache_save_no_passthrough): Delete function.
6422 (regcache_restore): Delete function.
6423 (regcache_restore_no_passthrough): Delete function.
6424
78f6d055
AC
64252002-06-21 Andrew Cagney <ac131313@redhat.com>
6426
6427 * config/m68k/tm-m68k.h: Fix typo.
6428 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6429 (m68k_frame_init_saved_regs): Declare.
6430
78b119cb
JB
64312002-06-21 Jim Blandy <jimb@redhat.com>
6432
6433 Remove some vestiges of Harris 88k support.
6434 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6435 register numbering quirk.
6436 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6437 odd symbols occurring in Harris 88k ELF targets.
6438
0fbb3da7
TT
64392002-06-21 Tom Tromey <tromey@redhat.com>
6440
6441 * gdb_locale.h: New file.
6442 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6443 (defs_h): Added gdb_locale.h.
6444 * configure, config.in: Rebuilt.
6445 * configure.in (PACKAGE): Define.
6446 * defs.h: Include gdb_locale.h.
6447 * main.c (captured_main): Call setlocale, bindtextdomain,
6448 textdomain.
6449
456f8b9d
DB
64502002-06-21 Dave Brolley <brolley@redhat.com>
6451
6452 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6453 * config/frv/frv.mt: New file.
6454 * config/frv/tm-frv.h: New file.
6455 * configure.tgt: Support frv-*-*.
6456 * Makefile.in (frv-tdep.o): New target.
6457 * frv-tdep.c: New file.
6458 * NEWS: Mention frv.
6459
cdd463f9
DB
64602002-06-21 Dave Brolley <brolley@redhat.com>
6461
6462 * MAINTAINERS: Add self to "Write After Approval" list.
6463
5d3ed2e3
GS
64642002-06-21 Grace Sainsbury <graces@redhat.com>
6465
6466 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6467 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6468 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6469 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6470 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6471
6472 * m68k-tdep.c: Include arch-utils.h
6473 (m68k_register_raw_size): Add.
6474 (m68k_register_virtual_size): Add.
6475 (m68k_register_virtual_type): Add.
6476 (m68k_register_name): Add.
6477 (m68k_stack_align): Add.
6478 (m68k_register_byte): Add.
6479 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6480 tm-m68k.h.
6481
7f8e7424
GS
64822002-06-21 Grace Sainsbury <graces@redhat.com>
6483
a2c6a6d5 6484 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6485 m68k_find_saved_regs.
6486 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6487 references to it with frame->saved_regs.
7f8e7424
GS
6488 (m68k_gdbarch_init): Added function calls to initialize the
6489 gdbarch structure.
a2c6a6d5
GS
6490 (m68k_fix_call_dummy): Add.
6491 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6492 (CALL_DUMMY): Remove.
6493 (CALL_DUMMY_LENGTH): Remove.
6494 (CALL_DUMMY_START_OFFSET): Remove.
6495 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6496 (FIX_CALL_DUMMY): Remove.
6497 (PUSH_DUMMY_FRAME): Remove.
6498 (POP_FRAME): Remove.
7f8e7424 6499
f461f5cf
PM
65002002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6501
6502 * parse.c (parse_fprintf): New function used to avoid calls to
6503 fprintf in bison parser generated debug code.
6504 * parser-defs.h: Declaration of new parse_fprintf function.
6505 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6506 Set YYDEBUG to 1 by default.
6507 Set YYFPRINTF as parse_fprintf.
6508
7f0c12ed
ML
65092002-06-21 Michal Ludvig <mludvig@suse.cz>
6510
6511 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6512 encoding anymore.
6513 (pointer_encoding, enum ptr_encoding): New.
6514 (execute_cfa_program): Take care about pointer encoding.
6515 (dwarf2_build_frame_info): Only call parse_frame_info for
6516 .debug_frame and .eh_frame.
6517 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6518 fixed augmentation handling, added relative addressing,
6519 ignore duplicate FDEs. Added comments.
19d833a2 6520 * dwarf2cfi.c: Reindented.
7f0c12ed 6521
87c4a039
EZ
65222002-06-20 Elena Zannoni <ezannoni@redhat.com>
6523
6524 * event-top.c (command_handler): Don't use space_at_cmd_start
6525 unless there is sbrk() on the host. Assign time and space data
6526 to union fields of the appropriate length.
6527
1cf877ad
ML
65282002-06-20 Michal Ludvig <mludvig@suse.cz>
6529
6530 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6531 x86_64_register_name. Return type changed to 'const char *'.
6532 (x86_64_register_name2nr): Rename to x86_64_register_number.
6533 (x86_64_gdbarch_init): Update to reflect the change.
6534 * x86-64-tdep.h: Ditto.
6535 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6536 (supply_fpregset): Ditto.
6537
3fadccb3
AC
65382002-06-19 Andrew Cagney <cagney@redhat.com>
6539
6540 * regcache.h: Update copyright.
6541 (struct regcache, struct gdbarch): Add opaque declarations.
6542 (current_regcache): Declare global variable.
6543 (regcache_read, regcache_write): Add gdbarch parameter.
6544 (regcache_save, regcache_save_no_passthrough)
6545 (regcache_restore, regcache_restore_no_passthrough)
6546 (regcache_dup, regcache_dup_no_passthrough)
6547 (regcache_cpy, regcache_cpy_no_passthrough)
6548 (deprecated_grub_regcache_for_registers)
6549 (deprecated_grub_regcache_for_register_valid)
6550 (regcache_valid_p): Add function declarations.
6551
6552 * regcache.c: Update copyright.
6553 (regcache_descr_handle): New global variable.
6554 (struct regcache_descr): Define.
6555 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6556 (regcache_descr, xfree_regcache_descr): New functions.
6557 (struct regcache): Define.
6558 (regcache_xmalloc, regcache_xfree): New functions.
6559 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6560 (regcache_dup, regcache_dup_no_passthrough): New functions.
6561 (regcache_valid_p, regcache_read_as_address): New functions.
6562 (deprecated_grub_regcache_for_registers): New function.
6563 (deprecated_grub_regcache_for_register_valid): New function.
6564 (current_regcache): New global variable.
6565 (register_buffer): Add regcache parameter. Update calls.
6566 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6567 (read_register_gen, write_register_gen): Update register_buffer
6568 call. Test for legacy_p instead of gdbarch_register_read_p or
6569 gdbarch_register_write_p.
6570 (regcache_collect): Update register_buffer call.
6571 (build_regcache): Rewrite. Use deprecated grub functions.
6572 (regcache_save, regcache_save_no_passthrough): New functions.
6573 (regcache_restore, regcache_restore_no_passthrough): New
6574 functions.
6575 (_initialize_regcache): Create the regcache_data_handle. Swap
6576 current_regcache global variable.
6577
6578 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6579 parameter to regcache_read and regcache_write calls.
6580 (sh4_register_read): Ditto.
6581 (sh64_pseudo_register_read): Ditto.
6582 (sh64_register_read): Ditto.
6583 (sh_pseudo_register_write): Ditto.
6584 (sh4_register_write): Ditto.
6585 (sh64_pseudo_register_write): Ditto.
6586 (sh64_register_write): Ditto.
6587
6588 * defs.h (XCALLOC): Define.
6589
152d9db6
GS
65902002-06-19 Grace Sainsbury <graces@redhat.com>
6591
6592 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6593 * m68k-tdep.c (m68k_gdbarch_init): Added.
6594 (m68k_dump_tdep): Added.
6595
170911c7
DJ
65962002-06-19 Daniel Jacobowitz <drow@mvista.com>
6597
6598 * ada-lang.c (fill_in_ada_prototype): Update comment.
6599
2e4ebe70
DJ
66002002-06-19 Daniel Jacobowitz <drow@mvista.com>
6601
6602 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6603 MIPS_ABI_LAST.
6604 (mips_abi_string, mips_abi_strings): New.
6605 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6606 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6607 tdep->mips_abi_string. Honor mips_abi_string. Default to
6608 O32 if no ABI is found.
6609 (mips_dump_tdep): Use mips_abi_strings.
6610 (mips_abi_update): New function.
6611 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6612 ``set mips abi'' and ``show mips abi''. Check the size of
6613 mips_abi_strings.
6614
16775908
AC
66152002-06-19 Andrew Cagney <cagney@redhat.com>
6616
6617 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6618 constant.
6619
5051bfa4 66202002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6621
5051bfa4
JB
6622 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6623 current frame using only the first stack size adjustment. All
6624 subsequent size adjustments are not considered to be part of
6625 the "static" part of the current frame.
6626 Compute the address of the saved registers relative to the
6627 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6628 in use in this frame.
6629
56468235
DH
66302002-06-18 Don Howard <dhoward@redhat.com>
6631
6632 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6633 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6634 suggesting this solution.
6635
0b624158
AC
66362002-06-18 Andrew Cagney <ac131313@redhat.com>
6637
6638 * config/romp/xm-rtbsd.h: Delete file.
6639 * config/romp/rtbsd.mh: Delete file.
6640
221ea385
KS
66412002-06-18 Keith Seitz <keiths@redhat.com>
6642
6643 * breakpoint.c (condition_command): Post breakpoint_modify
6644 when a condition is added to an existing breakpoint.
6645 (commands_command): Likewise for commands.
6646 (set_ignore_count): Likewise for ignore counts.
6647 If no tty, do not simply return, still need to send event
6648 notification.
6649 (ignore_command): Only print a newline if the command came
6650 from a tty.
6651 Don't call breakpoints_changed, since this is now properly
6652 handled by set_ignore_count.
6653
5402eed1
AC
66542002-06-18 Andrew Cagney <cagney@redhat.com>
6655
6656 * MAINTAINERS: Note that cris-elf target can be compiled with
6657 -Werror.
6658 * cris-tdep.c (cris_register_name): Make return type constant.
6659 (cris_breakpoint_from_pc): Ditto.
6660
cc22880b
ML
66612002-06-18 Michal Ludvig <mludvig@suse.cz>
6662
6663 * frame.h (struct frame_info): Change type of context to
6664 'struct context'.
6665
fa88f677
AC
66662002-06-17 Andrew Cagney <cagney@redhat.com>
6667
6668 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6669 pointer.
6670 * gdbarch.h, gdbarch.c: Regenerate.
6671 * config/mips/tm-mips.h (mips_register_name): Update.
6672 * i386-tdep.h (i386_register_name): Update.
6673 * mips-tdep.c (mips_register_name): Update
6674 * alpha-tdep.c (alpha_register_name): Update.
6675 * arch-utils.c (legacy_register_name): Update.
6676 * arch-utils.h (legacy_register_name): Update.
6677 * avr-tdep.c (avr_register_name): Update.
6678 * ia64-tdep.c (ia64_register_name): Update.
6679 * i386-tdep.c (i386_register_name): Update.
6680 * sparc-tdep.c (sparc32_register_name): Update.
6681 (sparc64_register_name): Update.
6682 (sparclite_register_name): Update.
6683 (sparclet_register_name): Update.
6684 * sh-tdep.c (sh_generic_register_name): Update.
6685 (sh_sh_register_name): Update.
6686 (sh_sh3_register_name): Update.
6687 (sh_sh3e_register_name): Update.
6688 (sh_sh_dsp_register_name): Update.
6689 (sh_sh3_dsp_register_name): Update.
6690 (sh_sh4_register_name): Update.
6691 (sh_sh64_register_name): Update.
6692 * s390-tdep.c (s390_register_name): Update.
6693 * rs6000-tdep.c (rs6000_register_name): Update.
6694 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6695 (ns32k_register_name_32382): Update.
6696 * d10v-tdep.c (d10v_ts2_register_name): Update.
6697 (d10v_ts3_register_name): Update.
6698 * xstormy16-tdep.c (xstormy16_register_name): Update.
6699 * vax-tdep.c (vax_register_name): Update.
6700 * v850-tdep.c (v850_register_name): Update.
6701 * m68hc11-tdep.c (m68hc11_register_name): Update.
6702 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6703 (am33_register_name): Update.
6704
ea1e7ef6
GS
67052002-06-17 Grace Sainsbury <graces@redhat.com>
6706
6707 * m68k-tdep.c: Reindented.
6708
9b02dd1b
AC
67092002-06-17 Andrew Cagney <ac131313@redhat.com>
6710
6711 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6712 list of predefined types.
6713
8758dec1
MK
67142002-06-16 Mark Kettenis <kettenis@gnu.org>
6715
b6197528
MK
6716 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6717 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6718 REGISTER_CONVERT_TO_RAW): Remove defines.
6719 (i386_register_virtual_type, i386_register_convertible,
6720 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6721 Remove prototypes.
6722 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6723 macros mentioned above.
6724
82b47e62
MK
6725 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6726 (i386lynx_saved_pc_after_call): Remove prototype.
6727 * i386ly-tdep.c: Include "i386-tdep.h".
6728 (i386lynx_saved_pc_after_call): Make static. Use
6729 read_memory_nobpt instead of read_memory. Use
6730 read_memory_unsigned_integer instead of read_memory_integer.
6731 (i386lynx_init_abi): New function.
6732 (i386lynx_coff_osabi_sniffer): New function.
6733 (_initialize_i386bsd_tdep): New function.
6734
8758dec1
MK
6735 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6736 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6737 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6738 (i386_fix_call_dummy): Remove prototype.
6739 * i386-tdep.c (i386_call_dummy_words): New variable.
6740 (i386_gdbarch_init): Adjust for removal of the
6741 macros mentioned above.
6742
e9e68a56
AC
67432002-06-15 Andrew Cagney <ac131313@redhat.com>
6744
6745 * command.h (add_setshow_auto_boolean_cmd): Replace
6746 add_set_auto_boolean_cmd.
6747 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6748 add_set_auto_boolean_cmd.
6749 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6750 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6751 mask-address'' command.
6752 (show_mask_address): Add cmd parameter.
6753 * remote.c (add_packet_config_cmd): Update. Change type of
6754 set_func and show_func to cmd_sfunc_ftype.
6755 (_initialize_remote): Update `set remote Z-packet'
6756 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6757 (show_remote_protocol_e_packet_cmd): Ditto.
6758 (show_remote_protocol_E_packet_cmd): Ditto.
6759 (show_remote_protocol_P_packet_cmd): Ditto.
6760 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6761 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6762 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6763 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6764 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6765 (show_remote_protocol_Z_packet_cmd): Ditto.
6766 (show_remote_protocol_binary_download_cmd): Ditto.
6767 (show_remote_cmd): Pass NULL to all of above.
6768
fc08ec52
MK
67692002-06-15 Mark Kettenis <kettenis@gnu.org>
6770
6771 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6772 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6773 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6774 POP_FRAME): Remove defines.
6775 (i386_push_arguments, i386_store_struct_return,
6776 i386_extract_return_value, i386_store_return_value,
6777 i386_extract_struct_value_address, i386_push_dummy_frame,
6778 i386_pop_frame): Renove prototypes.
6779 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6780 macros mentioned above.
6781
e707bbc2
AC
67822002-06-15 Andrew Cagney <ac131313@redhat.com>
6783
6784 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6785 add_set_boolean_cmd.
6786 (add_setshow_cmd): New function.
6787 * command.h (add_setshow_boolean_cmd): Replace
6788 add_set_boolean_cmd.
6789 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6790 and ``set rdiromatzero''.
6791 * maint.c (_initialize_maint_cmds): Update commented out code.
6792 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6793 * target.c (initialize_targets): Update `set
6794 trust-readonly-sections'.
6795 * remote.c (_initialize_remote): Update `set remotebreak'.
6796
42fdc8df
MK
67972002-06-15 Mark Kettenis <kettenis@gnu.org>
6798
93924b6b
MK
6799 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6800 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6801 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6802 fit into multi-arch framework.
6803 (i386_breakpoint_from_pc): New function.
6804 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6805 above.
6806
42fdc8df
MK
6807 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6808 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6809 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6810 (i386_frameless_function_invocation, i386_frame_num_args,
6811 i386_frame_init_saved_regs): Remove prototypes.
6812 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6813 macros mentioned above.
6814
9773a94b
AC
68152002-06-15 Andrew Cagney <ac131313@redhat.com>
6816
6817 * cli/cli-decode.c (set_cmd_cfunc): Update.
6818 (set_cmd_sfunc): Update.
6819 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6820 (set_cmd_sfunc, set_cmd_cfunc): Update.
6821 * cli/cli-decode.h: Update.
6822
6e157172
MK
68232002-06-15 Mark Kettenis <kettenis@gnu.org>
6824
6825 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6826 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6827
7f19b9a2
AC
68282002-06-15 Andrew Cagney <ac131313@redhat.com>
6829
6830 * defs.h (auto_boolean): Declare enum.
6831 * command.h (cmd_auto_boolean): Delete enum.
6832 * mips-tdep.c (mask_address_var): Update.
6833 (mips_mask_address_p): Update.
6834 (show_mask_address): Update.
6835 * remote.c (struct packet_config): Update.
6836 (update_packet_config): Update.
6837 (show_packet_config_cmd): Update.
6838 (packet_ok): Update.
6839 (add_packet_config_cmd): Update.
6840 (_initialize_remote):
6841 * command.h: Update.
6842 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6843 (do_setshow_command): Update.
6844 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6845 * cli/cli-decode.h: Update.
6846
1cf88de5
MK
68472002-06-15 Mark Kettenis <kettenis@gnu.org>
6848
22ba8cf2
MK
6849 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6850 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6851 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6852 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6853 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6854 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6855
762c5349
MK
6856 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6857 list of DJGPP COFF targets.
6858
091198bb
MK
6859 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6860 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6861 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6862 (FP0_REGNUM): Remove define.
6863 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6864 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6865 (i386_register_virtual_size): Remove protoype.
6866 * i386-tdep.c (i386_register_virtual_size): Removed.
6867 (i386_extract_return_value, i386_store_return_value): Use
6868 FP0_REGNUM instead of NUM_FREGS to determine whether the
6869 floating-point registers are available.
6870 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6871 Adjust for removal of macros mentioned above.
6872
68732002-06-15 Mark Kettenis <kettenis@gnu.org>
6874
fcc9bf01
MK
6875 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6876 comments.
6877 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6878 Remove prototypes.
6879 (supply_gregset, fill_gregset): Remove use of register keyword and
6880 remove declaration for regmap. Use I386_NUM_GREGS instead of
6881 NUM_REGS and NUM_FREGS.
6882 (FPREGSET_FSAVE_OFFSET): Remove.
6883 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6884 NUM_FREGS to determine whether the floating-point registers are
6885 available.
6886
65e78234
MK
6887 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6888 gnu_store_registers): Replace usage of NUM_GREGS with
6889 I386_NUM_GREGS.
6890
98df6387
MK
6891 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6892 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6893 usage of NUM_GREGS with I386_NUM_GREGS.
6894
099a9414
MK
6895 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6896
57976e88
MK
6897 * i386bsd-nat.c: Include "i386-tdep.h".
6898 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6899 I386_NUM_GREGS.
6900
b335f4a6
MK
6901 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6902 and associated comment. They no longer make any sense, since we
6903 don't use this file anymore on Linux.
6904
1cf88de5
MK
6905 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6906 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6907 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6908 elements in these arrays.
6909 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6910 MAX_NUM_REGS.
6911
daa66587
MK
69122002-06-15 Mark Kettenis <kettenis@gnu.org>
6913
6914 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6915 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6916
26e9b323
AC
69172002-06-14 Andrew Cagney <cagney@redhat.com>
6918
6919 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6920 EXTRACT_RETURN_VALUE.
6921 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6922 EXTRACT_STRUCT_VALUE_ADDRESS.
6923 * gdbarch.h, gdbarch.c: Regenerate.
6924
6925 * values.c (value_being_returned): Handle
6926 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6927 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6928
6929 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6930 * arm-tdep.c (arm_gdbarch_init): Update.
6931 * avr-tdep.c (avr_gdbarch_init): Update.
6932 * cris-tdep.c (cris_gdbarch_init): Update.
6933 * d10v-tdep.c (d10v_gdbarch_init): Update.
6934 * ia64-tdep.c (ia64_gdbarch_init): Update.
6935 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6936 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6937 * s390-tdep.c (s390_gdbarch_init): Update.
6938 * sh-tdep.c (sh_gdbarch_init): Update.
6939 * s390-tdep.c (s390_gdbarch_init): Update.
6940 * sparc-tdep.c (sparc_gdbarch_init): Update.
6941 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6942 * v850-tdep.c (v850_gdbarch_init): Update.
6943 * vax-tdep.c (vax_gdbarch_init): Update.
6944 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6945 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6946
6947 * config/arc/tm-arc.h: Update.
6948 * config/d30v/tm-d30v.h: Update.
6949 * config/fr30/tm-fr30.h: Update.
6950 * config/h8300/tm-h8300.h: Update.
6951 * config/h8500/tm-h8500.h: Update.
6952 * config/i386/tm-i386.h: Update.
6953 * config/i386/tm-ptx.h: Update.
6954 * config/i386/tm-symmetry.h: Update.
6955 * config/i960/tm-i960.h: Update.
6956 * config/m32r/tm-m32r.h: Update.
6957 * config/m68k/tm-delta68.h: Update.
6958 * config/m68k/tm-linux.h: Update.
6959 * config/m68k/tm-m68k.h: Update.
6960 * config/m88k/tm-m88k.h: Update.
6961 * config/mcore/tm-mcore.h: Update.
6962 * config/mips/tm-mips.h: Update.
6963 * config/mn10200/tm-mn10200.h: Update.
6964 * config/pa/tm-hppa.h: Update.
6965 * config/pa/tm-hppa64.h: Update.
6966 * config/sparc/tm-sp64.h: Update.
6967 * config/sparc/tm-sparc.h: Update.
6968 * config/sparc/tm-sparclet.h: Update.
6969 * config/z8k/tm-z8k.h: Update.
6970
5179e78f
AC
69712002-06-14 Andrew Cagney <cagney@redhat.com>
6972
6973 * Makefile.in (i386_linux_tdep_h): Define.
6974 (i386_tdep_h, i387_tdep_h): Define.
6975 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6976 $(i386_tdep_h) and $(i387_tdep_h).
6977 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6978
8201327c
MK
69792002-06-14 Mark Kettenis <kettenis@gnu.org>
6980
edf393ac
MK
6981 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6982 Already covered by the default.
6983
896fb97d
MK
6984 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6985 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6986 (i386_gdbarch_init): Initialize long_double_format and long_double
6987 bit.
6988
8201327c
MK
6989 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6990 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6991 Move these to ...
6992 * config/i386/i386sol2.mh: ... here.
6993 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6994 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6995 (SIGCONTEXT_PC_OFFSET): Remove define.
6996 (IN_SIGTRAMP): Remove define.
6997 * i386-sol2-tdep.c: New file.
6998
6999 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7000 * config/i386/tm-i386nw.h: Removed.
7001
7002 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7003 USE_STRUCT_CONVENTION): Remove defines.
7004 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7005 (get_longjmp_target): Remove prototype.
7006 (IN_SIGTRAMP): Remove define.
7007 (i386bsd_in_sigtramp): Remove prototype.
7008 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7009 function. Update comment accordingly
7010 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7011 (FRAME_SAVED_PC): Remove define.
7012 (i386bsd_frame_saved_pc): Remove prototype.
7013 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7014 GET_LONGJMP_TARGET): Remove defines.
7015 (get_longjmp_target): Remove prototype.
7016 (IN_SIGTRAMP): Remove define.
7017 (i386bsd_in_sigtramp): Remove prototype.
7018 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7019 function. Update comment accordingly
7020 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7021 (FRAME_SAVED_PC): Remove define.
7022 (i386bsd_frame_saved_pc): Remove prototype.
7023 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7024 Remove prototype.
7025 (USE_STRUCT_CONVENTION): Remove prototype.
7026 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7027 declaration.
7028 (_initialize_i386bsd_nat): Revise logic to determine some
7029 constants at compile time when compiling a native GDB. Warn if
7030 things don't match up with what we expect.
7031 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7032 Remove variables.
7033 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7034 to use date stored in `struct gdbarch_tdep'.
7035 (i386bsd_sigcontext_offset): Remove varaible.
7036 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7037 stored in `struct gdbarch_tdep'.
7038 (i386bsd_frame_saved_pc): Make static.
7039 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7040 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7041 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7042 i386fbsd4_sc_pc_offset): New variables.
7043 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7044 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7045 functions.
7046 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7047 functions.
7048 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7049 Modify the value of i386fbsd_sigtramp_start and
7050 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7051 i386fbsd_sigtramp_end.
7052 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7053 function.
7054
7055 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7056 define to i386-linux-tdep.h.
7057 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7058 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7059 defines.
7060 (i386_linux_register_name, i386_linux_register_byte,
7061 i386_linux_register_raw_size): Remove prototypes.
7062 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7063 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7064 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7065 TARGET_WRITE_PC): Remove defines.
7066 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7067 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7068 i386_linux_write_pc): Remove prototypes.
7069 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7070 (get_longjmp_target): Remove prototype.
7071 * i386-linux-tdep.h: New file.
7072 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7073 * i386-linux-tdep.c: Include "i386-tdep.h" and
7074 "i386-linux-tdep.h".
7075 (i386_linux_register_name, i386_linux_register_byte,
7076 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7077 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7078 Make static.
7079 (i386_linux_init_abi): New function.
7080 (_initialize_i386_linux_tdep): New function.
7081
7082 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7083 (i386_saved_pc_after_call): Remove prototype.
7084 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7085 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7086 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7087 (i386_register_name, i386_stab_reg_to_regnum,
7088 i386_dwarf_reg_to_regnum): Remove prototypes.
7089 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7090 SIZEOF_SSE_REGS): Remove defines.
7091 (REGISTER_BYTES): Remove define.
7092 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7093 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7094 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7095 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7096 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7097 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7098 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7099 (get_longjmp_target): Remove prototype.
7100 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7101 (sigtramp_saved_pc): Remove define.
7102 (i386v4_sigtramp_saved_pc): Remove prototype.
7103 * config/i386/tm-go32.h (FRAME_CHAIN,
7104 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7105 (i386go32_frame_saved_pc): Remove prototype.
7106 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7107 (get_longjmp_target): Remove prototype.
7108 * i386-tdep.h: Include "osabi.h".
7109 (enum i386_abi): Removed.
7110 (enum struct_return): New enum.
7111 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7112 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7113 sc_pc_offset members.
7114 (i386_gdbarch_register_os_abi): Remove prototype.
7115 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7116 I386_SSE_NUM_REGS): New defines.
7117 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7118 I386_SSE_SIZEOF_REGS): New defines.
7119 (i386_register_name, i386_register_byte, i386_register_raw_size):
7120 New prototypes.
7121 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7122 (i386bsd_sigtramp_saved_pc): New prototype.
7123 * i386-tdep.c: Don't include "elf-bfd.h".
7124 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7125 i386_frame_chain, i386_saved_pc_after_call): Make static.
7126 (i386_frame_saved_pc): Rewrite to call architecture dependent
7127 function to deal with signal handlers. Make static.
7128 (i386go32_frame_saved_pc): Removed.
7129 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7130 Removed.
7131 (i386_get_longjmp_target): New function.
7132 (default_struct_convention, pcc_struct_convention,
7133 reg_struct_convention, valid_conventions, struct_convention): New
7134 variables.
7135 (i386_use_struct_convention): New function.
7136 (i386v4_sigtramp_saved_pc): Renamed to
7137 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7138 (i386_pc_in_sigtramp): New function.
7139 (i386_abi_names): Removed.
7140 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7141 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7142 Removed.
7143 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7144 i386_gdbarch_register_os_abi): Removed.
7145 (struct i386_abi_handler): Removed.
7146 (i386_abi_handler_list): Removed.
7147 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7148 functions.
7149 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7150 i386_nw_init_abi): New functions.
7151 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7152 Use set_gdbarch_xxx() calls instead of relying on macros for a
7153 number of calls.
7154 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7155 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7156 Register the various architecture variants defined in this file.
7157
ad2f7632
DJ
71582002-06-14 Daniel Jacobowitz <drow@mvista.com>
7159
7160 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7161 (struct main_type): Remove arg_types member. Update comments for
7162 struct field.
7163 (TYPE_ARG_TYPES): Remove.
7164 (TYPE_FN_FIELD_ARGS): Update.
7165 (smash_to_method_type): Update prototype.
7166
7167 * c-typeprint.c (cp_type_print_method_args): Take method type
7168 instead of argument list. Use new argument layout. Simplify.
7169 (c_type_print_args): Use new argument layout. Simplify.
7170 (c_type_print_base): Update call to cp_type_print_method_args.
7171 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7172 argument; use die->type instead. Update call to
7173 smash_to_method_type.
7174 (read_structure_scope): Update call to dwarf2_add_member_fn.
7175 * gdbtypes.c (allocate_stub_method): Update comment.
7176 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7177 Use new argument layout.
7178 (check_stub_method): Use new argument layout. Don't count
7179 void as an argument.
7180 (print_arg_types): Update comments. Use new argument layout.
7181 (recursive_dump_type): Don't print arg_types member.
7182 * hpread.c (hpread_read_struct_type): Use new argument layout.
7183 (fixup_class_method_type): Likewise.
7184 (hpread_type_lookup): Likewise.
7185 * stabsread.c (read_type): Update calls to read_args and
7186 smash_to_method_type.
7187 (read_args): Use new argument layout. Simplify.
7188 * valops.c (typecmp): Use new argument layout. Update parameters
7189 and comments. Simplify.
7190 (hand_function_call): Use new argument layout.
7191 (search_struct_method): Update call to typecmp.
7192 (find_overload_match): Use new argument layout.
7193
6da02953
DJ
71942002-06-13 Daniel Jacobowitz <drow@mvista.com>
7195
7196 * NEWS: Mention multithreaded debug support for gdbserver.
7197
519b2366
DJ
71982002-06-13 Daniel Jacobowitz <drow@mvista.com>
7199
7200 * MAINTAINERS: Mention NEWS.
7201
6c0d6680
DJ
72022002-06-13 Daniel Jacobowitz <drow@mvista.com>
7203
7204 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7205 (struct mips_objfile_private, compare_pdr_entries): New.
7206 (non_heuristic_proc_desc): Read the ".pdr" section if it
7207 is present.
7208
6529d2dd
AC
72092002-06-12 Andrew Cagney <ac131313@redhat.com>
7210
7211 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7212 (arm_debug): New static variable.
7213 (_initialize_arm_tdep): Add ``set debug arm'' command.
7214
26216b98
AC
72152002-06-12 Andrew Cagney <ac131313@redhat.com>
7216
7217 * Makefile.in (sim_arm_h): Define.
7218 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7219 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7220 (arm_register_sim_regno): New function, map an internal REGNUM
7221 onto a simulator register number.
7222 (arm_gdbarch_init): Set register_sim_regno.
7223
814b3ba0
AH
72242002-06-09 Aldy Hernandez <aldyh@redhat.com>
7225
7226 * MAINTAINERS: Add self.
7227
475b0867
JB
72282002-06-11 Jim Blandy <jimb@redhat.com>
7229
919d772c
JB
7230 * source.c (source_info): Mention whether the symtab has
7231 information about preprocessor macros.
7232
475b0867
JB
7233 Call the command `info macro', not `show macro'.
7234 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7235 Fix error message.
7236 (_initialize_macrocmd): Register `info_macro_command' in
7237 `infolist', not `showlist'.
7238
9e364162
DJ
72392002-06-11 Daniel Jacobowitz <drow@mvista.com>
7240
7241 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7242 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7243 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7244 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7245 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7246 unconditionally.
7247 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7248 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7249 (_initialize_mips_tdep): Remove dead code.
7250 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7251 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7252 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7253 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7254 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7255 MIPS_LAST_FP_ARG_REGNUM): Remove.
7256
23aa4c72
ML
72572002-06-11 Michal Ludvig <mludvig@suse.cz>
7258
7259 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7260 (unwind_tmp_obstack_free, parse_frame_info)
7261 (update_context, cfi_read_fp, cfi_write_fp)
7262 (cfi_frame_chain, cfi_init_extra_frame_info)
7263 (cfi_virtual_frame_pointer): Use the above function.
264d1763 7264 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 7265
70eb15a4
CV
72662002-06-11 Corinna Vinschen <vinschen@redhat.com>
7267
7268 * v850-tdep.c (v850_type_is_scalar): New function.
7269 (v850_use_struct_convention): Match current gcc implementation
7270 as close as possible.
7271 (v850_push_arguments): Fix stack_offset handling. Don't write
7272 struct_addr into register. This is done by v850_store_struct_return.
7273 (v850_extract_return_value): Care for structs.
7274 (v850_store_return_value): Ditto.
7275 (v850_store_struct_return): Actually write address.
7276
482a4d06
ML
72772002-06-11 Michal Ludvig <mludvig@suse.cz>
7278
7279 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7280 without debug information too.
7281
d855c300
AC
72822002-06-10 Andrew Cagney <ac131313@redhat.com>
7283
7284 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7285 Make multi-arch pure.
7286 * gdbarch.h, gdbarch.c: Re-generate.
7287 * arm-tdep.c (arm_print_float_info): Update.
7288 * arch-utils.h (default_print_float_info): Update.
7289 * arch-utils.c (default_print_float_info): Update.
7290 * infcmd.c (float_info): Update call.
7291
dd12a101
AC
72922002-06-10 Andrew Cagney <ac131313@redhat.com>
7293
7294 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7295 the front of the initialize list.
7296
101dcfbe
AC
72972002-06-10 Andrew Cagney <ac131313@redhat.com>
7298
7299 * infrun.c (struct inferior_status): Replace fields
7300 selected_frame_address and selected_level with field
7301 selected_frame_id.
7302 (save_inferior_status): Update. Use get_frame_id.
7303 (struct restore_selected_frame_args): Delete.
7304 (restore_selected_frame): Update. Use frame_find_by_id.
7305 (restore_inferior_status): Update.
7306
7307 * breakpoint.h (struct breakpoint): Change type of
7308 watchpoint_frame to frame_id.
7309 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7310 call to get_current_frame.
7311 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7312 get_current_frame.
7313 (watchpoint_check): Use frame_find_by_id.
7314
7315 * frame.h (record_selected_frame): Delete declaration.
7316 * stack.c (record_selected_frame): Delete function.
7317
7318 * frame.h (struct frame_id): Define.
7319 (get_frame_id): Declare.
7320 (frame_find_by_id): Declare.
7321 * frame.c (frame_find_by_id): New function.
7322 (get_frame_id): New function.
7323
304270b6
AV
73242002-06-10 Andrey Volkov <avolkov@transas.com>
7325
7326 * ser-e7kpc.c: Fix duplicated define and call of
7327 _initialize_ser_e7000pc
7328
2f2cf184
DJ
73292002-06-09 Daniel Jacobowitz <drow@mvista.com>
7330
7331 * signals/signals.c (target_signal_from_host): Fix #ifdef
7332 SIGRTMIN case.
7333 (do_target_signal_to_host): Likewise.
7334
caaa3122
DJ
73352002-06-09 Daniel Jacobowitz <drow@mvista.com>
7336
7337 * mips-tdep.c (mips_find_abi_section): New function.
7338 (mips_gdbarch_init): Call it.
7339
6ac5df3a
MK
73402002-06-09 Mark Kettenis <kettenis@gnu.org>
7341
7342 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7343 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7344 after Andrew's 2002-06-08 gdbarch change.
7345
82ea117a
MK
73462002-06-09 Mark Kettenis <kettenis@gnu.org>
7347
7348 * i386-linux-nat.c (suppy_gregset): Don't supply
7349 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7350 register cache.
7351 (fill_gregset): Don't fetch it under the same circumstances.
7352
3c25f8c7
AC
73532002-06-09 Andrew Cagney <cagney@redhat.com>
7354
7355 * Makefile.in (callback_h): Define.
7356 (remote_sim_h): Update path to remote-sim.h.
7357 (remote-rdp.o): Add $(callback_h).
7358 (remote-sim.o): Use $(callback_h).
7359 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7360 * remote-rdp.c: Include "gdb/callback.h".
7361
1029b7fa
MK
73622002-06-09 Mark Kettenis <kettenis@gnu.org>
7363
7364 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7365 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7366
616675d3
AC
73672002-06-08 Andrew Cagney <ac131313@redhat.com>
7368
a3efda28
AC
7369 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7370 * rdi-share/serpardr.c: Ditto.
7371 * rdi-share/unixcomm.c: Ditto.
7372 * rdi-share/serdrv.c: Ditto.
7373 * rdi-share/hostchan.h: Ditto.
7374 * rdi-share/hostchan.c: Ditto.
7375 * rdi-share/host.h: Ditto.
7376 * rdi-share/devsw.c: Ditto.
7377
c5f10366
AC
7378 * objfiles.h: Change type of obj_private to void pointer.
7379 * pa64solib.c: Update copyright. Don't include "assert.h", use
7380 strcmp instead of STREQ, use LONGEST, do not use PTR
7381 * somsolib.c: Ditto.
7382
616675d3
AC
7383 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7384 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7385 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7386
e4b415d9
AC
73872002-06-08 Andrew Cagney <ac131313@redhat.com>
7388
7389 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7390 (default_get_saved_register): Delete function.
7391 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7392 generic_unwind_get_saved_register.
7393 * gdbarch.h, gdbarch.c: Re-generate.
7394
ca0d0b52
AC
73952002-06-08 Andrew Cagney <ac131313@redhat.com>
7396
7397 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7398 generic_func_frame_chain_valid.
7399 * gdbarch.h, gdbarch.c: Re-generate.
7400 * blockframe.c (generic_func_frame_chain_valid): Only check
7401 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7402 passing FP to PC_IN_CALL_DUMMY.
7403 Fix PR gdb/360.
7404
76860b5f
AC
74052002-06-08 Andrew Cagney <ac131313@redhat.com>
7406
7407 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7408 (register_gdbarch_data): Initialize init_p.
7409 (gdbarch_data): Initialize data pointer using the init function.
7410 (init_gdbarch_data): Delete function.
7411 (gdbarch_update_p): Update.
7412 (initialize_non_multiarch): Update.
7413 (struct gdbarch): Add field initialized_p.
7414 * gdbarch.h, gdbarch.c: Re-generate.
7415
8dda9770
ML
74162002-06-07 Michal Ludvig <mludvig@suse.cz>
7417
7418 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7419 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7420 better do the things actually here.
7421 * x86-64-tdep.c (x86_64_register_name2nr): New.
7422 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7423 (x86_64_gdbarch_init): Respect the above change.
7424 * x86-64-tdep.h (x86_64_register_name2nr)
7425 (x86_64_register_nr2name): Add prototypes.
7426 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7427
3d79a47c
MS
74282002-06-06 Michael Snyder <msnyder@redhat.com>
7429
7bd91a28
MS
7430 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7431 Delete extra braces and re-indent.
7432 (d10v_store_return_value): Char return values
3d79a47c
MS
7433 must be shifted over by one byte in R0.
7434 (d10v_extract_return_value): Delete extra braces, re-indent.
7435
095a4c96
EZ
74362002-06-06 Elena Zannoni <ezannoni@redhat.com>
7437
7438 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7439 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7440 (d10v_integer_to_address): Rewrite.
7441 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7442 the d10v specific functions which take care of converting to the
7443 correct space.
7444
e8a77ca4
EZ
74452002-06-06 Elena Zannoni <ezannoni@redhat.com>
7446
7447 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7448 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7449
4f2e4a4f
AC
74502002-06-02 Andrew Cagney <ac131313@redhat.com>
7451
7452 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7453 includes.
7454 * config/tm-linux.h: Ditto.
7455 * config/alpha/tm-alphalinux.h: Ditto.
7456 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7457 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7458 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7459 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7460 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7461 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7462 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7463 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7464 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7465 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7466 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7467 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7468 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7469 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7470 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7471 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7472 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7473 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7474 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7475 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7476 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7477 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7478 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7479 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7480 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7481 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7482 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7483 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7484 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7485 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7486 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7487 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7488 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7489 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7490 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7491 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7492 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7493
ae2ab2ce
AS
74942002-05-04 Aidan Skinner <aidan@velvet.net>
7495
7496 * ada-exp.tab.c: New file
7497 * ada-exp.y: New file
7498 * ada-lang.c: New file
7499 * ada-lang.h: New file
7500 * ada-lex.c: New file
7501 * ada-lex.l: New file
7502 * ada-tasks.c: New file
7503 * ada-typeprint.c: New file
7504 * ada-valprint.c: New file
7505
0ddd0135
JT
75062002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7507
7508 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7509 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7510
750fbacc
JT
75112002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7512
7513 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7514 insetead of ppc-linux-tdep.o.
7515 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7516 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7517
df94e18a
AC
75182002-06-02 Andrew Cagney <ac131313@redhat.com>
7519
7520 2002-05-07 Christian Groessler <chris@groessler.org>
7521 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7522 bit register contents for little endian hosts.
7523
1a38ab75
AC
75242002-06-01 Andrew Cagney <ac131313@redhat.com>
7525
7526 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7527 any maintainer.
7528
8b1632ac
AC
75292002-06-01 Andrew Cagney <ac131313@redhat.com>
7530
7531 * gdbarch.h: Regenerate.
7532
627054c8
AC
75332002-06-01 Andrew Cagney <ac131313@redhat.com>
7534
7535 * MAINTAINERS: Add everyone to write-after-approval list.
7536
4f460812
AC
75372002-06-01 Andrew Cagney <ac131313@redhat.com>
7538
7539 * stack.c (frame_info): Use frame_register_unwind instead of
7540 saved_regs. Mention when the SP is on the stack or in a register.
7541
7542 * frame.h (frame_register_unwind_ftype): Define. Document.
7543 (struct frame_info): Add field register_unwind and
7544 register_unwind_cache.
7545 (frame_register_unwind): Declare.
7546 (generic_unwind_get_saved_register): Declare.
7547
7548 * frame.c (frame_register_unwind): New function.
7549 (generic_unwind_get_saved_register): New function.
7550
7551 * blockframe.c (generic_call_dummy_register_unwind): New function.
7552 (frame_saved_regs_register_unwind): New function.
7553 (set_unwind_by_pc): New function.
7554 (create_new_frame): New function.
7555 (get_prev_frame): New function.
7556
de888f76
AC
75572002-05-30 Andrew Cagney <ac131313@redhat.com>
7558
7559 * a29k-share/: Delete directory.
7560 * remote-vx29k.c: Delete file.
7561
2f2c3626
JT
75622002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7563
7564 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7565 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7566
9ce5c36a
JT
75672002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7568
7569 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7570 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7571 (sparc64nbsd-nat.o)
7572 (sparcnbsd-nat.o)
7573 (sparcnbsd-tdep.o): New dependency lists.
7574 * NEWS: Note new UltraSPARC NetBSD native configuration.
7575 * configure.host (sparc64-*-netbsd*): New host.
7576 * configure.tgt (sparc-*-netbsdelf*)
7577 (sparc-*-netbsd*): Set gdb_target to nbsd.
7578 (sparc64-*-netbsd*): New target.
7579 * sparc64nbsd-nat.c: New file.
7580 * sparcnbsd-nat.c: New file.
7581 * sparcnbsd-tdep.c: New file.
7582 * sparcnbsd-tdep.h: New file.
7583 * config/sparc/nbsd.mt: New file.
7584 * config/sparc/nbsd64.mh: New file.
7585 * config/sparc/nbsd64.mt: New file.
7586 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7587 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7588 (HOST_IPC): Remove.
7589 * config/sparc/nbsdaout.mt: Remove.
7590 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7591 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7592 (HOST_IPC): Remove.
7593 * config/sparc/nbsdelf.mt: Remove.
7594 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7595 sparc-nat.c compatiblity defines.
7596 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7597 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7598 * config/sparc/tm-nbsd64.h: New file.
7599 * config/sparc/tm-nbsdaout.h: Remove.
7600 * config/sparc/xm-nbsd.h: Remove.
7601
ef3cf062
JT
76022002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7603
7604 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7605 * sparc-tdep.c: Include osabi.h.
7606 (gdbarch_tdep): Add osabi member.
7607 (_initialize_sparc_tdep): Use gdbarch_register.
7608 (sparc_gdbarch_init): Use generic OS ABI framework.
7609 (sparc_dump_tdep): New function.
7610
ee8ff470
KB
76112002-05-30 Kevin Buettner <kevinb@redhat.com>
7612
7613 * corefile.c (do_captured_read_memory_integer): Return non-zero
7614 result.
7615 (safe_read_memory_integer): Copy result of memory read when
7616 status is non-zero. Also, add comments.
7617
7b112f9c
JT
76182002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7619
7620 * Makefile.in (ppc_tdep_h): Define.
7621 (ppc-linux-nat.o)
7622 (ppc-linux-tdep.o)
7623 (rs6000-tdep.o): Use $(ppc_tdep_h).
7624 (ppc-sysv-tdep.o)
7625 (ppcnbsd-nat.o)
7626 (ppcnbsd-tdep.o): New dependency lists.
7627 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7628 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7629 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7630 (ppc_sysv_abi_broken_use_struct_convention)
7631 (ppc_sysv_abi_use_struct_convention)
7632 (ppc_sysv_abi_push_arguments): Move to...
7633 * ppc-sysv-tdep.c: ...here.
7634 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7635 * rs6000-tdep.c (process_note_abi_tag_sections)
7636 (get_elfosabi): Remove.
7637 (rs6000_gdbarch_init): Use generic OS ABI framework.
7638 (rs6000_dump_tdep): New function.
7639 (_initialize_rs6000_tdep): Use gdbarch_register.
7640 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7641 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7642 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7643 of ppc-linux-tdep.o.
7644 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7645 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7646 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7647 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7648 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7649 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7650
480dd42a
JB
76512002-05-29 Jim Blandy <jimb@redhat.com>
7652
7653 * macroscope.c (default_macro_scope): Put `void' in empty argument
7654 list.
7655
4182591f
AC
76562002-05-29 Andrew Cagney <ac131313@redhat.com>
7657
7658 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7659 * arch-utils.c: Include "sim-regno.h".
7660 * gdbarch.sh: Don't include "sim-regno.h".
7661 * gdbarch.h, gdbarch.c: Regenerate.
7662 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7663 here.
7664 * arch-utils.h (legacy_register_sim_regno): To here.
7665 * remote-sim.c (legacy_register_sim_regno): Move function from
7666 here.
7667 * arch-utils.c (legacy_register_sim_regno): To here.
7668
8238d0bf
AC
76692002-05-28 Andrew Cagney <ac131313@redhat.com>
7670
7671 * sim-regno.h: New file.
7672 * Makefile.in (sim_regno_h): Define.
7673 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7674 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7675 (legacy_register_sim_regno): New function.
7676 (one2one_register_sim_regno): New function.
7677 (gdbsim_fetch_register): Rewrite.
7678 (gdbsim_store_register): Only store a register when
7679 REGISTER_SIM_REGNO is valid.
7680 * d10v-tdep.c: Include "sim-regno.h".
7681 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7682 (d10v_ts3_register_sim_regno): Ditto.
7683 * gdbarch.sh: Include "sim-regno.h".
7684 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7685 * gdbarch.h, gdbarch.c: Regenerate.
7686 * arch-utils.h (default_register_sim_regno): Delete declaration.
7687 * arch-utils.c (default_register_sim_regno): Delete function.
7688
485721b1
JT
76892002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7690
7691 * ppcnbsd-nat.c: Rewrite.
7692 * ppcnbsd-tdep.c: New file.
7693 * ppcnbsd-tdep.h: New file.
7694 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7695 solib.o, and solib-svr4.o.
7696 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7697 nbsd-tdep.o, and corelow.o.
7698
697f244d
AC
76992002-05-28 Andrew Cagney <ac131313@redhat.com>
7700
7701 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7702 `tr' and `sed'. Mention that `broken' targets are not expected to
7703 build.
7704
f08caad1 77052002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
7706
7707 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7708 Let PC point right after the prologue before looking up symbols.
7709
3139facc
MH
77102002-05-27 Martin M. Hunt <hunt@redhat.com>
7711
7712 * i386-tdep.c (i386_register_virtual_type): Return
7713 builtin_type_vec128i for SSE registers.
7714
7715 * gdbtypes.h (builtin_type_vec128i): Declare.
7716
7717 * gdbtypes.c (build_builtin_type_vec128i): New function.
7718 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7719 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7720 (build_gdbtypes): Initialize new builtin vector types.
7721 (_initialize_gdbtypes): Register new vector types with gdbarch.
7722
6e3ba3b8
JT
77232002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7724
7725 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7726 since it has been multi-arch'd.
7727 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7728 Move Alpha and VAX multi-arch news entries to same section
7729 as other multi-arch news.
7730
93d5585d
JT
77312002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7732
7733 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7734 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7735 static. Rename some register numbers to put them in ns32k-tdep
7736 private namespace.
7737 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7738 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7739 functions.
7740 (_initialize_ns32k_tdep): Use gdbarch_register.
7741 * ns32k-tdep.h: New file.
7742 * ns32knbsd-tdep.c: New file.
7743 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7744 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7745 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7746 REGISTER_BYTES, REGISTER_BYTE): Remove.
7747 * config/ns32k/tm-ns32k.h: New file.
7748 * config/ns32k/tm-umax.h: Remove.
7749
efb2c70e
JT
77502002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7751
7752 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7753 ns32k_store_struct_return, ns32k_extract_return_value,
7754 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7755 functions.
7756 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7757 ns32k_saved_pc_after_call.
7758 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7759 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7760 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7761 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7762 ns32k_extract_struct_value_address.
7763
7bcc927b
JT
77642002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7765
7766 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7767 ns32k_fix_call_dummy): New.
7768 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7769 ns32k_call_dummy_words.
7770 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7771 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7772 CALL_DUMMY_NARGS): Remove.
7773 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7774
78f9d765
JT
77752002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7776
7777 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7778 ns32k_frame_saved_pc, ns32k_frame_args_address,
7779 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7780 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7781 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7782 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7783 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7784 (BREAKPOINT): Remove..
7785 (FRAME_CHAIN): Define as ns32k_frame_chain.
7786 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7787 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7788 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7789 (FRAME_FIND_SAVED_REGS): Remove.
7790 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7791 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7792 (POP_FRAME): Define as ns32k_pop_frame.
7793
f2c762e0
JT
77942002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7795
7796 * ns32k-tdep.c (ns32k_register_byte_32082,
7797 ns32k_register_byte_32382, ns32k_register_raw_size,
7798 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7799 functions.
7800 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7801 ns32k_register_byte_32382.
7802 * config/ns32k/tm-umax.h: Update copyright years.
7803 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7804 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7805 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7806 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7807 (ns32k_get_enter_addr): Fix prototype.
7808
af137673
JT
78092002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7810
7811 * ns32k-tdep.c: Update copyright years.
7812 (ns32k_register_name_32082): New function.
7813 (ns32k_register_name_32382): Ditto.
7814 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7815 (REGISTER_NAME): Define as ns32k_register_name_32382.
7816 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7817 (REGISTER_NAME): Define as ns32k_register_name_32082.
7818
a8bc7b56
JB
78192002-05-24 Jim Blandy <jimb@redhat.com>
7820
7821 * dwarf2read.c (free_line_header): Use xfree, not free.
7822
83a45910
JT
78232002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7824
7825 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7826 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7827
0db71247
AC
78282002-05-23 Andrew Cagney <ac131313@redhat.com>
7829
7830 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7831
b9e5e4dd
AC
78322002-05-23 Andrew Cagney <ac131313@redhat.com>
7833
7834 From Ross Alexander at NEC Europe:
7835 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7836
de530e84
MS
78372002-05-23 Michael Snyder <msnyder@redhat.com>
7838
7839 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7840 for input, rather than parse_and_eval_address.
7841
b91b96f4
AC
78422002-05-23 Andrew Cagney <ac131313@redhat.com>
7843
7844 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7845 * Makefile.in (sim_d10v_h): Update definition.
7846
8b279e7a
AC
78472002-05-24 Andrew Cagney <cagney@redhat.com>
7848
7849 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7850 change `2002-05-22 Michael Snyder' below.
7851 (d10v_push_arguments): Ditto.
7852 (d10v_extract_return_value): Ditto.
7853
0a3d0425
JB
78542002-05-23 Jim Blandy <jimb@redhat.com>
7855
7856 * macrotab.c (check_for_redefinition): Don't complain if the new
7857 definition is the same as the previous one. Take more arguments
7858 to allow the comparison.
7859 (macro_define_object, macro_define_function): Pass more arguments
7860 to check_for_redefinition.
7861
78eac43e
MS
78622002-05-22 Michael Snyder <msnyder@redhat.com>
7863
7864 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7865 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7866 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7867 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7868 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7869 Add a temp variable to save a call (and a memory read).
7870 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7871 if possible (so that PC_IN_CALL_DUMMY will work).
7872
9bc1edb8
CV
78732002-05-22 Corinna Vinschen <vinschen@redhat.com>
7874
7875 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7876
005ef3d2
ML
78772002-05-22 Michal Ludvig <mludvig@suse.cz>
7878
7879 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7880 fde->cie_ptr.
7881 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7882 (dwarf2_build_frame_info): Add offset to fde->initial_location
7883 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
7884 (execute_stack_op): Change type of 'result' from ULONGEST to
7885 CORE_ADDR.
005ef3d2 7886
fcf4f891
JT
78872002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7888
7889 * config/alpha/tm-nbsd.h: Include solib.h.
7890
cfef91e4
JT
78912002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7892
7893 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7894 assumptions about the host's byte order.
7895
9964235a
JT
78962002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7897
7898 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7899 to dependency list.
7900 * alphanbsd-tdep.c: Include solib-svr4.h.
7901 * shnbsd-tdep.c: Ditto.
7902
9eeef8ef
JT
79032002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7904
7905 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7906 nbsd-tdep.h to dependency list.
7907 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7908 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7909 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7910 nbsdaout.mh and nbsdelf.mh consistently.
7911 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7912 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7913 nbsdaout.mt and nbsdelf.mh consistently.
7914 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7915 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7916 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7917 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7918 a.out shared library stuff from here...
7919 * config/nm-nbsdaout.h: ...to here.
7920 * config/tm-nbsd.h: Remove.
7921 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7922 * config/arm/nbsd.mh: Remove.
7923 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7924 nbsd-tdep.o.
7925 * config/arm/nbsdaout.mh: New file.
7926 * config/arm/nbsdelf.mh: New file.
7927 * config/arm/nm-nbsdaout.h: New file.
7928 * config/i386/nbsd.mh: Remove.
7929 * config/i386/nbsd.mt: Remove.
7930 * config/i386/nbsdaout.mh: New file.
7931 * config/i386/nbsdaout.mt: New file.
7932 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7933 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7934 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7935 i386_register_u_addr): Remove.
7936 * config/i386/nm-nbsdaout.h: New file.
7937 * config/i386/nm-nbsdelf.h: Remove.
7938 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7939 (USE_STRUCT_CONVENTION): Remove.
7940 * config/i386/tm-nbsdaout.h: New file.
7941 * config/i386/tm-nbsdelf.h: Remove.
7942 * config/m68k/nbsd.mh: Remove.
7943 * config/m68k/nbsd.mt: Remove.
7944 * config/m68k/nbsdaout.mh: New file.
7945 * config/m68k/nbsdaout.mt: New file.
7946 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7947 * config/m68k/nm-nbsdaout.h: New file.
7948 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7949 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7950 * config/ns32k/nbsd.mh: Remove.
7951 * config/ns32k/nbsd.mt: Remove.
7952 * config/ns32k/nbsdaout.mh: New file.
7953 * config/ns32k/nbsdaout.mt: New file.
7954 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7955 * config/ns32k/nm-nbsdaout.h: New file.
7956 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7957 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7958 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7959 (SVR4_SHARED_LIBS): Remove.
7960 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7961 * config/sparc/nbsd.mh: Remove.
7962 * config/sparc/nbsd.mt: Remove.
7963 * config/sparc/nbsdaout.mh: New file.
7964 * config/sparc/nbsdaout.mt: New file.
7965 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7966 * config/sparc/nbsdelf.mt: New file.
7967 * config/sparc/nm-nbsdaout.h: New file.
7968 * config/sparc/nm-nbsdelf.h: Remove.
7969 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7970 * config/sparc/tm-nbsdaout.h: New file.
7971
257ce470
JT
79722002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7973
7974 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7975 mipsnbsd-tdep.c
7976 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7977
76a6d5fe
JT
79782002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7979
7980 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7981 shnbsd-nat.c.
7982 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7983
45888261
JT
79842002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7985
7986 * NEWS: Note new MIPS NetBSD native configuration.
7987 * configure.host (mips*-*-netbsd*): New host.
7988 * configure.tgt (mips*-*-netbsd*): New target.
7989 * mipsnbsd-nat.c: New file.
7990 * mipsnbsd-tdep.c: New file.
7991 * mipsnbsd-tdep.h: New file.
7992 * config/mips/nbsd.mh: New file.
7993 * config/mips/nbsd.mt: New file.
7994 * config/mips/nm-nbsd.h: New file.
7995 * config/mips/tm-nbsd.h: New file.
7996
70f80edf
JT
79972002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7998
7999 * Makefile.in (SFILES): Add osabi.c.
8000 (COMMON_OBS): Add osabi.o.
8001 (osabi.o): New dependency list.
8002 * osabi.c: New file.
8003 * osabi.h: New file.
8004 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8005
8006 * Makefile.in (alpha_tdep_h): Define and use instead of
8007 alpha-tdep.h.
8008 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8009 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8010 Remove.
8011 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8012 * alpha-tdep.h: Include osabi.h.
8013 (alpha_abi): Remove.
8014 (gdbarch_tdep): Use generic OS ABI framework.
8015 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8016 gdbarch_register_osabi.
8017 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8018 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8019 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8020
8021 * Makefile.in (sh_tdep_h): Add osabi.h.
8022 * sh-tdep.h (sh_osabi): Remove.
8023 (gdbarch_tdep): Use generic OS ABI framework.
8024 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8025 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8026 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8027 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8028
8029 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8030 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8031 gdbarch_register_osabi.
8032 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8033 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8034 (get_elfosabi): Rename to...
8035 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8036 ABI framework support routines.
8037 (arm_gdbarch_init): Use generic OS ABI framework.
8038 (arm_dump_tdep): Likewise.
8039 (_initialize_arm_tdep): Likewise.
8040 * arm-tdep.h: Include osabi.h.
8041 (arm_abi): Remove.
8042 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8043 osabi member.
8044 (arm_gdbarch_register_os_abi): Remove prototype.
8045 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8046 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8047
8048 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8049 * mips-tdep.c: Include osabi.h.
8050 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8051 OS ABI framework.
8052
d194345b
KH
80532002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8054
8055 * h8300-tdep.c: Fix formatting.
8056
70c6b0d1
EZ
80572002-05-20 Elena Zannoni <ezannoni@redhat.com>
8058
8059 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8060 printing vector registers.
8061
165b8e33
AC
80622002-05-19 Andrew Cagney <ac131313@redhat.com>
8063
8064 From Fernando Nasser:
8065 * remote.c (remote_async_open_1): Re-throw the exception when the
8066 connection fails.
8067 (remote_cisco_open): Ditto.
8068 (remote_open_1): Ditto.
8069
36918e70
AC
80702002-05-19 Andrew Cagney <ac131313@redhat.com>
8071
8072 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8073 (remote_start_remote): Add uiout parameter. Pass through to
8074 remote_start_remote_dummy.
8075 (remote_open_1): Use catch_exception instead of catch_errors.
8076 (remote_async_open_1): Ditto.
8077 (remote_cisco_open): Ditto.
8078
ae44c0c4
AC
80792002-05-19 Andrew Cagney <ac131313@redhat.com>
8080
8081 * remote.c (remote_start_remote): Replace PTR with void pointer.
8082 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8083 static.
8084
8efe637d
AC
80852002-05-18 Andrew Cagney <ac131313@redhat.com>
8086
8087 * gdb_indent.sh: Allow the script to be run in the sim directory.
8088
2f1b5984
MK
80892002-05-18 Mark Kettenis <kettenis@gnu.org>
8090
f0f625e2
MK
8091 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8092 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8093
2f1b5984
MK
8094 * corelow.c (core_open): Only call set_gdbarch_from_file if
8095 exec_bfd is NULL.
8096
fc974602
AV
80972002-05-17 Andrey Volkov <avolkov@transas.com>
8098
8099 * h8300-tdep.c: Add support of EXR register
8100 * config/h8300/tm-h8300.h: Ditto.
8101
906709f4
AV
81022002-05-17 Andrey Volkov <avolkov@transas.com>
8103
8104 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8105
6e591d68
AV
81062002-05-17 Andrey Volkov <avolkov@transas.com>
8107
8108 * h8300-tdep.c: Change literal regnums to REGNO.
8109
84f0252a
JB
81102002-05-17 Jim Blandy <jimb@redhat.com>
8111
e0e9281e
JB
8112 * NEWS: Note addition of macro support.
8113
84f0252a
JB
8114 Expand preprocessor macros in C expressions.
8115 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8116 (scan_macro_expansion, scanning_macro_expansion,
8117 finished_macro_expansion): New function declarations.
8118 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8119 variable declarations.
8120 * parser-defs.h (expression_context_pc): New declaration.
8121 * parse.c (expression_context_pc): New variable.
8122 (parse_exp_1): Set expression_context_pc, as well as
8123 expression_context_block.
8124 * c-exp.y (yylex): If we're not already reading the result of a
8125 macro expansion, try to macro-expand the next token. When we're
8126 done scanning a macro expansion, switch back to the mainline text.
8127 Commas and `if's in a macro's expansion don't terminate the input.
8128 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8129 (macro_original_text, macro_expanded_text,
8130 expression_macro_lookup_func, expression_macro_lookup_baton): New
8131 variables.
8132 (scan_macro_expansion, scanning_macro_expansion,
8133 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8134 c_preprocess_and_parse): New functions.
8135 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8136 c_preprocess_and_parse, instead of c_parse.
8137 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8138 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8139
1c509ca8
JR
8140Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8141
8142 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8143 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8144 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8145
2250ee0c
CV
81462002-05-17 Corinna Vinschen <vinschen@redhat.com>
8147
8148 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8149
ab3b8126
JT
81502002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8151
8152 * Makefile.in (sh_tdep_h): Define and use.
8153 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8154 register enum): Move to...
8155 * * sh-tdep.h: ...here.
8156 * sh-tdep.c: Include sh-tdep.h.
8157 * sh3-rom.c: Likewise.
8158 * shnbsd-tdep.c: Likewise.
8159
ed9d4749
MS
81602002-05-16 Michael Snyder <msnyder@redhat.com>
8161
8162 * arm-tdep.c: Spelling fix in comment.
8163
2e276125
JB
81642002-05-16 Jim Blandy <jimb@redhat.com>
8165
6821892e
JB
8166 Add commands for manually expanding macros and showing their
8167 definitions.
8168 * macrocmd.c, macroscope.c, macroscope.h: New files.
8169 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8170 (macroscope_h): New variable.
8171 (HFILES_NO_SRCDIR): Add macroscope.h.
8172 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8173 (macroscope.o, macrocmd.o): New rules.
8174
2e276125
JB
8175 Teach the Dwarf 2 reader to read macro information.
8176 * dwarf2read.c: #include "macrotab.h".
8177 (dwarf_macinfo_buffer): New variable.
8178 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8179 dwarf_macinfo_size.
8180 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8181 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8182 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8183 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8184 dwarf2_macro_spaces_in_definition): New complaints.
8185 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8186 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8187 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8188 the partial symbol table.
8189 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8190 from what's recorded in the partial symbol table.
8191 (read_file_scope): If the compilation unit has a
8192 `DW_AT_macro_info' attribute, read its macro information.
8193 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8194
2f53fe6c
DJ
81952002-05-16 Daniel Jacobowitz <drow@mvista.com>
8196
8197 Fix PR gdb/546
8198 * ser-tcp.c: Don't include <netinet/udp.h>.
8199
2be99286
SC
82002002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8201
8202 * MAINTAINERS: Update my email address.
8203
c9af212b 82042002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
8205
8206 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8207 include file of the same name.
8208
bf5f1a52
CV
82092002-05-16 Corinna Vinschen <vinschen@redhat.com>
8210
8211 * configure.tgt: Mark v850 as multi-arched.
8212 * config/v850/tm-v850.h: Remove file.
8213 * config/v850/v850.mt: Eliminate TM_FILE.
8214
435e042a
CV
82152002-05-16 Corinna Vinschen <vinschen@redhat.com>
8216
8217 * v850-tdep.c: Full multi-arch.
8218 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8219 Define GDB_MULTI_ARCH to 2.
8220
9819c6c8
PM
82212002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8222
8223 * p-exp.y (current_type): New static variable.
8224 Carries the type of the expression at the position that is parsed.
8225 (push_current_type, pop_current_type): Two new functions. Used
8226 to store/restore current_type in expression on specific tokens.
c9af212b
RE
8227 (search_field): New static variable. Set to one after parsing a point
8228 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
8229 (FIELDNAME): New token. After a point only a token belonging to
8230 current_type type definition is allowed.
8231 (all over token rules): reset and change current_type according
8232 to rules.
8233 (exp '[' rule): insert implicit array index field if
8234 exp is a pascal string type.
8235
3a06899a
CV
82362002-05-16 Corinna Vinschen <vinschen@redhat.com>
8237
8238 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8239 frame info. Use frame_info's saved_regs instead of matching member
8240 in extra_frame_info throughout.
8241 (v850_frame_init_saved_regs): New function.
8242 (v850_init_extra_frame_info): Move most functionality into
8243 v850_frame_init_saved_regs().
8244 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8245 (v850_frame_find_saved_regs): Remove declaration.
8246 (FRAME_FIND_SAVED_REGS): Remove definition.
8247 (v850_frame_init_saved_regs): Add declaration.
8248 (FRAME_INIT_SAVED_REGS): Add definition.
8249
6ed14b0e
CV
82502002-05-16 Corinna Vinschen <vinschen@redhat.com>
8251
8252 * v850-tdep.c: Begin multi-arch'ing v850.
8253 (v850_target_architecture_hook): Remove function.
8254 (v850_gdbarch_init): New function. Add code previously in
8255 v850_target_architecture_hook().
8256 (_initialize_v850_tdep): Don't set target_architecture_hook.
8257 Call register_gdbarch_init() instead.
8258
42725910
DJ
82592002-05-16 Daniel Jacobowitz <drow@mvista.com>
8260
8261 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8262 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8263 (fixup_class_method_type): Likewise.
8264
99d9066e
JB
82652002-05-15 Jim Blandy <jimb@redhat.com>
8266
8267 Add macro structures to GDB's symbol tables. Nobody puts anything
8268 in them yet.
8269 * symtab.h (struct symtab): New member: `macro_table'.
8270 * buildsym.h (pending_macros): New global variable.
8271 * buildsym.c: #include "macrotab.h".
8272 (buildsym_init): Initialize `pending_macros'.
8273 (end_symtab): If we found macro information while reading a CU's
8274 debugging info, do build a symtab structure for it. Make the
8275 symtab point to the macro information, and clear the
8276 `pending_macros' pointer which held it while we were reading the
8277 debug info.
8278 (really_free_pendings): Free any pending macro table.
8279 * objfiles.h (struct objfile): New member: `macro_cache'.
8280 * objfiles.c (allocate_objfile): Set allocate and free functions
8281 for the macro cache's objstack.
8282 (free_objfile): Empty the macro cache's obstack.
8283 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8284 set new allocate and free functions for it.
8285 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8286 free functions for the macro cache's objstack. (Why is this
8287 function building its own objfile?)
8288 * symmisc.c (print_objfile_statistics): Print statistics on the
8289 macro bcache.
8290 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8291
c899585b
RE
82922002-05-15 Richard Earnshaw <rearnsha@arm.com>
8293
8294 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8295 (REGISTER_U_ADDR): Delete definition.
8296 (arm_register_u_addr): Delete declaration.
8297
a6cdd8c5
RE
82982002-05-15 Richard Earnshaw <rearnsha@arm.com>
8299
8300 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8301 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8302
c97dcfc7
AC
83032002-05-14 Andrew Cagney <ac131313@redhat.com>
8304
8305 * regcache.c (register_valid): Revise comments refering to "Not
8306 available" and "unavailable".
8307 * frame.c (frame_register_read): Ditto.
8308 * findvar.c (value_of_register): Ditto.
8309
93021b7d
AC
83102002-05-15 Andrew Cagney <cagney@redhat.com>
8311
8312 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8313 (remote-sim.o): Update dependencies.
8314 (d10v-tdep.o): Specify dependencies.
8315 (sim_d10v_h): Define.
8316
a86bc61c
JB
83172002-05-14 Jim Blandy <jimb@redhat.com>
8318
8319 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8320 * macrotab.c (macro_lookup_inclusion, find_definition,
8321 new_macro_table): Same.
8322
8323 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8324 not `! strcmp ()'. This is a dubious improvement.
8325 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8326
8327 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8328 although it's not necessary, to avoid a warning.
8329
2fdde8f8
DJ
83302002-05-14 Daniel Jacobowitz <drow@mvista.com>
8331
8332 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8333 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8334 TYPE_INSTANCE_FLAGS.
8335 (struct main_type): New.
8336 (struct type): Move most members to struct main_type. Change
8337 cv_type and as_type to new type_chain member. Add instance_flags.
8338 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8339 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8340 (finish_cv_type): Remove prototype.
8341 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8342 Set TYPE_CHAIN.
8343 (alloc_type_instance): New function.
8344 (smash_type): New function.
8345 (make_pointer_type, make_reference_type, make_function_type)
8346 (smash_to_member_type, smash_to_method_type): Call smash_type.
8347 (make_qualified_type): New function.
8348 (make_type_with_address_space): Call make_qualified_type.
8349 (make_cv_type): Likewise.
8350 (finish_cv_type): Remove unnecessary function.
8351 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8352 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8353 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8354 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8355 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8356 * hpread.c (hpread_read_struct_type): Likewise.
8357 * stabsread.c (read_struct_type): Likewise.
8358
843fedf4
EZ
83592002-05-14 Elena Zannoni <ezannoni@redhat.com>
8360
8361 * configure.tgt: Add a catch all sh* target, for cases like
8362 sh[2,3,4]-elf and sh-hms.
8363
05a6c72c
KS
83642002-05-14 Keith Seitz <keiths@redhat.com>
8365
8366 * event-loop.c (create_file_handler): Don't do anything but
8367 update data when we are given a fd which we are already
8368 monitoring.
8369
5d085aaf
ML
83702002-05-14 Michal Ludvig <mludvig@suse.cz>
8371
8372 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8373 (update_context): Use __func__ in warnings.
8374
9db8d71f
DJ
83752002-05-14 Daniel Jacobowitz <drow@mvista.com>
8376
8377 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8378 and tcp_close to net_open and net_close.
8379 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8380 using UDP if requested. Don't try to disable Nagle on UDP
8381 sockets.
8382 * remote.c (remote_serial_open): New function. Warn about UDP.
8383 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8384
5dbc6baa
EZ
83852002-05-13 Elena Zannoni <ezannoni@redhat.com>
8386
8387 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8388
cc3023f7
EZ
83892002-05-13 Elena Zannoni <ezannoni@redhat.com>
8390
8391 * configure.tgt: Remove sh-hms target.
8392 * MAINTAINERS: Don't list sh-hms as a separate target.
8393
ec2bcbe7
JB
83942002-05-13 Jim Blandy <jimb@redhat.com>
8395
8396 Add first preprocessor macro-expansion files.
8397 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8398 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8399 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8400 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8401 (COMMON_OBS): Add macrotab.o, macroexp.o.
8402 (macroexp.o, macrotab.o): New rules.
8403
6d531722
AC
84042002-05-13 Andrew Cagney <ac131313@redhat.com>
8405
8406 * config/m88k/tm-m88k.h: Update copyright.
8407 (m88k_target_write_pc): Declare
8408 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8409 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8410 (SHIFT_INST_REGS): Update definition.
8411 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8412 using old definition of TARGET_WRITE_PC.
8413 * regcache.c (generic_target_write_pc): Delete code handling
8414 NNPC_REGNUM.
8415 * gdbarch.sh (NNPC_REGNUM): Delete.
8416 * gdbarch.h, gdbarch.c: Regenerate.
8417
3e3f2739
RE
84182002-05-13 Richard Earnshaw <rearnsha@arm.com>
8419
8420 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8421 builtin reg number.
8422
0004e5a2
DJ
84232002-05-13 Daniel Jacobowitz <drow@mvista.com>
8424
8425 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8426 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8427 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8428 access macros.
8429 * c-typeprint.c (cp_type_print_method_args): Likewise.
8430 (c_type_print_args): Likewise.
8431 * d10v-tdep.c (d10v_push_arguments): Likewise.
8432 (d10v_extract_return_value): Likewise.
8433 * expprint.c (print_subexp): Likewise.
8434 * gdbtypes.c (lookup_primitive_typename): Likewise.
8435 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8436 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8437 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8438 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8439 (TYPE_VECTOR): Likewise.
8440 * hpread.c (hpread_read_struct_type)
8441 (fix_static_member_physnames, fixup_class_method_type)
8442 (hpread_type_lookup): Likewise.
8443 * mdebugread.c (parse_symbol, parse_type): Likewise.
8444 * p-lang.c (is_pascal_string_type): Likewise.
8445 * valops.c (hand_function_call): Likewise.
8446 * x86-64-tdep.c (classify_argument): Likewise.
8447
8448 * hpread.c (hpread_read_function_type)
8449 (hpread_read_doc_function_type): Call replace_type.
8450 * dstread.c (create_new_type): Delete.
8451 (decode_dst_structure, process_dst_function): Call alloc_type.
8452 Use type access macros.
8453
dff95cc7
MK
84542002-05-12 Mark Kettenis <kettenis@gnu.org>
8455
8456 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8457 the're not supported by the current architecture.
8458 (i387_fill_fxsave): Likewise.
8459
bbcd32ad
FF
84602002-05-12 Fred Fish <fnf@redhat.com>
8461
8462 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8463 sect_index_xxx members to index the first slot in section_offsets
8464 if all of the section_offsets are zero.
8465
89cf4787
MK
84662002-05-12 Mark Kettenis <kettenis@gnu.org>
8467
8468 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8469 checked in with last change.
8470
1f77ffc5
MK
84712002-05-12 Mark Kettenis <kettenis@gnu.org>
8472
8473 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8474 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8475 config.sub.
8476
89b8b4a9
DJ
84772002-05-12 Daniel Jacobowitz <drow@mvista.com>
8478
8479 * Makefile.in: Update dependencies.
8480
14a5e767
AC
84812002-05-11 Andrew Cagney <ac131313@redhat.com>
8482
8483 * language.c (local_hex_string_custom): Simplify. Do not depend
8484 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8485
8486 * memattr.c (mem_info_command): Replace calls to
8487 longest_local_hex_string and longest_local_hex_string_custom.
8488 * buildsym.c (make_blockvector): Ditto.
8489 * solib.c (info_sharedlibrary_command): Ditto.
8490 * tracepoint.c (tracepoints_info): Ditto.
8491 * symtab.c (print_msymbol_info): Ditto.
8492
8493 * language.c (local_hex_string): Delete.
8494 (local_hex_string_custom): Delete.
8495 (longest_local_hex_string): Rename to local_hex_string.
8496 (longest_local_hex_string_custom): Rename to
8497 local_hex_string_custom.
8498 * language.h (local_hex_string): Change parameter type to LONGEST.
8499 (local_hex_string_custom): Ditto.
8500 (longest_local_hex_string): Delete declaration.
8501 (longest_local_hex_string_custom): Ditto.
8502
8503 * solib.c: Update copyright.
8504 * memattr.c: Update copyright.
8505
13d01224
AC
85062002-05-11 Andrew Cagney <ac131313@redhat.com>
8507
8508 * arch-utils.h (legacy_register_to_value): Declare.
8509 (legacy_value_to_register): Declare.
8510 (legacy_convert_register_p): Declare.
8511 * arch-utils.c (legacy_register_to_value): New function.
8512 (legacy_value_to_register): New function.
8513 (legacy_convert_register_p): New function.
8514
8515 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8516 (VALUE_TO_REGISTER): Define.
8517 (CONVERT_REGISTER_P): Define.
8518 * gdbarch.h, gdbarch.c: Regenerate.
8519
8520 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8521 VALUE_TO_REGISTER.
8522 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8523 CONVERT_REGISTER_P.
8524
4a1970e4
DJ
85252005-05-11 Daniel Jacobowitz <drow@mvista.com>
8526 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8527
8528 * Makefile.in: Update dependencies for valops.c.
8529 * valops.c: Include "gdb_assert.h".
8530 (typecmp): Skip THIS parameter to methods.
8531 (find_method_list): Remove static_memfuncp argument,
8532 update callers. Check for stub methods.
8533 (find_value_oload_method_list): Don't set *static_memfuncp.
8534 (find_overload_match): Don't check for stub methods. Assert
8535 that methods are not stubbed. Handle static methods.
8536 (value_find_oload_method_list): Remove static_memfuncp argument.
8537 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8538 to the argument list for static stub methods.
8539 * value.h (value_find_oload_method_list): Update prototype.
8540
b2e75d78
AC
85412002-05-11 Andrew Cagney <ac131313@redhat.com>
8542
8543 * arch-utils.h (generic_register_size): Declare.
8544 (generic_register_raw_size, generic_register_virtual_size): Delete
8545 declarations.
8546 * arch-utils.c (generic_register_raw_size): Delete.
8547 (generic_register_size): New function.
8548 (generic_register_virtual_size): Delete.
8549
8550 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8551 default generic_register_size.
8552 * gdbarch.h, gdbarch.c: Re-generate.
8553
8554 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8555 register_virtual_size.
8556 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8557 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8558
451fbdda
AC
85592002-05-11 Andrew Cagney <ac131313@redhat.com>
8560
8561 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8562 * gdbarch.h, gdbarch.c: Regenerate.
8563 * gnu-v3-abi.c: Update copyright.
8564 (vtable_address_point_offset): Update.
8565 (gnuv3_rtti_type): Update.
8566 (gnuv3_baseclass_offset): Update.
8567 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8568 (init_fetch_link_map_offsets): Update.
8569 * remote.c (get_remote_state): Update.
8570
6d2f5cea
DJ
85712002-05-11 Daniel Jacobowitz <drow@mvista.com>
8572
8573 * TODO: Remove value_headof/value_from_vtable_info comment.
8574 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8575 * values.c (value_headof, value_from_vtable_info): Delete.
8576 * value.h (value_from_vtable_info): Delete prototype.
8577
d2324da4
AC
85782002-05-11 Andrew Cagney <ac131313@redhat.com>
8579
8580 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8581 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8582 $(gdb_regex_h).
8583 (gdb_assert_h): Define.
8584 (gdb_wait_h): Define.
8585 (gdb_regex_h): Define.
8586
5c717440
DJ
85872002-05-11 Daniel Jacobowitz <drow@mvista.com>
8588
8589 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8590 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8591
6c7861b3
JT
85922002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8593
8594 * nbsd-tdep.c: Fix comment.
8595
ea5bc2a6
JT
85962002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8597
8598 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8599 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8600 (nbsd-tdep.o): New dependency list.
8601 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8602 nbsd-tdep.h.
8603 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8604 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8605 * nbsd-tdep.c: New file.
8606 * nbsd-tdep.h: New file.
8607 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8608 nbsd-tdep.h.
8609 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8610 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8611 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8612 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8613
b28da865
JT
86142002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8615
8616 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8617 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8618 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8619 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8620 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8621 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8622
4b8ff1fa
JT
86232002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8624
8625 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8626 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8627 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8628 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8629 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8630 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8631 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8632
dfe6eb1f
JT
86332002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8634
8635 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8636 fetch_elfcore_registers to...
8637 * i386nbsd-tdep.c: ...here.
8638 (i386nbsd_use_struct_convention): Rename to...
8639 (i386nbsd_aout_use_struct_convention): ...this.
8640 (i386nbsd_supply_reg): New function.
8641 (i386nbsd_fill_reg): New function.
8642 (fetch_core_registers): Use i386nbsd_supply_reg.
8643 (fetch_elfcore_registers): Likewise.
8644 (_initialize_i386nbsd_tdep): New function.
8645 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8646 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8647 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8648 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8649 (i386nbsd_aout_use_struct_convention): ...this.
8650
20cb8cda
JT
86512002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8652
8653 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8654 (store_inferior_registers): Use shnbsd_fill_reg.
8655 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8656 sh_nbsd_supply_register): Collapse into...
8657 (shnbsd_supply_reg): ...this.
8658 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8659 (shnbsd_fill_reg): ...this.
8660 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8661 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8662 (fetch_core_registers): Use shnbsd_supply_reg.
8663 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8664 (sh_nbsd_core_fns): Rename to...
8665 (shnbsd_core_fns): ...this.
8666 (sh_nbsd_elfcore_fns): Rename to...
8667 (shnbsd_elfcore_fns): ...this.
8668 (sh_nbsd_init_abi): Rename to...
8669 (shnbsd_init_abi): ...this.
8670 (_initialize_sh_nbsd_tdep): Rename to...
8671 (_initialize_shnbsd_tdep): ...this.
8672 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8673 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8674 sh_nbsd_fill_register): Remove prototypes.
8675 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8676
e750d25e
JT
86772002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8678
8679 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8680 (i387-nat.o): Delete dependency list.
8681 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8682 (x86-64-linux-nat.o): Likewise.
8683 * i387-nat.c: Delete file, moving contents to...
8684 * i387-tdep.c: ...here.
8685 * i387-nat.h: Rename...
8686 * i387-tdep.h: ...to this.
8687 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8688 * i386-linux-nat.c: Likewise.
8689 * i386bsd-nat.c: Likewise.
8690 * i386gnu-nat.c: Likewise.
8691 * i386nbsd-nat.c: Likewise.
8692 * i386v4-nat.c: Likewise.
8693 * x86-64-linux-nat.c: Likewise.
8694 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8695 * config/i386/go32.mh (NATDEPFILES): Likewise.
8696 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8697 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8698 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8699 * config/i386/linux.mh (NATDEPFILES): Likewise.
8700 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8701 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8702 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8703 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8704
1aee598a
JT
87052002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8706
8707 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8708 (alphanbsd-nat.o): Remove dependency list.
8709 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8710 * alphanbsd-nat.c: Delete. Contents moved to...
8711 * alphanbsd-tdep.c: ...here.
8712 (_initialize_alphanbsd_tdep): Register core functions.
8713 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8714
12bcb0fe
JT
87152002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8716
8717 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8718 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8719 (alphanbsd-nat.o): Likewise.
8720 (alphabsd-tdep.o): New dependency list.
8721 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8722 (fill_gregset): Use alphabsd_fill_reg.
8723 (supply_fpregset): Use alphabsd_supply_fpreg.
8724 (fill_fpregset): Use alphabsd_fill_fpreg.
8725 (fetch_inferior_registers): Use struct reg and struct fpreg
8726 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8727 and alphabsd_supply_fpreg.
8728 (store_inferior_registers): Use struct reg and struct fpreg
8729 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8730 and alphabsd_fill_fpreg.
8731 * alphabsd-tdep.c: New file.
8732 * alphabsd-tdep.h: New file.
8733 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8734 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8735 alphabsd_supply_fpreg.
8736 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8737 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8738
361d1df0
EC
87392002-05-11 Eric Christopher <echristo@redhat.com>
8740
8741 * mips-tdep.c (mips_double_register_type): Fix thinko.
8742 (mips_single_register_type): Ditto.
8743 * MAINTAINERS: Add self.
8744
92dd7cee
MK
87452002-05-11 Mark Kettenis <kettenis@gnu.org>
8746
8747 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8748 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8749 right thing on architectures with different endianness and/or
8750 integer sizes.
8751
e27da16d
JT
87522002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8753
8754 From Christian Limpach <chris@Pin.LU>
8755 * configure.in: Change sed expression which comments out
8756 NATDEPFILES to also comment out continuation lines.
8757 * configure: Regenerate.
8758
ddde02bd
EZ
87592002-05-10 Elena Zannoni <ezannoni@redhat.com>
8760
8761 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8762 big patch.
8763
1c922164
EZ
87642002-05-10 Elena Zannoni <ezannoni@redhat.com>
8765
8766 * sh-tdep.c: Include correct file.
8767
283150cd
EZ
87682002-05-10 Elena Zannoni <ezannoni@redhat.com>
8769
8770 New support for sh64-elf (sh5) target.
8771
8772 * configure.tgt: For sh64-elf target, default to sh-elf.
8773
8774 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8775 (struct gdbarch_tdep): Add new fields for new registers and ABI
8776 info.
361d1df0 8777
283150cd
EZ
8778 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8779 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8780 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8781 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8782 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8783 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8784 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8785 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8786 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8787 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8788 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8789 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8790 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8791 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8792 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8793 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8794 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8795 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8796 sign_extend, sh64_nofp_frame_init_saved_regs,
8797 sh64_init_extra_frame_info, sh64_get_saved_register,
8798 sh64_extract_struct_value_address, sh64_pop_frame,
8799 sh64_push_arguments, sh64_extract_return_value,
8800 sh64_store_return_value, sh64_show_media_regs,
8801 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8802 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8803 sh_sh64_register_virtual_type,
8804 sh_sh64_register_convert_to_virtual,
8805 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8806 sh64_register_read, sh64_pseudo_register_write,
8807 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8808 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8809 sh64_do_pseudo_register, sh_compact_do_registers_info,
8810 sh64_do_registers_info, sh_gdbarch_init): New functions.
8811
3117ed25
EZ
88122002-05-10 Elena Zannoni <ezannoni@redhat.com>
8813
8814 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8815
2654e6d4
DJ
88162002-05-10 Daniel Jacobowitz <drow@mvista.com>
8817
8818 * linespec.c (decode_line_1): Check for a double quote after
8819 a filename correctly.
8820
9ab3e532
JB
88212002-05-10 Jim Blandy <jimb@redhat.com>
8822
8823 Properly track the size of the current objfile's .debug_line section.
8824 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8825 (DWARF_LINE_SIZE): New macro.
8826 (dwarf2_build_psymtabs_hard): Record the line section's size in
8827 the partial symbol table.
8828 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8829 symbol table.
8830
126fa72d
PS
88312002-05-10 Petr Sorfa <petrs@caldera.com>
8832
8833 * ia64-tdep.c: Handle breakpoints on L instruction type
8834 in MLX instruction bundle by moving the breakpoint to
8835 the third slot (X instruction type) as L holds only data.
8836
1f077a3e
KB
88372002-05-10 Kevin Buettner <kevinb@redhat.com>
8838
8839 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8840 (process_one_symbol): Complain about discarding local symbols
8841 due to a misplaced N_LBRAC entry.
8842
8120c9d5 88432002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
8844
8845 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
8846 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8847 decrease the depth we are at, in the case of templates.
361d1df0 8848
67b2c998
DJ
88492002-05-09 Daniel Jacobowitz <drow@mvista.com>
8850
8851 * mips-tdep.c (mips_float_register_type): New function.
8852 (mips_double_register_type): New function.
8853 (mips_print_register): Use them.
8854 (do_fp_register_row): Likewise.
8855
fd326606
DJ
88562002-05-09 Daniel Jacobowitz <drow@mvista.com>
8857
6609d9af 8858 * signals/signals.c (signals): Remove conditional compilation around
fd326606 8859 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 8860 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 8861
bef35864
MS
88622002-05-09 Michael Snyder <msnyder@redhat.com>
8863
8864 * remote-rdp.c (remote_rdp_can_run): Remove.
8865
c55a3f73
TT
88662002-05-09 Tom Tromey <tromey@redhat.com>
8867
8868 * jv-valprint.c (java_val_print): Handle `char' as a special case
8869 of TYPE_CODE_INT.
8870
b8d5e71d
MS
88712002-05-09 Michael Snyder <msnyder@redhat.com>
8872
8873 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8874 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 8875 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 8876 str r(0123),[sp,#nn].
361d1df0 8877 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
8878 order-independent by placing it in a loop.
8879
e2cd42dd
MS
88802002-05-06 Michael Snyder <msnyder@redhat.com>
8881
8882 * stabsread.c (read_type): Add recognition for new attribute:
8883 "@V;" means that an array type is actually a vector.
8884 This is analogous to the vector flag that's been added to dwarf2.
8885
3ce1502b
MK
88862002-05-09 Mark Kettenis <kettenis@gnu.org>
8887
8888 * i386-tdep.h (i386_abi): New enum.
8889 (struct gdbarch_tdep): Replace os_ident member with abi.
8890 (i386_gdbarch_register_os_abi): New prototype.
8891 * i386-tdep.c (i386_abi_names): New array.
8892 (process_note_abi_tag_sections): Removed.
8893 (process_note_sections): New function.
8894 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8895 (struct i386_abi_handler): New struct.
8896 (i386_abi_handler_list): New variable.
8897 (i386_gdbarch_register_os_abi): New function.
8898 (i386_gdbarch_init): Adapt for the changes given above.
8899
084c156a
DJ
89002002-05-08 Daniel Jacobowitz <drow@mvista.com>
8901
8902 * gregset.h: Say "GNU/Linux".
8903
6599f021
EZ
89042002-05-08 Elena Zannoni <ezannoni@redhat.com>
8905
8906 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8907 (build_gdbtypes): Build builtin_type_v2_float.
8908 (_initialize_gdbtypes): Register new builtin type.
8909
40af4b0c
AC
89102002-05-08 Andrew Cagney <ac131313@redhat.com>
8911
8912 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8913 (clear_gdbarch_swap): New function.
8914 (initialize_non_multiarch): Call.
8915 (gdbarch_update_p): Before calling init(), swap out and clear the
8916 existing architecture.
8917 * gdbarch.c: Regenerate.
8918
4fe84f46
JT
89192002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8920
8921 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8922 alphanbsd-tdep.c.
8923
4015edd1
JT
89242002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8925
8926 * sh-nbsd-nat.c: Rename to...
8927 * shnbsd-nat.c: ...this.
8928 * sh-nbsd-tdep.c: Rename to...
8929 * shnbsd-tdep.c: ...this.
8930 * sh-nbsd-tdep.h: Rename to...
8931 * shnbsd-tdep.h: ...this.
8932 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8933 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8934
0e2bd219
RE
89352002-05-08 Richard Earnshaw <rearnsha@arm.com>
8936
8937 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8938 concatenation for command help messages.
8939
13a38d45
JT
89402002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8941
8942 * NEWS: Note new sh*-*-netbsdelf* configuration.
8943 * configure.host: Set gdb_host_cpu to sh for all sh*.
8944 (sh*-*-netbsdelf*): New host.
8945 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8946 (sh*-*-netbsdelf*): New target.
8947 * sh-nbsd-nat.c: New file.
8948 * sh-nbsd-tdep.c: New file.
8949 * sh-nbsd-tdep.h: New file.
8950 * config/sh/nbsd.mh: New file.
8951 * config/sh/nbsd.mt: New file.
8952 * config/sh/nm-nbsd.h: New file.
8953 * config/sh/tm-nbsd.h: New file.
8954
d658f924
JT
89552002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8956
8957 * sh-tdep.c (sh_osabi_names): Declare.
8958 (process_note_abi_tag_sections): New function.
8959 (get_elfosabi): Ditto.
8960 (sh_gdbarch_register_os_abi): Ditto.
8961 (sh_dump_tdep): Ditto.
8962 _initialize_sh_tdep): Use gdbarch_register to register
8963 sh_gdbarch_init and sh_dump_tdep.
8964 * config/sh/tm-sh.h (sh_osabi): Declare.
8965 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8966
848cfffb
AC
89672002-05-07 Andrew Cagney <ac131313@redhat.com>
8968
8969 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8970 (thumb_scan_prologue): Ditto.
8971 (arm_find_callers_reg): Ditto.
8972 (arm_frame_chain): Ditto.
8973 (arm_init_extra_frame_info): Ditto.
8974 (arm_frame_saved_pc): Ditto.
8975 (arm_pop_frame): Ditto.
8976 (arm_push_return_address): New function.
8977 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8978 call_dummy_location, call_dummy_breakpoint_offset_p,
8979 call_dummy_breakpoint_offset, call_dummy_p,
8980 call_dummy_stack_adjust_p, call_dummy_words,
8981 sizeof_call_dummy_words, call_dummy_start_offset,
8982 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8983 call_dummy_address, push_return_address and push_dummy_frame for
8984 generic dummy frames.
8985
e7d717c0
JT
89862002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8987
8988 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8989 size computation for alloca.
8990 (sh_fp_frame_init_saved_regs): Likewise.
8991
7bbcf283
RE
89922002-05-07 Richard Earnshaw <rearnsha@arm.com>
8993
8994 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8995 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 8996 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
8997 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8998 * remote-rdp.c (remote_rdp_fetch_register): Use
8999 ARM_MAX_REGISTER_RAW_SIZE.
9000 (remote_rdp_store_register): Likewise.
9001
4657573b
ML
90022002-05-07 Michal Ludvig <mludvig@suse.cz>
9003
361d1df0 9004 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
9005 added default labels to switch {} statements.
9006 * x86-64-tdep.c: Ditto.
9007 * x86-64-linux-nat.c: Ditto.
9008
010f3b2f
JT
90092002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9010
9011 * solib.h: Protect against multiple inclusion.
9012
debd256d
JB
90132002-05-06 Jim Blandy <jimb@redhat.com>
9014
9ab3e532
JB
9015 Add first preprocessor macro-expansion files.
9016 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9017 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9018 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9019 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9020 (COMMON_OBS): Add macrotab.o, macroexp.o.
9021 (macroexp.o, macrotab.o): New rules.
9022
debd256d
JB
9023 Separate the job of reading the line number info statement program
9024 header (...expialidocious) out into its own function.
9025 * dwarf2read.c (struct line_head, struct filenames, struct
9026 directories): Replace with...
9027 (struct line_header): New structure, containing the full
9028 contents of the statement program header, including the
9029 include directory and file name tables.
9030 (read_file_scope): If we have line number info, instead of just
9031 calling dwarf_decode_lines to do all the work, call
9032 dwarf_decode_line_header first to get a `struct line_header'
9033 containing the data in the statement program header, and then
9034 pass that to dwarf_decode_lines, which will pick up where that
9035 left off. Be sure to clean up the `struct line_header' object.
9036 (dwarf_decode_line_header, free_line_header, add_include_dir,
9037 add_file_name): New functions.
9038 (dwarf_decode_lines): Move all the code to read the statement
9039 program header into dwarf_decode_line_header. Take the line
9040 header it built as the first argument, instead of the offset to
9041 the compilation unit's line number info. Use the new `struct
9042 line_header' type instead of the old structures. No need to do
9043 cleanups here now, since we don't allocate anything.
9044 (dwarf2_statement_list_fits_in_line_number_section,
9045 dwarf2_line_header_too_long): New complaints.
9046
ac3aafc7
EZ
90472002-05-06 Elena Zannoni <ezannoni@redhat.com>
9048
9049 * gdbtypes.c (init_vector_type): New function.
9050 (build_builtin_type_vec128): Simplify the representation of SIMD
9051 registers.
9052 (build_gdbtypes): Initialize new builtin vector types.
9053 (_initialize_gdbtypes): Register new vector types with gdbarch.
9054 (builtin_type_v4_float, builtin_type_v4_int32,
9055 builtin_type_v8_int16, builtin_type_v16_int8,
9056 builtin_type_v2_int32, builtin_type_v4_int16,
9057 builtin_type_v8_int8): New (renamed) SIMD types.
9058
13e49980
MK
90592002-05-06 Mark Kettenis <kettenis@gnu.org>
9060
9061 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9062 (i387_fill_fxsave): Likewise.
9063
997b20b8
AO
90642002-05-05 Alexandre Oliva <aoliva@redhat.com>
9065
9066 * alpha-tdep.c (alpha_extract_return_value): Don't use
9067 non-constant array size in prototype.
9068
535c96ce
AC
90692002-05-04 Andrew Cagney <ac131313@redhat.com>
9070
9071 From Brian Taylor <briant at model dot com>:
9072 * ui-out.c (ui_out_field_core_addr): Use the function
9073 longest_local_hex_string_custom'to format addresses > 32 bits
9074 wide.
9075
9076 * ui-out.c (ui_out_field_core_addr): Update comment.
9077
bedfa57b
AC
90782002-05-04 Andrew Cagney <ac131313@redhat.com>
9079
9080 * stack.c (select_and_print_frame): Make static. Delete the
9081 parameter `level'.
9082 (func_command): Update call.
9083 (select_frame_command): Delete code computing the frame level.
9084 * frame.h (select_and_print_frame): Delete declaration.
9085
f621c63e
AC
90862002-05-04 Andrew Cagney <ac131313@redhat.com>
9087
9088 * sparc-tdep.c (sparc_get_saved_register): Comment why
9089 get_prev_frame call is safe.
9090
0f7d239c
AC
90912002-05-04 Andrew Cagney <ac131313@redhat.com>
9092
9093 * frame.h (select_frame): Delete level parameter.
9094 * stack.c (select_frame): Update. Use frame_relative_level to
9095 obtain the frame's level.
9096 (select_and_print_frame): Update call.
9097 (select_frame_command): Ditto.
9098 (up_silently_base): Ditto.
9099 (down_silently_base): Ditto.
9100 * ocd.c (ocd_start_remote): Ditto.
9101 * remote-rdp.c (remote_rdp_open): Ditto.
9102 * remote-mips.c (mips_initialize): Ditto.
9103 (common_open): Ditto.
9104 * remote-e7000.c (e7000_start_remote): Ditto.
9105 * m3-nat.c (select_thread): Ditto.
9106 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9107 (child_get_current_exception_event): Ditto.
9108 * varobj.c (varobj_create): Ditto.
9109 (varobj_update): Ditto.
9110 (c_value_of_root): Ditto.
9111 * tracepoint.c (finish_tfind_command): Ditto.
9112 * corelow.c (core_open): Ditto.
9113 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9114 * thread.c (info_threads_command): Ditto.
9115 (switch_to_thread): Ditto.
9116 * infrun.c (normal_stop): Ditto.
9117 (restore_selected_frame): Ditto.
9118 (restore_inferior_status): Ditto.
9119 * breakpoint.c (insert_breakpoints): Ditto.
9120 (watchpoint_check): Ditto.
9121 (bpstat_stop_status): Ditto.
9122 (do_enable_breakpoint): Ditto.
9123 * blockframe.c (flush_cached_frames): Ditto.
9124 (reinit_frame_cache): Ditto.
9125
71d6c7b1
AC
91262002-05-04 Andrew Cagney <ac131313@redhat.com>
9127
9128 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9129 maintainer.
9130
cda6c68a
JB
91312002-05-04 Jim Blandy <jimb@redhat.com>
9132
9133 * gdbtypes.c (replace_type): Doc fix.
9134
5c1c87f0
AC
91352002-05-04 Andrew Cagney <ac131313@redhat.com>
9136
9137 * valprint.c (strcat_longest): Delete commented out function.
9138 Update copyright.
9139
cd9bfe15
AC
91402002-05-04 Andrew Cagney <ac131313@redhat.com>
9141
9142 * MAINTAINERS: Mark a29k as deleted.
9143 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9144 Move new configurations to the top.
9145 * configure.tgt: Remove a29k.
9146 * config/a29k/tm-vx29k.h: Delete.
9147 * config/a29k/vx29k.mt: Delete.
9148 * config/a29k/tm-a29k.h: Delete.
9149 * config/a29k/a29k-udi.mt: Delete.
9150 * config/a29k/a29k.mt: Delete.
9151 * a29k-tdep.c: Delete.
9152 * remote-udi.c: Delete.
9153 * remote-mm.c: Delete.
9154 * remote-eb.c: Delete.
9155 * remote-adapt.c: Delete.
9156 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
9157 * config/s390/s390x.mt: Ditto.
9158 * config/s390/s390.mt: Ditto.
9159 * config/sparc/sparclynx.mh: Ditto.
9160 * config/sparc/linux.mh: Ditto.
9161 * config/pa/hppaosf.mh: Ditto.
9162 * config/pa/hppabsd.mh: Ditto.
9163 * config/ns32k/nbsd.mt: Ditto.
9164 * config/mips/vr5000.mt: Ditto.
9165 * config/m68k/sun3os4.mh: Ditto.
9166 * config/m68k/nbsd.mt: Ditto.
9167 * config/m68k/m68klynx.mh: Ditto.
9168 * config/m32r/m32r.mt: Ditto.
9169 * config/i386/x86-64linux.mt: Ditto.
9170 * config/i386/nbsdelf.mt: Ditto.
9171 * config/i386/nbsd.mt: Ditto.
9172 * config/i386/i386lynx.mh: Ditto.
9173
bf0c5130
AC
91742002-05-04 Andrew Cagney <ac131313@redhat.com>
9175
9176 * target.c (debug_print_register): New function. Handle oversize
9177 registers.
9178 (debug_to_fetch_registers): Call.
9179 (debug_to_store_registers): Call.
9180
2ae1c2d2
JB
91812002-05-03 Jim Blandy <jimb@redhat.com>
9182
13a393b0
JB
9183 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9184 (read_type): Doc fix.
9185 * gdbtypes.c (replace_type): Doc fix.
9186
2ae1c2d2
JB
9187 * stabsread.c (multiply_defined_struct): New complaint.
9188 (read_struct_type): If the type we were passed isn't empty, or
9189 incomplete, don't read the new struct type into it; complain,
9190 and return the original type unchanged. Take a new `type_code'
9191 argument, which is the type code for the new type.
9192 (read_type): Rather than storing the type's type code here, pass
9193 it as an argument to read_struct_type, and let that take care of
9194 storing it. That way, we don't overwrite the original type code,
9195 so read_struct_type can use it to decide whether we're overwriting
9196 something we shouldn't.
9197 (complain_about_struct_wipeout): New function.
9198
8de9bdc4
AC
91992002-05-03 Andrew Cagney <ac131313@redhat.com>
9200
9201 * gdbarch.sh: Assert that gdbarch is non-NULL.
9202 * gdbarch.c: Regenerate.
9203
f773fdbb
JM
92042002-05-03 Jason Merrill <jason@redhat.com>
9205
9206 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9207 and return NULL.
9208
0e04a514
ML
92092002-05-03 Michal Ludvig <mludvig@suse.cz>
9210
9211 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9212 (x86_64_dwarf2gdb_regno_map_length),
9213 (x86_64_dwarf2_reg_to_regnum): Added.
9214 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9215 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9216 (_initialize_x86_64_tdep): Synced with the change above.
9217 (x86_64_skip_prologue): Reformulated message.
9218
065432a8
PM
92192002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9220
9221 * f-exp.y: Also use new prev_lexptr variable
9222 to improve error reporting. Based on Michael Snyder
9223 2002-04-24 dated patch to c-exp.y.
9224 * jv-exp.y: Likewise.
9225 * m2-exp.y: Likewise.
9226
a3162708
EZ
92272002-05-02 Elena Zannoni <ezannoni@redhat.com>
9228
9229 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9230 we are dealing with vectors.
9231
03620c38
PM
92322002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9233
9234 * config/m68k/tm-nbsd.h: Obvious fix,
9235 correct machine name.
9236
6604db2e
PM
92372002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9238
9239 * p-typeprint.c (pascal_type_print_base): Add support
9240 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9241
0906b739
PM
92422002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9243
9244 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9245 for fondamental pascal 'char' type.
9246
e2625b33
PM
92472002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9248
9249 * p-lang.h (is_pascal_string_type): Declaration changed,
9250 new sixth argument of type char ** added.
361d1df0 9251 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
9252 changed. Args length_pos, length_size, string_pos, char_size
9253 can now be NULL. New argument arrayname set to the field
9254 name of the char array. Return value set to char array
9255 field index plus one.
361d1df0 9256 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
9257 is_pascal_string_type function.
9258
cf17c188
AC
92592002-05-02 Andrew Cagney <cagney@redhat.com>
9260
9261 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9262 <cagney@redhat.com> change.
9263 * gdbarch.c: Regenerate.
9264
52bca491
AC
92652002-05-02 Andrew Cagney <cagney@redhat.com>
9266
9267 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9268 before probing for a new one. Detect errorenous gdbarch_init
9269 functions.
9270 * gdbarch.c: Regenerate.
9271
d5e72505
AC
92722002-05-01 Andrew Cagney <cagney@redhat.com>
9273
9274 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9275 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9276 * config/v850/tm-v850.h: Ditto. Update copyright.
9277
af566d9f
AC
92782002-04-30 Andrew Cagney <ac131313@redhat.com>
9279
9280 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9281 current_gdbarch.
9282
880d85fa
MS
92832002-04-30 Michael Snyder <msnyder@redhat.com>
9284
94c30b78
MS
9285 * arm-tdep.c: Whitespace clean-ups.
9286 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
9287 should have been removed as part of 4/24 change.
9288
6f5987a6
KB
92892002-04-30 Kevin Buettner <kevinb@redhat.com>
9290
9291 * rs6000-tdep.c: Added comment describing how fpscr register
9292 numbers were chosen.
9293
1a113c93
MS
92942002-04-30 Michael Snyder <msnyder@redhat.com>
9295
9296 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9297
9a6f53fe
EZ
92982002-04-29 Elena Zannoni <ezannoni@redhat.com>
9299
9300 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9301 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9302 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9303
11ed25ac
KB
93042002-04-29 Kevin Buettner <kevinb@redhat.com>
9305
9306 From Louis Hamilton <hamilton@redhat.com>:
9307 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9308 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9309 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9310 not bfd-private xcoff data, to determine wordsize.
9311 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9312
ae232405
AC
93132002-04-29 Andrew Cagney <ac131313@redhat.com>
9314
9315 GDB 5.2 released from 5.2 branch.
9316
91fd20f7
ML
93172002-04-29 Michal Ludvig <mludvig@suse.cz>
9318
9319 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9320 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9321 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 9322
2dc5091b
EZ
93232002-04-29 Elena Zannoni <ezannoni@redhat.com>
9324
9325 * rs6000-tdep.c (rs6000_extract_return_value,
9326 rs6000_store_return_value): Handle returning vectors.
9327 (rs6000_gdbarch_init): Use
9328 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9329 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9330 New function.
9331 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9332 vectors.
9333 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9334 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 9335
2b9848d8
PM
93362002-04-24 Pierre Muller <ics.u-strasbg.fr>
9337
9338 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 9339 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
9340 with fprintf_unfiltered (gdb_stderr,...).
9341
f8d17dc5
PM
93422002-04-24 Pierre Muller <ics.u-strasbg.fr>
9343
9344 * remote-array.c (printf_monitor, write_monitor,
361d1df0 9345 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
9346 Replace fprintf (stderr,...
9347 with fprintf_unfiltered (gdb_stderr,....
9348 * remote-es.c: Likewise.
9349 * remote-os9k.c: Likewise.
9350 * remote-st.c: Likewise.
9351
2f2f1ad1
AS
93522002-04-28 Andreas Schwab <schwab@suse.de>
9353
9354 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9355 linux-proc.o and gcore.o.
9356
b6779aa2
AC
93572002-04-26 Michal Ludvig <mludvig@suse.cz>
9358
9359 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9360 code without frame pointers.
9361
7e57f5f4
AC
93622002-04-26 Andrew Cagney <ac131313@redhat.com>
9363
9364 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9365 ON_STACK is needed.
9366
2ceb85d0
BE
93672002-04-26 Ben Elliston <bje@redhat.com>
9368
9369 * target.c (do_xfer_memory): Correct reference to the new option
9370 "trust-readonly-sections".
9371
f5f8a009
EZ
93722002-04-26 Elena Zannoni <ezannoni@redhat.com>
9373
9374 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9375 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9376 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9377 vectors.
9378 (read_array_type): Record the fact that this array type is really a
9379 vector (i.e. are passed in by value).
9380
5868c862
JT
93812002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9382
9383 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9384 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9385 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9386 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9387 * alpha-linux-tdep.c: Include frame.h.
9388 (alpha_linux_sigcontext_addr): New function.
9389 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9390 alpha_linux_sigcontext_addr.
9391 * alpha-osf1-tdep.c: Include gdbcore.h.
9392 (alpha_osf1_sigcontext_addr): New function.
9393 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9394 alpha_osf1_sigcontext_addr.
9395 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9396 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9397
bfb01f37
AC
93982002-04-26 Andrew Cagney <ac131313@redhat.com>
9399
361d1df0 9400 * stack.c (selected_frame_level):
bfb01f37
AC
9401 (select_frame): Do not set selected_frame_level.
9402 * frame.h (selected_frame_level): Delete declaration.
9403
15813d3f
AC
94042002-04-26 Andrew Cagney <ac131313@redhat.com>
9405
9406 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9407 convert_from_func_ptr-addr when AIX / PowerOpen.
9408
6096c27a
AC
94092002-04-25 Andrew Cagney <ac131313@redhat.com>
9410
9411 * valops.c (hand_function_call): Call
9412 generic_save_call_dummy_addr.
9413 * frame.h (generic_save_call_dummy_addr): Declare.
9414 * blockframe.c (struct dummy_frame): Add fields call_lo and
9415 call_hi.
9416 (generic_find_dummy_frame): Check for PC in range call_lo to
9417 call_hi instead of entry_point_address.
9418 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9419 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9420 (generic_save_call_dummy_addr): New function.
9421
f510d44e
DM
94222002-04-24 David S. Miller <davem@redhat.com>
9423
9424 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9425 sparc_skip_prologue.
9426 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9427 information to find prologue when possible.
9428 (sparc_prologue_frameless_p): Call examine_prologue directly.
9429 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9430 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9431 second argument.
9432 (SKIP_PROLOGUE): Likewise.
9433
15d72a92
JT
94342002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9435
9436 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9437 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9438 indicate that the condition it was testing is always true.
9439 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9440 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9441 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9442
accc6d1f
JT
94432002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9444
9445 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9446 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9447 tdep->jb_pc and tdep->jb_elt_size.
9448 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9449 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9450 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9451 * alpha-nat.c (get_longjmp_target): Remove.
9452 (JB_ELEMENT_SIZE): Ditto.
9453 (JB_PC): Ditto.
9454 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9455 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9456 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9457 to alpha_get_longjmp_target.
9458 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9459 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9460 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9461
1bfdc549
AC
94622002-04-25 Andrew Cagney <ac131313@redhat.com>
9463
9464 * README: Update to GDB 5.2.
9465
1bd316f0
AC
94662002-04-25 Andrew Cagney <ac131313@redhat.com>
9467
9468 * gdbarch.sh (LC_ALL): Set to `c'.
9469
2e5ff58c
TR
94702002-04-25 Theodore A. Roth <troth@verinet.com>
9471
9472 * avr-tdep.c: Ran through gdb_indent.sh.
9473
e33ce519
TR
94742002-04-25 Theodore A. Roth <troth@verinet.com>
9475
9476 * MAINTAINERS: Add myself as AVR maintainer.
9477 * NEWS: Note new target avr.
9478
8818c391
TR
94792002-04-25 Theodore A. Roth <troth@verinet.com>
9480
9481 * Makefile.in: Add support for AVR target.
9482 * configure.tgt: Add support for AVR target.
9483 * avr-tdep.c: New file
9484 * config/avr/avr.mt: New file.
9485
79509c2d
TR
94862002-04-25 Theodore A. Roth <troth@verinet.com>
9487
9488 * MAINTAINERS: Add myself to write-after-approval.
9489
dac8068e
PM
94902002-04-24 Pierre Muller <ics.u-strasbg.fr>
9491
9492 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9493 with fprintf_unfiltered (gdb_stderr,....
9494
25bf3106
PM
94952002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9496
9497 Fix PR gdb/508.
9498 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9499
24467a86
PM
95002002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9501
9502 * p-exp.y: Also use new prev_lexptr variable
9503 to improve error reporting. Based on Michael Snyder
9504 2002-04-24 dated patch to c-exp.y.
9505
95b80706
JT
95062002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9507
9508 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9509 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9510 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9511 to 0.
9512 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9513 and struct value.
9514 (FUNCTION_START_OFFSET): Remove.
9515 (BREAKPOINT): Ditto.
9516
e90cc612
JT
95172002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9518
9519 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9520 * NEWS: Ditto.
9521
6c72f9f9
JT
95222002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9523
9524 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9525 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9526 alpha_linux_pc_in_sigtramp.
9527 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9528 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9529 alpha_osf1_pc_in_sigtramp.
9530 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9531 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9532 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9533 alphafbsd_pc_in_sigtramp.
9534 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9535 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9536 alphanbsd_pc_in_sigtramp.
9537 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9538 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9539
5e4f3379
JT
95402002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9541
9542 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9543
da8ca43d
JT
95442002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9545
9546 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9547 alphanbsd-tdep.c.
9548 (alphanbsd-nat.o): New dependency list.
9549 (alphanbsd-tdep.o): Ditto.
9550 * NEWS: Note new native NetBSD/alpha configuration.
9551 * alphanbsd-nat.c: New file.
9552 * alphanbsd-tdep.c: Ditto.
9553 * configure.host (alpha*-*-netbsd*): New host.
9554 * configure.tgt (alpha*-*-netbsd*): New target.
9555 * config/alpha/nbsd.mh: New file.
9556 * config/alpha/nbsd.mt: Ditto.
9557 * config/alpha/nm-nbsd.h: Ditto.
9558 * config/alpha/tm-nbsd.h: Ditto.
9559
36a6271d
JT
95602002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9561
9562 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9563 (alpha-osf1-tdep.o): New dependency list.
9564 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9565 and skip_sigtramp_frame members.
9566 * alpha-linux-tdep.c: Include gdbcore.h.
9567 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9568 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9569 * alpha-osf1-tdep.c: New file.
9570 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9571 alpha-osf1-dep.c.
9572 (alpha_frame_past_sigtramp_frame): New function.
9573 (alpha_dynamic_sigtramp_offset): Ditto.
9574 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9575 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9576 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9577 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9578 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9579 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9580 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9581 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9582 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9583 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9584 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9585 to find_solib_trampoline_target.
9586 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9587 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9588 (SKIP_TRAMPOLINE_CODE): Remove.
9589 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9590 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9591 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9592 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9593 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9594 (PROC_SIGTRAMP_MAGIC): Ditto.
9595 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9596 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9597 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9598 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9599 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9600
2f4bc57b
JT
96012002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9602
9603 * NEWS: Note that Alpha targets are now multi-arch.
9604
665132f9
MS
96052002-04-24 Michael Snyder <msnyder@redhat.com>
9606
9607 * parser-defs.h (prev_lexptr): New external variable.
9608 * parse.c (parse_exp_1): Set prev_lexptr to null before
9609 calling the language-specific parser.
9610 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9611 (yyerror): Use prev_lexptr in error reporting.
9612
32872fa7
DJ
96132002-04-24 Daniel Jacobowitz <drow@mvista.com>
9614
9615 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9616 * gregset.h: If FILL_FPXREGSET is defined, provide
9617 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9618 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9619 is defined, call fill_fpxregset.
9620
57e76fac
MS
96212002-04-24 Roland McGrath <roland@frob.com>
9622
9623 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9624 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9625 (supply_gregset, supply_fpregset): New functions.
9626
9627 * gnu-nat.c (gnu_find_memory_regions): New function.
9628 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9629 (gnu_xfer_memory): Add a cast.
9630
f43845b3
MS
96312002-04-24 Michael Snyder <msnyder@redhat.com>
9632
361d1df0 9633 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9634 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9635 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9636 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9637 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9638 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9639
a0abec03
AC
9640Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9641
9642 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9643 NUM_PSEUDO_REGS can be used.
9644
d7bd68ca
AC
96452002-04-24 Andrew Cagney <ac131313@redhat.com>
9646
9647 * arch-utils.h: Update copyright.
9648
9649 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9650 * gdbarch.h, gdbarch.c: Re-generate.
9651
9652 * inferior.h (IN_SIGTRAMP): Delete definition.
9653 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9654 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9655
9656 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9657 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9658 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9659 (find_proc_framesize): Ditto.
9660 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9661 (alpha_init_extra_frame_info): Ditto.
9662 * infrun.c (handle_inferior_event): Ditto.
9663 (handle_inferior_event): Ditto.
9664 (check_sigtramp2): Ditto.
9665 * blockframe.c (create_new_frame): Ditto.
9666 (get_prev_frame): Ditto.
9667 * ppc-linux-tdep.c: Update comments.
9668 * i386-linux-tdep.c: Update comments.
9669 * breakpoint.c (bpstat_what): Update comment.
9670
4867e41e
DM
96712002-04-24 David S. Miller <davem@redhat.com>
9672
21d83aa5
DM
9673 * i960-tdep.c (register_in_window_p): New function.
9674 (i960_find_saved_register): Use it instead of
9675 REGISTER_IN_WINDOW_P.
9676 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9677
4867e41e
DM
9678 * symtab.h (find_stab_function_addr): Kill extern.
9679 * minsyms.c (find_stab_function_addr): Remove from here...
9680 * dbxread.c: ... to here, and mark it static.
9681
69cdf6a2
DM
96822002-04-20 David S. Miller <davem@redhat.com>
9683
9684 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9685 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9686
5a595886
DM
96872002-04-21 David S. Miller <davem@redhat.com>
9688
9689 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9690 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9691 (vx_write_register): Likewise.
9692
1da1a192
JB
96932002-04-23 J. Brobecker <brobecker@gnat.com>
9694
9695 * source.c (is_regular_file): New function.
9696 (openp): Check wether file to open is a regular file
9697 to avoid opening directories.
9698
baa6f10b
JT
96992002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9700
9701 * findvar.c (extract_signed_integer): Cast printf argument
9702 to suppress format warning.
9703 (extract_unsigned_integer): Likewise.
9704 * infcmd.c (registers_info): Likewise.
9705 * top.c (get_prompt_1): Likewise.
9706 * valops.c (value_assign): Likewise.
9707 * valprint.c (print_decimal): Likewise.
9708
b2c4da81
L
97092002-04-22 H.J. Lu (hjl@gnu.org)
9710
9711 * c-exp.y (typebase): Support
361d1df0 9712
b2c4da81
L
9713 [long|long long|short] [signed|unsigned] [int|]
9714
9715 and
9716
9717 signed [long|long long|short] int
9718
f267bd6a
JT
97192002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9720
9721 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9722 and vax-tdep.h.
9723 * vax-tdep.h: New file.
9724 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9725 Make several routines static.
9726 (vax_get_saved_register): New function.
9727 (vax_gdbarch_init): New function.
9728 (_initialize_vax_tdep): Register vax_gdbarch_init.
9729 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9730 Remove macros now under the control of gdbarch.
9731
da3c6d4a
MS
97322002-04-22 Michael Snyder <msnyder@redhat.com>
9733
11d3b27d
MS
9734 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9735 Some whitespace and coding standards tweaks.
da3c6d4a 9736
a33f7558
JT
97372002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9738
9739 * vax-tdep.c: Include regcache.h.
9740 (vax_call_dummy_words): New.
9741 (sizeof_vax_call_dummy_words): New.
9742 (vax_fix_call_dummy): New function.
9743 (vax_saved_pc_after_call): Ditto.
9744 * config/vax/tm-vax.h: Don't include regcache.h.
9745 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9746 (CALL_DUMMY): Remove.
9747 (CALL_DUMMY_WORDS): Define.
9748 (SIZEOF_CALL_DUMMY_WORDS): Define.
9749 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9750
47a73475
MS
97512002-04-18 Michael Snyder <msnyder@redhat.com>
9752
9753 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9754
52efde73
JT
97552002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9756
9757 * vax-tdep.c (vax_frame_chain): New function.
9758 (vax_push_dummy_frame): Ditto.
9759 (vax_pop_frame): Ditto.
9760 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9761 (FRAMELESS_FUNCTION_INVOCATION): Use
9762 generic_frameless_function_invocation_not.
9763 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9764 (POP_FRAME): Use vax_pop_frame.
9765
ea74468c
JT
97662002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9767
9768 * vax-tdep.c (vax_store_struct_return): New function.
9769 (vax_extract_return_value): Ditto.
9770 (vax_store_return_value): Ditto.
9771 (vax_extract_struct_value_address): Ditto.
9772 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9773 vax_store_struct_return.
9774 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9775 (STORE_RETURN_VALUE): Use vax_store_return_value.
9776 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9777
5516aa92
JT
97782002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9779
9780 * vax-tdep.c (vax_frame_saved_pc): New function.
9781 (vax_frame_args_address_correct): Ditto.
9782 (vax_frame_args_address): Ditto.
9783 (vax_frame_locals_address): Ditto.
9784 (vax_frame_num_args): Move code to be in proximity to
9785 other frame-related functions.
9786 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9787 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9788 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9789 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9790 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9791
36af0b35
L
97922002-04-22 H.J. Lu (hjl@gnu.org)
9793
9794 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9795 includedir.
9796
ab62c900
JT
97972002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9798
9799 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9800 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9801 (FRAME_INIT_SAVED_REGS): New macro.
9802
7232b100
JT
98032002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9804
9805 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9806
b70d2aee
JT
98072002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9808
9809 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9810 where needed.
9811 (fetch_osf_core_registers): Likewise.
9812 (supply_gregset): Likewise.
9813
a0e8a2d1 98142002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 9815
a0e8a2d1
JB
9816 * symfile.h (get_section_index): Define.
9817 * symfile.c (get_section_index): New function.
9818 * mdebugread.c (SC_IS_SBSS): New macro.
9819 (SC_IS_BSS): Return true for the scBss storage class only, as
9820 the scSBss storage class refers to the .sbss section.
9821 (parse_partial_symbols): Discard the symbols which associated
9822 section does not exist.
9823 Make sure to use the .sbss section index for symbols which
9824 storage class is scBss, rather than using the .bss section index.
9825
51eb8b08
JT
98262002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9827
9828 * vax-tdep.c: Update copyright years.
9829 (vax_register_name): New function.
9830 (vax_register_byte): Ditto.
9831 (vax_register_raw_size): Ditto.
9832 (vax_register_virtual_size): Ditto.
9833 (vax_register_virtual_type): Ditto.
9834 * config/vax/tm-vax.h: Update copyright years.
9835 (REGISTER_NAMES): Remove.
9836 (REGISTER_NAME): Define.
9837 (REGISTER_BYTE): Use vax_register_byte.
9838 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9839 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9840 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9841
6cc1c0a8
AC
98422002-04-21 Andrew Cagney <ac131313@redhat.com>
9843
9844 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9845 declaration
9846 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9847
9319a2fe
DM
98482002-04-21 David S. Miller <davem@redhat.com>
9849
9850 * arch-utils.c (generic_prologue_frameless_p): Kill
9851 SKIP_PROLOGUE_FRAMELESS_P code.
9852 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9853 references.
9854 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9855 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9856 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9857 references.
9858 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9859 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9860 (sparc_gdbarch_init): Pass it to
9861 set_gdbarch_prologue_frameless_p.
a0e8a2d1 9862
e9ed6d01
JT
98632002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9864
9865 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9866 (alphabsd-nat.o): New dependency list.
9867
36012033
JT
98682002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9869
9870 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9871 alphafbsd-tdep.c.
9872 (alpha-linux-tdep.o): New dependency list.
9873 (alphafbsd-tdep.o): Likewise.
9874
3379287a
JT
98752002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9876
9877 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9878 to here...
9879 * alpha-tdep.c: ...from here.
9880 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9881
4bcbd6cb
JT
98822002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9883
9884 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9885 prototype from here...
9886 * alpha-tdep.h: ...to here.
9887
b31da25e
AC
98882002-04-21 Andrew Cagney <ac131313@redhat.com>
9889
9890 * frame.h (selected_frame_level): Document as deprecated.
9891 (frame_relative_level): Declare.
9892 * stack.c (frame_relative_level): New function.
9893 (selected_frame_level): Document as deprecated.
9894 (select_frame): Do not set the selected_frame_level.
9895
9896 * stack.c (frame_info, record_selected_frame): Update.
9897 (frame_command, current_frame_command): Update.
9898 (up_silently_base, up_command, down_silently_base): Update.
9899 (down_command): Update.
9900 * inflow.c (kill_command): Update.
9901 * tracepoint.c (finish_tfind_command): Update.
9902 * corelow.c (core_open): Update.
9903 * thread.c (info_threads_command): Update.
9904 (do_captured_thread_select): Update.
9905 * infcmd.c (finish_command): Update.
9906 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9907
9c1d6fe5
JT
99082002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9909
9910 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9911
ab89facf
AC
99122002-04-21 Andrew Cagney <ac131313@redhat.com>
9913
9914 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9915 type const.
9916
82a4efa1
JT
99172002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9918
9919 * alphafbsd-tdep.c: Update copyright years. Include
9920 alpha-tdep.h.
9921 (alphafbsd_use_struct_convention): Make static.
9922 (alphafbsd_init_abi): New function.
9923 (_initialize_alphafbsd_tdep): New function.
9924 * config/alpha/tm-fbsd.h: Update copyright years.
9925 (USE_STRUCT_CONVENTION): Remove.
9926
44dffaac
JT
99272002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9928
9929 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9930 an Alpha ABI variant.
9931 (alpha_abi_handler_list): Declare.
9932 (alpha_gdbarch_register_os_abi): New function.
9933 (alpha_gdbarch_init): Give registered ABI variant handlers a
9934 chance to tweak the gdbarch once we have set up defaults.
9935 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9936
65585be4
JT
99372002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9938
9939 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9940 to standard_coerce_float_to_double.
9941 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9942
d9b023cc
JT
99432002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9944
9945 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9946 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9947 from gdbarch_tdep rather than a constant.
9948 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9949 the default text address for all Alpha Unix ABIs.
9950 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9951 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9952
dc129d82
JT
99532002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9954
9955 * alpha-tdep.h: New file. Includes several Alpha target constants
9956 taken from...
9957 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9958 let gdbarch deal with.
9959 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9960 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9961 to dependency list.
9962 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9963 Alpha target register names.
9964 * alphabsd-nat.c: Likewise.
9965 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9966 Alpha target register names. Make serveral routines static.
9967 (alpha_get_saved_register): New function.
9968 (alpha_abi_names): New.
9969 (process_note_abi_tag_sections): New function.
9970 (get_elfosabi): New function.
9971 (alpha_gdbarch_init): New function.
9972 (alpha_dump_tdep): New function.
9973 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9974
d49d1e0a
AC
99752002-04-21 Andrew Cagney <ac131313@redhat.com>
9976
9977 * frame.c (find_saved_register): Delete #ifdef
9978 HAVE_REGISTER_WINDOWS code.
9979 * config/sparc/tm-sparc.h: Update comments.
9980 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9981
92e8c9ed
AC
99822002-04-21 Andrew Cagney <ac131313@redhat.com>
9983
9984 * i960-tdep.c (i960_find_saved_register): New function.
9985 (i960_get_saved_register): New function.
9986 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9987 (i960_get_saved_register): Declare.
9988 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9989
e1925118
DM
99902002-04-20 David S. Miller <davem@redhat.com>
9991
9992 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9993
29673b29
AC
99942002-04-20 Andrew Cagney <ac131313@redhat.com>
9995
9996 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9997 instead of NUM_PSEUDO_REGS.
9998
6c86dcd5
DM
99992002-04-20 David S. Miller <davem@redhat.com>
10000
10001 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10002 GDB_MULTI_ARCH_PARTIAL
10003 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10004 define, let tm-sp64.h do it.
10005
aa40ec90
JT
100062002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10007
10008 * frame.c (find_saved_register): Avoid a NULL pointer
10009 dereference and actually walk the frame list.
10010
0f79675b
AC
100112002-04-20 Andrew Cagney <ac131313@redhat.com>
10012
10013 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10014 sorted in most most-recent-used order. Document.
10015 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10016
f91305dd 100172002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
10018
10019 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10020 instead of ->prev.
10021 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10022 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10023 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10024 instead of ->prev.
10025
73d322b1
EZ
100262002-04-19 Elena Zannoni <ezannoni@redhat.com>
10027
10028 Fix PR gdb/471.
10029 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10030 (build_builtin_type_vec128): Ditto.
10031 (append_composite_type_field): Fix calculation of type length in
10032 union case.
10033
ccd9a834
EZ
100342002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10035
10036 * config/djgpp/README: Update.
10037
10038 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10039 compiler warnings.
10040
a57f9e49
JT
100412002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10042
10043 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10044 (alpha_setup_arbitrary_frame): ...to this.
10045 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10046 for alpha_setup_arbitrary_frame.
10047
f4f9705a
AC
100482002-04-18 Andrew Cagney <cagney@redhat.com>
10049
10050 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10051 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10052
f4f9705a
AC
10053 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10054 * target.h (memory_breakpoint_from_pc): Update declaration.
10055 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10056
10057 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10058 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10059 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10060 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10061 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10062 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10063 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10064 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10065 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10066 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10067 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10068 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10069
10070 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10071 const pointer.
10072 * monitor.c (monitor_insert_breakpoint): Ditto.
10073 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10074
10075 * config/mcore/tm-mcore.h: Update copyright.
10076 * mem-break.c: Ditto.
10077 * xstormy16-tdep.c: Ditto.
10078
29f319b8
PM
100792002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10080
10081 * p-exp.y: Add precedence rule for '^' token.
10082 This removes the shift/reduce conflicts.
10083 Remove the comment concerning these shift/reduce conflicts.
10084
ebeac11a
EZ
100852002-04-18 Elena Zannoni <ezannoni@redhat.com>
10086
10087 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10088 (registers_powerpc_nofp): New register set for processors
10089 without floating point unit.
10090
27c31547
DM
100912002-04-18 David S. Miller <davem@redhat.com>
10092
10093 * MAINTAINERS: Add myself to write-after-approval.
10094
47a73475
MS
100952002-04-17 Michael Snyder <msnyder@redhat.com>
10096
10097 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10098
953836b2
AC
100992002-04-17 Andrew Cagney <ac131313@redhat.com>
10100
10101 * rs6000-tdep.c (frame_initial_stack_address): Use
10102 frame_register_read to read the alloca_reg.
10103
8b0d4340
AC
101042002-04-17 Andrew Cagney <ac131313@redhat.com>
10105
10106 * frame.c (find_saved_register): Find saved registers in the next
10107 not prev frame.
10108 Fix PR gdb/365.
10109
d8864532
AC
101102002-04-17 Andrew Cagney <ac131313@redhat.com>
10111
10112 * gdbarch.sh (LANG): Set to ``c''.
10113
36cc83a3 101142002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 10115
36cc83a3 10116 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 10117
2f4150cc 101182002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
10119
10120 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10121 Update copyright.
10122
628703c6 10123 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 10124 Also fix PR gdb/391.
361d1df0 10125
56157b4a
AC
101262002-04-14 Andrew Cagney <ac131313@redhat.com>
10127
10128 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10129 * aclocal.m4, configure: Re-generate.
10130 Fix PR gdb/391.
361d1df0 10131
6d1e3329
EZ
101322002-04-14 Elena Zannoni <ezannoni@redhat.com>
10133
10134 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10135 instead of tm_print_insn.
10136
cb06fa07
EZ
101372002-04-14 Elena Zannoni <ezannoni@redhat.com>
10138
10139 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10140
f208ba17
AC
101412002-04-14 Andrew Cagney <ac131313@redhat.com>
10142
10143 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10144 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10145 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10146
20f01a46
DH
101472002-04-12 Don Howard <dhoward@redhat.com>
10148
10149 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10150 max_user_call_depth.
10151 (init_cmd_lists): Initialize the new value;
10152 * cli/cli-script.c (execute_user_command): Limit the call depth of
10153 user defined commands. This avoids a core-dump when user commands
10154 are infinitly recursive.
10155
a88376a3
KB
101562002-04-12 Kevin Buettner <kevinb@redhat.com>
10157
10158 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10159 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10160 from tdep struct instead of DEFAULT_LR_SAVE.
10161 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10162 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10163 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10164
f2172603
MS
101652002-04-12 Michael Snyder <msnyder@redhat.com>
10166
694f61fb 10167 * Remote.c: Spelling fix.
20fe79c8
MS
10168 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10169 If no symbol found for "sbrk", try "_sbrk".
10170 (make_output_phdrs): Use bfd_section_name.
10171 (gcore_copy_callback): Use bfd_section_name.
62995fc4 10172 * eval.c: Indentation fix-ups.
169a7369
MS
10173 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10174 in case it gets applied to an address that is already
10175 in the instruction space.
de74f71f
MS
10176 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10177 * symfile.c: Fix indentation, long lines.
f2172603
MS
10178 * source.c: White space fix-up.
10179
cda5a58a
AC
101802002-04-12 Andrew Cagney <cagney@redhat.com>
10181
10182 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10183 * frame.c (frame_register_read): New function. Return non-zero on
10184 success.
10185 (read_relative_register_raw_bytes_for_frame): Delete.
10186 (read_relative_register_raw_bytes): Delete.
10187 * frame.h (frame_register_read): Declare.
10188 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10189 * sh-tdep.c: Ditto.
10190 * infcmd.c (do_registers_info): Ditto.
10191 * hppa-tdep.c: Ditto.
10192 * rs6000-tdep.c: Ditto.
10193 * h8500-tdep.c: Ditto.
10194 * mips-tdep.c: Ditto.
10195 * h8300-tdep.c: Ditto.
10196 * z8k-tdep.c: Ditto.
10197
2ea5f656
KB
101982002-04-12 Kevin Buettner <kevinb@redhat.com>
10199
10200 From Jimi X <jimix@watson.ibm.com>:
10201 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10202 64-bit SysV ABI.
10203
27b15785
KB
102042002-04-12 Kevin Buettner <kevinb@redhat.com>
10205
10206 From Jimi X <jimix@watson.ibm.com>:
10207 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10208 bfd info.
10209
5d57ee30
KB
102102002-04-12 Kevin Buettner <kevinb@redhat.com>
10211
10212 From Jimi X <jimix@watson.ibm.com>:
10213 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10214 register sets for these processor variants.
10215
bc1e36ca
DJ
102162002-04-11 Daniel Jacobowitz <drow@mvista.com>
10217
bc1e36ca
DJ
10218 * regformats/reg-ppc.dat: Support FPSCR.
10219
e3f36dbd
KB
102202002-04-11 Kevin Buettner <kevinb@redhat.com>
10221
10222 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10223 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10224 Add fpscr as an invalid/unfetchable register.
10225 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10226 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10227 (fill_fpregset): Add support for register fpscr.
10228 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10229 (fill_gregset): Account for the fact that register ``mq'' might
10230 not exist.
10231 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10232 (registers_power): Add fpscr to register set at slot 71.
10233 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10234 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10235
943c9c25
MS
102362002-04-11 Michael Snyder <msnyder@redhat.com>
10237
10238 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10239 * configure: Regenerate.
10240 * config.in: Regenerate.
10241 * acconfig.h: Add define for _SYSCALL32.
10242 * core-sol2.c: Remove #define _SYSCALL32.
10243 * solib-legacy.c: Remove #define _SYSCALL32.
10244
d8c0a2e7
AC
102452002-04-10 Andrew Cagney <ac131313@redhat.com>
10246
10247 * stack.c (select_frame): Cleanup internal error message, do not
10248 use %p.
10249
7cc19214
AC
102502002-04-10 Andrew Cagney <ac131313@redhat.com>
10251
10252 * stack.c (select_frame): Check that selected_frame and the
10253 specified level are as expected.
10254 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10255 Update copyright.
10256 * frame.h (struct frame_info): Add field `level'. Update
10257 copyright.
10258 Work-in-progress PR gdb/464.
10259
67a2b77e
AC
102602002-04-10 Andrew Cagney <ac131313@redhat.com>
10261
10262 * maint.c (maint_print_section_info): Rename print_section_info.
10263 (print_bfd_section_info, print_objfile_section_info): Update.
10264 * inferior.h (struct gdbarch): Add opaque declaration.
10265 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10266 * gdbarch.h: Regenerate.
10267
8cfda98c
ML
102682002-04-10 Michal Ludvig <mludvig@suse.cz>
10269
10270 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10271 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10272 (kernel_u_size): Added.
10273 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10274 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10275
ca439ad2 102762002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 10277
ca439ad2
JI
10278 * valarith.c (find_size_for_pointer_math): New function, either returns
10279 the size for a pointer's target, returns 1 for void *, or errors for
10280 incomplete types.
10281 (value_add, value_sub): use find_size_for_pointer_math.
10282
2f2893d9
DJ
102832002-04-09 Daniel Jacobowitz <drow@mvista.com>
10284
10285 * linux-low.c (linux_look_up_symbols): New hook.
10286 (linux_target_ops): Add linux_look_up_symbols.
10287 * remote-utils.c (decode_address): New function.
10288 (look_up_one_symbol): New function.
10289 * server.c (handle_query): Call target look_up_symbols hook.
10290 * server.h (look_up_one_symbol): Add prototype.
10291 * target.h (struct target_ops): Add look_up_symbols hook.
10292
96cb11df
AC
102932002-04-09 Andrew Cagney <ac131313@redhat.com>
10294
10295 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10296 override FP_REGNUM with frame->fp. Update copyright.
10297 * parse.c (num_std_regs, std_regs): Delete.
10298 (target_map_name_to_register): Do not search std_regs. Update
10299 function description.
10300 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10301 declarations. Update copyright.
10302 Fix PR gdb/251.
361d1df0 10303
97658e92
DJ
103042002-04-09 Daniel Jacobowitz <drow@mvista.com>
10305
10306 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10307 after the last symbol in a block.
10308
6044e3eb
PM
103092002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10310
10311 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10312 is non zero as a found symbol.
10313
0406ec40
AC
103142002-04-08 Andrew Cagney <ac131313@redhat.com>
10315
10316 * findvar.c: Include "builtin-regs.h".
10317 (value_of_register): Call value_of_builtin_reg when applicable.
10318 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10319 (target_map_name_to_register): Call
10320 builtin_reg_map_name_to_regnum.
10321 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10322 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10323 (builtin_regs_h): Define.
10324 (builtin-regs.o): New target.
10325 (findvar.o): Add $(builtin_regs_h).
10326 * builtin-regs.c, builtin-regs.h: New files.
10327 * std-regs.c: New file.
10328 Partial fix for PR gdb/251.
10329
56a6dfb9
KB
103302002-04-08 Kevin Buettner <kevinb@redhat.com>
10331
10332 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10333 it's no longer required.
10334
3a808432
AC
103352002-04-08 Andrew Cagney <ac131313@redhat.com>
10336
10337 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10338
7c40d541
KB
103392002-04-08 Kevin Buettner <kevinb@redhat.com>
10340
10341 From Jimi X <jimix@watson.ibm.com>:
10342 * rs6000-tdep.c (rs6000_software_single_step): Use
10343 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10344 and size. Use target_insert_breakpoint() and
10345 target_remove_breakpoint() to insert and remove breakpoints
10346 instead of explicit memory reads and writes.
10347
cc9836a8
KB
103482002-04-08 Kevin Buettner <kevinb@redhat.com>
10349
10350 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10351 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10352 ELF_OBJECT_FORMAT ifdef.
10353
7495d1dc
KB
103542002-04-08 Kevin Buettner <kevinb@redhat.com>
10355
10356 From Jimi X <jimix@watson.ibm.com>:
10357 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10358
4288e836
KB
103592002-04-08 Kevin Buettner <kevinb@redhat.com>
10360
10361 From Jimi X <jimix@watson.ibm.com>:
10362 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10363 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10364
a4e4e501
MK
103652002-04-07 Mark Kettenis <kettenis@gnu.org>
10366
10367 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10368 s/asprintf/xasprintf/.
10369 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10370
006defba
AC
103712002-04-07 Andrew Cagney <ac131313@redhat.com>
10372
10373 I believe Jeff Law denies responsability for this one:
10374 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10375 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10376 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10377 Work-around for PR gdb/366.
10378
7aa83cac
EZ
103792002-04-07 Elena Zannoni <ezannoni@redhat.com>
10380
10381 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10382 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10383 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10384
cf1fcca1
EZ
103852002-04-07 Elena Zannoni <ezannoni@redhat.com>
10386
10387 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10388 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10389 information.
10390
3f289e6f
AC
103912002-04-07 Andrew Cagney <ac131313@redhat.com>
10392
10393 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10394 maintainer.
10395
129188f6
AC
103962002-04-07 Andrew Cagney <ac131313@redhat.com>
10397
10398 * README (Reporting Bugs in GDB): Document the bug web page as the
10399 prefered way of submitting bugs.
10400 Fix PR gdb/402.
10401
1200cd6e
AC
104022002-04-06 Andrew Cagney <ac131313@redhat.com>
10403
10404 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10405 -1. Update comment.
10406 * gdbarch.h, gdbarch.c: Re-generate.
10407
2853c33c
AS
104082002-04-07 Andreas Schwab <schwab@suse.de>
10409
10410 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10411 buffer to regcache_collect.
10412
c2169756
AC
104132002-04-06 Andrew Cagney <ac131313@redhat.com>
10414
10415 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10416 * gdbarch.c, gdbarch.h: Re-generate.
10417
25f1b008
AC
104182002-04-06 Andrew Cagney <ac131313@redhat.com>
10419
10420 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10421 declaration. Fix -Werror.
10422
59263426
DJ
104232002-04-05 Daniel Jacobowitz <drow@mvista.com>
10424
10425 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10426 * gdbarch.c: Regenerate.
10427
f5db4da3
MS
104282002-04-05 Michael Snyder <msnyder@redhat.com>
10429
80f8a6eb
MS
10430 * breakpoint.c (clear_command): Rewrite middle section to
10431 combine two loops with identical control conditions.
10432 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10433 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10434
ad3dcc5c
L
104352002-04-05 H.J. Lu (hjl@gnu.org)
10436
10437 * solib-svr4.c (bkpt_names): Add "__start".
10438
f32e7a74
AC
104392002-04-04 Andrew Cagney <ac131313@redhat.com>
10440
10441 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10442 as test for 64 bit target.
10443
8227c0ff
AC
104442002-04-05 Andrew Cagney <ac131313@redhat.com>
10445
10446 * h8500-tdep.c (h8500_write_fp): Delete function.
10447 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10448 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10449 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10450 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10451 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10452 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10453 (s390_write_fp):
10454 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10455 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10456 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10457 (d10v_write_fp): Delete function.
10458 * inferior.h (write_fp, generic_target_write_fp): Delete
10459 declarations.
10460 * regcache.c (generic_target_write_fp): Delete function.
10461 (write_fp): Delete function.
10462 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10463 * gdbarch.h, gdbarch.c: Regenerate.
10464 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10465 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10466 (sparc64_write_fp): Delete declaration.
10467 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10468 (h8500_write_fp): Delete declaration.
10469
2757dd86
AC
104702002-04-04 Andrew Cagney <ac131313@redhat.com>
10471
10472 * sparc-tdep.c (sparc64_write_fp): Delete.
10473 (sparc_push_dummy_frame): Replace write_fp call with code to store
10474 the FP directly.
10475 (sparc_gdbarch_init): Do not initialize write_fp.
10476
c69255e1
KB
104772002-04-05 Kevin Buettner <kevinb@redhat.com>
10478
10479 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10480 clause.
10481
ae767bfb
JB
104822002-03-29 Jim Blandy <jimb@redhat.com>
10483
10484 * stack.c (get_selected_block): Add new argument `addr_in_block',
10485 used to return the exact code address we used to select the block,
10486 not just the block.
10487 * blockframe.c (get_frame_block, get_current_block): Same.
10488 * frame.h (get_frame_block, get_current_block,
10489 get_selected_block): Update declarations.
10490 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10491 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10492
84d2ac95
MS
104932002-04-05 Michael Snyder <msnyder@redhat.com>
10494
10495 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10496 warning message.
10497
596aa3bf
JB
104982002-04-05 J. Brobecker <brobecker@gnat.com>
10499
10500 * utils.c (xfullpath): New function.
10501 * defs.h (xfullpath): Add declaration.
10502 * source.c (openp): Use xfullpath in place of gdb_realpath to
10503 avoid resolving the basename part of filenames when the
10504 associated file is a symbolic link. This fixes a potential
10505 inconsistency between the filenames known to GDB and the
10506 filenames it prints in the annotations.
10507 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10508 to be able to match a filename with either the real filename, or
10509 the name of any symbolic link to this file.
10510 (lookup_partial_symtab): Ditto.
10511
c02f5703
MS
105122002-04-04 Michael Snyder <msnyder@redhat.com>
10513
10514 * breakpoint.c: Add support for hardware breakpoints in overlays.
10515 (overlay_events_enabled): New state variable.
10516 (insert_breakpoints): Use overlay_events_enabled to decide
10517 whether to attempt to set a breakpoint at the overlay load addr.
10518 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10519 (remove_breakpoint): Use overlay_events_enabled to decide
10520 whether breakpoints need to be removed from overlay load addr.
10521 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10522 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 10523 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
10524 disable_overlay_breakpoints): Update overlay_events_enabled.
10525
5fb290d7
DJ
105262002-04-04 Daniel Jacobowitz <drow@mvista.com>
10527
10528 * dwarf2read.c (struct function_range): New.
10529 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10530 (check_cu_functions): New.
10531 (read_file_scope): Initialize global function lists.
10532 Call dwarf_decode_line after processing children.
10533 (read_func_scope): Add to global function list.
10534 (dwarf_decode_lines): Call check_cu_functions everywhere
10535 record_line is called. Call record_line with a linenumber
10536 of 0 to mark sequence ends.
10537
7b3fabf0
ML
105382002-04-04 Michal Ludvig <mludvig@suse.cz>
10539
361d1df0 10540 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10541 change sync with glibc.
10542
bce58c09
JB
105432002-04-03 Jim Blandy <jimb@redhat.com>
10544
10545 * configure.in: Call AC_C_INLINE.
10546 * configure: Regenerated.
361d1df0 10547
2fccf04a
DJ
105482002-04-01 Daniel Jacobowitz <drow@mvista.com>
10549
10550 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10551 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10552
2d1bfe2e
MK
105532002-03-31 Mark Kettenis <kettenis@gnu.org>
10554
a5941fbf
MK
10555 * NEWS: Mention gcore support on FreeBSD/i386.
10556
a90cd31d
MK
10557 * fbsd-proc.c: New file.
10558 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10559 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10560
2d1bfe2e
MK
10561 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10562 while statement.
10563
9eb6e5a1
JB
105642002-03-29 Jim Blandy <jimb@redhat.com>
10565
10566 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10567 unescaped newlines in string literals, but newer ones don't. So
10568 escape them.
10569
f02df580
MS
105702002-03-26 Michael Snyder <msnyder@redhat.com>
10571 Andrew Cagney <cagney@redhat.com>
10572
361d1df0 10573 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10574 restore file to memory.
10575 * cli/cli-dump.h: New file.
10576 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10577 * NEWS: Mention new commands.
f02df580 10578
109f874e
MS
105792002-03-28 Michael Snyder <msnyder@redhat.com>
10580
10581 * symfile.c (symbol_file_add): Move test for null symbols to later.
10582
520f6ade
AC
105832002-03-27 Andrew Cagney <ac131313@redhat.com>
10584
10585 From veksler at il.ibm.com:
10586 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10587 the xstrduped original path.
10588 Fix PR gdb/417.
10589
d4654627
MS
105902002-03-27 Michael Snyder <msnyder@redhat.com>
10591
10592 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10593 * infcmd.c (_initialize_infcmd): Ditto.
10594 * language.c (_initialize_language): Ditto.
10595 * symfile.c (_initialize_symfile): Ditto.
10596 * top.c (_init_main): Ditto.
10597 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10598
6be8bc0c
EZ
105992002-03-27 Elena Zannoni <ezannoni@redhat.com>
10600
10601 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10602 vector registers handling.
10603 (skip_prologue): Handle new AltiVec instructions. Fill in new
10604 fields of frame data.
10605 (frame_get_saved_regs): Fill in information for AltiVec registers.
10606
12af6855
JB
106072002-03-27 Jim Blandy <jimb@redhat.com>
10608
10609 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10610 a function; leave this macro here to invoke that function.
10611 (symbol_init_mangled_name): Declaration for that function.
10612 * symtab.c (symbol_init_mangled_name): New function.
10613
dc672865
AC
106142002-03-27 Andrew Cagney <ac131313@redhat.com>
10615
10616 * valarith.c: Replace strerror with safe_strerror.
10617 * tracepoint.c: Ditto.
10618 * lin-lwp.c: Ditto.
10619 * go32-nat.c: Ditto.
10620 * inflow.c: Ditto.
10621 * gnu-nat.c: Ditto.
10622
d96429cd
AS
106232002-03-27 Andreas Schwab <schwab@suse.de>
10624
10625 * event-top.c (command_line_handler): Remove useless if.
10626
7e336ba1
AJ
106272002-03-27 Andreas Jaeger <aj@suse.de>
10628
10629 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10630 comment.
10631
de220d0f
ML
106322002-03-27 Michal Ludvig <mludvig@suse.cz>
10633
10634 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10635 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10636 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10637 (x86_64_linux_dr_get_status, supply_gregset),
10638 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10639 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10640 (x86_64_register_info_table): Add.
10641 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10642 (x86_64_register_raw_size, x86_64_register_virtual_type),
10643 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10644 general x86_64_register_info_table.
10645 (i386_gdbarch_init): gdbarch_register_bytes is now set
10646 dynamicaly during initialization.
10647 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10648 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10649
0e98d0a7
DJ
106502002-03-27 Daniel Jacobowitz <drow@mvista.com>
10651
10652 * gdbserver/server.c (main): Call target_signal_to_host_p
10653 and target_signal_to_host on signals received from the remote.
10654 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10655 target_signal_from_host on signals sent to the remote.
10656 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10657 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10658
3130066b
DJ
106592002-03-27 Daniel Jacobowitz <drow@mvista.com>
10660
10661 * signals/signals.c: Include "server.h" in gdbserver build.
10662 (target_signal_from_name): Don't use STREQ.
10663 (_initialize_signals): Likewise. Don't include function in
10664 gdbserver build.
10665
9aedf4f4
DJ
106662002-03-27 Daniel Jacobowitz <drow@mvista.com>
10667
10668 * signals.c: Moved to...
10669 * signals/signals.c: Here.
7e336ba1 10670 * Makefile (signals.o): Update.
9aedf4f4 10671
3fa41cdb
JL
106722002-03-26 Jeff Law (law@redhat.com)
10673
10674 * somread.c (som_symtab_read): Remove some commented out code and
10675 updated related comments. Do not set the minimal symbol table to
10676 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10677 in a dynamic executable.
10678 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10679 where we are unable to find the minimal symbol for the given
10680 PC value.
10681
ee677e8d
MS
106822002-03-25 Jeff Law (law@redhat.com)
10683
10684 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10685
e76e1718
ML
106862002-03-25 Michal Ludvig <mludvig@suse.cz>
10687
10688 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10689
18a642a1
AC
106902002-03-23 Andrew Cagney <ac131313@redhat.com>
10691
10692 * command.h: Update copyright.
10693 (struct cmd_list_element): Replace definition with opaque
10694 declaration.
10695 (enum cmd_types): Document that it will eventually be moved to
10696 cli/cli-decode.h
10697 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10698 (MALLOCED_REPLACEMENT): Delete macro.
10699 * Makefile.in (cli_decode_h): Add $(command_h).
10700 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 10701 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
10702 * completer.c: Include "cli/cli-decode.h".
10703 * maint.c: Include "cli/cli-decode.h".
10704 * cli/cli-decode.h: Include "command.h".
10705 (enum command_class): Delete.
10706 (enum cmd_types): Comment out.
10707 (enum cmd_auto_boolean): Delete.
10708 (enum var_types): Delete.
10709
b2875cc0
AC
107102002-03-23 Andrew Cagney <ac131313@redhat.com>
10711
10712 * cli/cli-decode.c: Include "gdb_assert.h".
10713 (add_set_or_show_cmd): New static function.
10714 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10715 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10716 all fields, such as func, from the set command.
10717
3b45974e
AC
107182002-03-23 Andrew Cagney <ac131313@redhat.com>
10719
10720 * MAINTAINERS (sh-elf): Change warning flag to -w.
10721
823ca731
AC
107222002-03-23 Andrew Cagney <cagney@redhat.com>
10723
10724 * defs.h (error): Add printf format attribute.
10725 * thread-db.c (thread_from_lwp): Fix error format string.
10726 * stack.c (parse_frame_specification): Ditto.
10727 * cli/cli-decode.c (undef_cmd_error): Ditto.
10728 * scm-lang.c (scm_lookup_name): Ditto.
10729 * tracepoint.c (trace_error): Ditto.
10730 * remote-utils.c (usage): Ditto.
10731 * remote.c (compare_sections_command): Ditto.
10732 Fix PR gdb/328.
10733
0e101458
AC
107342002-03-22 Andrew Cagney <ac131313@redhat.com>
10735
10736 * gdbtypes.c (append_composite_type_field): New function.
10737 (init_composite_type): New function.
10738 * gdbtypes.h (append_composite_type_field): Declare.
10739 (init_composite_type): Ditto.
10740
8e0662df
EZ
107412002-03-22 Elena Zannoni <ezannoni@redhat.com>
10742
10743 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 10744 function.
8e0662df
EZ
10745 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10746 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10747 structure returning convention for SYSV ABI case, but not
10748 for GNU/Linux, FreeBSD, or NetBSD.
10749
3121eff0
DJ
107502002-03-22 Daniel Jacobowitz <drow@mvista.com>
10751
10752 * symtab.h (lookup_block_symbol): Add mangled_name argument
10753 to prototype.
10754
10755 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10756 with new mangled_name argument.
10757 * linespec.c (decode_line_1): Likewise.
10758 * valops (value_of_this): Likewise.
10759 * symtab.c (lookup_transparent_type): Likewise.
10760 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10761 (lookup_symbol): If we are given a mangled name, pass it down
10762 to lookup_symbol_aux.
10763 (lookup_block_symbol): If we are given a mangled name to check
10764 against, only return symbols which match it.
10765
349b409f
CF
107662002-03-22 Christopher Faylor <cgf@redhat.com>
10767
10768 * win32-nat.c (child_create_inferior): Check for proper shell to use
10769 here, in case the user changes it on the fly.
10770 (_initialize_inftarg): Remove shell path considerations.
10771
2a873819
EZ
107722002-03-21 Elena Zannoni <ezannoni@redhat.com>
10773
10774 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10775 for gdbarch_max_register_raw_size and max_register_virtual_size.
10776 Adjust copyright year.
10777
a1b9830c
DJ
107782002-03-21 Daniel Jacobowitz <drow@mvista.com>
10779
10780 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10781 in a function to cover the entire beginning of the function
10782 as well if it does not already.
10783
8b5790f2
TR
107842002-03-21 Tom Rix <trix@redhat.com>
10785
10786 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10787 (rs6000_ptrace64): Renamed from ptrace64.
10788
bdbe5747
MH
107892002-03-20 Martin M. Hunt <hunt@redhat.com>
10790
10791 * gdbserver/remote-utils.c (remote_open): Don't call
10792 getprotobyname, we're all using TCP here so just use
10793 IPPROTO_TCP.
7e336ba1 10794 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
10795
107962002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 10797
bdbe5747
MH
10798 * regcache.c (_initialize_regcache): No need to call
10799 build_regcache() at this time; it gets called whenever
10800 the gdbarch changes.
10801
7781cd62
DB
108022002-03-20 David O'Brien <obrien@FreeBSD.org>
10803
10804 * sparc-nat.c: Include sys/param.h where possible.
10805
f65ca430
DJ
108062002-03-20 Daniel Jacobowitz <drow@mvista.com>
10807
10808 Fix PR gdb/422.
10809 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10810 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10811 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10812 complex types.
10813 * stabsread.c (rs6000_builtin_type): Likewise.
10814 (read_sun_floating_type): Likewise.
10815
0c867556
PS
108162002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10817
10818 * stabsread.c (read_member_functions): Remove skip code for duplicate
10819 constructor/destructor methods. Use standard parsing for these
10820 methods and just do not chain them to the list of methods after
10821 parsing.
10822
12b9c64f
AO
108232002-03-19 Alexandre Oliva <aoliva@redhat.com>
10824
10825 * coffread.c: Remove redundant static declarations. Replace
10826 occurrences of `PTR' with `void *'.
10827 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10828 * top.h (quit_cover): Likewise.
10829 * defs.h (catch_errors): Likewise.
10830
349c5d5f
AC
108312002-03-18 Andrew Cagney <ac131313@redhat.com>
10832
10833 * defs.h (XMALLOC): Define.
10834 * gdb-events.sh (XMALLOC): Delete macro.
10835 * gdb-events.c, gdb-events.h: Regenerate.
10836 * gdbarch.sh (XMALLOC): Delete macro.
10837 * gdbarch.c: Regenerate.
10838 * serial.c (XMALLOC): Delete macro.
10839 * ui-file.c (XMALLOC): Ditto.
10840 * ser-unix.h (XMALLOC): Ditto.
10841 * sh-tdep.c (XMALLOC): Ditto.
10842 * ui-out.c (XMALLOC): Ditto.
10843 * utils.c (XMALLOC): Ditto.
10844 * i386-tdep.c (XMALLOC): Ditto.
10845 * gdb-events.c (XMALLOC): Ditto.
10846 * d10v-tdep.c (XMALLOC): Ditto.
10847 * cli-out.c (XMALLOC): Ditto.
10848
10849 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10850 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10851 * ui-file.c, ui-out.c: Ditto.
10852
7d0766f3
AC
108532002-03-18 Andrew Cagney <ac131313@redhat.com>
10854
10855 * command.h (struct cmd_list_element): Add field context.
10856 (set_cmd_context, get_cmd_context): Declare.
10857 * cli/cli-decode.h: Ditto.
10858 * cli/cli-decode.c (get_cmd_context): New function.
10859 (set_cmd_context): New function.
10860 (add_cmd): Initialize context.
10861 Part of fixing PR gdb/145 and PR gdb/146.
10862
5913bcb0
AC
108632002-03-17 Andrew Cagney <ac131313@redhat.com>
10864
1868c04e
AC
10865 * cli/cli-decode.c (cmd_type): New function.
10866 * command.h (cmd_type): Declare.
10867 * infrun.c (set_schedlock_func): Call function cmd_type.
10868 * kod.c (kod_set_os): Call cmd_type.
10869 * cris-tdep.c (cris_version_update): Use function cmd_type.
10870 (cris_mode_update, cris_abi_update): Ditto.
10871
5913bcb0
AC
10872 * command.h: (execute_cmd_post_hook): Declare.
10873 (execute_cmd_pre_hook): Declare.
10874 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10875 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10876 functions. Execute pre/post hook while ensuring that afterwords
10877 hook_in is cleared.
10878 * top.c (execute_command): Use execute_cmd_post_hook, and
10879 execute_cmd_pre_hook to execute pre/post commands.
10880 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10881 hook_stop_stub.
10882 (hook_stop_stub): Call execute_cmd_pre_hook.
10883
b51450c9
AC
108842002-03-17 Andrew Cagney <ac131313@redhat.com>
10885
10886 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10887 set'' and this leads to a core dump. Move xstrdup of
10888 operating_system to after check that it is not NULL.
10889
f66c9f11
AC
108902002-03-17 Andrew Cagney <ac131313@redhat.com>
10891
8e694ecf
AC
10892 * kod.c (kod_set_os): Remove unnecessary check that
10893 ``command->type'' is set_cmd.
10894
f66c9f11
AC
10895 * valprint.c (set_input_radix): Use input_radix.
10896 (set_output_radix): Use output_radix.
10897 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10898 isn't reverted.
10899
9d01611c
AC
109002002-03-16 Andrew Cagney <ac131313@redhat.com>
10901
10902 * value.h (struct value): Delete field ``substring_addr''. Change
10903 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
10904 force_core_addr_align and force_pointer_aligh.
10905
10906 * value.h (struct value): Fix typo in above change.
9d01611c 10907
4156bb53
PS
109082002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10909
10910 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10911 to fix internal_error from ``maintenance print architecture''.
10912
0e5e3ea6
PS
109132002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10914
10915 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10916 for gcc versions after gcc-2.8.1.
10917
9b013045
PS
109182002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10919
10920 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10921 for method resolution. Restore adjustment of ``this'' pointer after
10922 calling value_struct_elt, which was accidentally removed during the
10923 HP merge.
10924
376c9600
AC
109252002-03-15 Andrew Cagney <ac131313@redhat.com>
10926
10927 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10928 value_of_register.
10929 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10930 get_saved_register.
10931 * value.h (value_of_register): Update.
10932
a4db0f07
RH
109332002-03-14 Richard Henderson <rth@redhat.com>
10934
10935 * configure.in: Detect declaration for canonicalize_file_name.
10936 * utils.c (canonicalize_file_name): Declare, if needed.
10937 (gdb_realpath): Prefer realpath if available and usable.
10938 * config.in, configure: Rebuild.
10939
96383835
RH
109402002-03-14 Richard Henderson <rth@redhat.com>
10941
10942 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10943 a constant array bound.
10944
10945 * MAINTAINERS: Add myself to write-after-approval.
10946
75245b24
MS
109472002-03-14 Michael Snyder <msnyder@redhat.com>
10948
10949 * symfile.c (syms_from_objfile): Return immediately if no syms.
10950 (symbol_file_add): Return immediately if no syms.
10951 (find_sym_fns): Return immediately if no syms.
10952
e641a1ca
ML
109532002-03-13 Michal Ludvig <mludvig@suse.cz>
10954
10955 * gdbserver/remote-util.c (remote_open): Print remote-side's
10956 IP address when remote debugging over the network.
7e336ba1 10957
df08bfec
DB
109582002-03-12 David O'Brien <obrien@FreeBSD.org>
10959
10960 * config/sparc/fbsd.mh: Fix copyright.
10961 * config/sparc/fbsd.mt: Likewise.
10962
9a57864f
RE
109632002-03-11 Richard Earnshaw <rearnsha@arm.com>
10964
10965 * MAINTAINERS: Fix typo in name of gdb warnings option.
10966 (x86-64): Fix formating so that this can be parsed by awk.
10967
dd7bf85e
DJ
109682002-03-10 Daniel Jacobowitz <drow@mvista.com>
10969
10970 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10971 * defs.h: Include "gdb/signals.h".
10972 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10973
33a0a2ac
ML
109742002-03-10 Michal Ludvig <mludvig@suse.cz>
10975
10976 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 10977 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
10978 from x86-64-tdep.h
10979
dd824b04
DJ
109802002-03-10 Daniel Jacobowitz <drow@mvista.com>
10981 Don Howard <dhoward@redhat.com>
10982
10983 * mips-tdep.c (ST0_FR): Define.
10984 (mips2_fp_compat): New function, temporarily disabled.
10985 (mips_read_fp_register_single): New function.
10986 (mips_read_fp_register_double): New function.
10987 (mips_print_register): Use them.
10988 (do_fp_register_row): Likewise.
10989
6a41ff59
AC
109902002-03-09 Andrew Cagney <ac131313@redhat.com>
10991
10992 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10993 approval''.
10994
4ea09c10
PS
109952002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10996
10997 * stabsread.c (read_member_functions): Fix is_stub test for
10998 static member functions, improve comment.
10999
6ccc741d
RE
110002002-03-07 Richard Earnshaw <rearnsha@arm.com>
11001
11002 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11003 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11004 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11005 commands that set boolean values.
11006 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11007 (arm_rdi_resume): Always initialize PC.
11008 (arm_rdi_open): Don't use rslt as a boolean.
11009 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11010 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11011 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11012 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11013
438013df
AO
110142002-03-06 Alexandre Oliva <aoliva@redhat.com>
11015
11016 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11017 * configure: Rebuilt.
11018
70ed8774
SC
110192002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11020
11021 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11022 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11023
5ba2abeb
AC
110242002-03-06 Andrew Cagney <ac131313@redhat.com>
11025
11026 * cli/cli-decode.c (set_cmd_completer): New function.
11027 * command.h (set_cmd_completer): Declare.
11028 * cli/cli-decode.h (set_cmd_completer): Ditto.
11029
11030 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11031 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11032 * win32-nat.c (_initialize_inftarg): Ditto.
11033 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11034 * proc-api.c (_initialize_proc_api): Ditto.
11035 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11036 * source.c (_initialize_source): Ditto.
11037 * exec.c (_initialize_exec): Ditto.
11038 * solib.c (_initialize_solib): Ditto.
11039 * top.c (init_main): Ditto.
11040 * tracepoint.c (_initialize_tracepoint): Ditto.
11041 * symfile.c (_initialize_symfile): Ditto.
11042 * printcmd.c (_initialize_printcmd): Ditto.
11043 * infcmd.c (_initialize_infcmd): Ditto.
11044 * corefile.c (_initialize_core): Ditto.
11045
f779ca99
AC
110462002-03-05 Andrew Cagney <ac131313@redhat.com>
11047
11048 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11049
01a3934b
AC
110502002-03-05 Andrew Cagney <ac131313@redhat.com>
11051
11052 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11053
37057839
AC
110542002-03-05 Andrew Cagney <ac131313@redhat.com>
11055
11056 * NEWS: Update headings, 5.2 has branched.
11057
c6ecbae5
DJ
110582002-03-04 Daniel Jacobowitz <drow@mvista.com>
11059
11060 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11061 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11062 (register_addr, REGISTER_RAW_SIZE): Likewise.
11063 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11064 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11065
e9f30c21
ML
110662002-03-03 Michal Ludvig <mludvig@suse.cz>
11067
11068 * MAINTAINERS (x86-64): Add myself.
11069 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11070 changed value_ptr -> struct value *
11071
54394ac3
DB
110722002-03-01 David O'Brien <obrien@FreeBSD.org>
11073
11074 * configure.host (sparc64-*-freebsd): Add.
11075 * configure.tgt: Likewise.
11076 * config/sparc/fbsd.mh: New file.
11077 * config/sparc/fbsd.mt: Likewise.
11078 * config/sparc/nm-fbsd.h: Likewise.
11079 * config/sparc/tm-fbsd.h: Likewise.
11080
bfe95955
DJ
110812002-03-01 Daniel Jacobowitz <drow@mvista.com>
11082
11083 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11084 regformats/reg-s390x.dat.
11085
f33c6cbf
AC
110862002-03-01 Andrew Cagney <ac131313@redhat.com>
11087
11088 * utils.c: Add FIXME explaining true/false problem.
11089
5ecaa7dd
AC
110902002-02-28 Andrew Cagney <ac131313@redhat.com>
11091
11092 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11093
2a251cc2
MC
110942002-02-28 Michael Chastain <mec@shout.net>
11095
11096 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11097
6a8031a3 110982002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
11099
11100 * gdbserver/linux-s390-low.c: New file.
11101 * regformats/reg-s390.dat: New file.
11102 * regformats/reg-s390x.dat: New file.
11103 * gdbserver/configure.srv: Add S/390.
11104 * gdbserver/Makefile.in: Add S/390.
11105 * configure.tgt: Enable gdbserver for S/390.
11106
ac469903
EZ
111072002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11108
11109 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11110 first line of the doc string for "info dos", except at the end of
11111 the sentence, since the short help stops at the first period.
11112
985cb1a3
JM
111132002-02-28 Jason Merrill <jason@redhat.com>
11114
11115 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11116
c570663e
FF
111172002-02-27 Fred Fish <fnf@redhat.com>
11118
11119 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11120 comment (dumy -> dummy).
11121
43630227
PS
111222002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11123
11124 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11125
b84911e8
RB
111262002-02-27 Rodney Brown <rbrown64@csc.com.au>
11127
11128 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11129
58caa3dc
DJ
111302002-02-27 Daniel Jacobowitz <drow@mvista.com>
11131
11132 * gdbserver/acconfig.h: New file.
11133 * gdbserver/i387-fp.c: New file.
11134 * gdbserver/i387-fp.h: New file.
11135 * gdbserver/linux-x86-64.c: New file.
11136 * regformats/reg-x86-64.dat: New file.
11137 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11138 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11139 * gdbserver/configure.in: Add support for regsets.
11140 * gdbserver/config.in: Regenerate.
11141 * gdbserver/configure: Regenerate.
11142 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11143 * gdbserver/linux-low.h: New file.
11144 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11145 for regsets.
11146 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11147 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11148 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11149 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11150 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11151 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11152 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11153 "i387-fp.h". Add PTRACE_GETREGS and friends.
11154 * gdbserver/regcache.c (supply_register): New function.
11155 (supply_register_by_name): New function.
11156 (collect_register): New function.
11157 (collect_register_by_name): New function.
11158
93652174
DJ
111592002-02-27 Daniel Jacobowitz <drow@mvista.com>
11160
11161 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11162 (config.status): Add configure.srv dependency.
11163 (server_h): Add config.h dependency.
11164
a02e4a61
DJ
111652002-02-27 Daniel Jacobowitz <drow@mvista.com>
11166
11167 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11168 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11169 * gdbserver/configure.srv: Change i386-*-linux* to use
11170 reg-i386-linux.o.
11171
ce0eebec
AC
111722002-02-26 Andrew Cagney <ac131313@redhat.com>
11173
11174 * x86-64-tdep.c: Re-indent. Update copyright date.
11175
82dbc5f7
AC
111762002-02-26 Andrew Cagney <ac131313@redhat.com>
11177
11178 From Michal Ludvig <mludvig@suse.cz>:
11179 * x86-64-tdep.c (value.h): Delete.
11180 (gdb_assert.h): Include.
11181 (x86_64_register_convert_to_virtual,
11182 x86_64_register_convert_to_raw ): Add check which lets only
11183 floating-point values to be converted.
11184 (value_push): Delete.
11185 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11186 (i386_gdbarch_init): Number of register_bytes fixed.
11187
e4621584
AC
111882002-02-26 Andrew Cagney <ac131313@redhat.com>
11189
11190 * MAINTAINERS: Add x86-64 target.
11191
81a9a963
AC
111922002-02-26 Andrew Cagney <ac131313@redhat.com>
11193
11194 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11195 * osfsolib.c (solib_map_sections): Ditto.
11196 * irix5-nat.c (solib_map_sections): Ditto.
11197 * corelow.c (gdb_check_format): Ditto.
11198 * symfile.c (symfile_bfd_open): Ditto.
11199 * solib.c (solib_map_sections): Ditto.
11200 Fix PR gdb/354.
7e336ba1 11201
0f017ab9
AC
112022002-02-26 Andrew Cagney <ac131313@redhat.com>
11203
11204 * remote.c (_initialize_remote): By default, disable ``e'' and
11205 ``E'' step out-of-range packets.
11206
75738c29
AS
112072002-02-26 Andreas Schwab <schwab@suse.de>
11208
11209 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11210 m68k_linux_frame_saved_pc.
11211 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11212 in_sigtramp.
11213 (SIGCONTEXT_PC_OFFSET): Remove.
11214 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11215 m68k_linux_sigtramp_saved_pc): New functions.
11216 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11217 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11218 (UCONTEXT_PC_OFFSET): Define.
11219 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11220 non-RT and RT signal trampolines.
11221
7e8ed687
RE
112222002-02-26 Richard Earnshaw <rearnsha@arm.com>
11223
11224 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11225 (TARGET_NBPG, STACK_END_ADDR): Delete
11226 (VARIABLES_INSIDE_BLOCK): Delete.
11227
6972bc8b
AC
112282002-02-25 Andrew Cagney <ac131313@redhat.com>
11229
11230 * utils.c (perror_with_name): Make string parameter constant.
11231 (print_sys_errmsg): Ditto.
11232 (query): Ditto.
11233 * defs.h (perror_with_name): Update.
11234 (print_sys_errmsg): Update.
11235 (query): Update.
11236
aa32f823
DJ
112372002-02-25 Daniel Jacobowitz <drow@mvista.com>
11238
11239 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11240 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11241
19caaa45
PS
112422002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11243
11244 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11245 if it already matches the current architecture from the exec file.
11246 Include arch-utils.h for gdbarch_info_init prototype.
11247 * Makefile.in (rs6000-nat.o): Update dependencies.
11248
d951901f
EZ
112492002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11250
11251 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11252 list of exported variables.
11253
7ea81414
DJ
112542002-02-24 Daniel Jacobowitz <drow@mvista.com>
11255
11256 * gdbserver/configure.srv: New file.
11257 * gdbserver/configure.in: Use configure.srv instead
11258 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11259 from it.
11260 * gdbserver/configure: Regenerated.
11261 * gdbserver/terminal.h: New file.
11262 * gdbserver/Makefile.in: Update for configure changes. Remove
11263 more unneeded include paths.
11264
080fe24b
AC
112652002-02-24 Andrew Cagney <ac131313@redhat.com>
11266
11267 From wiz at danbala:
11268 * config/sparc/tm-sp64.h: Fix grammar and typos.
11269 Fix PR gdb/287.
11270
8605d56e
AC
112712002-02-24 Andrew Cagney <ac131313@redhat.com>
11272
11273 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
11274 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11275 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11276 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
11277 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11278 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11279 * s390-tdep.c: Ditto.
92362027
AC
11280 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11281 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11282 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11283 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11284 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11285 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11286 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11287 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11288 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11289 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 11290 Fix PR gdb/378.
7e336ba1 11291
8ed32cc0
AC
112922002-02-23 Andrew Cagney <ac131313@redhat.com>
11293
a3007b6f
AC
11294 * lin-thread.c: Delete file.
11295 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11296 to gdb_proc_service.h.
11297 * configure: Re-generate.
11298
50a9e2f1
AC
11299 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11300 * serial.c (serial_open): Delete check for "ocd".
11301 Fix PR gdb/349.
11302
8b6e7932
AC
11303 * Makefile.in (linux-thread.o): Delete target.
11304 * linux-thread.c: Delete file.
11305
d155c46b
AC
11306 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11307 renamed SH files to be consistent.
11308
8ed32cc0
AC
11309 * symtab.c (sort_search_symbols): Use xfree.
11310
0e18d038
RE
113112002-02-23 Richard Earnshaw <rearnsha@arm.com>
11312
11313 * arm-linux-tdep.c (arm_linux_init_abi): Register
11314 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11315 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11316 definition with undef, since we don't want the sysvr4 definition.
11317 (SKIP_TRAMPOLINE_CODE): Likewise.
11318
27aac7ff
AC
113192002-02-23 Andrew Cagney <ac131313@redhat.com>
11320
11321 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11322
11323 * configure.in: (AC_CHECK_FUNCS) Added test for
11324 canonicalize_file_name Regenerated.
11325 * config.in, configure: Regenerated.
11326 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11327 defined use canonicalize_file_name.
7e336ba1 11328
65a6e0ee
MC
113292002-02-23 Michael Chastain <mec@shout.net>
11330
11331 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11332
47b95330
AC
113332002-02-23 Andrew Cagney <ac131313@redhat.com>
11334
11335 * README: Remove references to cygnus.com.
11336 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11337 dot com'' form. Remove references to cygnus.com and sourceware.
11338
696f451b
AC
113392002-02-23 Andrew Cagney <ac131313@redhat.com>
11340
11341 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11342 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11343 1003.1-2001 no longer allows "head -1".
11344 * gdb/Makefile.in (version.c): Likewise.
11345 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11346 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11347 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11348
bbaca940
AC
113492002-02-23 Andrew Cagney <ac131313@redhat.com>
11350
11351 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11352 * command.h (cmd_cfunc_eq): Declare.
11353 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11354
11355 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11356 ``struct cmd_list_element *''.
11357 * cli/cli-cmds.c (is_complete_command): Update. Use
11358 cmd_cfunc_eq.
11359 * top.c (execute_command): Pass the command to
11360 is_complete_command.
11361 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11362
b8b8b047
AC
113632002-02-23 Andrew Cagney <ac131313@redhat.com>
11364
11365 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11366 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11367 architecture defines.
11368 * s390-tdep.c (s390_gdbarch_init): Likewise.
11369
19d3fc80
RE
113702002-02-23 Richard Earnshaw <rearnsha@arm.com>
11371
11372 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11373 (arm_linux_push_arguments): Likewise.
11374 (arm_linux_init_abi): Register them. Also register linux-specific
11375 call_dummy_words.
11376 (find_minsym_and_objfile): Use strcmp, not STREQ.
11377 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11378 (arm_linux_call_dummy_words): Delete declaration.
11379 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11380 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11381 declarations.
11382 (LOWEST_PC): Delete.
11383
3ab13650
PS
113842002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11385
11386 * maint.c (print_section_info): Do not prepend `0x' to filepos
11387 output, it will be handled by local_hex_string_custom.
11388
19d3fc80 113892002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
11390
11391 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11392 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11393 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11394
d85a5daf
JB
113952002-02-22 Jim Blandy <jimb@redhat.com>
11396
11397 Indicate that the bcache functions don't change the strings
11398 they're passed.
11399 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11400 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11401
eeb25b8a
PM
114022002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11403
11404 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11405
6badb179
CF
114062002-02-21 Christopher Faylor <cgf@redhat.com>
11407
11408 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11409 find the complete path to a loaded DLL.
11410
e8717518
FF
114112002-02-21 Fred Fish <fnf@redhat.com>
11412
11413 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11414 that marks the end of the range of a function, enter a line number
11415 entry that has a line number of zero and a PC offset that matches
11416 the end of the function. This starts a range of PC's for which no
11417 line number information is known.
11418 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11419 PC's for which no line number info is found (line number is zero)
11420 then we didn't find any valid line information.
11421 * symtab.h: Document use of zero line number entry.
11422
9abe5450
EZ
114232002-02-21 Elena Zannoni <ezannoni@redhat.com>
11424
11425 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11426 (have_ptrace_getvrregs): Define for run time checks.
11427 (gdb_vrregset_t): New type for Altivec register handling.
11428 (fetch_register, store_register): Fetch/store altivec register
11429 when needed.
11430 (fetch_altivec_register, store_altivec_register): New functions.
11431 (supply_vrregset, fill_vrregset): New functions.
11432 (fetch_altivec_registers, store_altivec_registers): New functions.
11433 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11434 registers as well.
11435
aaa38bb5
AJ
114362002-02-21 Jiri Smid <smid@suse.cz>
11437
11438 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11439
b34db576
RE
114402002-02-21 Richard Earnshaw <rearnsha@arm.com>
11441
11442 * Makefile.in (armnbsd-nat.o): Update dependencies.
11443 * armnbsd-nat.c (supply_gregset): New function. Common code to
11444 supply the integer register set.
11445 (supply_fparegset): New function. Similar for FPA registers.
11446 (fetch_regs, fetch_fp_regs): Use them.
11447 (fetch_core_registers): Likewise.
11448 (fetch_elfcore_registers): New function.
11449 (arm_netbsd_elfcore_fns): New core-file type specification.
11450 (_initialize_arm_netbsd_nat): Register it.
11451
3e56fc4b
RE
114522002-02-21 Richard Earnshaw <rearnsha@arm.com>
11453
11454 * armnbsd-nat.c: Include gdbcore.h.
11455 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11456 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11457 'void' to declaration, to shut up ARI.
11458 (fetch_core_registers): Make static. Rewrite using supply_register.
11459 (arm_netbsd_core_fns): New core-file type specification.
11460 (_initialize_arm_netbsd_nat): New function.
11461
097f6b0b
CF
114622002-02-21 Christopher Faylor <cgf@redhat.com>
11463
11464 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11465 value.
11466
c914e0cc
CF
114672002-02-20 Christopher Faylor <cgf@redhat.com>
11468
11469 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11470 fails.
11471
385fa495
DJ
114722002-02-20 Daniel Jacobowitz <drow@mvista.com>
11473
11474 * jv-exp.y (parse_number): Change type of implicit longs
11475 to builtin_type_uint64.
11476
e5f1222d
DJ
114772002-02-20 Daniel Jacobowitz <drow@mvista.com>
11478
11479 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11480 to be an integer instead of a `union wait'.
11481
75c9abc6
DJ
114822002-02-20 Daniel Jacobowitz <drow@mvista.com>
11483
11484 * mips-linux-nat.c: Call the operating system GNU/Linux.
11485 * mips-linux-tdep.c: Likewise.
11486 * mips-tdep.c: Likewise.
11487
551792a5
DJ
114882002-02-20 Daniel Jacobowitz <drow@mvista.com>
11489
11490 Fix PR gdb/265.
11491 * jv-exp.y (parse_number): Handle 64-bit integers.
11492
ee6e2b82
DJ
114932002-02-20 Daniel Jacobowitz <drow@mvista.com>
11494
11495 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11496 AC_STDC_HEADERS to AC_HEADER_STDC.
11497 * gdbserver/configure: Regenerated.
11498
a48442a0
RE
114992002-02-20 Richard Earnshaw <rearnsha@arm.com>
11500
11501 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11502 is defined.
11503 * sparc-tdep.c (get_longjmp_target): Likewise.
11504
fe419ffc
RE
115052002-02-20 Richard Earnshaw <rearnsha@arm.com>
11506
11507 * News: Add news about ARM and Multi-arch. Mention the new target
11508 arm*-*-netbsd*.
11509
5832ed7e
JB
115102002-02-19 Jim Blandy <jimb@redhat.com>
11511
11512 * stabsread.c (error_type_complaint): Improve error message.
11513
84563040
DJ
115142002-02-19 Daniel Jacobowitz <drow@mvista.com>
11515
11516 * gdbserver/README: Update documentation.
11517 * gdbserver/configure.in: Update configury to match documentation.
11518 * gdbserver/Makefile.in: Likewise.
11519 * gdbserver/configure: Regenerated.
11520 * gdbserver/aclocal.m4: New file, generated by aclocal.
11521 * gdbserver/config.in: New file, generated by autoheader.
11522
375fd65b
RE
115232002-02-19 Richard Earnshaw <rearnsha@arm.com>
11524
11525 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11526 armnbsd-nat.c.
11527
08216dd7
RE
115282002-02-19 Richard Earnshaw <rearnsha@arm.com>
11529
11530 * arm-tdep.h (enum arm_float_model): New enum.
11531 (struct gdbarch_tdep): Add fp_model.
11532 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11533 up floating-point conversions until we know the floating-point model
11534 in use by the inferior. Don't complain about being unable to
11535 determine the ABI of the inferior when we don't have one.
11536 (arm_extract_return_value): Support different floating-point models.
11537 (arm_store_return_value): Likewise.
aaa38bb5 11538 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11539 ARM_FLOAT_SOFT.
11540 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11541
65d6d66a
PS
115422002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11543
11544 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11545 of ``current_gdbarch''.
11546
47221191
RE
115472002-02-19 Richard Earnshaw <rearnsha@arm.com>
11548
11549 * armnbsd-nat.c : ANSIfy all function declarations.
11550 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11551 (fetch_inferior_registers): Re-implement in terms of above.
11552 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11553 (store_inferior_registers): Re-implement in terms of above.
11554
fdf39c9a
RE
115552002-02-19 Richard Earnshaw <rearnsha@arm.com>
11556
aaa38bb5 11557 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11558 kernel.
11559 * arm-linux-tdep.c: Likewise.
11560 * config/arm/tm-linux.h: Likewise.
11561
93247f88
RE
115622002-02-19 Richard Earnshaw <rearnsha@arm.com>
11563
11564 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11565 * config/arm/nbsd.mt (TM_FILE): Delete.
11566 * config/arm/tm-nbsd.h: Delete.
11567
d7b486e7
RE
115682002-02-19 Richard Earnshaw <rearnsha@arm.com>
11569
11570 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11571 Initialize CALL_DUMMY_LENGTH.
11572
41d39a95
RE
115732002-02-19 Richard Earnshaw <rearnsha@arm.com>
11574
11575 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11576 function.
11577 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11578 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11579 defines one thing and that is incorrect for this port.
11580 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11581
e1195560
PM
115822002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11583
11584 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11585
c1748f97
PM
115862002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11587
11588 * win32-nat.c (display_selector): New function. Displays information
11589 about the information returned by GetThreadSelectorEntry API function.
11590 (display_selectors): New function. Displays the infomation of
11591 the selector given as argument, or of CS, DS ans FS selectors
11592 if no argument is given.
11593 ( _initialize_inftarg): Add "w32" as info prefix command.
11594 Add "info w32 selector" as command calling display_selectors.
11595
e41e6bbf
PM
115962002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11597
11598 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11599 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11600 if not defined.
11601
0d3a9f48
RE
116022002-02-18 Richard Earnshaw <rearnsha@arm.com>
11603
11604 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11605
3fb4b924
RE
116062002-02-18 Richard Earnshaw <rearnsha@arm.com>
11607
11608 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11609 (arm_fix_call_dummy): Call it.
11610 (arm_call_dummy_breakpoint_offset): Delete.
11611 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11612 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11613
7f55af32
AC
116142002-02-18 Andrew Cagney <ac131313@redhat.com>
11615
11616 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11617 Default to func_frame_chain_valid.
11618 * gdbarch.h, gdbarch.c: Re-generate.
11619 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11620
05f13b9c
EZ
116212002-02-18 Elena Zannoni <ezannoni@redhat.com>
11622
11623 * ppc-linux-nat.c: Update copyright.
11624 (fetch_register, store_register): Add tid parameter, don't compute
11625 tid here.
11626 (fetch_ppc_registers, store_ppc_registers): Add tid
11627 parameter. Pass it along to callees.
11628 (fetch_inferior_registers, store_inferior_registers): Compute tid
11629 here, and pass it to calleed functions.
11630 (fill_gregset, supply_fpregset): Clean up formatting.
11631
d7afb4c9
RE
116322002-02-18 Richard Earnshaw <rearnsha@arm.com>
11633
11634 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11635 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11636
9df628e0
RE
116372002-02-18 Richard Earnshaw <rearnsha@arm.com>
11638
11639 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11640 * gdbarch.c gdbarch.h: Regenerate.
11641 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11642 function.
11643 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11644 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11645 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11646
11647 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11648 * arm-tdep.c (arm_get_longjmp_target): New function.
11649 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11650 this to a positive value register arm_get_longjmp_target as the
11651 longjmp handler.
11652 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11653 (arm_linux_init_abi): Set up longjmp description in tdep.
11654 * armnbsd-nat.c (get_longjmp_target): Delete.
11655 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11656 description in tdep.
11657 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11658 (get_longjmp_target): Delete declaration.
11659 (GET_LONGJMP_TARGET): Delete.
11660 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11661 (GET_LONGJMP_TARGET): Delete.
11662
57bc8964
KB
116632002-02-17 Kevin Buettner <kevinb@redhat.com>
11664
11665 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11666 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11667 of ``current_gdbarch''.
11668
83d31a92
TT
116692002-02-17 Tom Tromey <tromey@redhat.com>
11670
11671 * cli/cli-cmds.c (compare_strings): New function.
11672 (complete_command): Only print each unique item once.
11673 * completer.h (complete_line): Declare.
11674 * completer.c (complete_line): New function.
11675 (line_completion_function): Use it.
11676
17ef5d92
AC
116772002-02-16 Andrew Cagney <ac131313@redhat.com>
11678
11679 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11680 * gdbarch.h, gdbarch.c: Re-generate.
11681
491b8946
DJ
116822002-02-16 Daniel Jacobowitz <drow@mvista.com>
11683
11684 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11685
116862002-02-16 Daniel Jacobowitz <drow@mvista.com>
11687
11688 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11689 * valops.c (value_arg_coerce): Don't take the address of a reference
11690 to convert an argument to a reference.
11691
dfe7f3ac
CF
116922002-02-15 Christopher Faylor <cgf@redhat.com>
11693
11694 * win32-nat.c (get_image_name): New function.
11695 (handle_load_dll): Use get_image_name function.
11696 (get_child_debug_event): Avoid registering debug events until possibly
11697 execed process is started.
11698 (child_create_inferior): Allow invocation via shell so that command
11699 line redirection, etc. works ok.
11700 (_initialize_inftarg): Add new command: "set shell" to control whether
11701 a shell is used to start a process.
11702
1d33e73a
DJ
117032002-02-15 Daniel Jacobowitz <drow@mvista.com>
11704
11705 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11706 instead of find_register_by_number.
11707 (cannot_store_register): Likewise.
11708
48cd0caa
PM
117092002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11710
aaa38bb5 11711 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
11712 fprintf_unfiltered (gdb_stderr, ...).
11713
8656e7d8
DJ
117142002-02-15 Daniel Jacobowitz <drow@mvista.com>
11715
11716 * gdbserver/gdbserver.1: Document --attach.
11717
66e810cd
RE
117182002-02-15 Richard Earnshaw <rearnsha@arm.com>
11719
11720 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11721 descriptions.
11722 * arm-tdep.c (arm_default_arm_le_breakpoint)
11723 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11724 (arm_default_thumb_be_breakpoint): New. Initialize them from
11725 traditional breakpoint defines.
11726 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11727 (arm_gdbarch_init): Initialize new breakpoint variables.
11728 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11729 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11730 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11731 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11732 code out to ...
11733 (arm_netbsd_init_abi_common): ... here; new function.
11734 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11735 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11736 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11737 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11738
97e03143
RE
117392002-02-15 Richard Earnshaw <rearnsha@arm.com>
11740
11741 * arm-tdep.h (enum arm_abi): New enum.
11742 (struct gdbarch_tdep): New structure.
11743 (LOWEST_PC): Provide a default.
11744 (arm_gdbarch_register_os_abi): Declare new function.
11745 * arm-tdep.c (arm_abi_names): New array.
11746 (process_note_abi_tag_sections): New function.
11747 (get_elfosabi): New function.
11748 (arm_gdbarch_register_os_abi): New function.
11749 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11750 support for that ABI has been built in, then call the appropriate
11751 configuration routine. Use gdbarch_num_regs() to get the number
11752 of registers.
11753 (arm_dump_tdep): New function.
11754 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11755 place-holder functions.
11756 (_initialize_arm_tdep): Register them.
11757 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11758
11759 * armnbsd-tdep.c: New file.
11760 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11761 * config/arm/nbsd.mt (TDEPFILES): Add it.
11762 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11763
11764 * armnbsd-nat.c: Include regcache.h.
11765 * Makefile.in (armnbsd-nat.o): Update dependency list.
11766
11767 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11768
ad68be46
DJ
117692002-02-14 Daniel Jacobowitz <drow@mvista.com>
11770
11771 * gdbserver/Makefile.in: Fix typos in target rules.
11772
003d6d1d
DJ
117732002-02-14 Daniel Jacobowitz <drow@mvista.com>
11774
aaa38bb5 11775 Fix part of PR gdb/267.
003d6d1d
DJ
11776 * linespec.c (find_methods): Handle constructors specially for now.
11777
6b230f1b
CV
117782002-02-14 Corinna Vinschen <vinschen@redhat.com>
11779
11780 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11781 handling.
11782 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11783 standard_coerce_float_to_double().
11784
1ea98d12
CF
117852002-02-14 Christopher Faylor <cgf@redhat.com>
11786
11787 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11788 GDBINIT_FILENAME.
11789
dd47e6fd
EZ
117902002-02-14 Elena Zannoni <ezannoni@redhat.com>
11791
11792 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11793 find_variant_by_name, because it confuses the multiarch
11794 framework. Return NULL if there isn't an architecture with the
11795 user supplied name, instead of forcing a different one without
11796 recording the change with the multiarch machinery.
11797 (find_variant_by_name): Delete.
11798
d7e39b9e
PS
117992002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11800
11801 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11802 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11803
76e42a4f
MH
118042002-02-13 Martin M. Hunt <hunt@redhat.com>
11805
aaa38bb5 11806 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
11807 print_frame_info_listing_hook, set current_source_symtab.
11808
0a30fbc4
DJ
118092002-02-14 Daniel Jacobowitz <drow@mvista.com>
11810
11811 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11812 and remove unused $(INCLUDE_DIR).
11813 Add regcache.c to OBS.
11814 Add generated register protocol files to clean target.
11815 Update dependencies for new objects, obsolete old target code.
11816
11817 * gdbserver/linux-low.c: Remove all platform-specific code to
11818 new files. Remove various dead code. Update to use regcache
11819 functionality.
11820 * gdbserver/remote-utils.c (fromhex): Add return statement
11821 to quiet warning.
11822 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11823 constant.
11824 (input_interrupt): Add integer parameter to match prototype
11825 of a signal handler.
11826 (outreg): Use register_data ().
11827 (prepare_resume_reply): Use gdbserver_expedite_regs.
11828 * gdbserver/server.c (main): Dynamically allocate own_buf because
11829 PBUFSIZ is no longer constant. Use registers_to_string () and
11830 registers_from_string ().
11831 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11832 for error (), fatal (), and warning (). Update definition of
11833 PBUFSIZ to use regcache functionality. Add include guard.
11834 * gdbserver/utils.c (fatal): Add missing ``const''.
11835 (warning): New function.
11836
11837 * regformats/regdat.sh: Include "regcache.h" in generated files.
11838 Provide init_registers () function.
11839 * regformats/regdef.h: Add prototype for set_register_cache ().
11840 Add include guard.
11841
11842 * gdbserver/linux-arm-low.c: New file.
11843 * gdbserver/linux-i386-low.c: New file.
11844 * gdbserver/linux-ia64-low.c: New file.
11845 * gdbserver/linux-m68k-low.c: New file.
11846 * gdbserver/linux-mips-low.c: New file.
11847 * gdbserver/linux-ppc-low.c: New file.
11848 * gdbserver/linux-sh-low.c: New file.
11849
11850 * gdbserver/regcache.c: New file.
11851 * gdbserver/regcache.h: New file.
11852
11853 * gdbserver/low-linux.c: Removed obsolete file.
11854
4cc841d0
DJ
118552002-02-14 Daniel Jacobowitz <drow@mvista.com>
11856
11857 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11858 * config/i386/linux.mt: Likewise.
11859 * config/ia64/linux.mt: Likewise.
11860 * config/m68k/linux.mh: Likewise.
11861 * config/powerpc/linux.mh: Likewise.
11862 * config/mips/linux.mt: Likewise.
11863
11864 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11865
11866 * config/i386/i386lynx.mh: Mark gdbserver variables
11867 as (currently) obsolete for this target.
11868 * config/i386/nbsd.mt: Likewise.
11869 * config/i386/nbsdelf.mt: Likewise.
11870 * config/m32r/m32r.mt: Likewise.
11871 * config/m68k/m68klynx.mh: Likewise.
11872 * config/m68k/nbsd.mt: Likewise.
11873 * config/m68k/sun3os4.mh: Likewise.
11874 * config/mips/vr5000.mt: Likewise.
11875 * config/ns32k/nbsd.mt: Likewise.
11876 * config/pa/hppabsd.mh: Likewise.
11877 * config/pa/hppaosf.mh: Likewise.
11878 * config/powerpc/nbsd.mt: Likewise.
11879 * config/rs6000/rs6000lynx.mh: Likewise.
11880 * config/s390/s390.mt: Likewise.
11881 * config/s390/s390x.mt: Likewise.
11882 * config/sparc/sparclynx.mh: Likewise.
11883 * config/sparc/sun4os4.mh: Likewise.
11884 * config/i386/x86-64linux.mt: Likewise.
11885 * config/sparc/linux.mh: Likewise.
11886
a85f51e7
DJ
118872002-02-14 Daniel Jacobowitz <drow@mvista.com>
11888
11889 * configure.tgt: Configure gdbserver only for known working
11890 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11891 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11892 SUBDIRS if it is configured. Update comment for ${nativefile}.
11893 * configure: Regenerated.
11894
65554fef
MS
118952002-02-13 Michael Snyder <msnyder@redhat.com>
11896
670a52db
MS
11897 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11898
6dbdc4a3
MS
11899 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11900 (default_gcore_mach): Just return 0, work around a problem in bfd.
11901 (default_gcore_target): OK to return NULL if exec_bfd is null.
11902 (make_mem_sec): Use a cast, avoid a warning.
11903
11904 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 11905 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
11906 sizeof (host pointer) != sizeof (target pointer)).
11907 (procfs_make_note_section): Avoid overflow in psargs string.
11908
aaa38bb5 11909 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
11910 implementation return an error.
11911
119122002-02-13 Rodney Brown <rbrown64@csc.com.au>
11913
11914 * procfs.c (procfs_make_note_section): Provide a default definition
11915 (for alpha-dec-osf4.0f). Fix typos.
11916
1e4d76e7
EZ
119172002-02-13 Elena Zannoni <ezannoni@redhat.com>
11918
11919 * linux-proc.c: Add include of regcache.h.
11920 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11921
b6d1a1d5
AC
119222002-02-13 Andrew Cagney <ac131313@redhat.com>
11923
11924 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
11925 * memattr.c (create_mem_region): Disallow useless empty region.
11926 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 11927 non-overlapping.
b6d1a1d5 11928
6c6ea35e
MC
119292002-02-13 Michael Chastain <mec@shout.net>
11930
11931 * defs.h: Kill CONST_PTR.
11932 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11933 * c-lang.c (c_builtin_types): Likewise.
11934 * ch-lang.c (ch_builtin_types): Likewise.
11935 * f-lang.c (f_builtin_types): Likewise.
11936 * language.c (unknown_builtin_types): Likewise.
11937 * m2-lang.c (m2_builtin_types): Likewise.
11938 * p-lang.c (pascal_builtin_types): Likewise.
11939 * scm-lang.c (c_builtin_types): Likewise.
11940
3e0b0f48
KS
119412002-02-13 Keith Seitz <keiths@redhat.com>
11942
11943 * arm-tdep.h (arm_get_next_pc): Add declaration.
11944
67255d04
RE
119452002-02-13 Richard Earnshaw <rearnsha@arm.com>
11946
11947 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11948 with other related struct-returning functions.
11949 (arm_extract_struct_value_address): New function.
11950 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11951 initialize float_format, double_format and long_double_format as
11952 appropriate to the endianness of the target.
11953 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11954 (arm_use_struct_convention): Delete declaration.
11955 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11956
079777f6
KS
119572002-02-13 Keith Seitz <keiths@redhat.com>
11958
11959 * defs.h (core_addr_to_string_nz): New function.
11960
34588f23
MK
119612002-02-13 Mark Kettenis <kettenis@gnu.org>
11962
11963 Apply missing bits of 2002-01-15 patch.
11964 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11965 (fill_fpregset): Use i387_fill_fsave.
11966
49b563f9
KS
119672002-02-12 Keith Seitz <keiths@redhat.com>
11968
49b563f9
KS
11969 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11970 (core_addr_to_string_nz): New function.
11971
aeb98c60
RE
119722002-02-11 Richard Earnshaw <rearnsha@arm.com>
11973
11974 * arm-linux-nat.c: Really include arm-tdep.h.
11975 * config/arm/tm-linux.h (struct type, struct value): Declare.
11976
65554fef
MS
119772002-02-11 Michael Snyder <msnyder@redhat.com>
11978
11979 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11980 (gcore section): Ifdef for Solaris and Unixware only.
11981 (procfs_do_thread_registers): Unixware needs one lwpstatus
11982 per thread (not one prstatus or pstatus).
11983 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11984 not over all gdb threads. For unixware, call elfcore_write_pstatus
11985 once before iterating over threads.
11986
34e8f22d
RE
119872002-02-11 Richard Earnshaw <rearnsha@arm.com>
11988
11989 * arm-tdep.h: New file.
11990 * arm-tdep.c: Include arm-tdep.h.
11991 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11992 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11993 (arm_print_float_info, arm_register_type, convert_to_extended)
11994 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11995 (arm_extract_return_value, arm_register_name): Make static.
11996 (arm_software_single_step): Similarly. Fix types in declaration.
11997 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11998 (arm_store_return_value, arm_store_struct_return): New functions.
11999 (arm_gdbarch_init): Register the above functions. Also register
12000 call_dummy_start_offset, sizeof_call_dummy_words,
12001 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12002 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 12003 max_register_virtual_size, register_size. Set up
34e8f22d
RE
12004 prologue_cache.saved_regs here, rather than ...
12005 (_initialize_arm_tdep): ... here.
12006 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12007 declarations.
12008 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12009 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12010 (arm_print_float_info, arm_register_type, convert_to_extended)
12011 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12012 (arm_extract_return_value, arm_register_name): Delete declarations.
12013 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12014 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12015 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12016 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12017 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12018 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12019 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12020 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12021 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12022 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12023 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12024 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12025 interface.
12026 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12027 * remote-rdi.c remote-rdp.c: Likewise.
12028 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12029 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12030 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12031 definition.
12032
12033 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12034 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12035 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12036 from non-ARM_ prefixed definitions.
12037 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12038 all uses of above.
12039 * remote-rdi.c remote-rdp.c: Likewise.
12040 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12041
148754e5
RE
120422002-02-11 Richard Earnshaw <rearnsha@arm.com>
12043
12044 * arm-tdep.c (arm_frameless_function_invocation)
12045 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12046 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12047 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12048 (arm_pop_frame, arm_get_next_pc): Make static.
12049 (arm_gdbarch_init): Register above in gdbarch structure.
12050 (arm_read_fp): Renamed from arm_target_read_fp.
12051 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12052 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12053 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12054 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12055 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12056 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12057 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
12058 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12059 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12060 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12061 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 12062
434d2d4f
DJ
120632002-02-10 Daniel Jacobowitz <drow@mvista.com>
12064
12065 * symtab.c (compare_search_syms): New function.
12066 (sort_search_symbols): New function.
12067 (search_symbols): Sort symbols after searching rather than
12068 before.
12069
55241689
AC
120702002-02-10 Andrew Cagney <ac131313@redhat.com>
12071
12072 * NEWS: Linux -> GNU/Linux.
12073
028c194b
AC
120742002-02-10 Andrew Cagney <ac131313@redhat.com>
12075
12076 * gdbarch.sh: For for level one methods, disallow a definition
12077 when partially multi-arched. Add comments explaining rationale.
12078 * gdbarch.h: Re-generate.
12079
6acf50cd
AC
120802002-02-10 Andrew Cagney <ac131313@redhat.com>
12081
12082 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12083 multi-arch partial.
aaa38bb5 12084
50248794
AC
120852002-02-10 Andrew Cagney <ac131313@redhat.com>
12086
12087 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12088 field. Use diff -u.
12089 * gdbarch.c: Re-generate.
12090
c30e0066
AC
120912002-02-10 Andrew Cagney <ac131313@redhat.com>
12092
9b56c5f3 12093 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
12094 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12095 partial.
12096
6e6d6484
AC
120972002-02-10 Andrew Cagney <ac131313@redhat.com>
12098
12099 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12100 multi-arch partial.
12101 (PUSH_ARGUMENTS): Switch to using predefault.
12102 * gdbarch.c: Regenerate.
12103
c203844d
AC
121042002-02-10 Andrew Cagney <ac131313@redhat.com>
12105
12106 * valops.c (PUSH_ARGUMENTS): Delete definition.
12107 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12108 partial. Default to default_push_arguments.
12109 * gdbarch.h, gdbarch.c: Regenerate.
12110
b5a2688f
AC
121112002-02-09 Andrew Cagney <ac131313@redhat.com>
12112
12113 * defs.h (throw_exception): Rename return_to_top_level. Update
12114 comments.
12115 * utils.c (error_stream, internal_verror, quit): Ditto.
12116 * top.c (throw_exception, catcher): Ditto.
12117 * sparclet-rom.c (sparclet_load): Ditto.
12118 * remote.c (interrupt_query, minitelnet): Ditto.
12119 * remote-sds.c (interrupt_query): Ditto.
12120 * remote-mips.c (mips_error, mips_kill): Ditto.
12121 * ocd.c (interrupt_query): Ditto.
12122 * monitor.c (monitor_interrupt_query): Ditto.
12123 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12124 * target.h: Update comment.
aaa38bb5 12125
b5a2688f 12126 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 12127
2fa5c1e0
AC
121282002-02-09 Andrew Cagney <ac131313@redhat.com>
12129
12130 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12131 default_double_format.
12132 * gdbarch.h, gdbarch.c: Re-generate.
12133 * findvar.c (floatformat_unknown): Delete variable definition.
12134 * doublest.h (floatformat_unknown): Delete variable declaration.
12135
da966255
JB
121362002-02-09 Jim Blandy <jimb@redhat.com>
12137
12138 * stabsread.c (read_type): Add code to parse Sun's syntax for
12139 prototyped function types.
12140
123a4891
AC
121412002-02-09 Andrew Cagney <ac131313@redhat.com>
12142
12143 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12144 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12145
fb39c8f3
PS
121462002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12147
12148 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12149 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12150 now _initialize_xcoffsolib gets called again and overrides the
12151 commands from solib.c in a native configuration.
12152
0b87a11d
MK
121532002-02-09 Mark Kettenis <kettenis@gnu.org>
12154
12155 * doublest.c (store_typed_floating): Don't try to return a value.
12156 Fixes PR gdb/290.
12157
bdc2fc72
JB
121582002-02-08 Jim Blandy <jimb@redhat.com>
12159
12160 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12161 is prototyped and has no arguments, print its argument list as
12162 `(void)'.
12163
da69bbcf
CD
121642002-02-08 Chris Demetriou <cgd@broadcom.com>
12165
12166 * MAINTAINERS (write-after-approval): Add myself.
12167 (paper-trail): I've escaped!
aaa38bb5 12168
b69571f5
CF
121692002-02-08 Christopher Faylor <cgf@redhat.com>
12170
12171 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12172 changes.
12173 (_initialize_check_for_gdb_ini): Ditto.
12174
f6871398
MH
121752002-02-08 Martin M. Hunt <hunt@redhat.com>
12176
12177 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12178 xaprintf -> xasprintf.
12179
4e52d31c
PM
121802002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12181
12182 * win32-nat.c: Remove use of printf and sprintf functions.
12183
39bbf761
RE
121842002-02-08 Richard Earnshaw <rearnsha@arm.com>
12185
12186 * arm-tdep.c (arm_frame_chain_valid): Make static.
12187 (arm_push_arguments): Likewise.
12188 (arm_gdbarch_init): New function.
12189 (_initialize_arm_tdep): Call it.
12190 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12191 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12192 (FRAME_CHAIN_VALID): Delete.
12193 (arm_frame_chain_valid): Delete declaration.
12194 (PUSH_ARGUMENTS): Delete.
12195 (arm_push_arguments): Delete declaration.
12196 (CALL_DUMMY_P): Delete.
12197
9c9532c9
CV
121982002-02-08 Andrew Cagney <ac131313@redhat.com>
12199 Corinna Vinschen <vinschen@redhat.com>
12200
12201 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12202 on builtin float types.
12203
4e8f7a8b
DJ
122042002-02-08 Daniel Jacobowitz <drow@mvista.com>
12205
12206 * utils.c: Include <curses.h> before "bfd.h".
12207 * tui/tui-hooks.c: Likewise.
12208 * tui/tui.c: Likewise.
12209 * tui/tuiCommand.c: Likewise.
12210 * tui/tuiData.c: Likewise.
12211 * tui/tuiDataWin.c: Likewise.
12212 * tui/tuiDisassem.c: Likewise.
12213 * tui/tuiGeneralWin.c: Likewise.
12214 * tui/tuiIO.c: Likewise.
12215 * tui/tuiLayout.c: Likewise.
12216 * tui/tuiRegs.c: Likewise.
12217 * tui/tuiSource.c: Likewise.
12218 * tui/tuiSourceWin.c: Likewise.
12219 * tui/tuiStack.c: Likewise.
12220 * tui/tuiWin.c: Likewise.
12221
cd4bffcf
EZ
122222002-02-07 Elena Zannoni <ezannoni@redhat.com>
12223
12224 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12225 to include space for pseudoregs as well. Update loops accordingly.
12226 (sh_fp_frame_init_saved_regs): Ditto.
12227 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12228
26806ce2
AC
122292002-02-07 Andrew Cagney <ac131313@redhat.com>
12230
12231 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12232 Add Richard Earnshaw to Arm maintainers.
12233
97fdab62
AC
122342002-02-07 Andrew Cagney <ac131313@redhat.com>
12235
a6b98203
AC
12236 * defs.h (warning_begin): Delete declaration.
12237
97fdab62
AC
12238 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12239 Delete macro.
12240
78b29b40
MS
122412002-02-07 Michael Snyder <msnyder@redhat.com>
12242
aaa38bb5 12243 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
12244 Logic bug, remove misplaced else.
12245
d8849953
KD
122462002-02-07 Klee Dienes <klee@apple.com>
12247
12248 * fork-inferior.c (fork_inferior): Add '!' to the list of
12249 characters that need to be quoted when building a string for the
12250 shell. Quote '!' specifically with a backslash, since CSH chokes
12251 when trying to evaluate "str!str".
aaa38bb5 12252
095778a0
NC
122532002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12254
12255 * rdi-share/host.h: Only provide a typedef for bool if it is not
12256 defined.
12257
1900040c
MS
122582002-02-04 Michael Snyder <msnyder@redhat.com>
12259
12260 * breakpoint.h (enum bptype): Add new overlay event bp type.
12261 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 12262
1900040c
MS
12263 * breakpoint.c (create_internal_breakpoint): New function.
12264 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12265 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12266 (create_thread_event_breakpoint): Ditto.
12267 (create_solib_event_breakpoint): Ditto.
12268 (create_overlay_event_breakpoint): New function.
12269 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12270 (update_breakpoints_after_exec): Delete and re-initialize
12271 overlay event breakpoints after an exec. Add FIXME comment
12272 about longjmp breakpoint.
12273 (print_it_typical): Ignore overlay event breakpoints.
12274 (print_one_breakpoint): Ditto.
12275 (mention): Ditto.
12276 (bpstat_what): Do not stop for overlay event breakpoints.
12277 (delete_breakpoint): Don't delete overlay event breakpoints.
12278 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12279 (breakpoint_re_set): Re-create overlay event breakpoint.
12280
12281 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12282 (overlay_manual_command): Disable overlay breakpoints.
12283 (overlay_off_command): Disable overlay breakpoints.
12284
082fc60d
RE
122852002-02-06 Richard Earnshaw <rearnsha@arm.com>
12286
12287 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12288 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12289 to here from config/tm-arm.h.
12290 (coff_sym_is_thumb): Make static.
12291 (arm_elf_make_msymbol_special): New function.
12292 (arm_coff_make_msymbol_special): New function.
12293 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12294 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12295 (coff_sym_is_thumb): Delete declaration.
12296 (arm_elf_make_msymbol_special): Declare.
12297 (arm_coff_make_msymbol_special): Declare.
12298 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12299 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12300
039c5766
RE
123012002-02-06 Richard Earnshaw <rearnsha@arm.com>
12302
12303 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12304
123052002-02-06 Richard Earnshaw <rearnsha@arm.com>
12306
12307 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12308 * gdbarch.c gdbarch.h: Regenerate.
12309 * arch-utils.c (default_print_float_info): New function.
12310 * arch-utils.h (default_print_float_info): Prototype it.
12311 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12312 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12313 (PRINT_FLOAT_INFO): Document it.
12314
12315 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12316 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12317 (PRINT_FLOAT_INFO): Define.
12318
58fa08f0
PM
123192002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12320
aaa38bb5 12321 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
12322 Add typecast to sprintf argument to suppress a warning.
12323
7393af7c
PM
123242002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12325
58fa08f0 12326 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
12327 to allow easier handling of pass state.
12328 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12329 that gives exception name and address.
12330 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 12331 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 12332 exceptions added.
aaa38bb5
AJ
12333 (child_continue): Correctly report continue_status.
12334 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 12335 TARGET_SIGNAL_0 (new default value).
aaa38bb5 12336 (child_resume): consider sig argument passed to decide if
7393af7c
PM
12337 the exception should be passed to debuggee or not.
12338
6af4589c
MS
123392002-02-05 Michael Snyder <msnyder@redhat.com>
12340
12341 * regcache.c (fetch_register): Call target_fetch_register
12342 only if we don't call FETCH_PSEUDO_REGISTER.
12343 (store_register): Call target_store_register only if we
12344 don't call STORE_PSEUDO_REGISTER.
12345
a2cf933a
EZ
123462002-02-05 Elena Zannoni <ezannoni@redhat.com>
12347
12348 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12349 ELF_MAKE_MSYMBOL_SPECIAL.
12350 * gdbarch.c, gdbarch.h: Regenerate.
12351 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12352 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12353 * elfread.c (elf_symtab_read): Compile use of
12354 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12355 multiarched.
12356 * coffread.c (coff_symtab_read): Ditto, for
12357 COFF_MAKE_MSYMBOL_SPECIAL.
12358
6bb7be43
JB
123592002-02-05 Jim Blandy <jimb@redhat.com>
12360
12361 * solib-svr4.c (svr4_truncate_ptr): New function.
12362 (svr4_relocate_section_addresses): Do the address arithmetic with
12363 the appropriate truncation for target addresses, even when
12364 CORE_ADDR is larger than a target address.
12365
e18651ec
DJ
123662002-02-05 Daniel Jacobowitz <drow@mvista.com>
12367
12368 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12369 to (int *).
12370
6b2725be
DJ
123712002-02-05 Daniel Jacobowitz <drow@mvista.com>
12372
12373 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12374 code.
12375
fca9e603
DJ
123762002-02-05 Daniel Jacobowitz <drow@mvista.com>
12377
12378 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12379
6c537a52
DJ
123802002-02-05 Daniel Jacobowitz <drow@mvista.com>
12381
12382 * gdbserver/linux-low.c: Remove unused include files.
12383
d844cde6
DJ
123842002-02-05 Daniel Jacobowitz <drow@mvista.com>
12385
12386 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12387 (read_inferior_memory): Use it.
12388 (write_inferior_memory): Likewise.
12389
d07c63e7
DJ
123902002-02-05 Daniel Jacobowitz <drow@mvista.com>
12391
12392 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12393 grubbing through sys_errlist.
12394
da6d8c04
DJ
123952002-02-05 Daniel Jacobowitz <drow@mvista.com>
12396
12397 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12398
5b421780
PM
123992002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12400 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12401
9f60d481
AC
124022002-02-04 Andrew Cagney <ac131313@redhat.com>
12403
12404 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12405 (do_sfunc, set_cmd_sfunc): New functions.
12406
12407 * command.h (struct cmd_list_element): Add field func.
12408 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12409 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12410 * cli/cli-decode.h: Ditto.
12411
12412 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12413 (help_all, help_cmd_list): Ditto.
12414 (find_cmd, complete_on_cmdlist): Ditto.
12415 * top.c (execute_command): Ditto.
12416
12417 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12418 function.sfunc.
12419
12420 * infcmd.c (notice_args_read): Fix function signature.
12421
12422 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12423 * cli/cli-decode.c (add_set_cmd): Ditto.
12424 * utils.c (initialize_utils): Ditto.
12425 * maint.c (_initialize_maint_cmds): Ditto.
12426 * infrun.c (_initialize_infrun): Ditto.
12427 * demangle.c (_initialize_demangler): Ditto.
12428 * remote.c (add_packet_config_cmd): Ditto.
12429 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12430 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12431 * proc-api.c (_initialize_proc_api): Ditto.
12432 * kod.c (_initialize_kod): Ditto.
12433 * valprint.c (_initialize_valprint): Ditto.
12434 * top.c (init_main): Ditto.
12435 * infcmd.c (_initialize_infcmd): Ditto.
12436 * corefile.c (_initialize_core): Ditto.
12437 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12438 * arch-utils.c (initialize_current_architecture): Ditto.
12439 (_initialize_gdbarch_utils): Ditto.
12440 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12441
12442 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12443 * wince.c (_initialize_inftarg): Ditto.
12444 * symfile.c (_initialize_symfile): Ditto.
12445 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12446 * language.c (_initialize_language): Ditto.
12447 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12448
f9ba0717
MS
124492002-02-04 Michael Snyder <msnyder@redhat.com>
12450
12451 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12452
0c74b2a7
DJ
124532002-02-04 Daniel Jacobowitz <drow@mvista.com>
12454
12455 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12456 Add rules for building the register data files.
12457
c638789f
DJ
124582002-02-04 Daniel Jacobowitz <drow@mvista.com>
12459
12460 * regformats/regdat.sh: Add braces to the definition of
12461 expedite_regs_${arch}.
12462
db253027
DJ
124632002-02-04 Daniel Jacobowitz <drow@mvista.com>
12464
12465 * regformats/regdef.h (struct reg): Add comment describing the
12466 requirements for offset and size fields.
12467
206be19c
AS
124682002-02-04 Andreas Schwab <schwab@suse.de>
12469
12470 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12471 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12472
181c1381
RE
124732002-02-04 Richard Earnshaw <rearnsha@arm.com>
12474
12475 * gdbarch.sh (copyright): Update years in generated header.
12476 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12477 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12478 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12479 * dbxread.c: Likewise.
12480 * dwarfread.c: Likewise.
12481 * elfread.c: Likewise.
12482 * somread.c: Likewise.
12483
12484 * arm-tdep.c (arm_smash_text_address): New function.
12485 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12486
fa4ba8da
PM
124872002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12488
12489 Add support for hardware watchpoints on win32 native.
aaa38bb5 12490 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12491 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12492 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12493 of debug registers.
12494 (debug_registers_changed): New variable. Reflects when debug registers
12495 are changed and need to be written to inferior.
aaa38bb5 12496 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12497 was set, used when new threads are created.
12498 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12499 i386-nat code.
12500 (thread_rec): Set dr array if id is the thread of current_event .
12501 (child_continue, child_resume): Change the debug registers for all
12502 threads if debug_registers_changed.
12503 (child_add_thread): Change the debug registers if debug_registers_used.
12504 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12505 Link nm.h to new nm-cygwin.h file.
12506 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12507 of hardware registers.
12508
a73c86fb
AC
125092002-02-03 Andrew Cagney <ac131313@redhat.com>
12510
12511 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12512 Restore behavour broken by 2002-01-20 Andrew Cagney
12513 <ac131313@redhat.com> IEEE_FLOAT removal.
12514
acf5ed49
DJ
125152002-02-03 Daniel Jacobowitz <drow@mvista.com>
12516
12517 * c-valprint.c (c_val_print): Pass a proper valaddr to
12518 cp_print_class_method.
12519 * valops.c (search_struct_method): If there is only one method
12520 and args is NULL, return that method.
12521
493d28d5
DJ
125222002-02-03 Daniel Jacobowitz <drow@mvista.com>
12523
12524 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12525 accessing tag_name directly.
12526
7495dfdb
DJ
125272002-02-03 Daniel Jacobowitz <drow@mvista.com>
12528
12529 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12530 of accessing tag_name directly.
12531
dd6bda65
DJ
125322002-02-03 Daniel Jacobowitz <drow@mvista.com>
12533
12534 PR gdb/280
12535 * gdbtypes.c (replace_type): New function.
12536 * gdbtypes.h (replace_type): Add prototype.
12537 * stabsread.c (read_type): Use replace_type.
12538
88fe217c
RE
125392002-02-03 Richard Earnshaw <rearnsha@arm.com>
12540
12541 * Makefile.in (memattr.o): Add missing dependencies rule.
12542
e5d66720
PS
125432002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12544
12545 * breakpoint.c (break_at_finish_command): Really export.
12546 (break_at_finish_at_depth_command): Ditto.
12547 (tbreak_at_finish_command): Ditto.
12548 * hppa-tdep.c: Include completer.h.
12549 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12550 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12551
fffee0be
AC
125522002-02-01 Andrew Cagney <ac131313@redhat.com>
12553
12554 * utils.c (do_write): New function.
12555 (error_stream): Rewrite combining the code from error_begin and
12556 verror.
12557 (verror): Rewrite using error_stream.
12558 (error_begin): Delete function.
12559
255e7dbf
AC
125602002-02-01 Andrew Cagney <ac131313@redhat.com>
12561
12562 * utils.c (error_begin): Make static.
12563 * defs.h (error_begin): Delete declaration.
12564
12565 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12566 (decode_line_1): Use cplusplus_error instead of error_begin,
12567 cplusplus_hint and return_to_top_level.
12568 * coffread.c (coff_symfile_read): Use error instead of error_begin
12569 and return_to_top_level.
12570 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12571
ddfe3c15
AC
125722002-02-01 Andrew Cagney <ac131313@redhat.com>
12573
12574 * language.h (type_error, range_error): Make string parameter
12575 constant.
12576 * language.c (warning_pre_print): Delete extern declaration.
12577 * dwarfread.c (warning_pre_print): Ditto.
12578 * language.c (type_error, range_error): Rewrite to use verror and
12579 vwarning instead of warning_begin.
12580
03ac34d5
MS
125812002-02-01 Michael Snyder <msnyder@redhat.com>
12582
261c4ca2
MS
12583 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12584 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12585
e00d1dc8
AC
125862002-02-01 Andrew Cagney <ac131313@redhat.com>
12587
12588 * command.h (NO_FUNCTION): Delete macro.
12589 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12590 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12591 * tracepoint.c (_initialize_tracepoint): Ditto.
12592 * cli/cli-decode.c (add_set_cmd): Ditto.
12593 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12594
76b79d6e
DJ
125952002-02-01 Daniel Jacobowitz <drow@mvista.com>
12596
12597 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12598 Update ``this'' pointer when calling virtual functions.
12599
799f9e91
MS
126002002-02-01 Michael Snyder <msnyder@redhat.com>
12601
c7bd442c 12602 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12603 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12604
3cf384d4
DJ
126052002-02-01 Daniel Jacobowitz <drow@mvista.com>
12606
12607 * regformats/reg-arm.dat: New file.
12608 * regformats/reg-i386.dat: New file.
12609 * regformats/reg-ia64.dat: New file.
12610 * regformats/reg-m68k.dat: New file.
12611 * regformats/reg-mips.dat: New file.
12612 * regformats/reg-ppc.dat: New file.
12613 * regformats/reg-sh.dat: New file.
12614 * regformats/regdef.h: New file.
12615 * regformats/regdat.sh: New file.
12616
0defa245
RE
126172002-02-01 Richard Earnshaw <reanrsha@arm.com>
12618
12619 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12620 (arm_frame_args_address, arm_frame_locals_address): New functions.
12621 (arm_frame_num_args): New function.
12622 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12623 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12624 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12625
405f26e6
MS
126262002-01-31 Michael Snyder <msnyder@redhat.com>
12627
502fd408
MS
12628 * breakpoint.c (break_at_finish_command): Export.
12629 (break_at_finish_at_depth_command): Export.
12630 (tbreak_at_finish_command): Export.
d6020d45 12631 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12632 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12633 "txbreak" commands, which are HPPA specific.
502fd408 12634
7d35e135
MS
12635 * printcmd.c (disassemble_command): Remove an ancient
12636 artifact of an old merge.
12637
aaa38bb5 12638 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12639 Define enum constant values for overlay mode.
12640 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12641 (overlay_is_mapped, overlay_auto_command,
12642 overlay_manual_command): Ditto.
d874f1e2 12643
aaa38bb5
AJ
12644 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12645 breakpoint_here_p, breakpoint_inserted_here_p,
12646 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12647 describe_other_breakpoints, check_duplicates, clear_command):
12648 Coding standard fixes.
12649
8add0441 12650 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12651 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12652 code: check bfd SEC_READONLY flag for section.
12653
e351066e
AC
126542002-01-31 Andrew Cagney <ac131313@redhat.com>
12655
7d35e135 12656 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 12657
8a48e967
DJ
126582002-01-30 Daniel Jacobowitz <drow@mvista.com>
12659
12660 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12661 data symbols, since we search based on textlow and texthigh.
12662 (find_pc_sect_symtab): Likewise.
12663
f5a96129
AC
126642002-01-30 Andrew Cagney <ac131313@redhat.com>
12665
12666 * defs.h (vwarning): Declare.
f5a96129
AC
12667 * utils.c (vwarning): New function.
12668 (warning): Call vwarning.
12669 (warning_begin): Delete function.
12670
12671 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12672 the warning message.
12673 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12674 warning_begin.
12675
cefd4ef5
MS
126762002-01-30 Michael Snyder <msnyder@redhat.com>
12677
1a703748
MS
12678 * NEWS: Mention "set trust-readonly-sections" command.
12679 Mention generate-core-file command.
cefd4ef5 12680
3a11626d
MS
126812002-01-15 Michael Snyder <msnyder@redhat.com>
12682
12683 * target.c: New command, "set trust-readonly-sections on".
12684 (do_xfer_memory): Honor the suggestion to trust readonly sections
12685 by reading them from the object file instead of from the target.
12686 (initialize_targets): Register command "set trust-readonly-sections".
12687
d1c7e53b
AC
126882002-01-29 Andrew Cagney <ac131313@redhat.com>
12689
12690 * parse.c (target_map_name_to_register): Simplify, search regs and
12691 pseudo-regs using a single loop.
12692
e2c9a72c
AC
126932002-01-30 Andrew Cagney <ac131313@redhat.com>
12694
12695 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12696
69824b4e
MK
126972002-01-15 Rodney Brown <rbrown64@csc.com.au>
12698
12699 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12700 * config/i386/i386v42mp.mh: Add i387-nat.o .
12701 * i386v4-nat.c: Include i387-nat.h.
12702 (supply_fpregset): Use i387_supply_fsave.
12703 (fill_fpregset): Use i387_fill_fsave.
12704
6eb69eab
RE
127052002-01-30 Richard Earnshaw <rearnsha@arm.com>
12706
12707 * arm-tdep.c (arm_call_dummy_words): Define.
12708 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12709 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12710 (CALL_DUMMY_WORDS): Define.
12711 (arm_call_dummy_words): Declare.
12712 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12713 (arm_linux_call_dummy_words): Declare.
12714
9852326a
AS
127152002-01-30 Andreas Schwab <schwab@suse.de>
12716
12717 * m68klinux-nat.c: Fix last change to use regcache_collect
12718 instead of referencing registers[] directly.
12719
977a3030
AC
127202002-01-29 Andrew Cagney <ac131313@redhat.com>
12721
12722 * parse.c (target_map_name_to_register): Delete code wrapped in
12723 #ifdef REGISTER_NAME_ALIAS_HOOK.
12724
2076c72b
MS
127252002-01-28 Michael Snyder <msnyder@redhat.com>
12726
12727 * regcache.c (legacy_read_register_gen): Need to be able to
12728 read pseudo-register as well as real register.
12729 (legacy_write_register_gen): Ditto.
12730
8fcc723b
AC
127312002-01-28 Andrew Cagney <ac131313@redhat.com>
12732
12733 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12734 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12735 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12736 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12737 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12738 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12739 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12740 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12741 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12742 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12743 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12744 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12745 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12746 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12747 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12748 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12749 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12750 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12751 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12752 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12753
afe64c1a
AC
127542002-01-28 Andrew Cagney <ac131313@redhat.com>
12755
12756 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12757 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12758 (initialize_current_architecture): Update target_byte_order using
12759 information from BFD.
aaa38bb5 12760 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
12761 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12762
75bc7ddf
AC
127632002-01-28 Andrew Cagney <ac131313@redhat.com>
12764
12765 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12766 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12767
12768 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12769 #ifdef INVALID_FLOAT.
12770 * infcmd.c (do_registers_info): Ditto.
12771 * values.c (unpack_double): Ditto. Add comment.
12772
12773 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12774 already commented out.
12775
0280a90a
AS
127762002-01-26 Andreas Schwab <schwab@suse.de>
12777
12778 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12779 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12780 registers and add support for PTRACE_GETREGS.
12781
7072a954
AC
127822002-01-24 Andrew Cagney <ac131313@redhat.com>
12783
12784 GDB 5.1.1 released from 5.1 branch.
12785 * NEWS: Add 5.1.1 news.
12786 * README: Sync with 5.1 branch.
12787
86f902e0
FF
127882002-01-23 Fred Fish <fnf@redhat.com>
12789
12790 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12791 stabstring on initial malloc. Reallocing will copy it for us,
12792 if necessary.
12793
8af51c36
EZ
127942002-01-23 Elena Zannoni <ezannoni@redhat.com>
12795
aaa38bb5 12796 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
12797 (HFILES_NO_SRCDIR): Remove hpread.h.
12798 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12799 (hpread.o): Update dependencies.
12800 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12801
12802 * hp-psymtab-read.c: Remove file.
12803 * hp-symtab-read.c: Remove file.
12804 * hpread.h: Remove file.
12805
12806 * hpread.c: Merge all contents of hp-psymtab-read.c,
12807 hp-symtab-read.c and hpread.h into this file, as it was prior to
12808 January 1999.
12809
12810 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 12811 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
12812 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12813 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12814
dc5cfeb6
EZ
128152002-01-23 Elena Zannoni <ezannoni@redhat.com>
12816
12817 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12818 fill_gregset): Call gdbarch_tdep() just once, assign result to
12819 variable and use that, instead of calling the function several
12820 times.
12821
ea87b71b
AO
128222002-01-24 Alexandre Oliva <aoliva@redhat.com>
12823
12824 * configure.host: Accept sparcv9 as alias for sparc64.
12825 * configure.tgt: Likewise.
12826
13fc0c2f
KB
128272002-01-22 Kevin Buettner <kevinb@redhat.com>
12828
12829 * solib-aix5.c (build_so_list_from_mapfile)
12830 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12831 arguments is not reversed.
12832 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12833 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 12834
7bd872fe
EZ
128352002-01-22 Elena Zannoni <ezannoni@redhat.com>
12836
12837 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12838 modified version of obsolete sh_fetch_pseudo_register.
12839 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12840 (sh4_register_read): New function.
12841 (sh_pseudo_register_write): New function. Renamed and modified
12842 version of obsolete sh_store_pseudo_register.
12843 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12844 (sh4_register_write): New function.
12845 (sh_gdbarch_init): Remove setting of gdbarch function
12846 fetch_pseudo_register and store_pseudo_register. Remove setting of
12847 register_convert_to_raw, register_convert_to_virtual,
12848 register_convertible.
12849 (sh_sh4_register_convertible): Delete. No longer needed. All is
12850 taken care by architecture specific functions
12851 register_read/register_write.
12852 (sh_sh4_register_convert_to_virtual): Make static.
12853 (sh_sh4_register_convert_to_raw): Ditto.
12854
069e84fd
AC
128552002-01-22 Andrew Cagney <ac131313@redhat.com>
12856
12857 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12858 (floatformat_is_nan, floatformat_mantissa): Ditto.
12859
12860 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12861 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12862 builtin_type_ieee_double_little,
12863 builtin_type_ieee_double_littlebyte_bigword,
12864 builtin_type_m68881_ext, builtin_type_i960_ext,
12865 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12866 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12867 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12868 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12869
211a4f69
CV
128702002-01-22 Corinna Vinschen <vinschen@redhat.com>
12871
12872 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12873 parameter. Set frameless flag if it exists and depended of
12874 whether the scanned function is frameless or not.
12875 (xstormy16_skip_prologue): If function is frameless, return
12876 result of xstormy16_scan_prologue().
12877 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12878 call.
12879
f81353e4
EZ
128802002-01-21 Elena Zannoni <ezannoni@redhat.com>
12881
12882 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12883 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12884 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12885 sh_sh4_register_byte, sh_sh4_register_raw_size,
12886 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12887 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12888 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12889 sh_store_pseudo_register, sh_do_pseudo_register): Call
12890 gdbarch_tdep() just once, assign result to variable and use that,
12891 instead of calling the function several times.
12892
63c73a17
MK
128932002-01-20 Mark Kettenis <kettenis@gnu.org>
12894
12895 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12896 macros instead of LAST_FPU_CTRL_REGNUM.
12897 (store_register): Likewise.
12898
39ad761d
JB
128992002-01-21 Jim Blandy <jimb@redhat.com>
12900
12901 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12902 is up-to-date before running the program, not just when a program
12903 exits.
12904
3d74b771
FF
129052002-01-21 Fred Fish <fnf@redhat.com>
12906
12907 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12908 when we have found all instructions we are looking for.
12909
966fbf70
RE
129102002-01-21 Richard Earnshaw <rearnsha@arm.com>
12911
12912 * arm-tdep.c (arm_register_name): New function.
12913 (arm_registers_names): Make static.
12914 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12915 (arm_register_name): Declare.
12916 (REGISTER_NAME): Use it.
12917
c3b4394c
RE
129182002-01-21 Richard Earnshaw <rearnsha@arm.com>
12919 Kevin Buettner <kevinb@redhat.com>
12920
12921 Convert arm targets to new FRAME interface.
12922 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12923 (arm_frame_find_save_regs): Delete.
12924 (arm_frame_init_saved_regs): New.
12925 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12926 Allocate extra_info as required. Convert all uses of fsr.regs
12927 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12928 to use extra_info.
12929 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12930 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12931 (check_prologue_cache, save_prologue_cache): Likewise.
12932 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12933 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12934 (FRAME_FIND_SAVED_REGS): Delete.
12935 (arm_frame_find_saved_regs): Delete prototype.
12936 (arm_frame_init_saved_regs): New prototype.
12937 (FRAME_INIT_SAVED_REGS): Define.
12938
61d99182
AC
129392002-01-20 Andrew Cagney <ac131313@redhat.com>
12940
12941 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12942
6aaea291
AC
129432002-01-20 Andrew Cagney <ac131313@redhat.com>
12944
12945 From Jeff Law <law@redhat.com>:
12946 * infttrace.c: Include <sys/pstat.h>.
12947 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12948 exec file if the ttrace equivalent fails.
12949
15f698d2
AC
129502002-01-20 Andrew Cagney <ac131313@redhat.com>
12951
12952 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12953 (closeLogFile): Ditto.
12954
f86ddd7c
MC
129552002-01-20 Michael Chastain <mec@shout.net>
12956
12957 * top.c (print_gdb_version): Bump copyright year to 2002.
12958
904507ce
AC
129592002-01-20 Andrew Cagney <ac131313@redhat.com>
12960
12961 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12962 Zannoni and Eli Zaretskii.
12963
d7f0b9ce
DJ
129642002-01-20 Daniel Jacobowitz <drow@mvista.com>
12965
12966 * buildsym.c: Update copyright years.
12967 * c-typeprint.c: Likewise.
12968 * dwarf2read.c: Likewise.
12969 * f-typeprint.c: Likewise.
12970 * gdbtypes.c: Likewise.
12971 * gdbtypes.h: Likewise.
12972 * hp-symtab-read.c: Likewise.
12973 * hpread.c: Likewise.
12974 * mdebugread.c: Likewise.
12975 * p-typeprint.c: Likewise.
12976
3fd3d7d2
AC
129772002-01-20 Andrew Cagney <ac131313@redhat.com>
12978
12979 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12980 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12981 byte-order selectable.
12982 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12983 * arch-utils.c: Ditto.
12984 (set_endian): Ditto.
12985 (set_endian_from_file): Ditto.
12986 * gdbserver/low-sim.c (create_inferior): Ditto.
12987 * gdbarch.sh: Ditto.
12988 * gdbarch.h: Re-generate.
aaa38bb5
AJ
12989 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12990 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12991 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12992 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12993 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12994 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12995 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
12996 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12997 macro definition.
12998 * config/mips/tm-wince.h: Remove #undef of macro
12999 TARGET_BYTE_ORDER_SELECTABLE.
13000 * config/sh/tm-wince.h: Ditto.
13001
b02dede2
DJ
130022002-01-20 Daniel Jacobowitz <drow@mvista.com>
13003
13004 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13005 member function fields. Add accessor macro
13006 TYPE_FN_FIELD_ARTIFICIAL.
13007 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13008 * c-typeprint.c (c_type_print_base): Skip artificial member
13009 functions.
13010
c3643761
DJ
130112002-01-20 Daniel Jacobowitz <drow@mvista.com>
13012
13013 * f-typeprint.c: Delete unused function f_type_print_args.
13014 * p-typeprint.c: Delete unused function pascal_type_print_args.
13015
8176bb6d
DJ
130162002-01-20 Daniel Jacobowitz <drow@mvista.com>
13017
13018 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13019 comment. Add ``artificial'' to ``union field_location''.
13020
13021 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13022
13023 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13024 * mdebugread.c (parse_symbol): Likewise.
13025 * stabsread.c (define_symbol): Likewise.
13026 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13027 initializing TYPE_FIELD_BITPOS to n (obsolete).
13028 (hpread_doc_function_type): Likewise.
13029 * hpread.c (hpread_function_type): Likewise.
13030
7fd60527
AC
130312002-01-20 Andrew Cagney <ac131313@redhat.com>
13032
13033 * configure.in (host_makefile_frag): Only require a host makefile
13034 fragment when a native build.
13035 * configure: Re-generate.
13036
c2f05ac9
AC
130372002-01-20 Andrew Cagney <ac131313@redhat.com>
13038
13039 * doublest.h (floatformat_from_type): Declare.
13040 * doublest.c (floatformat_from_type): New function.
13041 (convert_typed_floating): Use.
13042
13043 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13044 call to function floatformat_from_type.
13045
13046 * gdbarch.sh (IEEE_FLOAT): Delete.
13047 * gdbarch.h, gdbarch.c: Re-generate.
13048 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13049 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13050 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13051 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13052 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13053 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13054 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13055 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13056 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13057 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13058 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
13059 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13060
13061 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13062 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13063 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13064 * sh-tdep.c (sh_gdbarch_init): Ditto.
13065 * mips-tdep.c (mips_gdbarch_init): Ditto.
13066 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13067 * cris-tdep.c (cris_gdbarch_init): Ditto.
13068
abf22e64
AJ
130692002-01-20 Jiri Smid <smid@suse.cz>
13070
13071 * configure.host, configure.tgt: Support x86-64.
13072 * NEWS: Note new target x86-64.
13073
b7c4cbf8
AJ
13074 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13075 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13076 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13077 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13078 x86-64-linux-nat.o): Fix dependencies.
13079
82600034
AC
130802002-01-19 Andrew Cagney <ac131313@redhat.com>
13081
13082 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13083 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13084 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13085 * config/sparc/xm-sun4os4.h: Delete file.
13086 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 13087
bbe5c628
AC
130882002-01-19 Andrew Cagney <ac131313@redhat.com>
13089
13090 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13091 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13092 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13093 * config/i386/i386lynx.mh (XM_FILE): Delete.
13094 * config/rs6000/xm-rs6000ly.h: Delete file.
13095 * config/sparc/xm-sparclynx.h: Delete file.
13096 * config/m68k/xm-m68klynx.h: Delete file.
13097 * config/i386/xm-i386lynx.h: Delete file.
13098 * config/xm-lynx.h: Delete file.
13099 * config/djgpp/fnchange.lst: Update.
13100
f8453e34
JT
131012002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13102
13103 * alpha-tdep.c (alpha_register_byte): New function.
13104 (alpha_register_raw_size): Ditto.
13105 (alpha_register_virtual_size): Ditto.
13106 (alpha_skip_prologue_internal): Renamed from
13107 alpha_skip_prologue.
13108 (alpha_skip_prologue): New version that calls
13109 alpha_skip_prologue_internal.
13110 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13111 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13112 second argument from alpha_skip_prologue.
13113 (REGISTER_BYTE): Use alpha_register_byte.
13114 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13115 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13116 (FRAMELESS_FUNCTION_INVOCATION): Use
13117 generic_frameless_function_invocation_not.
13118 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13119 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13120
52d9e613
AC
131212002-01-19 Andrew Cagney <ac131313@redhat.com>
13122
13123 * config/mips/xm-news-mips.h: Delete file.
13124 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13125
13126 * config/m88k/xm-m88k.h: Delete file.
13127 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13128 * config/m88k/xm-delta88v4.h: Ditto.
13129 * config/m88k/xm-delta88.h: Ditto.
13130
13131 * config/alpha/xm-fbsd.h: Delete file.
13132 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13133
13134 * config/sparc/xm-sparc.h: Delete file.
13135 * Makefile.in (xm-sun4os4.h): Delete dependency.
13136 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13137 * config/sparc/xm-sun4os4.h: Ditto.
13138 * config/sparc/xm-linux.h: Ditto.
13139
13140 * config/i386/xm-windows.h: Delete file.
13141
2d1b2124
AC
131422002-01-19 Andrew Cagney <ac131313@redhat.com>
13143
13144 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13145 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13146
ee1f65f0
JT
131472002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13148
13149 * alpha-tdep.c (alpha_call_dummy_words): New.
13150 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13151 (CALL_DUMMY_P): Define.
13152 (CALL_DUMMY_WORDS): Define.
13153 (SIZEOF_CALL_DUMMY_WORDS): Define.
13154
98081e55
PB
131552002-01-19 Per Bothner <per@bothner.com>
13156
13157 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13158 isn't NULL, which can happen with some gcj-3.x-produced code.
13159
0d056799
JT
131602002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13161
13162 * alpha-tdep.c (alpha_register_virtual_type): New function.
13163 (alpha_init_frame_pc_first): Ditto.
13164 (alpha_fix_call_dummy): Ditto.
13165 (alpha_store_struct_return): Ditto.
13166 (alpha_extract_struct_value_address): Ditto.
13167 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13168 alpha_register_virtual_type.
13169 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13170 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13171 alpha_extract_struct_value_address.
13172 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13173 (INIT_FRAME_PC): Use init_frame_pc_noop.
13174 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13175
4604bcad
MK
131762002-01-19 Mark Kettenis <kettenis@gnu.org>
13177
13178 * i386gnu-nat.c: Include "i386-tdep.h".
13179 (fetch_fpregs): Simplify code dealing with uninitialized floating
13180 point states such that it doesn't require FP7_REGNUM.
13181
140f9984
JT
131822002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13183
abf22e64
AJ
13184 * alpha-tdep.c (frame_extra_info): New.
13185 (alpha_find_saved_regs): Make static. Use
140f9984
JT
13186 frame->extra_info.
13187 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
13188 (alpha_frame_saved_pc): Use frame->extra_info.
13189 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13190 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
13191 (init_extra_frame_info): Rename to...
13192 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 13193 (alpha_print_extra_frame_info): New function.
140f9984
JT
13194 (alpha_frame_locals_address): Ditto.
13195 (alpha_frame_args_address): Ditto.
abf22e64 13196 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
13197 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13198 alpha_frame_args_address.
abf22e64 13199 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 13200 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
13201 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13202 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
13203 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13204 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13205
d734c450
JT
132062002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13207
13208 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13209 (alpha_cannot_fetch_register): Ditto.
13210 (alpha_cannot_store_register): Ditto.
13211 (alpha_register_convertible): Ditto.
13212 (alpha_use_struct_convention): Ditto.
13213 * config/alpha/tm-alpha.h: Update copyright years.
13214 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13215 (INNER_THAN): Use core_addr_lessthan.
13216 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13217 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13218 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13219 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13220 (FRAME_CHAIN): Remove unnecessary cast.
13221
b4ceaee6
AC
132222002-01-18 Andrew Cagney <ac131313@redhat.com>
13223
13224 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13225 obsolete.
13226
0a65a603
AC
132272002-01-18 Andrew Cagney <ac131313@redhat.com>
13228
13229 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13230 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13231 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13232 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13233 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13234 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13235 * x86-64-linux-nat.c: Ditto.
13236
636a6dfc
JT
132372002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13238
abf22e64 13239 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
13240 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13241 (REGISTER_NAME): Define.
13242
acceddb6
JT
132432002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13244
13245 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13246
ec32e4be
JT
132472002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13248
13249 * alpha-tdep.c: Update copyright years.
13250 (alpha_next_pc): New function.
13251 (alpha_software_single_step): Ditto.
13252 * config/alpha/tm-alpha.h: Add prototype for
13253 alpha_software_single_step.
13254
e771a871
JT
132552002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13256
13257 * alphabsd-nat.c: Update copyright years.
13258 (fill_gregset): Use regcache_collect.
13259 (fill_fpregset): Likewise.
13260 (fetch_inferior_registers): Only fetch integer registers
13261 if requested to do so.
13262 (store_inferior_registers): Only store integer registers
13263 if requested to do so.
13264
7708fa01
AC
132652002-01-17 Andrew Cagney <ac131313@redhat.com>
13266
13267 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13268 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13269 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13270 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13271 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13272 * config/arm/linux.mh (XDEPFILES): Delete.
13273 * config/arm/nbsd.mh (XDEPFILES): Delete.
13274 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13275 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13276 * config/i386/i386m3.mh (XDEPFILES): Delete.
13277 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13278 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13279 * config/i386/fbsd.mh (XDEPFILES): Delete.
13280 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13281 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13282 * config/i386/i386v4.mh (XDEPFILES): Delete.
13283 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13284 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13285 * config/i386/i386aix.mh (XDEPFILES): Delete.
13286 * config/i386/go32.mh (XDEPFILES): Delete.
13287 * config/i386/cygwin.mh (XDEPFILES): Delete.
13288 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13289 * config/i386/i386mach.mh (XDEPFILES): Delete.
13290 * config/i386/i386v32.mh (XDEPFILES): Delete.
13291 * config/i386/linux.mh (XDEPFILES): Delete.
13292 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13293 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13294 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13295 * config/i386/i386sco.mh (XDEPFILES): Delete.
13296 * config/i386/i386v.mh (XDEPFILES): Delete.
13297 * config/i386/nbsd.mh (XDEPFILES): Delete.
13298 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13299 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13300 * config/i386/symmetry.mh (XDEPFILES): Delete.
13301 * config/i386/obsd.mh (XDEPFILES): Delete.
13302 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13303 * config/ia64/linux.mh (XDEPFILES): Delete.
13304 * config/ia64/aix.mh (XDEPFILES): Delete.
13305 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13306 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13307 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13308 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13309 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13310 * config/m68k/linux.mh (XDEPFILES): Delete.
13311 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13312 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13313 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13314 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13315 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13316 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13317 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13318 * config/m88k/delta88.mh (XDEPFILES): Delete.
13319 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13320 * config/m88k/m88k.mh (XDEPFILES): Delete.
13321 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13322 * config/mips/linux.mh (XDEPFILES): Delete.
13323 * config/mips/irix6.mh (XDEPFILES): Delete.
13324 * config/mips/irix5.mh (XDEPFILES): Delete.
13325 * config/mips/irix4.mh (XDEPFILES): Delete.
13326 * config/mips/irix3.mh (XDEPFILES): Delete.
13327 * config/mips/decstation.mh (XDEPFILES): Delete.
13328 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13329 (NATDEPFILES): Move core-aout.o to here.
13330 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13331 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13332 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13333 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13334 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13335 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13336 * config/pa/hpux11.mh (XDEPFILES): Delete.
13337 * config/powerpc/aix.mh (XDEPFILES): Delete.
13338 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13339 * config/powerpc/linux.mh (XDEPFILES): Delete.
13340 * config/romp/rtbsd.mh: Rename XDEPFILES.
13341 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13342 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13343 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13344 * config/s390/s390.mh (XDEPFILES): Delete.
13345 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13346 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13347 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13348 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13349 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13350 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13351 * config/sparc/linux.mh (XDEPFILES): Delete.
13352 * config/vax/vaxult.mh (XDEPFILES): Delete.
13353 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13354 * Makefile.in (DEPFILES): Remove XDEPFILES.
13355
375fc983
AC
133562002-01-17 Andrew Cagney <ac131313@redhat.com>
13357
13358 * utils.c (internal_verror): Fix comments, default is yes not no.
13359 Update queries to match. Default to quit and dump core.
13360
8926118c
AC
133612002-01-17 Andrew Cagney <ac131313@redhat.com>
13362
13363 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13364 copyright.
13365 * defs.h, event-top.c, gdbcmd.h: Ditto.
13366 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13367 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13368 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13369 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13370 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13371 * mi/mi-main.c:Ditto.
13372
13373 * stack.c, symfile.c: Update copyright.
13374
45b7b345
DJ
133752002-01-17 Daniel Jacobowitz <drow@mvista.com>
13376
db728ff7
DJ
13377 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13378 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13379 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13380 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 13381
db728ff7
DJ
133822002-01-17 Daniel Jacobowitz <drow@mvista.com>
13383
13384 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13385 * gdbserver/low-lynx.c (myattach): Likewise.
13386 * gdbserver/low-nbsd.c (myattach): Likewise.
13387 * gdbserver/low-sim.c (myattach): Likewise.
13388 * gdbserver/low-sparc.c (myattach): Likewise.
13389 * gdbserver/low-sun3.c (myattach): Likewise.
13390
13391 * gdbserver/low-linux.c (myattach): New function.
45b7b345 13392
db728ff7 13393 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
13394 (main): Handle "--attach".
13395
8de3c354
AC
133962002-01-16 Andrew Cagney <ac131313@redhat.com>
13397
13398 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13399 maintainer.
13400
b0129042
DJ
134012002-01-15 Daniel Jacobowitz <drow@mvista.com>
13402
13403 * c-typeprint.c (is_type_conversion_operator): Add additional
13404 check for non-conversion operators.
13405
ba8679fb 134062002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
13407
13408 * linux-proc.c: Add "info proc" command, a la procfs.c.
13409 (read_mapping): New function, abstract and re-use code.
13410 (linux_find_memory_regions): Use new func read_mapping.
13411 (linux_info_proc_cmd): New function, implement "info proc".
13412 (_initialize_linux_proc): Add new command "info proc".
13413
e4f9b4d5
MS
134142002-01-15 Michael Snyder <msnyder@redhat.com>
13415
13416 * symfile.c (generic_load): Use bfd_map_over_sections method
13417 instead of manipulating bfd structure members directly.
13418 (add_section_size_callback): New function, bfd sections callback
13419 used by generic_load.
13420 (load_sections_callback): New function, bfd sections callback
13421 used by generic_load.
13422
08cf96df
EZ
134232002-01-15 Elena Zannoni <ezannoni@redhat.com>
13424
abf22e64 13425 [Based on work by Jim Blandy]
08cf96df
EZ
13426 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13427 (builtin_type_vec128): Export.
13428 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13429 types.
13430 (builtin_type_vec128): New builtin type for 128 bit vector
13431 registers.
13432 (build_gdbtypes): Initialize builtin_type_v16qi and
13433 builtin_type_v8hi. Create the vec128 register builtin type
13434 structure.
13435 (build_builtin_type_vec128): New function.
abf22e64 13436 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13437 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13438 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13439 AltiVec register to new builtin type.
13440
d7242108
DJ
134412001-01-15 Daniel Jacobowitz <drow@mvista.com>
13442
13443 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13444 to make_cv_type.
13445
4ee3352d
AC
134462002-01-14 Andrew Cagney <ac131313@redhat.com>
13447
13448 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13449 CLEAN_UP_REGISTER_VALUE.
13450 * regcache.c (supply_register): Update only call.
13451
f015b2e7
AC
134522002-01-14 Andrew Cagney <ac131313@redhat.com>
13453
13454 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13455 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13456 a29k-*-vxworks* targets as obsolete.
13457
356ae49d
MS
134582002-01-14 Michael Snyder <msnyder@redhat.com>
13459
13460 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13461 until we can resolve portability issues.
13462 * gregset.h: Remove references to fpxregs.
13463 * gcore.c (gcore_command): Initialize note_sec to NULL.
13464
ade8f45e
AC
134652002-01-13 Andrew Cagney <ac131313@redhat.com>
13466
13467 * signals.c (target_signal_to_name): Rewrite. Only use
13468 signals[].name when in bounds and non-NULL.
abf22e64 13469
89c49e7a
AC
134702002-01-13 Andrew Cagney <ac131313@redhat.com>
13471
13472 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13473 * signals.c (target_signal_to_name): Verify that SIG is within the
13474 bounds of the signals array.
13475
4daa9f9f
AC
134762002-01-13 Andrew Cagney <ac131313@redhat.com>
13477
13478 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13479
ba4bbdcb
KS
134802002-01-13 Keith Seitz <keiths@redhat.com>
13481
13482 * stack.c (print_frame_info_base): Print the frame's pc
13483 only if when print_frame_info_listing_hook is not defined.
13484
575bbeb6
KS
134852002-01-13 Keith Seitz <keiths@redhat.com>
13486
13487 * varobj.c (varobj_set_value): Make sure that there were no
13488 errors evaluating the object before attempting to set its
13489 value.
13490 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13491 so this offset adjustment is no longer necessary.
13492 (create_child): Don't set the error flag if the child is
13493 a CPLUS_FAKE_CHILD.
13494 (value_of_child): If value_fetch_lazy fails, return NULL
13495 so that callers will be notified that an error occurred.
13496 (c_value_of_variable): Delay check of variable's validity
13497 until later. We actually want all structs and unions to have
13498 the value "{...}".
13499 Do not return "???" for variables which could not be evaluated.
13500 This error condition must be returned to the caller so that it
13501 can get the error condition from gdb.
13502 (cplus_name_of_child): Adjust index for vptr before figuring
13503 out the name of the child.
13504 (cplus_value_of_child): If a child's (real) parent is not valid,
13505 don't even bother trying to give a value for it. Just return
13506 an error. Change all instances in this function.
13507 (cplus_type_of_child): If our parent is one of the "fake"
13508 parents, we need to get at the type of the real parent, and
13509 derive the child's true type using this information.
13510
b76898ab
AC
135112002-01-13 Andrew Cagney <ac131313@redhat.com>
13512
13513 From 2002-01-09 John Marshall <johnm@falch.net>:
13514 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13515 sources.redhat.com, and tweak some related URLs which had
13516 suffered from linkrot.
13517
b6649e88
AC
135182002-01-13 Andrew Cagney <ac131313@redhat.com>
13519
13520 From Jeff law:
13521 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13522 structures passed in registers.
13523
82cc5033
EZ
135242002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13525
13526 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13527 white space which prevented compilation. Reported by DSK
13528 <dsk@student.unsw.edu.au>.
13529
ba5f2f8a
MS
135302002-01-11 Michael Snyder <msnyder@redhat.com>
13531
fbd35540
MS
13532 * symfile.c (build_section_addr_info_from_section_tab):
13533 Use bfd access method instead of manipulating bfd directly.
13534 (syms_from_objfile): Ditto.
13535 (simple_overlay_update_1): Ditto.
13536 (simple_overlay_update): Ditto.
13537 (generic_load): Ditto.
13538 (overlay_unmapped_address): FIXME comment, bfd access methods.
13539 (sections_overlap): FIXME comment, bfd access methods.
13540 (pc_in_mapped_range): FIXME comment, bfd access methods.
13541 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13542 (section_is_mapped): FIXME comment, bfd access methods.
13543 (section_is_overlay): FIXME comment, bfd access methods.
13544
ba5f2f8a
MS
13545 * symfile.c (generic_load): Whitespace and long line cleanups.
13546 Remove duplicate variable, change several local variables to
13547 more appropriate data types.
13548 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13549
17df2af6
AC
135502002-01-12 Andrew Cagney <ac131313@redhat.com>
13551
13552 From Peter Schauer:
13553 * language.c (longest_local_hex_string_custom): Use phex_nz to
13554 convert NUM to a hex string.
13555
ec920329
EZ
135562002-01-12 Elena Zannoni <ezannoni@redhat.com>
13557
13558 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13559 the function.
538a76d6 13560 Update Copyright year.
ec920329 13561
3abd2e01
AC
135622002-01-12 Andrew Cagney <ac131313@redhat.com>
13563
13564 * language.c (longest_raw_hex_string): Delete unused function.
13565
b21b22e0
PS
135662002-01-11 Petr Sorfa <petrs@caldera.com>
13567
13568 * MAINTAINERS (write-after-approval): Add myself.
13569 * dwarf2read.c (read_tag_string_type): Handling of
13570 DW_AT_byte_size.
13571 (read_tag_string_type): FORTRAN fix to prevent propagation of
13572 first string size.
13573 (set_cu_language): Handling of DW_LANG_Fortran95
13574
747fe712
RE
135752002-01-11 Richard Earnshaw <rearnsha@arm.com>
13576
13577 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13578 GETPID(inferior_ptid).
13579 (store_inferior_registers): Likewise.
13580
f1bea926
JM
135812002-01-10 Jason Merrill <jason@redhat.com>
13582
13583 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13584 Fix DW_OP_minus.
13585
ae940673
AC
135862002-01-10 Andrew Cagney <ac131313@redhat.com>
13587
13588 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13589 and bfd/elf32-sh-nbsd.c.
13590
00546b04
MS
135912002-01-10 Michael Snyder <msnyder@redhat.com>
13592
352ed7b4
MS
13593 * NEWS: Mention --pid and corefile/proc-id behavior change.
13594
c18be923
MS
13595 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13596 * gcore.c: Include cli/cli-decode.h instead of command.h.
13597
00546b04
MS
13598 * main.c (captured_main): Add new command line option "--pid".
13599 If the second command line argument (following the symbol-file)
13600 begins with a digit, try to attach to it before trying to open
13601 it as a corefile.
13602 (print_gdb_help): Document the "--pid" argument.
13603
db60ec62
EZ
136042002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13605
13606 * completer.c (command_completer): New function.
13607
13608 * completer.h <command_completer>: Add prototype.
13609
13610 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13611 completer for the "help" command.
13612
39c22d1a
JM
136132002-01-09 Jason Merrill <jason@redhat.com>
13614
13615 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13616
c564377f
MS
136172002-01-09 Michael Snyder <msnyder@redhat.com>
13618
975aec09
MS
13619 * i386-linux-nat.c (fill_fpxregset): Make global.
13620 (store_fpxregset): Ditto.
13621
db4a10fa
MS
13622 * gregset.h (gdb_fpxregset_t): Define.
13623 (supply_fpxregset): Prototype.
13624 (fill_fpxregset): Prototype.
13625
c564377f
MS
13626 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13627
c3d45d70
RE
136282002-01-09 Richard Earnshaw <rearnsha@arm.com>
13629
13630 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13631 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13632 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13633
fcc87af1
AC
136342002-01-09 Andrew Cagney <ac131313@redhat.com>
13635
13636 * MAINTAINERS: Update target maintainer rules so that any
13637 Maintainer can approve a tested patch for a maintenance-only
13638 target.
13639
dd96c05b
RE
136402002-01-09 Richard Earnshaw <rearnsha@arm.com>
13641
d4297db9 13642 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13643
d4297db9 13644 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13645 IN_SIGTRAMP.
13646
145fdc6e
MS
136472002-01-08 Michael Snyder <msnyder@redhat.com>
13648
13649 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13650 real name of the executable, rather than the /proc name.
13651
be4d1333
MS
136522002-01-03 Michael Snyder <msnyder@redhat.com>
13653
13654 Implement a "generate-core-file" command in gdb, save target state.
13655 * gcore.c: New file. Implement new command 'generate-core-file'.
13656 Save a corefile image of the current state of the inferior.
13657 * linux-proc.c: Add linux-specific code for saving corefiles.
13658 * target.h (struct target_ops): Add new target vectors for saving
13659 corefiles; to_find_memory_regions and to_make_corefile_notes.
13660 (target_find_memory_regions): New macro.
13661 (target_make_corefile_notes): New macro.
13662 * target.c (update_current_target): Inherit new target methods.
13663 (dummy_find_memory_regions): New place-holder method.
13664 (dummy_make_corefile_notes): New place-holder method.
13665 (init_dummy_target): Initialize new dummy target vectors.
13666 * exec.c (exec_set_find_memory_regions): New function.
13667 Allow the exec_ops vector for memory regions to be taken over.
13668 (exec_make_note_section): New function, target vector method.
13669 * defs.h (exec_set_find_memory_regions): Export prototype.
13670 * procfs.c (proc_find_memory_regions): New function, corefile method.
13671 (procfs_make_note_section): New function, corefile method.
13672 (init_procfs_ops): Set new target vector pointers.
13673 (find_memory_regions_callback): New function.
13674 (procfs_do_thread_registers): New function.
13675 (procfs_corefile_thread_callback): New function.
13676 * sol-thread.c (sol_find_memory_regions): New function.
13677 (sol_make_note_section): New function.
13678 (init_sol_thread_ops): Initialize new target vectors.
13679 * inftarg.c (inftarg_set_find_memory_regions): New function.
13680 Allow to_find_memory_regions vector to be taken over.
13681 (inftarg_set_make_corefile_notes): New function.
13682 Allow to_make_corefile_notes vector to be taken over.
13683 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13684 interface layer if not target_has_execution (may be a corefile).
13685 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13686 * config/sparc/sun4sol2.mh: Ditto.
13687 * config/alpha/alpha-linux.mh: Ditto.
13688 * config/arm/linux.mh: Ditto.
13689 * config/i386/x86-64linux.mh: Ditto.
13690 * config/ia64/linux.mh: Ditto.
13691 * config/m68k/linux.mh: Ditto.
13692 * config/mips/linux.mh: Ditto.
13693 * config/powerpc/linux.mh: Ditto.
13694 * config/sparc/linux.mh: Ditto.
13695
c6b92abd
MS
136962002-01-07 Michael Snyder <msnyder@redhat.com>
13697
13698 * arm-linux-nat.c: Remove references to regcache.c internal data
13699 (registers[] and register_valid[]).
13700
4b09dc8c
MS
137012002-01-07 Michael Snyder <msnyder@redhat.com>
13702
abf22e64
AJ
13703 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13704 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
13705 symbol file and shlibs.
13706 * Makefile.in: Add rule for linux-proc.o.
13707 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13708 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13709 * config/arm/linux.mh: Ditto.
13710 * config/i386/linux.mh: Ditto.
13711 * config/i386/x86-64linux.mh: Ditto.
13712 * config/ia64/linux.mh: Ditto.
13713 * config/m68k/linux.mh: Ditto.
13714 * config/mips/linux.mh: Ditto.
13715 * config/powerpc/linux.mh: Ditto.
13716 * config/sparc/linux.mh: Ditto.
13717
c25b74ac
PM
137182002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13719
13720 * win32-nat.c: Add i386-tdep.h dependency.
13721
94cd915f
MS
137222002-01-07 Michael Snyder <msnyder@redhat.com>
13723
c7cccb76
MS
13724 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13725 instead of bfd_get_arch_size. Don't bail out just because
13726 there's no exec_bfd.
abf22e64 13727
34c0bd93
MS
13728 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13729 * p-valprint.c (pascal_object_print_value): Ditto.
13730 * somread.c (som_symtab_read): Ditto.
13731 * symfile.c (simple_free_overlay_region_table): Ditto.
13732 * valops.c (value_assign): Ditto.
13733
21c1c920
MS
13734 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13735 use tilde_expand and strerror for opening save-tracepoints file.
13736
5bbd998e
MS
13737 * thread-db.c (thread_db_new_objfile): Indendation fix.
13738
94cd915f
MS
13739 * infptrace.c (GDB_MAX_ALLOCA): New define.
13740 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 13741 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
13742 can be overridden with whatever value is appropriate to the host).
13743 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13744 alloca to allocate potentially large buffer.
13745 * rs6000-nat.c (child_xfer_memory): Ditto.
13746 * symm-nat.c (child_xfer_memory): Ditto.
13747 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13748
494e8a93
JSC
137492002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13750
13751 From Nick Clifton <nickc@redhat.com>
13752 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13753
d0e1d48e
MS
137542002-01-07 Michael Snyder <msnyder@redhat.com>
13755
abf22e64 13756 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
13757 Don't use exec_bfd if it's NULL.
13758
290b2c7a
MK
137592002-01-06 Mark Kettenis <kettenis@gnu.org>
13760
abf22e64 13761 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 13762
aef21287
AC
137632002-01-06 Andrew Cagney <ac131313@redhat.com>
13764
13765 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13766 * gnu-nat.c: Ditto.
13767
30efa627
AC
137682002-01-06 Andrew Cagney <ac131313@redhat.com>
13769
13770 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13771 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13772 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13773 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13774 z8k-coff have not been multi-arched. Update z8k-coff build
13775 status.
13776
9b4ff276
AC
137772002-01-06 Andrew Cagney <ac131313@redhat.com>
13778
13779 * MAINTAINERS: Mark a29k target as obsolete.
13780 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13781 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13782 comments.
13783 * NEWS: Note that a29k targets are obsolete.
13784 * a29k-tdep.c: Mark as obsolete.
13785 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13786 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13787 a29k-*-vxworks* targets as obsolete.
13788 * remote-adapt.c: Obsolete.
13789 * remote-eb.c: Obsolete.
13790 * remote-mm.c: Obsolete.
13791 * remote-udi.c: Obsolete.
13792 * config/a29k/a29k-udi.mt: Obsolete.
13793 * config/a29k/a29k.mt: Obsolete.
13794 * config/a29k/tm-a29k.h: Obsolete.
13795 * config/a29k/tm-vx29k.h: Obsolete.
13796 * config/a29k/vx29k.mt: Obsolete.
13797
a9011d31
AC
137982002-01-05 Andrew Cagney <ac131313@redhat.com>
13799
13800 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13801 with BFD_ENDIAN_BIG.
13802
9299404e
AC
138032002-01-05 Andrew Cagney <ac131313@redhat.com>
13804
13805 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13806 * configure, config.in: Re-generate.
13807 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13808 * defs.h: Do not include <endian.h>.
13809
7e89e357
JT
138102002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13811
13812 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13813 * config.in: Regenerate.
13814 * configure.in: Update copyright years.
13815 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13816 * configure: Regenerate.
13817 * i386bsd-nat.c: Update copyright years.
13818 (fill_gregset): Use regcache_collect.
13819 (fetch_inferior_registers): Only fetch integer registers
13820 if requested to do so. Add support for XMM registers
13821 using PT_GETXMMREGS.
13822 (store_inferior_registers): Only store integer registers
13823 if requested to do so. Add support for XMM registers
13824 using PT_SETXMMREGS.
13825 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13826 (store_inferior_registers): Remove.
13827 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13828 (fetch_elfcore_registers): New function.
13829 (i386nbsd_elfcore_fns): New.
13830 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13831 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13832 i386bsd-nat.o.
13833 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13834 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13835 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13836 * config/i386/tm-nbsd.h: Update copyright years.
13837 (HAVE_SSE_REGS): Define.
13838 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13839 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13840 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13841 (SIGCONTEXT_PC_OFFSET): Remove.
13842 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13843
a752853e
AC
138442002-01-05 Andrew Cagney <ac131313@redhat.com>
13845
13846 * configure.tgt: Remove powerpc-*-macos* target.
13847 * config/m68k/xm-mpw.h: Delete file.
13848 * config/xm-mpw.h: Delete file.
13849 * ser-mac.c: Delete file.
13850 * mpw-make.sed: Delete file.
13851 * mpw-config.in: Delete file.
13852 * mac-xdep.c: Delete file.
13853 * mac-gdb.r: Delete file.
13854 * mac-defs.h: Delete file.
13855 * mac-nat.c: Delete file.
13856 * config/powerpc/macos.mh: Delete file.
13857 * config/powerpc/macos.mt: Delete file.
13858 * config/powerpc/nm-macos.h: Delete file.
13859 * config/powerpc/tm-macos.h: Delete file.
13860 * source.c (openp, open_source_file): Remove obsolete code.
13861 * top.c (gdb_readline): Ditto.
13862 * utils.c (query): Ditto.
13863 * event-top.c (display_gdb_prompt): Ditto.
13864 * Makefile.in (ser-mac.o): Delete obsolete target.
13865 * NEWS: Update.
13866
d7449b42
AC
138672002-01-04 Andrew Cagney <ac131313@redhat.com>
13868
13869 * defs.h (BIG_ENDIAN): Delete macro definition.
13870 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13871 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13872 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13873 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13874 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13875 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13876 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13877 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13878 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13879 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13880 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13881 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13882 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13883 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13884 * gdbarch.c: Re-generate.
13885
356374e8
DJ
138862002-01-04 Daniel Jacobowitz <drow@mvista.com>
13887
13888 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13889 for core files.
13890
a2b8f8f8
JT
138912002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13892
13893 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13894
12466af9
AC
138952002-01-04 Andrew Cagney <ac131313@redhat.com>
13896
13897 * value.h (value_ptr): Delete typedef.
13898
3549ab40
JT
138992002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13900
13901 * i386nbsd-nat.c: Update copyright years.
13902 Include i386-tdep.h.
13903
fedbd091
EZ
139042002-01-04 Elena Zannoni <ezannoni@redhat.com>
13905
13906 * stabsread.c: Update copyright years.
13907
13908 From Debashis Mahata <debashis.mahata@wipro.com>:
13909 (read_struct_fields): Deal with Sun C compiler erroneous stab
13910 output for structs and unions.
fec8b34f 13911 Fix PR gdb/269.
fedbd091 13912
eb43544b
DJ
139132002-01-04 Daniel Jacobowitz <drow@mvista.com>
13914
13915 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13916 prototype.
13917
1514d34e
DJ
139182002-01-04 Daniel Jacobowitz <drow@mvista.com>
13919
13920 * cp-abi.c: Fix whitespace.
13921 (baseclass_offset): New wrapper function.
13922 * cp-abi.h (baseclass_offset): Add prototype.
13923 (struct cp_abi_ops): Add baseclass_offset pointer.
13924
13925 * valops.c (vb_match): Move to...
13926 * gnu-v2-abi.c (vb_match): here.
13927 * valops.c (baseclass_offset): Move to...
13928 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13929
13930 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13931
13932 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13933 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13934 * hpacc-abi.c (init_hpacc_ops): Likewise.
13935
7f8c9282
DJ
139362002-01-04 Daniel Jacobowitz <drow@mvista.com>
13937
13938 * valops.c (find_overload_match): Accept obj as a
13939 reference parameter. Update it before returning.
13940 * value.h (find_overload_match): Update prototype.
13941 * eval.c (evaluate_subexp_standard): Pass object to
13942 find_overload_match by reference.
13943
f23631e4
AC
139442002-01-03 Andrew Cagney <ac131313@redhat.com>
13945
13946 * valarith.c: Replace value_ptr with struct value pointer. Remove
13947 register attribute from value declarations.
13948 * valops.c: Ditto.
13949 * value.h: Ditto.
13950 * scm-lang.c (scm_lookup_name): Ditto.
13951
79e10fab 139522002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 13953
79e10fab
AC
13954 Abstract the functionality of iterating over mapped memory
13955 regions into a general purpose iterator function.
abf22e64 13956 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
13957 iterator for memory sections.
13958 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13959 (solib_mappings_callback): New function, callback for above.
13960 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13961 (info_mappings_callback): New function, callback for above.
13962
13963 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13964
c5ad026a
MK
139652002-01-01 Mark Kettenis <kettenis@gnu.org>
13966
d2a7c97a
MK
13967 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13968 * i386-tdep.c: Include "elf-bfd.h".
13969 (process_note_abi_tag_sections): New function.
13970 (i386_gdbarch_init): Add code to recognize various OS/ABI
13971 combinations.
13972
c5ad026a
MK
13973 * maint.c (_initialize_maint_cmds): Add missing \ in
13974 string-literal.
13975
a1a5b71e 13976For older changes see ChangeLog-2001
c906108c
SS
13977\f
13978Local Variables:
13979mode: change-log
13980left-margin: 8
13981fill-column: 74
13982version-control: never
13983End:
This page took 1.028935 seconds and 4 git commands to generate.