2002-12-05 David Carlton <carlton@math.stanford.edu>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e4051eeb
DC
12002-12-05 David Carlton <carlton@math.stanford.edu>
2
3 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
4 argument.
5 (lookup_symbol_aux): Do the 'field_of_this' check before checking
6 the static block. See PR gdb/804.
7
f61e8913
DC
82002-12-05 David Carlton <carlton@math.stanford.edu>
9
10 * symtab.c (lookup_symbol_aux_block): New function.
11 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
12
1e9f55d0
AC
132002-12-05 Andrew Cagney <ac131313@redhat.com>
14
15 * gdbarch.sh: Dump the predicate function and macro values.
16 (read): Print error on standard error.
17 * gdbarch.c: Regenerate.
18
d1973055
KB
192002-12-04 Kevin Buettner <kevinb@redhat.com>
20
21 * Makefile.in (mips_tdep_h): Define.
22 (mips-tdep.o): Add mips_tdep_h to dependency list.
23 * mips-tdep.h: New file.
24 * mips-tdep.c (mips-tdep.h): Include.
25 (enum mips_abi): Move to mips-tdep.h.
26 (mips_abi): New function.
27
f1253c7b
DC
282002-12-04 David Carlton <carlton@math.stanford.edu>
29
30 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
31
406bc4de
DC
322002-12-04 David Carlton <carlton@math.stanford.edu>
33
34 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
35 function.
36 (lookup_symbol_aux_minsyms): New function.
37
2a3750c5
JB
382002-12-04 J. Brobecker <brobecker@gnat.com>
39
40 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
41
961d8652
JB
422002-12-04 J. Brobecker <brobecker@gnat.com>
43
44 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
45 which is an obsolete macro name.
46
38c52d5a
DJ
472002-12-04 Daniel Jacobowitz <drow@mvista.com>
48
49 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
50 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
51
d8ef46f5
DJ
522002-12-03 H.J. Lu (hjl@gnu.org)
53
54 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
55 (create_breakpoints): Make sure the addr_string field is not
56 NULL.
57
02ae7771
AC
582002-12-03 Andrew Cagney <ac131313@redhat.com>
59
60 * sparc-nat.c (fetch_inferior_registers)
61 (store_inferior_registers): Add comment on problem of LWP vs
62 threads.
63
64 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
65 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
66 (lin_lwp_store_registers): Remove.
67 (init_lin_lwp_ops): Use fetch_inferior_registers
68 and store_inferior_registers directly.
69 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
70 (store_inferior_registers): Likewise.
71 Fix PR gdb/725.
72
7a424e99
AC
732002-12-03 Andrew Cagney <ac131313@redhat.com>
74
75 * frame.h (get_frame_id): Convert to a function.
76 (null_frame_id, frame_id_p): Declare.
77 (frame_id_eq, frame_id_inner): Declare.
78 (frame_id_build): New function.
79 * frame.c (get_frame_id): Update. Use null_frame_id.
80 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
81 frame_id_inner.
82 (null_frame_id, frame_id_p): Define.
83 (frame_id_eq, frame_id_inner): Define.
84 (frame_id_build): New function.
85 * varobj.c (varobj_create): Update.
86 (varobj_update): Update.
87 * valops.c (value_assign): Update.
88 (new_root_variable): Update.
89 * infrun.c (save_inferior_status): Update.
90 * breakpoint.c (watch_command_1): Update.
91
891c7f5f
JB
922002-12-03 J. Brobecker <brobecker@gnat.com>
93
94 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
95 (SNAP2): Likewise.
96
144da3c1
AC
972002-12-03 Andrew Cagney <cagney@redhat.com>
98
46248966
AC
99 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
100 patch.
101
144da3c1
AC
102 * PROBLEMS: Mention PR gdb/725.
103
03c6228e
AS
1042002-12-03 Andreas Schwab <schwab@suse.de>
105
106 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
107
36e53c63
AF
1082002-12-02 Adam Fedor <fedor@gnu.org>
109 Klee Dienes <kdienes@apple.com>
110
111 * objc-lang.c (objc_printstr): Add width arg to match
112 printstr prototype.
113 (compare_selectors): Add 'const' to arg types.
114 (compare_classes): Likewise.
115 (find_imps): Cast msym pointer to avoid compiler warning.
116 (print_object_command): Validate the address before
117 passing it to the print routine.
118 (find_objc_msgcall_submethod): Change function argument to
119 return an int.
120 * objc-lang.h: Add 'extern' to all function declarations.
121 (value_nsstring): Add declaration.
122
504d5c7e
JB
1232002-12-02 J. Brobecker <brobecker@gnat.com>
124
125 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
126 Fixes a build failure on HP/UX.
127
128 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
129 failure on HP/UX.
130 (hpread_has_name): Advance declaration to avoid a compilation warning.
131 (pst_syms_count): Add missing variable type. By change, the compiler
132 was defaulting to int, which seems a good choice. Fixes a compilation
133 warning.
134 (pst_syms_size): Likewise.
135
59623e27
JB
1362002-12-02 J. Brobecker <brobecker@gnat.com>
137
138 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
139 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
140 later to set the proper gdbarch methods depending on the osabi.
141 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
142
a09a320d
JB
1432002-12-02 J. Brobecker <brobecker@gnat.com>
144
145 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
146 * osabi.c (gdb_osabi_name): Add strings images for the two new
147 enum values.
148 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
149
8a81a99e
AC
1502002-12-02 Andrew Cagney <ac131313@redhat.com>
151
152 * MAINTAINERS (Java): Global maintainers are responible for Java.
153 (Past Maintainers): Mention both Anthony Green and Per Bothner as
154 part Java maintainers.
155
7af35dad
JB
1562002-12-02 J. Brobecker <brobecker@gnat.com>
157
158 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
159 Fixes a compilation failure on AiX.
160
f4ede9bc
JB
1612002-12-02 J. Brobecker <brobecker@gnat.com>
162
163 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
164 why aix-thread.o is not listed.
165
ae45cd16
AC
1662002-12-01 Andrew Cagney <ac131313@redhat.com>
167
168 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
169 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
170 * gdbarch.h, gdbarch.c: Re-generate.
171 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
172 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
173 * config/pa/tm-hppa.h, frame.h: Update.
174 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
175 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
176 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
177 * cris-tdep.c, alpha-tdep.c: Update.
178 * frame.c (set_unwind_by_pc, create_new_frame): Use either
179 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
180 (get_prev_frame): Ditto.
181
020cc13c
AC
1822002-11-30 Andrew Cagney <cagney@redhat.com>
183
184 * exec.c (xfer_memory): Replace boolean with int.
185 * p-exp.y: Use 0 instead of false.
186 * corelow.c (gdb_check_format): Change return type to int from
187 boolean.
188 * utils.c: Don't include <curses.h> or <term.h> first.
189
1d9b2aa8
SC
1902002-11-29 Stephane Carrez <stcarrez@nerim.fr>
191
192 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
193 (m68hc11_register_byte): Remove.
194 (m68hc11_gdbarch_init): Don't set the above.
195
a193e397
AC
1962002-11-29 Andrew Cagney <cagney@redhat.com>
197
198 * remote-mips.c (mips_initialize): Force a selected frame rebuild
199 by calling get_selected_frame.
200 * ocd.c (ocd_start_remote): Use get_selected frame instead of
201 set_current_frame, create_new_frame, select_frame and
202 get_current_frame.
203 * remote-e7000.c (e7000_start_remote): Ditto.
204 * remote-mips.c (common_open): Ditto
205 * remote-rdp.c (remote_rdp_open): Ditto.
206
b5fc49aa
AS
2072002-11-29 Andreas Schwab <schwab@suse.de>
208
209 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
210 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
211 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
212 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
213 read_memory_unsigned_integer instead of read_memory_integer when
214 dealing with addresses and instruction opcodes.
215 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
216 (m68k_linux_frame_saved_pc): Likewise.
217
6e7f8b9c
AC
2182002-11-29 Andrew Cagney <ac131313@redhat.com>
219
220 * stack.c (selected_frame, select_frame): Move from here ...
221 * frame.c (selected_frame, select_frame): ... to here. Include
222 "language.h".
223 * Makefile.in (frame.o): Update dependencies.
224 * frame.c (get_selected_frame): New function.
225 * frame.h (get_selected_frame): Declare.
226 (deprecated_selected_frame): Rename selected_frame.
227 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
228 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
229 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
230 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
231 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
232 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
233 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
234 * z8k-tdep.c, cli/cli-cmds.c: Update.
235
805e2818
AC
2362002-11-29 Andrew Cagney <ac131313@redhat.com>
237
238 * frame.h (get_selected_block): Add comments.
239
1058bca7
AC
2402002-11-28 Andrew Cagney <ac131313@redhat.com>
241
242 * frame.c (pc_notcurrent): New function.
243 (find_frame_sal): New function.
244 * frame.h (find_frame_sal): Declare.
245 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
246 * stack.c (print_frame_info_base): Use find_frame_sal instead of
247 find_pc_line.
1058bca7
AC
248 (frame_info): Ditto.
249 * ada-lang.c (find_printable_frame): Ditto.
250
d92419e5
JB
2512002-11-28 J. Brobecker <brobecker@gnat.com>
252
253 * configure.in: Check that the pthdebug library is recent enough
254 before enabling thread support on native AiX.
255 * configure: Regenerate.
256
257 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
258 from the list of object files as it is now appended by configure
259 if thread support is enabled.
260 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
261 if thread support is enabled.
262
8c69fc49
AC
2632002-11-28 Andrew Cagney <cagney@redhat.com>
264
265 * stack.c (get_selected_block): In-line get_current_block.
266 * frame.h (get_current_block): Delete declaration.
267 * blockframe.c (get_current_block): Delete function.
268
07555a72
AC
2692002-11-28 Andrew Cagney <ac131313@redhat.com>
270
271 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
272 USE_GENERIC_DUMMY_FRAMES.
273 * gdbarch.h, gdbarch.c: Regenerate.
274 * valops.c, frame.c: Update.
275 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
276 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
277 * config/pa/tm-hppa.h, blockframe.c: Update.
278 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
279 * m68k-tdep.c, alpha-tdep.c: Ditto.
280
281 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
282 * mips-tdep.c: Ditto.
283
b99fa2d2
AC
2842002-11-27 Andrew Cagney <ac131313@redhat.com>
285
286 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
287 (USE_GENERIC_DUMMY_FRAMES): Default to true.
288 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
289 * gdbarch.c, gdbarch.h: Re-generate.
290 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
291 (CALL_DUMMY_LOCATION): Delete macro definition.
292 (PC_IN_CALL_DUMMY): Delete macro definitions.
293
294 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
295 default is already generic_pc_in_call_dummy.
296 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
297 * v850-tdep.c (v850_gdbarch_init): Ditto.
298 * sh-tdep.c (sh_gdbarch_init): Ditto.
299 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
300 * mips-tdep.c (mips_gdbarch_init): Ditto.
301 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
302 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
303 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
304 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
305 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
306 * avr-tdep.c (avr_gdbarch_init): Ditto.
307
308 * arm-tdep.c (arm_gdbarch_init): Do not set
309 use_generic_dummy_frames, default is already 1.
310 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
311 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
312 * v850-tdep.c (v850_gdbarch_init): Ditto.
313 * sh-tdep.c (sh_gdbarch_init): Ditto.
314 * s390-tdep.c (s390_gdbarch_init): Ditto.
315 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
316 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
317 * mips-tdep.c (mips_gdbarch_init): Ditto.
318 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
319 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
320 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
321 * i386-tdep.c (i386_gdbarch_init): Ditto.
322 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
323 * frv-tdep.c (frv_gdbarch_init): Ditto.
324 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
325 * cris-tdep.c (cris_gdbarch_init): Ditto.
326 * avr-tdep.c (avr_gdbarch_init): Ditto.
327
328 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
329 call_dummy_location, default is already AT_ENTRY_POINT.
330 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
331 * v850-tdep.c (v850_gdbarch_init): Ditto.
332 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
333 * sh-tdep.c (sh_gdbarch_init): Ditto.
334 * s390-tdep.c (s390_gdbarch_init): Ditto.
335 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
336 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
337 * mips-tdep.c (mips_gdbarch_init): Ditto.
338 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
339 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
340 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
341 * i386-tdep.c (i386_gdbarch_init): Ditto.
342 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
343 * frv-tdep.c (frv_gdbarch_init): Ditto.
344 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
345 * cris-tdep.c (cris_gdbarch_init): Ditto.
346 * avr-tdep.c (avr_gdbarch_init): Ditto.
347 * arm-tdep.c (arm_gdbarch_init): Ditto.
348 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
349
abc0af47
AC
3502002-11-28 Andrew Cagney <cagney@redhat.com>
351
352 * frame.h: Update comments on set_current_frame, create_new_frame,
353 flush_cached_frames, reinit_frame_cache, select_frame and
354 selected_frame.
355
ed5cedc5
AC
3562002-11-27 Andrew Cagney <cagney@redhat.com>
357
358 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
359 deprecated pc_in_call_dummy function.
360 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
361 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
362 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
363 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
364 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
365
b2a1bd4f
MH
3662002-11-26 Martin M. Hunt <hunt@redhat.com>
367
368 * Makefile.in: Remove Tix dependencies.
369 * acinclude.m4: Ditto.
370 * aclocal.m4: Ditto.
371 * configure.in: Ditto.
372 * configure: Regenerated.
373
f09cffaa
AC
3742002-11-26 Andrew Cagney <ac131313@redhat.com>
375
376 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
377 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
378 * gdbarch.c: Re-generate.
379
e92b0cc9
AC
3802002-11-26 Andrew Cagney <ac131313@redhat.com>
381
382 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
383 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
384 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
385 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
386 pc_in_call_dummy_at_entry_point.
387 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
388 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
389 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
390 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
391 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
392 pc_in_call_dummy_on_stack.
393 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
394 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
395 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
396 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
397 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
398
b4b88177
AC
3992002-11-26 Andrew Cagney <ac131313@redhat.com>
400
401 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
402 pc_in_call_dummy_before_text_end
403 (deprecated_pc_in_call_dummy_after_text_end): Rename
404 pc_in_call_dummy_after_text_end.
405 (deprecated_pc_in_call_dummy_on_stack): Rename
406 pc_in_call_dummy_on_stack.
407 (deprecated_pc_in_call_dummy_at_entry_point): Rename
408 pc_in_call_dummy_at_entry_point.
409 * m68k-tdep.c (m68k_gdbarch_init): Update.
410 * s390-tdep.c (s390_gdbarch_init): Update.
411 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
412 * vax-tdep.c (vax_gdbarch_init): Update.
413 * sparc-tdep.c (sparc_gdbarch_init): Update.
414 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
415 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
416 * i386-tdep.c (i386_gdbarch_init): Update.
417 * frv-tdep.c (frv_gdbarch_init): Update.
418 * cris-tdep.c (cris_gdbarch_init): Update.
419 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
420 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
421 (deprecated_pc_in_call_dummy_after_text_end)
422 (deprecated_pc_in_call_dummy_on_stack)
423 (deprecated_pc_in_call_dummy_at_entry_point): Update.
424 * alpha-tdep.c (alpha_gdbarch_init): Update.
425
eb784848
DJ
4262002-11-25 Daniel Jacobowitz <drow@mvista.com>
427
428 * acconfig.h (HAVE_PREAD64): Add.
429 * configure.in: Check for pread64.
430 * config.in: Regenerated.
431 * configure: Regenerated.
432 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
433 * linux-proc.c (linux_proc_xfer_memory): New function.
434 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
435
933c6fe4
DC
4362002-11-25 David Carlton <carlton@math.stanford.edu>
437
438 * dwarf2read.c (scan_partial_symbols): Descend into namespace
439 pdi's with no name.
440
158a8022
AC
4412002-11-25 Andrew Cagney <ac131313@redhat.com>
442
443 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
444 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
445
481d0f41
JB
4462002-11-25 Jim Blandy <jimb@redhat.com>
447
e8289572
JB
448 * symfile.c (init_objfile_sect_indices): New function.
449 (default_symfile_offsets): Move the section-index-initializing
450 stuff into init_objfile_sect_indices, and call that.
451
b29c9944
JB
452 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
453 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
454
13de58df
JB
455 * symfile.c (syms_from_objfile): Adjust indentation.
456
481d0f41
JB
457 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
458 || info_verbose isn't true.
459
7d6a26a7
AC
4602002-11-24 Andrew Cagney <ac131313@redhat.com>
461
462 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
463 default to get_frame_base.
464 * gdbarch.h, gdbarch.c: Regenerate.
465 * arch-utils.c (default_frame_address): Delete function.
466 * arch-utils.h (default_frame_address): Delete declaration
467
6abe1021
PM
4682002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
469
470 * varobj.c (find_frame_addr_in_frame_chain):
471 Use get_frame_base instead of FRAME_FP,
472 obvious fix.
473
c193f6ac
AC
4742002-11-19 Andrew Cagney <ac131313@redhat.com>
475
476 * frame.h (FRAME_FP): Delete macro.
477 (get_frame_base): New function declaration.
478 * frame.c (get_frame_base): New function.
479 (get_frame_id): Use ->frame.
480 (frame_find_by_id): Rewrite to use get_frame_id.
481 * blockframe.c: Use get_frame_base instead of FRAME_FP.
482 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
483 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
484 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
485 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
486 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
487 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
488
e5d2af14
AC
4892002-11-24 Andrew Cagney <ac131313@redhat.com>
490
491 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
492
931d12c6
AC
4932002-11-24 Andrew Cagney <ac131313@redhat.com>
494
495 * frame.c (set_unwind_by_pc): Revert change below, use
496 PC_IN_CALL_DUMMY.
497 (get_prev_frame): Ditto.
498
5e0f933e
AC
4992002-11-24 Andrew Cagney <ac131313@redhat.com>
500
501 * dummy-frame.c (pc_in_dummy_frame): New function.
502 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
503 (find_dummy_frame): Update comment.
504 (generic_pop_current_frame): Use get_frame_type.
505 * dummy-frame.h (pc_in_dummy_frame): Declare.
506 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
507 (create_new_frame): Use pc_in_dummy_frame.
508 (get_prev_frame): Use pc_in_dummy_frame.
509 (frame_saved_regs_register_unwind): Use get_prev_frame.
510 (deprecated_generic_get_saved_register): Use get_prev_frame.
511
7d8547c9
AC
5122002-11-23 Andrew Cagney <ac131313@redhat.com>
513
514 * blockframe.c (find_frame_addr_in_frame_chain): Move function
515 from here ...
516 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
517 (varobj_create): Note that frame ID should be used.
518 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
519
0225421b
AC
5202002-11-23 Andrew Cagney <ac131313@redhat.com>
521
522 * breakpoint.c: Include "gdb_assert.h".
523 (deprecated_frame_in_dummy): Assert that generic dummy frames are
524 not being used.
525 * Makefile.in (breakpoint.o): Update dependencies.
526 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
527 deprecated_frame_in_dummy.
528 * stack.c (print_frame_info_base): Ditto.
529 (frame_info): Ditto.
530 (print_frame_info_base): Ditto. Delete dead code.
531
32eeb91a
AS
5322002-11-23 Andreas Schwab <schwab@suse.de>
533
534 * Makefile.in (m68k_tdep_h): Define.
535 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
536 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
537 * m68k-tdep.c: Move register number enum ...
538 * m68k-tdep.h: ... to this new file and rename the constants from
539 E_* to M68K_*. All uses changed.
540 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
541 * abug-rom.c: Include "m68k-tdep.h". Use
542 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
543 * cpu32bug-rom.c: Likewise.
544 * dbug-rom.c: Likewise.
545 * m68k-tdep.c: Likewise.
546 * m68klinux-nat.c: Likewise.
547 * remote-est.c: Likewise.
548 * rom68k-rom.c: Likewise.
549 * config/m68k/tm-linux.h: Likewise.
550
9648bac8
AC
5512002-11-23 Andrew Cagney <ac131313@redhat.com>
552
553 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
554 dummy frame initialization code.
555 * mips-tdep.c (mips_gdbarch_init): Ditto.
556
91a175b3
CF
5572002-11-22 Christopher Faylor <cgf@redhat.com>
558
559 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
560 attach will hang.
561
f4ded5b1
AC
5622002-11-22 Andrew Cagney <ac131313@redhat.com>
563
564 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
565 to default_frame_address.
566 * gdbarch.h, gdbarch.c: Re-generate.
567
568 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
569 or frame_locals_address to default_frame_address.
570 * m68k-tdep.c (m68k_gdbarch_init): Update.
571 * i386-tdep.c (i386_gdbarch_init): Update.
572 * frv-tdep.c (frv_gdbarch_init): Update.
573 * sh-tdep.c (sh_gdbarch_init): Update.
574 * v850-tdep.c (v850_gdbarch_init): Update.
575 * sparc-tdep.c (sparc_gdbarch_init): Update.
576 * mips-tdep.c (mips_gdbarch_init): Update.
577 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
578 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
579 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
580
581 * cris-tdep.c (cris_frame_args_address): Delete function.
582 (cris_frame_locals_address): Delete function.
583 (cris_gdbarch_init): Do not set frame_args_address or
584 frame_locals_address.
585
f7c1e0f3
MS
5862002-11-22 Michael Snyder <msnyder@redhat.com>
587
588 * thread-db.c (thread_db_load): Tell the user what's going on
589 if dlopen fails on libthread_db.
590
03dac896
AS
5912002-11-23 Andreas Schwab <schwab@suse.de>
592
593 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
594 invariant return values.
595
7a67d0fe
AS
5962002-11-22 Andreas Schwab <schwab@suse.de>
597
598 * valops.c (value_slice): Move declaration of `offset' to avoid
599 warning.
600
5633f842
CF
6012002-11-22 Christopher Faylor <cgf@redhat.com>
602
603 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
604 (struct so_stuff): Add end_addr field.
605 (register_loaded_dll): Calculate and store end address of loaded dll.
606 (solib_address): New function.
607 (child_solib_loaded_library_pathname): Pass carefully constructed
608 section info to safe_symbol_file_add rather than ignoring it.
609 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
610 DLL is loaded.
611 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
612 (child_create_inferior): Fix a compiler warning.
613 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
614 (solib_address): Declare new function.
615
d85fe7f7
AS
6162002-11-22 Andreas Schwab <schwab@suse.de>
617
618 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
619 and FPS registers.
620
8308e54c
DJ
6212002-11-21 Daniel Jacobowitz <drow@mvista.com>
622
623 * maint.c (_initialize_maint_cmds): Fix typo. From
624 Francesco Potorti` <pot@gnu.org>.
625
8997bd5e
AC
6262002-11-21 Andrew Cagney <cagney@redhat.com>
627
628 * mips-tdep.c (mips_dump_tdep): Delete references to
629 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
630 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
631 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
632 * printcmd.c (build_address_symbolic): Delete calls to
633 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
634 (address_info): Ditto.
635 Fix PR gdb/773.
636
4e87b832
KD
6372002-11-19 Klee Dienes <kdienes@apple.com>
638 Adam Fedor <fedor@gnu.org>
639
640 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
641 the ability to explicitly specify the quote characters and word
642 break characters; if NULL is specified for either, use the old
643 behavior of using the characters used by the completer.
644 (skip_chars): New function. Convenience wrapper around
645 skip_quoted_chars to provide the original skip_chars behavior.
646 * completer.h (skip_quoted_chars): Add prototype.
647
9ba8d803
AC
6482002-11-19 Andrew Cagney <ac131313@redhat.com>
649
650 Problems reported by Paul Eggert.
651 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
652
0a595803
AS
6532002-11-19 Andreas Schwab <schwab@suse.de>
654
655 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
656 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
657 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
658 (m68k_linux_frame_saved_pc): Move to ...
659 * m68klinux-tdep.c: ... here. New file.
660 * Makefile.in (m68klinux-tdep.o): Add dependencies.
661 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
662
e8afa4d7
AF
6632002-11-19 Adam Fedor <fedor@gnu.org>
664
665 * objc-exp.y: Revert to old skip_quoted usage.
666
a76c9d72
AF
6672002-11-19 Adam Fedor <fedor@gnu.org>
668
669 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
670 (objc_lang_h): Define.
671 (YYFILES): Add objc-exp.tab.c.
672 (local-maintainer-clean): Remove objc-exp.tab.c.
673 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
674
fd0e9d45
PM
6752002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
676
677 * p-exp.y (typecast rule): Add automatic dereference of
678 pascal classes if needed.
679 (THIS): Set current_type.
680 Automatically dereference pascal classes.
681 (typebase rule): Add ^typebase recognition.
682
82eeeb94
AF
6832002-11-18 Adam Fedor <fedor@gnu.org>
684
685 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
686 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
687 (op_name): Handle OP_OBJC_SELF.
688 * Makefile.in (expprint.o): Add additional depends.
689
646df18d
AF
6902002-11-18 Adam Fedor <fedor@gnu.org>
691
692 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
693 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
694 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
695 * objc-exp.y: Likewise.
696
379b85df
AF
6972002-11-18 Adam Fedor <fedor@gnu.org>
698
699 * gdb/parser-defs.h: (struct objc_class_str): New structure
700 for parsing ObjC classes.
701
85cf597a
AC
7022002-11-18 Andrew Cagney <ac131313@redhat.com>
703
704 * stack.c (frame_relative_level): Copy function from here ...
705 * frame.c (frame_relative_level): ...to here.
706
5a203e44
AC
7072002-11-18 Andrew Cagney <ac131313@redhat.com>
708
709 * frame.h (enum frame_type): Define.
710 (get_frame_type): Declare.
711 (struct frame_info): Add field `type'. Delete field
712 signal_handler_caller.
713 (deprecated_set_frame_signal_handler_caller): Declare.
714 * frame.c (get_frame_type): New function.
715 (deprecated_set_frame_type): New function.
716 (create_new_frame): Set the frame's type.
717 (get_prev_frame): Similar.
718 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
719 * s390-tdep.c: Ditto.
720 * m68klinux-nat.c: Ditto.
721 * ns32k-tdep.c: Ditto.
722 * x86-64-linux-tdep.c: Ditto.
723 * vax-tdep.c: Ditto.
724 * rs6000-tdep.c: Ditto.
725 * ppc-linux-tdep.c: Ditto.
726 * i386-interix-tdep.c: Ditto.
727 * mips-tdep.c: Ditto.
728 * m68k-tdep.c: Ditto.
729 * hppa-tdep.c: Ditto.
730 * ia64-tdep.c: Ditto.
731 * cris-tdep.c: Ditto.
732 * arm-tdep.c: Ditto.
733 * alpha-tdep.c: Ditto.
734 * i386-tdep.c: Ditto.
735 * stack.c: Ditto.
736 * ada-lang.c: Ditto.
737 * blockframe.c: Update.
738 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
739 deprecated_set_frame_type instead of signal_handler_caller.
740 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
741 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
742 * breakpoint.h: Delete FIXME suggesting get_frame_type.
743
bf4ae8b2
KD
7442002-11-18 Klee Dienes <kdienes@apple.com>
745
746 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
747
a672ef13
KD
7482002-11-18 Klee Dienes <kdienes@apple.com>
749
750 * buildsym.c (pop_context): Add comment.
751
0c5e171a
KD
7522002-11-18 Klee Dienes <kdienes@apple.com>
753
754 * buildsym.h (pop_context): Convert to function, defined in
755 buildsym.c.
756 * buildsym.c: Include gdb_assert.h.
757 (pop_context): Implement as C function. Add check for stack
758 underflow.
759 * dbxread.c (process_one_symbol): Complain and stop processing
760 that symbol if we are already at the top of the context stack for
761 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
762 when processing N_RBRAC.
763
8a1f4c4c
DJ
7642002-11-16 Daniel Jacobowitz <drow@mvista.com>
765
766 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
767 define.
768 (struct target_waitstatus): Add opaque definition.
769 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
770 * exec.c (init_exec_ops): Likewise.
771 * fork-child.c (clone_and_follow_inferior): Remove.
772 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
773 * inferior.h (clone_and_follow_inferior): Remove prototype.
774 * infrun.c (follow_fork_mode_both): Remove.
775 (follow_fork_mode_kind_names): Remove commented out "both".
776 (follow_inferior_fork): Remove follow_fork_mode_both support.
777 * inftarg.c (child_clone_and_follow_inferior): Remove.
778 (child_post_follow_inferior_by_clone): Remove.
779 (init_child_ops): Don't set to_clone_and_follow_inferior
780 or to_post_follow_inferior_by_clone.
781 * target.c (default_clone_and_follow_inferior): Remove.
782 (cleanup_target): Don't set to_clone_and_follow_inferior
783 or to_post_follow_inferior_by_clone.
784 (find_default_clone_and_follow_inferior): Remove.
785 (init_dummy_target): Don't set to_clone_and_follow_inferior.
786 (debug_to_clone_and_follow_inferior): Remove.
787 (debug_to_post_follow_inferior_by_clone): Remove.
788 (setup_target_debug): Don't set to_clone_and_follow_inferior
789 or to_post_follow_inferior_by_clone.
790 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
791 and to_post_follow_inferior_by_clone.
792 (child_clone_and_follow_inferior): Remove prototype.
793 (child_post_follow_inferior_by_clone): Remove prototype.
794 (target_clone_and_follow_inferior): Remove macro.
795 (target_post_follow_inferior_by_clone): Remove macro.
796 (find_default_clone_and_follow_inferior): Remove prototype.
797
47932f85
DJ
7982002-11-16 Daniel Jacobowitz <drow@mvista.com>
799
800 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
801 inferior_has_vforked, and inferior_has_execd instead of
802 target_has_forked, target_has_vforked, and target_has_execd.
803 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
804 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
805 (CHILD_WAIT): Define.
806 (child_wait): Add prototype.
807 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
808 Add prototype.
809 (hpux_has_vforked): Likewise, from child_has_vforked.
810 (hpux_has_execd): Likewise, from child_has_execd.
811 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
812 (not_same_real_pid, child_wait): New, copied from inftarg.c.
813 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
814 and hpux_has_syscall_event instead of the target hooks.
815 * infrun.c (inferior_has_forked, inferior_has_vforked)
816 (inferior_has_execd): New functions.
817 * inftarg.c (not_same_real_pid): Remove.
818 (child_wait): Remove references to not_same_real_pid,
819 target_has_forked, target_has_vforked, target_has_execd,
820 and target_has_syscall_event.
821 (child_has_forked, child_has_vforked, child_has_execd)
822 (child_has_syscall_event): Remove.
823 (init_child_ops): Remove references to child_has_forked,
824 child_has_vforked, child_has_execd, and child_has_syscall_event.
825 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
826 (hpux_has_vforked): Likewise, from child_has_vforked.
827 (hpux_has_execd): Likewise, from child_has_execd.
828 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
829 * target.c (cleanup_target): Remove references to
830 to_has_forked, to_has_vforked, to_has_execd, and
831 to_has_syscall_event.
832 (update_current_target): Likewise.
833 (setup_target_debug): Likewise.
834 (debug_to_has_forked): Remove.
835 (debug_to_has_vforked): Remove.
836 (debug_to_has_execd): Remove.
837 (debug_to_has_syscall_event): Remove.
838 * target.h (struct target_ops): Remove to_has_forked.
839 to_has_vforked, to_has_execd, and to_has_syscall_event.
840 (child_has_forked, child_has_vforked, child_has_execd)
841 (child_has_syscall_event): Remove prototypes.
842 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
843 prototypes.
844 (target_has_forked, target_has_vforked, target_has_execd)
845 (target_has_syscall_event): Remove macros.
846
4088142a
DJ
8472002-11-16 Daniel Jacobowitz <drow@mvista.com>
848
849 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
850 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
851 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
852 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
853 * target.c (cleanup_target): Remove reference to
854 to_can_follow_vfork_prior_to_exec.
855 (update_current_target): Likewise.
856 (debug_to_can_follow_vfork_prior_to_exec): Remove.
857 (setup_target_debug): Remove reference to
858 to_can_follow_vfork_prior_to_exec.
859 * target.h (struct target_ops): Remove
860 to_can_follow_vfork_prior_to_exec.
861 (child_can_follow_vfork_prior_to_exec): Remove prototype.
862 (target_can_follow_vfork_prior_to_exec): Remove definition.
863 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
864 define.
865 * infrun.c (follow_vfork_when_exec): Remove.
866 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
867 (follow_exec): Likewise.
868 (handle_inferior_event): Likewise.
869 (keep_going): Likewise.
870
18cde8d5
AC
8712002-11-15 Andrew Cagney <cagney@redhat.com>
872
873 * frame.c (generic_unwind_get_saved_register): Make static.
874 * frame.h (generic_unwind_get_saved_register): Delete declaration.
875 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
876 defaults to generic_unwind_get_saved_register.
877 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
878 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
879 * frv-tdep.c (frv_gdbarch_init): Ditto.
880 * i386-tdep.c (i386_gdbarch_init): Ditto.
881 * s390-tdep.c (s390_gdbarch_init): Ditto.
882 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
883 * v850-tdep.c (v850_gdbarch_init): Ditto.
884 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
885 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
886 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
887
a6b063af
AC
8882002-11-15 Andrew Cagney <cagney@redhat.com>
889
890 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
891 i386-tdep.c.
892
f407986f
AC
8932002-11-15 Andrew Cagney <cagney@redhat.com>
894
895 * frame.h (sigtramp_saved_pc): Delete declaration.
896 * blockframe.c (sigtramp_saved_pc): Delete function.
897 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
898 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
899 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
900 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
901
f18c5a73
AC
9022002-11-15 Andrew Cagney <ac131313@redhat.com>
903
904 * frame.c (frame_pc_unwind): New function.
905 (frame_saved_regs_pc_unwind): New function.
906 (frame_register_unwind): Pass unwind_cache instead of
907 register_unwind_cache.
908 (set_unwind_by_pc): Add unwind_pc parameter, set.
909 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
910 (get_prev_frame): Ditto.
911 * frame.h (frame_pc_unwind_ftype): Declare.
912 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
913 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
914 (frame_pc_unwind): Declare.
915 * dummy-frame.c (dummy_frame_pc_unwind): New function.
916 (struct dummy_frame): Add comment mentioning that values are for
917 previous frame.
918 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
919 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
920 (generic_file_frame_chain_valid): Ditto.
921 * stack.c (frame_info): Ditto.
922
d9285969 9232002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
924
925 * linespec.c (locate_first_half): New function.
926 (decode_line_1): Move code into locate_first_half.
927
d741b867
AC
9282002-11-15 Andrew Cagney <ac131313@redhat.com>
929
930 * complaints.h: Add comment explaining how to eliminate a
931 deprecated_complain call.
24382c5c 932 * complaints.h: Fix spelling errors.
d741b867 933
82d03c99
DC
9342002-11-15 David Carlton <carlton@math.stanford.edu>
935
936 * printcmd.c: Remove #include "disasm.h".
937
c97eb5d9
AC
9382002-11-14 Andrew Cagney <ac131313@redhat.com>
939
940 * frame.h: Move the most relevant interface functions to the start
941 of the file.
942
524d7c18
AC
9432002-11-14 Andrew Cagney <ac131313@redhat.com>
944
945 * regcache.h (deprecated_registers): Rename registers.
946 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
947 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
948 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
949 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
950 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
951 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
952 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
953 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
954 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
955 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
956 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
957 * v850ice.c: Update.
958
6411e720
AC
959Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
960
961 * utils.c (gdb_realpath): Add comment mentioning realpath with a
962 NULL buffer.
963
73937e03
AC
9642002-11-13 Andrew Cagney <cagney@redhat.com>
965
966 * regcache.h (deprecated_read_register_bytes): Rename
967 read_register_bytes.
968 (deprecated_write_register_bytes): Rename write_register_bytes.
969 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
970 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
971 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
972 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
973 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
974 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
975 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
976 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
977 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
978 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
979 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
980 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
981 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
982 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
983
fb0cd46e
JB
9842002-11-13 Jim Blandy <jimb@redhat.com>
985
986 * findvar.c (read_var_value): Doc fix.
987
2d28509a
AC
9882002-11-13 Andrew Cagney <cagney@redhat.com>
989
990 * regcache.c (struct regcache): Replace passthough_p with
991 readonly_p.
992 (regcache_xmalloc): Initialize readonly_p.
993 (build_regcache): Initialize readonly_p.
994 (regcache_save): New function.
995 (regcache_restore): New function.
996 (regcache_cpy): Re-implement using regcache_save and
997 regcache_restore.
998 (regcache_raw_read): Update.
999 (regcache_cooked_read): When a read-only cache, checked for cached
1000 pseudo register values.
1001 (regcache_raw_write): Assert that the cache is not read-only.
1002 Remove code handling a non-passthrough cache.
1003 * regcache.h (regcache_save): Declare.
1004 (regcache_restore): Declare.
1005
067df2e5
AC
10062002-11-13 Andrew Cagney <cagney@redhat.com>
1007
1008 * regcache.c (struct regcache_descr): Add fields
1009 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1010 (init_legacy_regcache_descr): Compute the size of a cooked
1011 register cache and then assign that to sizeof_raw_registers. Set
1012 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1013 (init_legacy_regcache_descr): Ditto.
1014
51b1fe4e
AC
10152002-11-13 Andrew Cagney <cagney@redhat.com>
1016
1017 * regcache.c (register_buffer): Move to near start of file, update
1018 description.
1019 (regcache_raw_read): Use.
1020 (regcache_raw_write): Use.
1021 (struct regcache): Rename raw_registers to registers and
1022 raw_register_valid_p to register_valid_p.
1023 (regcache_xmalloc): Update.
1024 (regcache_xfree): Update.
1025 (register_buffer): Update.
1026 (regcache_cpy): Update.
1027 (regcache_cpy_no_passthrough): Update.
1028 (regcache_valid_p): Update.
1029 (deprecated_grub_regcache_for_registers): Update.
1030 (deprecated_grub_regcache_for_register_valid): Update.
1031 (set_register_cached): Update.
1032 (regcache_raw_write): Update.
1033
80b4c677
PM
10342002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1035
1036 * p-exp.y (name_not_typename): Use copy_name to
1037 set current_type variable for fields of THIS.
1038
0f3fafde
DJ
10392002-11-12 Daniel Jacobowitz <drow@mvista.com>
1040
1041 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1042 * monitor.c (init_base_monitor_ops): Likewise.
1043 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1044 * remote-array.c (init_array_ops): Likewise.
1045 * remote-e7000.c (init_e7000_ops): Likewise.
1046 * remote-es.c (init_es1800_ops): Likewise.
1047 (init_es1800_child_ops): Likewise.
1048 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1049 * remote-sim.c (init_gdbsim_ops): Likewise.
1050 * remote-st.c (init_st2000_ops): Likewise.
1051 * sol-thread.c (init_sol_core_ops): Likewise.
1052 (init_sol_thread_ops): Likewise.
1053 * v850ice.c (init_850ice_ops): Likewise.
1054 * win32-nat.c (init_child_ops): Likewise.
1055 * wince.c (init_child_ops): Likewise.
1056
82c0260e
AC
10572002-11-12 Andrew Cagney <ac131313@redhat.com>
1058
1059 * utils.c (gdb_realpath): Make rp a constant pointer.
1060
70d35819
AC
10612002-11-12 Andrew Cagney <ac131313@redhat.com>
1062
1063 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1064 a constant buffer; cannonicalize_file_name(); realpath() with a
1065 pathconf() defined buffer, xstrdup().
1066
9835a8b0
AC
10672002-11-12 Andrew Cagney <ac131313@redhat.com>
1068
1069 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1070 to hang2.C; hang3.c to hang3.C.
1071
3f47be5c
EZ
10722002-11-11 Elena Zannoni <ezannoni@redhat.com>
1073
1074 * findvar.c (read_var_value): Reenable TLS code.
1075
10762002-11-11 Elena Zannoni <ezannoni@redhat.com>
1077 Jim Blandy <jimb@redhat.com>
1078
1079 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1080 * target.c (update_current_target): Add
1081 to_get_thread_local_address.
1082 * target.h (to_get_thread_local_address): Export.
1083 (target_get_thread_local_address): Define.
1084 (target_get_thread_local_address_p): Define.
1085 * thread-db.c: Include solib-svr4.h.
1086 (td_thr_tls_get_addr_p): Define.
1087 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1088 (thread_db_get_thread_local_address): New function.
1089 (init_thread_db_ops): Initialize to_get_thread_local_address.
1090 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1091 * configure: Regenerate.
1092 * config.in: Regenerate.
1093
636b1a6d
DC
10942002-11-11 David Carlton <carlton@math.stanford.edu>
1095
1096 * linespec.c (set_flags): New function.
1097 (decode_line_1): Move code into set_flags.
1098
44fe14ab
DC
10992002-11-11 David Carlton <carlton@math.stanford.edu>
1100
1101 * linespec.c (decode_line_1): Move chunks of code to separate
1102 functions.
1103 (initialize_defaults): New function.
1104 (decode_indirect): New function.
1105
e6f181f5
AC
11062002-11-11 Andrew Cagney <ac131313@redhat.com>
1107
8971b011
AC
1108 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1109 instead of void_code_ptr.
1110 (sigtramp_saved_pc): Ditto.
1111
e6f181f5
AC
1112 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1113 i386_fp_regnum_p.
1114
01ad7f36
DJ
11152002-11-10 Daniel Jacobowitz <drow@mvista.com>
1116
1117 * gdbtypes.h (struct main_type): Move artificial flag out of
1118 loc. New member of ``struct field'' named static_kind. Reduce
1119 overloaded meaning of bitsize.
1120 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1121 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1122 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1123
1124 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1125 new fields.
1126 (template_to_fixed_record_type, template_to_static_fixed_type)
1127 (to_record_with_fixed_variant_part): Likewise.
1128 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1129 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1130 * dwarfread.c (struct_type, enum_type): Likewise.
1131 * hpread.c (hpread_read_enum_type)
1132 (hpread_read_function_type, hpread_read_doc_function_type)
1133 (hpread_read_struct_type): Likewise.
1134 * mdebugread.c (parse_symbol): Likewise.
1135
bf1e52be
AC
11362002-11-10 Andrew Cagney <ac131313@redhat.com>
1137
1138 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1139 * stack.c (print_frame_info_base): Update.
1140 (print_frame_info_base, frame_info): Update.
1141 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1142 (sparc_frame_saved_pc): Update.
1143 * ada-lang.c (find_printable_frame): Update.
1144 * breakpoint.c (deprecated_frame_in_dummy): Update.
1145
ce556f85
MK
11462002-11-09 Mark Kettenis <kettenis@gnu.org>
1147
1148 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1149 defined.
1150 (regmap): Extend to cover all registers.
1151 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1152 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1153 definitions.
1154 (fetch_register, sore_register): Simplify.
1155 (old_fetch_inferior_registers, old_store_inferior_registers):
1156 Remove functions.
1157 (cannot_fetch_register, cannot_store_register): Change
1158 implementation to use regmap array to decide which registers
1159 cannot be fetched/stored. This removes $orig_eax from the
1160 registers that cannot be fetched/stored.
1161 (fetch_inferior_registers): Call fetch_register directly instead
1162 of calling old_fetch_inferior_registers.
1163 (store_inferior_registers): Call store_register directly instead
1164 of calling old_store_inferior_registers.
1165 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1166 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1167 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1168
932bb524
KD
11692002-11-09 Klee Dienes <kdienes@apple.com>
1170
1171 * i387-tdep.c (i387_supply_register): When called with NULL as a
1172 buffer, mark the register as not provided (to mirror the behavior
1173 of supply_register).
1174 (i387_supply_fxsave): Ditto.
1175 (i387_supply_fsave): Ditto (inherits the behavior from
1176 i387_supply_register).
1177
ebe68b27
KD
11782002-11-09 Klee Dienes <kdienes@apple.com>
1179
1180 * blockframe.c (sigtramp_saved_pc): Use
1181 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1182 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1183 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1184
15220c65
AC
11852002-11-09 Andrew Cagney <ac131313@redhat.com>
1186
1187 * frame.c (get_prev_frame): Test prev_p to identify a previously
1188 unwound frame. Initialize prev_p.
1189 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1190 comment.
1191
95adb866
AC
11922002-11-09 Andrew Cagney <ac131313@redhat.com>
1193
1194 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1195 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1196 more comments. Zap dead code.
1197
e71ecd70
MK
11982002-11-09 Mark Kettenis <kettenis@gnu.org>
1199
1200 * infcmd.c (print_vector_info, print_float_info): Move code that
1201 checks whether the target has any registers and whether there is a
1202 selected frame up, such that it is also used if a target provides
1203 multi-arch definitions of these functions.
1204
c525330d
AC
12052002-11-08 Andrew Cagney <ac131313@redhat.com>
1206
72bdd927
AC
1207 * Makefile.in (DESTDIR): Define.
1208 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1209 prefix.
1210
c525330d
AC
1211 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1212 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1213
38c968cf
AC
12142002-11-08 Andrew Cagney <ac131313@redhat.com>
1215
1216 * i386-linux-tdep.c: Include "reggroups.h".
1217 (i386_linux_register_reggroup_p): New function.
1218 (i386_linux_init_abi): Set register_reggroup_p to
1219 i386_linux_register_reggroup_p.
1220 * i386-tdep.h (i386_register_reggroup_p): Declare.
1221 * i386-tdep.c: Include "reggroups.h".
1222 (i386_init_reggroups): New function.
1223 (i386_add_reggroups): New function.
1224 (i386_register_reggroup_p): New function.
1225 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1226 (_initialize_i386_tdep): Call i386_init_reggroups.
1227 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1228 specific reggroups.
1229
19e33363
MK
12302002-11-09 Mark Kettenis <kettenis@gnu.org>
1231
371a6e84
MK
1232 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1233 request that's available in *BSD.
1234
94ba925a
MK
1235 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1236
19e33363
MK
1237 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1238 FDOFF_REGNUM.
1239
8779790c
AC
12402002-11-08 Andrew Cagney <ac131313@redhat.com>
1241
1242 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1243 * dummy-frame.c (find_dummy_frame): Rename
1244 generic_find_dummy_frame, make static. Return the dummy frame
1245 instead of the regcache.
1246 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1247 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1248 (dummy_frame_register_unwind): Rename
1249 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1250 * dummy-frame.h (dummy_frame_register_unwind): Rename
1251 generic_call_dummy_register_unwind.
1252
8674b74f
MK
12532002-11-08 Mark Kettenis <kettenis@gnu.org>
1254
1255 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1256 except the inclusion of "i386/tm-i386.h", to...
1257 * config/i386/nm-i386v42mp.h: ...here.
1258 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1259
4c1e7e9d
AC
12602002-11-08 Andrew Cagney <ac131313@redhat.com>
1261
1262 * Makefile.in (frame.o): Update dependencies.
1263 * blockframe.c (current_frame, frame_obstack_alloc)
1264 (frame_saved_regs_zalloc, get_current_frame)
1265 (set_current_frame, create_new_frame)
1266 (set_unwind_by_pc, get_next_frame)
1267 (flush_cached_frames, reinit_frame_cache)
1268 (frame_saved_regs_register_unwind)
1269 (deprecated_generic_get_saved_register)
1270 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1271 (_initialize_blockframe): Move frame code from here...
1272 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1273 "annotate.h" and "dummy-frame.h".
1274 (_initialize_frame): New function.
1275
921e78cf
JB
12762002-11-08 Jim Blandy <jimb@redhat.com>
1277
1278 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1279 when we finish a function a context.
1280 * buildsym.h (outermost_context_p): New macro.
1281 (Bug analyzed by David Edelsohn.)
1282
9c1412c1
AC
12832002-11-08 Andrew Cagney <ac131313@redhat.com>
1284
1285 * blockframe.c: Include "dummy-frame.h".
1286 (struct dummy_frame, dummy_frame_stack)
1287 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1288 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1289 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1290 (generic_save_call_dummy_addr, generic_pop_current_frame)
1291 (generic_pop_dummy_frame, generic_fix_call_dummy)
1292 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1293 dummy frame code from here...
1294 * dummy-frame.c: ...to here. New file.
1295 * dummy-frame.h: New file.
1296 (generic_call_dummy_register_unwind): Declare.
1297 (generic_find_dummy_frame): Declare.
1298 * Makefile.in (SFILES): Add dummy-frame.c.
1299 (dummy-frame.o): Specify dependencies.
1300 (dummy_frame_h): Define.
1301 (COMMON_OBS): Add dummy-frame.o.
1302 (blockframe.o): Update dependencies.
1303
208d8187
JB
13042002-11-08 Jim Blandy <jimb@redhat.com>
1305
1306 * dwarf2read.c (read_func_scope): Restore local_symbols and
1307 param_symbols after we finish the function context. (Based on a
1308 patch from David Edelsohn.)
1309
413dad4d
DC
13102002-11-08 David Carlton <carlton@math.stanford.edu>
1311
1312 * linespec.c (symbol_found): New function.
1313 (minsym_found): New function.
1314 (decode_line_1): Separate out some code into separate functions.
1315
5512c44a
JB
13162002-11-08 Joel Brobecker <brobecker@gnat.com>
1317
1318 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1319 the benefit of the interix target.
1320 * i386-tdep.h (i386_frameless_signal_p): Declare.
1321
1b33ef47
AC
13222002-11-08 Andrew Cagney <ac131313@redhat.com>
1323
1324 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1325 declaration that snuck in from change below.
1326
23a34459
AC
13272002-11-06 Andrew Cagney <cagney@redhat.com>
1328
1329 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1330 all callers.
1331 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1332 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1333 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1334 (i386_mxcsr_regnum_p): new function. Use instead of
1335 MXCSR_REGNUM_P.
1336 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1337 (i386_sse_regnum_p): Declare.
1338 (i386_mxcsr_regnum_p): Declare.
1339 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1340 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1341 (IS_FP_REGNUM): Update definition.
1342 (IS_FPU_CTRL_REGNUM): Update definition..
1343 (IS_SSE_REGNUM): Update definition..
1344 * i386v-nat.c (register_u_addr): Update.
1345 * go32-nat.c (fetch_register): Update.
1346 (store_register): Update.
1347
d709c020
JB
13482002-11-07 Joel Brobecker <brobecker@gnat.com>
1349
1350 Preparation work to convert the hppa targets to multiarch partial.
1351
1352 * hppa-tdep.c: Add new functions replacing macro bodies from
1353 config/pa/tm-hppa.h. These function will be used to initialize
1354 the gdbarch structure. Import some comments from tm-hppa.h,
1355 and place them where appropriate, to avoid loosing them when
1356 we cleanup this file.
1357 (hppa_reg_struct_has_addr): New function.
1358 (hppa_inner_than): New function.
1359 (hppa_stack_align): New function.
1360 (hppa_pc_requires_run_before_use): New function.
1361 (hppa_instruction_nullified): New function.
1362 (hppa_register_byte): New function.
1363 (hppa_register_virtual_type): New function.
1364 (hppa_store_struct_return): New function.
1365 (hppa_cannot_store_register): New function.
1366 (hppa_frame_args_address): New function.
1367 (hppa_frame_locals_address): New function.
1368 (hppa_smash_text_address): New function.
1369 (hppa_coerce_float_to_double): New function. Requires the inclusion
1370 of "language.h".
1371
1372 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1373
1374 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1375 gdbarch-eligible macro to a call to the new associated function
1376 created in hppa-tdep.c.
1377 (INNER_THAN): Likewise.
1378 (STACK_ALIGN): Likewise.
1379 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1380 (INSTRUCTION_NULLIFIED): Likewise.
1381 (REGISTER_BYTE): Likewise.
1382 (REGISTER_VIRTUAL_TYPE): Likewise.
1383 (STORE_STRUCT_RETURN): Likewise.
1384 (CANNOT_STORE_REGISTER): Likewise.
1385 (FRAME_ARGS_ADDRESS): Likewise.
1386 (FRAME_LOCALS_ADDRESS): Likewise.
1387 (SMASH_TEXT_ADDRESS): Likewise.
1388 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1389 (ABOUT_TO_RETURN): Delete, as no longer used.
1390
83c31e7d
FN
13912002-11-07 Fernando Nasser <fnasser@redhat.com>
1392
1393 * printcmd.c (disassemble_command): Remove obsolete function.
1394 (_initialize_printcmd): Do not create disassemble command here.
1395 * cli/cli-cmds.c (disassemble_command): New function. Implements
1396 disassemble command.
1397 (init_cli_cmds): Create disassemble command here instead.
1398
0ec30a36
AC
13992002-11-07 Andrew Cagney <ac131313@redhat.com>
1400
1401 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1402
e600bd34
AC
14032002-11-07 Andrew Cagney <ac131313@redhat.com>
1404
1405 * regcache.h (regcache_cooked_read_using_offset_hack)
1406 (regcache_cooked_write_using_offset_hack): Delete declarations.
1407 (register_changed): Delete declaration.
1408 * regcache.c (regcache_cooked_read_using_offset_hack)
1409 (regcache_cooked_write_using_offset_hack): Delete functions.
1410 (cooked_xfer_using_offset_hack): Delete function.
1411 (register_changed): Delete function.
1412
568f8739
JB
14132002-11-07 Jim Blandy <jimb@redhat.com>
1414
1415 * macroscope.c: #include "complaints.h".
1416 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1417 but not in the macro table.
1418 * Makefile.in (macroscope.o): Record dependency.
1419
b0718b7b
JB
14202002-11-07 Joel Brobecker <brobecker@gnat.com>
1421
1422 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1423
2b9e5f3f
AC
14242002-11-07 Andrew Cagney <ac131313@redhat.com>
1425
1426 * regcache.c (deprecated_registers_fetched): Update.
1427 * regcache.h (deprecated_registers_fetched): Rename
1428 registers_fetched.
1429 * remote-vxsparc.c (vx_read_register): Update.
1430 * remote-vxmips.c (vx_read_register): Update.
1431 * remote-vx68.c (vx_read_register): Update.
1432 * irix5-nat.c (fetch_core_registers): Update.
1433 * mipsm3-nat.c (fetch_inferior_registers): Update.
1434 * sun3-nat.c (fetch_inferior_registers): Update.
1435 * symm-nat.c (fetch_inferior_registers): Update.
1436 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1437 (fetch_core_registers): Update.
1438 (fetch_kcore_registers): Update.
1439 * mips-nat.c (fetch_inferior_registers): Update.
1440 * corelow.c (get_core_registers): Update.
1441 * a68v-nat.c (fetch_inferior_registers): Update.
1442
e6e68f1f
JB
14432002-11-06 Joel Brobecker <brobecker@gnat.com>
1444
1445 Put in place the framework necessary for multiarching the hppa targets.
1446 * hppa-tdep.c (hppa_gdbarch_init): New function.
1447 (hppa_dump_tdep): New function.
1448 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1449 tdep structure dumper.
1450 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1451 until the multi-arching conversion has partially been completed.
1452
492254e9
AC
14532002-11-06 Andrew Cagney <ac131313@redhat.com>
1454
1455 * valops.c (value_assign): Merge lval_register case into
1456 lval_reg_frame_relative. Use frame_register and
1457 regcache_cooked_write instead of get_saved_register and
1458 write_register_bytes. After flushing the register cache, try to
1459 re-select the selected frame.
1460
8262ee23
AC
14612002-11-06 Andrew Cagney <ac131313@redhat.com>
1462
1463 * regcache.h (deprecated_register_valid): Rename register_valid.
1464 * regcache.c: Update.
1465 * ia64-aix-nat.c: Update.
1466 * i386gnu-nat.c: Update.
1467 * alpha-nat.c: Update.
1468 * sparc-nat.c: Update.
1469 * lynx-nat.c: Update.
1470 * remote-mips.c: Update.
1471
4facf7e8
JB
14722002-11-06 Joel Brobecker <brobecker@gnat.com>
1473
1474 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1475 to end of file, to be more consistent with the pratice followed
1476 by other targets.
1477
f9418c0f
AC
14782002-11-06 Andrew Cagney <ac131313@redhat.com>
1479
1480 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1481 (print_float_info): Print registers in float_reggroup.
1482 (print_vector_info): Print registers in vector_reggroup.
1483 (default_print_registers_info): When all, print registers in
1484 all_reggroup. Otherwize, print registers in general_reggroup.
1485 (registers_info): Rewrite. Add support for register groups.
1486 Eliminate a goto.
1487
3fe235a7
EZ
14882002-11-06 Elena Zannoni <ezannoni@redhat.com>
1489
1490 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1491 ages.
1492 (symtab_symbol_info): Remove eons old ifdeffed out code.
1493 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1494 command.
1495
ef944135
TR
14962002-11-06 Theodore A. Roth <troth@openavr.org>
1497
1498 * c-exp.y: Add missing semi-colons.
1499 * f-exp.y: Add missing semi-colons.
1500 * m2-exp.y: Add missing semi-colons.
1501 * p-exp.y: Add missing semi-colons.
1502 Add empty action to start rule to avoid a type clash error when
1503 building with bison >= 1.50.
1504
f8302a57
JB
15052002-11-06 Jim Blandy <jimb@redhat.com>
1506
1507 * macrotab.h (struct macro_source_file): Doc fix.
1508
6e382aa3
JJ
15092002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1510
1511 * varobj.c (child_exists, cplus_number_of_children): Change
1512 STREQ macro references to strcmp.
1513 (cplus_name_of_child): Change code to handle the fact that
1514 fields are not necessarily contiguous with regards to their
1515 access control. This is a fix for PR gdb/792.
1516
a216a322
AC
15172002-11-05 Andrew Cagney <ac131313@redhat.com>
1518
1519 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1520 * gdbarch.h, gdbarch.c: Regnerate.
1521 * frame.h (frame_register): Declare.
1522 * frame.c (frame_register): New function.
1523 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1524 GET_SAVED_REGISTER, otherwize call
1525 generic_unwind_get_saved_register.
1526 (frame_register_read): Use frame_register instead of
1527 get_saved_register.
1528
7d5b6fdd
EZ
15292002-11-05 Elena Zannoni <ezannoni@redhat.com>
1530
1531 From Jim Ingham <jingham@apple.com>:
1532 * event-top.c (gdb_disable_readline): New function.
1533 (_initialize_event_loop): Move comment.
1534
b7c64260
EZ
15352002-11-05 Elena Zannoni <ezannoni@redhat.com>
1536
1537 * event-loop.c (start_event_loop): Add comment.
1538 Update copyright.
1539
c2e1b8f2
AC
15402002-11-05 Andrew Cagney <ac131313@redhat.com>
1541
1542 * infcmd.c (default_print_registers_info): Do not call
1543 PRINT_REGISTER_HOOK.
1544
87647bb0
AC
15452002-11-05 Andrew Cagney <ac131313@redhat.com>
1546
1547 * sparc-tdep.c (sparc_print_register_hook): Make static.
1548 (sparc_print_registers_info): New function.
1549 (sparc_do_registers_info): New function.
1550 (sparclet_print_registers_info): New function.
1551 (sparclet_do_registers_info): New function.
1552 (do_sparc_print_registers_info): New function.
1553 (sparc_print_registers): New static function, clone of infcmd.c's
1554 default_print_registers_info.
1555 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1556 (sparclet_do_registers_info): Declare.
1557 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1558 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1559 Re-define.
1560 (sparc_do_registers_info): Declare.
1561 (PRINT_REGISTER_HOOK): Delete macro.
1562 (sparc_print_register_hook): Delete declaration.
1563
8155455b
DC
15642002-11-05 David Carlton <carlton@math.stanford.edu>
1565
1566 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1567 functions.
1568 (lookup_symbol_aux_local): New function.
1569 (lookup_symbol_aux_symtabs): New function.
1570 (lookup_symbol_aux_psymtabs): New function.
1571
29924310
DC
15722002-11-05 David Carlton <carlton@math.stanford.edu>
1573
1574 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1575 previous values of 'objfile' and 'block'.
1576
cc303028
PM
15772002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1578
1579 * values.c (value_change_enclosing_type): Set
1580 enclosing_type field correctly also for the case where
1581 more memory needs to be allocated.
1582
1d70089a
MK
15832002-11-03 Mark Kettenis <kettenis@gnu.org>
1584
f16a25ae
MK
1585 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1586 of puts_filtered.
1587
1d70089a
MK
1588 * i387-tdep.c (i387_print_float_info): Replace calls to
1589 register_read and deprecated_read_register_gen with calls to
1590 frame_register_read, and make the necessary adjustments to the
1591 surrounding code.
1592
7e20f3fb
AC
15932002-11-02 Andrew Cagney <ac131313@redhat.com>
1594
1595 * gdbarch.sh (register_reggroup_p): Allow default value.
1596 * gdbarch.h, gdbarch.c: Regenerate.
1597
192dbe33
AC
15982002-11-02 Andrew Cagney <ac131313@redhat.com>
1599
1600 * regcache.h: Add coment indicating replacements for deprecated
1601 functions.
1602
b59ff9d5
AC
16032002-11-02 Andrew Cagney <cagney@redhat.com>
1604
1605 * reggroups.h, reggroups.c: New files.
1606 * regcache.c: Include "reggroups.h".
1607 (enum regcache_dump_what): Add `regcache_dump_groups'.
1608 (regcache_dump): Contract size of the "Type" column. When
1609 specified, dump the register's groups.
1610 (maintenance_print_register_groups): New function.
1611 (_initialize_regcache): Add command `maint print register-groups'.
1612 * Makefile.in (COMMON_OBS): Add reggroups.o
1613 (SFILES): Add reggroups.c.
1614 (reggroups_h): Define.
1615 (regcache.o, gdbarch.o): Update dependencies.
1616 (reggroups.o): Specify dependencies.
1617 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1618 Add opaque declaration for `struct reggroup' in generated .h file.
1619 Include "reggroups.h" in generated .c file.
1620 gdbarch.h, gdbarch.c: Re-generate.
1621
4caf0990
AC
16222002-11-02 Andrew Cagney <cagney@redhat.com>
1623
1624 * regcache.h (deprecated_read_register_gen): Rename
1625 read_register_gen.
1626 (deprecated_write_register_gen): Rename write_register_gen.
1627 * i387-tdep.c: Update.
1628 * x86-64-linux-nat.c: Update
1629 * wince.c: Update.
1630 * thread-db.c: Update.
1631 * win32-nat.c: Update.
1632 * mips-tdep.c: Update.
1633 * d10v-tdep.c: Update.
1634 * cris-tdep.c: Update.
1635 * remote-sim.c: Update.
1636 * remote-rdi.c: Update.
1637 * remote-rdp.c: Update.
1638 * frame.c: Update.
1639 * target.c: Update.
1640 * blockframe.c: Update.
1641 * x86-64-tdep.c: Update.
1642 * xstormy16-tdep.c: Update.
1643 * sh-tdep.c: Update.
1644 * s390-tdep.c: Update.
1645 * rs6000-tdep.c: Update.
1646 * sparc-tdep.c: Update.
1647 * i386-tdep.c: Update.
1648 * dwarf2cfi.c: Update.
1649 * regcache.c: Update.
1650
7a7adcdf
JB
16512002-11-01 Joel Brobecker <brobecker@gnat.com>
1652
1653 New interix-specific files:
1654 * config/i386/nm-interix.h: New file.
1655 * config/i386/interix.mh: New file.
1656 * config/i386/interix.mt: New file.
1657 * i386-interix-nat.c: New file.
1658 * i386-interix-tdep.c: New file.
1659
bdcdd535
AC
16602002-11-01 Andrew Cagney <cagney@redhat.com>
1661
1662 * frame.h (deprecated_generic_get_saved_register): Rename
1663 generic_get_saved_register.
1664 * blockframe.c (deprecated_generic_get_saved_register): Update.
1665 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1666 (xstormy16_frame_saved_register): Update.
1667 * sh-tdep.c (sh_gdbarch_init): Update.
1668 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1669 * ia64-tdep.c (ia64_get_saved_register): Update.
1670 * cris-tdep.c (cris_gdbarch_init): Update.
1671 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1672 * arm-tdep.c (arm_gdbarch_init): Update.
1673
2a4b7c45
DJ
16742002-10-31 Daniel Jacobowitz <drow@mvista.com>
1675
1676 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1677
ef17e74b
DJ
16782002-10-31 Daniel Jacobowitz <drow@mvista.com>
1679
1680 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1681 trampolines in sigaction.
1682
4904ba5b
AC
16832002-10-31 Andrew Cagney <cagney@redhat.com>
1684
1685 * h8300-tdep.c: Include "gdb_assert.h".
1686 (h8300_print_register): Add gdbarch, file and frame parameters.
1687 Use frame_read_unsigned_register to read the register's value.
1688 Use fprintf_filtered to display output.
1689 (h8300_print_registers_info): Replace h8300_do_registers_info.
1690 (h8300_gdbarch_init): Set print_registers_info.
1691
f908a0eb
AC
16922002-10-31 Andrew Cagney <cagney@redhat.com>
1693
1694 * frame.c (frame_read_unsigned_register): New function.
1695 (frame_read_signed_register): New function.
1696 * frame.h (frame_read_unsigned_register): Declare.
1697 (frame_read_signed_register): Declare.
1698
c5646e11
AC
16992002-10-31 Andrew Cagney <cagney@redhat.com>
1700
1701 * h8500-tdep.c (h8500_print_registers_info): New static function,
1702 clone of infcmd.c's default_print_registers_info.
1703 (h8500_do_registers_info): New funtion.
1704 (h8500_print_register_hook): Rename print_register_hook, make
1705 static.
1706
1707 * config/h8500/tm-h8500.h: Update copyright.
1708 (DEPRECATED_DO_REGISTERS_INFO): Define.
1709 (h8500_do_registers_info: Declare.
1710 (PRINT_REGISTER_HOOK): Delete macro.
1711 (print_register_hook): Delete function.
1712
0bdd672b
AC
17132002-10-31 Andrew Cagney <cagney@redhat.com>
1714
1715 * z8k-tdep.c (z8k_print_register_hook): Make static.
1716 (z8k_print_registers_info): New static function, clone of
1717 infcmd.c's default_print_registers_info.
1718 (z8k_do_registers_info): New function. Wrap
1719 z8k_print_registers_info.
1720 * config/z8k/tm-z8k.h: Update copyright.
1721 (PRINT_REGISTER_HOOK): Delete macro.
1722 (z8k_print_register_hook): Delete declaration.
1723 (DEPRECATED_DO_REGISTERS_INFO): Define.
1724 (z8k_do_registers_info): Declare.
1725
bf9c25dc
JB
17262002-10-30 Joel Brobecker <brobecker@gnat.com>
1727
1728 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1729 as this is already provided by value.h, and was actually causing
1730 a compilation error because of a conflict in parameter type
1731 declaration due to a missing const keyword.
1732 (low_text_segment_addres): Fix a compilation warning.
1733
2c665b51
DJ
17342002-10-29 Daniel Jacobowitz <drow@mvista.com>
1735
1736 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1737 registers without a name.
1738 (mips_linux_cannot_store_register): Don't store registers without
1739 a name.
1740
e70ea697
DC
17412002-10-28 David Carlton <carlton@math.stanford.edu>
1742
1743 * symtab.c (find_addr_symbol): Delete. (It was already commented
1744 out.)
1745 * symtab.h: Delete prototype for find_addr_symbol.
1746
903ad3a6
AC
17472002-10-26 Andrew Cagney <cagney@redhat.com>
1748
1749 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1750 DO_REGISTERS_INFO.
1751 gdbarch.h, gdbarch.c: Re-generate.
1752 * infcmd.c (default_print_registers_info): Update reference.
1753 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1754 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1755 * sh-tdep.c (sh_gdbarch_init): Ditto.
1756 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1757 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1758
ab91194c
MK
17592002-10-26 Mark Kettenis <kettenis@gnu.org>
1760
e3033f15
MK
1761 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1762 cfi_init_extra_frame_info.
1763 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1764 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1765
b83b026c
MK
1766 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1767 target where necessary. Add more comments and remove the ones
1768 that don't provide any useful information.
1769
267bf4bb
MK
1770 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1771 deprecated_read_register_dummy with
1772 frame_unwind_unsigned_register.
1773
751f1375
MK
1774 * i386-tdep.c (i386_extract_struct_value_address): Use
1775 regcache_raw_read_unsigned instead of
1776 regcache_cooked_read_unsigned since we know that the register
1777 we're reading isn't a pseudo register. Rename variable 'val' into
1778 the more descriptive 'addr'.
1779
26abbdc4
MK
1780 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1781 (x86_64_push_return_address): Add comment.
1782 (x86_64_pop_frame): Make static.
1783 (examine_argument): Clarify comment.
1784 (x86_64_skip_prologue): Make prolog_expact variable static.
1785
9f1549cc
MK
1786 * dwarf2cfi.c: Fix some formatting problems.
1787 (context_cpy, read_encoded_pointer): Clarify comments.
1788
ab91194c
MK
1789 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1790 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1791 i386 target back into x86_64_gdbarch_init. Add some comments and
1792 remove meaningless ones.
1793
72367fb4
AC
17942002-10-25 Andrew Cagney <cagney@redhat.com>
1795
1796 * complaints.h (struct deprecated_complaint): Rename `struct
1797 complaint'.
1798 * complaints.c (complain): Update.
1799 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1800 incorrect comment indicating that "symfile.h" was being included
1801 for the `struct complaint' definition.
1802 * remote-vx.c: Update.
1803 * objc-lang.c: Update.
1804 * xcoffread.c: Update.
1805 * hpread.c: Update.
1806 * mdebugread.c: Update.
1807 * stabsread.c: Update.
1808 * dwarf2read.c: Update.
1809 * dwarfread.c: Update.
1810 * elfread.c: Update.
1811 * coffread.c: Update.
1812 * stabsread.h: Update.
1813 * dbxread.c: Update.
1814 * buildsym.c: Update.
1815 * gdbtypes.c: Update.
1816 * macrotab.c: Update.
1817
1f2baacc
MK
18182002-10-25 Mark Kettenis <kettenis@gnu.org>
1819
0c1a73d6
MK
1820 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1821 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1822 (x86_64_init_abi): ...new function.
1823
6aee4d54 1824 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
1825 * i386v-nat.c: Include "i386-tdep.h".
1826
8f9cbe01
AC
18272002-10-25 Andrew Cagney <cagney@redhat.com>
1828
5f11f355
AC
1829 * gdbtypes.c (address_space_name_to_int): Update.
1830 (address_space_int_to_name): Update.
1831 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1832 multi-arch predicate.
1833 (address_class_name_to_type_flags): Ditto.
1834 * gdbarch.h, gdbarch.c: Re-generate.
1835
8f9cbe01
AC
1836 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1837
e8d96a5d
MH
18382002-10-24 Martin M. Hunt <hunt@redhat.com>
1839
1840 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1841
fe39c653
EZ
18422002-10-24 Elena Zannoni <ezannoni@redhat.com>
1843
1844 * symtab.h (INIT_SAL): Delete macro.
1845 (init_sal): Export.
1846 * symtab.c (init_sal): New function.
1847
1848 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1849 to init_sal function call.
1850 (find_sal_from_funcs_and_line): Ditto.
1851 (all_sals_for_line): Ditto.
1852 * breakpoint.c (create_internal_breakpoint): Ditto.
1853 (create_fork_vfork_event_catchpoint): Ditto.
1854 (create_exec_event_catchpoint): Ditto.
1855 (parse_breakpoint_sals): Ditto.
1856 (watch_command_1): Ditto.
1857 (handle_gnu_4_16_catch_command): Ditto.
1858 (clear_command): Ditto.
1859 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1860 * infcmd.c (run_stack_dummy): Ditto.
1861 * infrun.c (process_event_stop_test): Ditto.
1862 (check_sigtramp2): Ditto.
1863 (step_over_function): Ditto.
1864 * linespec.c (decode_line_2): Ditto.
1865 (decode_line_1): Ditto.
1866 * source.c (line_info): Ditto.
1867 * symtab.c (find_pc_sect_line): Ditto.
1868
baed091b
ML
18692002-10-24 Michal Ludvig <mludvig@suse.cz>
1870
1871 * dwarf2cfi.c (struct context)
1872 (struct context_reg): Moved to dwarf2cfi.h
1873 (context_alloc, frame_state_alloc, context_cpy):
1874 Made extern instead of static, removed prototypes.
1875 * dwarf2cfi.h (struct context)
1876 (struct context_reg): New, moved from dwarf2cfi.c
1877 (context_alloc, frame_state_alloc, context_cpy):
1878 New prototypes.
1879 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1880 Changed from static to extern.
1881 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1882 (LINUX_SIGCONTEXT_FP_OFFSET)
1883 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1884 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1885 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1886 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1887 set_gdbarch_*() calls now use x86-64 specific functions
1888 instead of DWARF2 CFI ones.
1889 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1890 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1891 (x86_64_init_extra_frame_info): New prototypes.
1892
c38da1af
DC
18932002-10-23 David Carlton <carlton@math.stanford.edu>
1894
1895 * linespec.c: #include "parser-defs.h".
1896 Delete prototype for find_template_name_end.
1897 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1898
fb9b6b35
JJ
18992002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1900
1901 * NEWS: add recent mi fixes.
1902 * varobj.c (struct varobj): Add new "updated" flag.
1903 (new_variable): Default "updated" flag to 0.
1904 (varobj_set_value): Set "updated" flag to 1 if value
1905 changes.
1906 (varobj_update): Check varobj "updated" flag before
1907 comparing old and refreshed values. Fix for
1908 PR gdb/702.
1909
8da065d5
DC
19102002-10-23 David Carlton <carlton@math.stanford.edu>
1911
1912 * parse.c (parse_exp_1): Use BLOCK_START.
1913 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1914 SYMBOL_BLOCK_VALUE.
1915 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1916
87f2f08c
DC
19172002-10-23 David Carlton <carlton@math.stanford.edu>
1918
1919 * symtab.c: Delete cplusplus_hint.
1920 Delete prototype for find_template_name_end.
1921
88cda038
EZ
19222002-10-23 Elena Zannoni <ezannoni@redhat.com>
1923
1924 * symtab.h: Update comment.
1925
2625d86c
MS
19262002-10-23 Michael Snyder <msnyder@redhat.com>
1927
1928 * printcmd.c (address_info): Restore quotes in output.
1929 * valops.c (value_of_local): Restore quotes in error message.
1930
9cc0d196
EZ
19312002-10-23 Elena Zannoni <ezannoni@redhat.com>
1932
1933 * symtab.c (symbol_demangled_name): New function.
1934 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1935 turning most of it into a function.
1936 (symbol_demangled_name): Export.
1937
19de93d0
MS
19382002-10-23 Michael Snyder <msnyder@redhat.com>
1939
1940 * valops.c (value_of_local): Restore quotes in error message.
1941
89aad1f9
EZ
19422002-10-23 Elena Zannoni <ezannoni@redhat.com>
1943
1944 * symtab.c (symbol_init_language_specific): New function.
1945 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1946 turning most of it into a function.
1947 (symbol_init_language_specific): Export.
1948
d9fa45fe
DC
19492002-10-23 David Carlton <carlton@math.stanford.edu>
1950
1951 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1952 (dwarf_attr_name): Ditto.
1953 (dwarf_type_encoding_name): Ditto.
1954 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1955 (process_die): Handle DW_TAG_namespace,
1956 DW_TAG_imported_declaration, DW_TAG_imported_module.
1957 (read_namespace): New function.
1958
1045b512
JB
19592002-10-22 Joel Brobecker <brobecker@gnat.com>
1960
1961 * configure.in: Define NEW_PROC_API on Interix too.
1962 * configure: Regenerate.
1963
19642002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
1965
1966 * configure: Regenerate using the proper version of autoconf.
1967
3987b9d4
EZ
19682002-10-21 Elena Zannoni <ezannoni@redhat.com>
1969
1970 * findvar.c (read_var_value): Temporarily disable TLS code, until
1971 complete TLS support is added.
1972
9d774e44
EZ
19732002-10-21 Jim Blandy <jimb@redhat.com>
1974 Elena Zannoni <ezannoni@redhat.com>
1975
1976 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1977 for thread local storage locations.
1978 (struct symbol): Add objfile field.
1979 (SYMBOL_OBJFILE): Define.
1980 * dwarf2read.c (is_thread_local): New static variable.
1981 (new_symbol): If variable is in thread local fill in address class
1982 and objfile appropriately.
1983 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1984 stack operation.
1985 * printcmd.c (address_info): Print the information for thread
1986 local storage variable.
1987 * findvar.c (read_var_value): In case of thread local variable,
1988 defer to the target vector code to compute address.
1989
bc4a16ae
EZ
19902002-10-21 Elena Zannoni <ezannoni@redhat.com>
1991
1992 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1993 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1994
407caf07
EZ
19952002-10-21 Elena Zannoni <ezannoni@redhat.com>
1996
1997 * symtab.h (address_class): Rename
1998 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1999 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2000 * printcmd.c (address_info): Ditto.
2001 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2002
005328e3
MK
20032002-10-20 Mark Kettenis <kettenis@gnu.org>
2004
afdb036a
MK
2005 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2006 DBREG_DRX macro to acces debug registers.
2007
ca02e098
MK
2008 * Makefile.in (i386obsd-tdep.o): New target.
2009
03cc47f7
MK
2010 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2011 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2012
005328e3
MK
2013 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2014 * config/i386/obsd.mt: New file.
2015 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2016 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2017 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2018 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2019 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2020 * i386obsd-tdep.c: New file.
2021
9c96f9f2
AF
20222002-10-19 Adam Fedor <fedor@gnu.org>
2023
2024 * objc-exp.y (name_not_typename): Fix invalid comment.
2025
ce1ed485
MK
20262002-10-20 Mark Kettenis <kettenis@gnu.org>
2027
2028 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2029 to allocate partial syms and macro byte caches.
2030
1efc7aaa
DC
20312002-10-18 David Carlton <carlton@math.stanford.edu>
2032
2033 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2034
7e1d63ec
AF
20352002-10-18 Adam Fedor <fedor@gnu.org>
2036
2037 * stabsread.c (find_name_end): New function.
2038 (define_symbol): Use it.
2039
6e8d29a9
DJ
20402002-10-18 Daniel Jacobowitz <drow@mvista.com>
2041
2042 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2043 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2044 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2045 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2046
1efc7aaa 20472002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
2048
2049 * symfile.h: Add opaque declaration for struct obstack.
2050 Declare obsavestring to take a const char *.
2051 * symfile.c (obsavestring): Make first argument a const char *.
2052
1aeae86e
AF
20532002-10-16 Adam Fedor <fedor@gnu.org>
2054
2055 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2056 names when matching breakpoints in current file.
2057
8b2dbe47
KB
20582002-10-16 Kevin Buettner <kevinb@redhat.com>
2059
2060 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2061 (read_tag_pointer_type): Add address class support.
2062 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2063 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2064 New methods.
2065 * gdbarch.h, gdbarch.c: Regenerate.
2066 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2067 (make_type_with_address_space, recursive_type_dump): Add address
2068 class support.
2069 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2070 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2071 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2072
74451869
KD
20732002-10-16 Klee Dienes <kdienes@apple.com>
2074
2075 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2076 to get the last character of a char[] buffer, not
2077 name[sizeof(vptr_name)-1].
2078
ff4cb3e8
AF
20792002-10-14 Adam Fedor <fedor@gnu.org>
2080
2081 * symtab.h: New objc_specific struct.
2082 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2083 (SYMBOL_DEMANGLED_NAME): Likewise.
2084
da2cf7e0
AF
20852002-10-14 Adam Fedor <fedor@gnu.org>
2086
2087 * symfile.c (init_filename_language_table): Add ObjC file extension.
2088
4a351cef
AF
20892002-10-14 Adam Fedor <fedor@gnu.org>
2090
2091 * utils.c (puts_filtered_tabular): New function.
2092 (fprintf_symbol_filtered): Get ObjC demangled name.
2093 * defs.h (puts_filtered_tabular): Declared.
2094
9750e763
KB
20952002-10-14 Kevin Buettner <kevinb@redhat.com>
2096
2097 * c-lang.h (c_type_print_varspec_prefix): Delete.
2098 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2099 ``need_post_space'' parameter. Adjust all callers.
2100
eee771c1
DJ
21012002-10-14 Daniel Jacobowitz <drow@mvista.com>
2102
2103 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2104 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2105 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2106 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2107
46c82446
AF
21082002-10-13 Adam Fedor <fedor@gnu.org>
2109
2110 * source.c (print_source_lines): Update comments.
2111
d069f99d
AF
21122002-10-13 Adam Fedor <fedor@gnu.org>
2113
2114 * valops.c (value_of_local): New function.
2115 (value_of_this): Use it.
2116 * value.h (value_of_local): Declared.
2117
53c551b7
AF
21182002-10-13 Adam Fedor <fedor@gnu.org>
2119
2120 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2121 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2122
eb392fbf
AF
21232002-10-12 Adam Fedor <fedor@gnu.org>
2124
2125 * language.c (binop_result_type): Add language_objc to case.
2126 (integral_type): Likewise.
2127 (character_type): Likewise.
2128 (string_type): Likewise.
2129 (boolean_type): Likewise.
2130 (structured_type): Likewise.
2131 (binop_type_check): Likewise.
2132
e2b23ee9
AF
21332002-10-11 Adam Fedor <fedor@gnu.org>
2134
2135 * printcmd.c (address_info): Print 'self' for ObjC.
2136
b01ab485
AF
21372002-10-11 Adam Fedor <fedor@gnu.org>
2138
2139 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2140 OP_SELF.
2141
806e6073
AF
21422002-10-11 Adam Fedor <fedor@gnu.org>
2143
2144 * language.h (CAST_IS_CONVERSION): Add language_objc.
2145
50f85cdf
AF
21462002-10-11 Adam Fedor <fedor@gnu.org>
2147
2148 * defs.h (enum language): Add language_objc.
2149
0d540cdf
KD
21502002-10-11 Klee Dienes <kdienes@apple.com>
2151
69266111 2152 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
2153 * gdbcore.h (read_memory_typed_address): Add prototype.
2154 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2155 to read a value destined for a CORE_ADDR, not read_memory_integer.
2156 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2157 (f77_get_dynamic_lowerbound): Ditto.
2158
d5dc7960
MH
21592002-10-11 Martin M. Hunt <hunt@redhat.com>
2160
2161 * utils.c (string_to_core_addr): After turning string into
2162 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2163 which will do necessary sign-extension, etc.
2164
8343f86c
DJ
21652002-10-11 Daniel Jacobowitz <drow@mvista.com>
2166
2167 * c-exp.y (THIS): Delete token and grammar rule.
2168 (yylex): Don't return THIS.
2169 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2170 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2171 * demangle.c (cplus_markers): Update comment. Put '$'
2172 first. Remove CPLUS_MARKER.
2173 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2174 * jv-exp.y (THIS): Delete token and grammar rule.
2175 (yylex): Don't return THIS.
2176 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2177 * objc-exp.y (THIS): Delete token and grammar rule.
2178 (yylex): Don't return THIS.
2179 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2180 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2181 (read_member_functions): Likewise for opname.
2182 (read_tilde_fields): Use is_cplus_marker.
2183
2184 * defs.h (CPLUS_MARKER): Don't define.
2185 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2186 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2187 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2188 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2189 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2190
2191 * config/i386/tm-i386v4.h: Delete file.
2192 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2193 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2194 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2195 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2196 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2197 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2198 * config/i386/i386v4.mt (TM_FILE): Likewise.
2199 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2200
967c0d83
MM
22012002-10-10 Marko Mlinar <markom@opencores.org>
2202
2203 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2204 accidentially not commited 2002-10-09
2205 * gdbarch.h, gdbarch.c: Re-generate.
2206
f74fa174
MM
22072002-10-09 Marko Mlinar <markom@opencores.org>
2208
2209 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2210 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2211 * gdbarch.h, gdbarch.c: Re-generate.
2212
57349743
JB
22132002-10-08 Petr Sorfa <petrs@caldera.com>
2214
2215 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2216
2217 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2218 so we can work on more than one compilation unit at a time. This
2219 helps prepare GDB to handle inter-CU die references.
2220 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2221 the code to be defined before struct comp_unit_head.
2222 (comp_unit_head): Added new members - offset, cu_head,
2223 begin_die, next and dwarf2_abbrevs.
2224 (dwarf2_abbrevs): Removed single static var; now member of
2225 struct comp_unit_head.
2226 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2227 members.
2228 (psymtab_to_symtab_1): Changed to work with the new
2229 struct comp_unit_head.
2230 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2231 constructs the dwarf2_abbrevs[] inside the cu_header.
2232 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2233 dwarf2_abbrev table to clean up.
2234 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2235 handling of dwarf2_abbrevs inside the cu_header.
2236 (read_partial_die): Now supports the call to the new
2237 dwarf2_lookup_abbrev.
2238 (read_full_die): Now supports the call to the new
2239 dwarf2_lookup_abbrev.
2240
4092aadb
CF
22412002-10-06 Christopher Faylor <cgf@redhat.com>
2242
2243 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2244 insure that shell variables, such as "transformed_name" are propagated
2245 to later shell statements in rule.
2246
af0b2512
MK
22472002-10-06 Mark Kettenis <kettenis@gnu.org>
2248
2249 * config/i386/nm-i386sco.h: Add protection against
2250 multiple-inclusion. Include "i386/nm-i386v.h".
2251 (REGISTER_U_ADDR): Remove define.
2252 (i386_register_u_addr): Remove prototype.
2253
d6020d45
MS
22542002-10-04 Michael Snyder <msnyder@redhat.com>
2255
2256 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2257 before treating it as a single-step event.
2258
7248f48e
AF
22592002-10-03 Adam Fedor <fedor@gnu.org>
2260
2261 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2262 (objc_demangle): Remove assignment in if statements, Replace
2263 free with xfree.
2264 (add_msglist): Likewise.
2265 (end_msglist): Likewise.
2266 (complare_selectors): Likewise.
2267 (selectors_info): Likewise.
2268 (compare_classes): Likewise.
2269 (classes_info): Likewise.
2270 (print_object_command): Likewise.
2271 (find_objc_msgcall_submethod): Replace PTR with void *.
2272 * objc-lang.h: Remove check for __STDC__.
2273
52c6a6ac
JJ
22742002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2275
2276 * ui-out.h (ui_out_field_fmt_int): New prototype.
2277 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2278 of field width and alignment.
2279 * stack.c (print_frame_info_base): When printing frame level, use
2280 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2281 PR gdb/192
2282
7e3cec17
JJ
22832002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2284
2285 * MAINTAINERS: Add self to Write After Approval list.
2286
a58dd373
EZ
22872002-10-02 Elena Zannoni <ezannoni@redhat.com>
2288
2289 * infcmd.c (interrupt_target_command_wrapper): Delete.
2290 (interrupt_target_command): Make non static.
2291 (nofp_registers_info): Make static.
2292 * stack.c (return_command_wrapper): Delete.
2293 (return_command): Make non static.
2294
cee6ddeb
EZ
22952002-10-02 Elena Zannoni <ezannoni@redhat.com>
2296
2297 * event-top.c (gdb_setup_readline): New function. Code moved from
2298 _initialize_event_loop().
2299 (_initialize_event_loop): Call gdb_setup_readline().
2300
c4ed33b9
AC
23012002-10-02 Andrew Cagney <ac131313@redhat.com>
2302
2303 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2304 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2305 * gdbarch.h, gdbarch.c: Re-generate.
2306
cef4f5dd
DJ
23072002-10-02 Daniel Jacobowitz <drow@mvista.com>
2308
2309 Fix PR gdb/778
2310 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2311 before recursing.
2312 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2313 of fill_in_vptr_fieldno.
2314
36dc181b 23152002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 2316
36dc181b
EZ
2317 * inferior.h (registers_info, stepi_command, nexti_command,
2318 continue_command, interrupt_target_command): Export from infcmd.c.
2319 * frame.h (args_info, selected_frame_level_changed_hook,
2320 return_command): Export from stack.c.
2321 * v850ice.c (stepi_command, nexti_command, continue_command): use
2322 prototypes from inferior.h.
2323 * tracepoint.c (registers_info, args_info, locals_info): Use
2324 prototypes from frame.h and inferior.h.
2325 * Makefile.in (mi-main.o): Add dependency on frame.h.
2326
6f99cb26
AC
23272002-10-02 Andrew Cagney <ac131313@redhat.com>
2328
da3eff49
AC
2329 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2330 value in register 3 adjusted by ppc_gp0_regnum.
2331
6f99cb26
AC
2332 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2333
da615bee
MM
23342002-10-02 Marko Mlinar <markom@opencores.org>
2335
2336 * MAINTAINERS: Add myself to the Write After Approval list.
2337
d154bee2
AO
23382002-10-01 Alexandre Oliva <aoliva@redhat.com>
2339
62a49b2c
AO
2340 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2341 of the section for the N64 ABI, fixed.
2342
d154bee2
AO
2343 * config/mips/tm-irix6.h: Include solib.h.
2344
ed348acc
EZ
23452002-10-01 Elena Zannoni <ezannoni@redhat.com>
2346
2347 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2348 GNU operators.
2349
da0f9dcd
AC
23502002-10-01 Andrew Cagney <ac131313@redhat.com>
2351
2352 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2353 and that "mi0" syntax has been removed.
2354
bdf64bac
DC
23552002-09-30 David Carlton <carlton@math.stanford.edu>
2356
2357 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2358 * ppc-sysv-tdep.c: #include "gdb_string.h".
2359 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2360 pacify GCC.
2361
54c2a1e6
AC
23622002-10-01 Andrew Cagney <ac131313@redhat.com>
2363
2364 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2365 "vrsave"'s register number.
2366
cedea778
AC
23672002-09-30 Andrew Cagney <ac131313@redhat.com>
2368
2369 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2370 use frame_unwind_signed_register to obtain the PC.
2371 (mips_frame_chain): Handle a generic dummy frame.
2372 (mips_init_extra_frame_info): When a generic dummy frame, don't
2373 re-compute the frame base.
2374 (mips_pop_frame): Handle generic dummy frames.
2375 (mips_gdbarch_init): When generic dummy frames, set
2376 use_generic_dummy_frames, push_dummy_frame to
2377 generic_push_dummy_frame, pc_in_call_dummy to
2378 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2379 generic_save_dummy_frame_tos.
2380
68315eb8
AC
23812002-09-30 Andrew Cagney <ac131313@redhat.com>
2382
2383 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2384 against TOP when TOP was explictly set.
2385 (generic_push_dummy_frame): Set TOP to zero.
2386
3b8630c3
EZ
23872002-09-30 Elena Zannoni <ezannoni@redhat.com>
2388
2389 * event-loop.c (start_event_loop): Rename variable 'result' to
2390 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2391
28ee05e9
KS
23922002-09-30 Keith Seitz <keiths@redhat.com>
2393
2394 * gdb-events.sh (selected_thread_changed): New event.
2395 * gdb-events.c: Regenerated.
2396 * gdb-events.h: Regenerated.
2397
6eecb1c8
HPN
23982002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2399
2400 * MAINTAINERS: Add self to Write After Approval list.
2401
92df71f0
FN
24022002-09-30 Fernando Nasser <fnasser@redhat.com>
2403
3b8630c3
EZ
2404 * disasm.c: New file.
2405 * disasm.h: New file.
92df71f0
FN
2406 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2407 (compare_lines): Ditto.
2408 (dump_insns): Ditto.
3b8630c3
EZ
2409 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2410 argument.
92df71f0 2411 (do_assembly_only): Ditto.
3b8630c3
EZ
2412 (do_disassembly): Renamed to gdb_disassembly and moved to
2413 disasm.c. Sdded uiout argument.
2414 * Makefile.in: Add new files. Reorder SFILES list. Update
2415 dependencies. Include libgdb.a later in the insight executable.
92df71f0 2416
0c22854d
AC
24172002-09-29 Andrew Cagney <ac131313@redhat.com>
2418
2419 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2420 bfd/elf64-alpha-fbsd.c.
2421
e67f2023
AC
24222002-09-29 Andrew Cagney <ac131313@redhat.com>
2423
2424 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2425 i386gnu-tdep.c.
2426
89396210
AC
24272002-09-29 Andrew Cagney <ac131313@redhat.com>
2428
2429 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2430 __FUNCTION__.
2431 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2432 function name.
2433 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2434 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2435 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2436 (S_msg_sig_post_reply): Ditto.
2437
7079c36c
CV
24382002-09-28 Corinna Vinschen <vinschen@redhat.com>
2439
89396210
AC
2440 * sh-tdep.c (sh_use_struct_convention): Use definition according
2441 to ABI.
7079c36c
CV
2442 (sh_push_arguments): Store in register with correct endianess.
2443 (sh_default_store_return_value): Ditto.
2444 (sh_gdbarch_init): Set sizeof long double to 8.
2445
975ac915
MK
24462002-09-27 Mark Kettenis <kettenis@gnu.org>
2447
2448 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2449 Fix some whitespace problems.
2450
9bbe19fb
DC
24512002-09-27 David Carlton <carlton@math.stanford.edu>
2452
2453 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2454 (mcore-tdep.o): Ditto.
2455 (ns32k-tdep.o): Ditto.
2456 (ns32knbsd-tdep.o): Ditto.
2457 (sh3-rom.o): Ditto.
2458 (vax-tdep.o): Ditto.
2459 * cris-tdep.c: #include "gdb_string.h"
2460 * mcore-tdep.c: Ditto.
2461 * ns32k-tdep.c: Ditto.
2462 * ns32knbsd-tdep.c: Ditto.
2463 * sh3-rom.c: Ditto.
2464 * vax-tdep.c: Ditto.
2465
43b2fdc7
DC
24662002-09-27 David Carlton <carlton@math.stanford.edu>
2467
2468 * config/djgpp/fnchange.lst: Add entries for
2469 gdb/testsuite/gdb.c++/m-static files.
2470
e8cfbbd9
JW
24712002-09-27 Jim Wilson <wilson@redhat.com>
2472
2473 * MAINTAINERS: Add myself to the Write After Approval list.
2474
43b2fdc7 24752002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2476
2477 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2478
2479
9f3b7f07
AC
24802002-09-26 Andrew Cagney <ac131313@redhat.com>
2481
2482 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2483 frame.
2484
11269d7e
AC
24852002-09-26 Andrew Cagney <ac131313@redhat.com>
2486
2487 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2488 (rs6000_struct_return_address): Delete variable.
2489 (rs6000_store_struct_return): Update.
2490 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2491 deprecated_extract_struct_value_address.
2492 (rs6000_frame_align): New function.
2493 (rs6000_gdbarch_init): Set frame_align.
2494
f15ab4a7
AC
24952002-09-26 Andrew Cagney <ac131313@redhat.com>
2496
2497 From Grace Sainsbury <graces@redhat.com>:
2498 * Makefile.in (gdbtk-main.o): New target.
2499 (gdb.o): New target.
2500 (main_h): Define.
2501 (main.o): Update dependencies.
2502 (gdb$(EXEEXT)): Add gdb.o.
2503 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2504 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2505 (SUBDIR_GDBTK_CLEAN): Set.
2506 (install-gdbtk): Install the insight binary.
2507 (uninstall-gdbtk): New target.
2508 (all-gdbtk, clean-gdbtk): New rule.
2509 * top.c (use_windows): Default to zero.
2510 * main.c: Include "main.h".
2511 (main): Delete.
2512 (struct captured_main_args): Delete.
2513 (gdb_main): New function.
2514 * main.h: New file.
2515 * gdb.c: New File.
2516
e36180d7
AC
25172002-09-25 Andrew Cagney <cagney@redhat.com>
2518
2519 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2520 (frame_map_regnum_to_name): New function.
2521 (frame_map_name_to_regnum): New function.
2522 * frame.h (frame_map_name_to_regnum): Declare.
2523 (frame_map_regnum_to_name): Declare.
2524 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2525 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2526 * parse.c: Do not include "builtin-regs.h".
2527 (target_map_name_to_register): Delete function.
2528 (write_dollar_variable): Use frame_map_name_to_regnum.
2529 * parser-defs.h (target_map_name_to_register): Delete declaration.
2530 * expprint.c: Include "frame.h".
2531 (print_subexp): Use frame_map_regnum_to_name.
2532 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2533 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2534
8b69000d
AC
25352002-09-25 Andrew Cagney <ac131313@redhat.com>
2536
2537 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2538 wasn't saved, and the next innermost frame is a dummy, return the
2539 dummy frame's link register.
2540
046ca86a
JB
25412002-09-24 Jim Blandy <jimb@redhat.com>
2542
2543 Fix from Paul Breed:
2544 * main.c (captured_main): Add a `break' after the case for 'b'.
2545
94b66fa7
KS
25462002-09-24 Keith Seitz <keiths@redhat.com>
2547
2548 * varobj.c (c_type_of_child): Use get_target_type instead
2549 of TYPE_TARGET_TYPE.
2550
c214a6fd
FN
25512002-09-22 Fernando Nasser <fnasser@redhat.com>
2552
53cb0458
FN
2553 * source.c (get_current_or_default_source_symtab_and_line): Remove
2554 function.
2555 (set_default_source_symtab_and_line): New function. Attempts to
2556 determine a source file to list lines from if one is not currently
2557 defined.
2558 (get_current_source_symtab_and_line): Initialize sal.pc and
2559 sal.end fields.
2560 (set_current_source_symtab_and_line): Mark argument as const.
2561 * source.h: Update declarations and comments.
2562 * linespec.c (decode_line_1): Replace call to removed routine above.
2563 * stack.c (print_frame_info_base): Ditto.
2564 * cli/cli-cmds.c (edit_command): Ditto.
2565 (list_command): Ditto.
2566
25672002-09-22 Fernando Nasser <fnasser@redhat.com>
2568
d6020d45 2569 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2570 sal.pc and sal.end fields.
c214a6fd
FN
2571 (get_current_or_default_source_symtab_and_line): Ditto.
2572 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2573 so we do not cause a new source symtab to be searched for (reverting an
2574 unintentional change from the 2002-09-20 patch).
2575 * scm-lang.c (scm_unpac): Ditto.
2576
cc3b68a5
AC
25772002-09-21 Andrew Cagney <cagney@redhat.com>
2578
2579 * complaints.c (symfile_explanations): Remove new-line from
2580 ``isolated_message''.
2581 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2582 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2583
5835abe7
NC
25842002-09-20 Nick Clifton <nickc@redhat.com>
2585
2586 * NEWS: Announce that V850EA ISA is no longer supported.
2587 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2588
a15ef5f5
DC
25892002-09-20 David Carlton <carlton@math.stanford.edu>
2590
06ba1b39
DC
2591 * Makefile.in (c-lang.o): Correct dependencies.
2592 (utils.o): Gather dependencies.
2593 (charset.o): Move.
a15ef5f5
DC
2594 * c-lang.c: #include "gdb_string.h"
2595
87885426
FN
25962002-09-20 Fernando Nasser <fnasser@redhat.com>
2597
2598 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2599 * cli/cli-cmds.c (list_command): New function. Implements the new
2600 cli edit command.
2601 (_init_cli_cmds): Add new command definition.
2602 * gdb.1: Document edit command.
2603 * doc/gdb.texinfo: Document edit command.
2604
26052002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2606
2607 * source.c: Make global variables current_source_symtab and
2608 current_source_line static.
2609 (list_command): Moved to cli/cli-cmds.c.
2610 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2611 (get_first_line_listed): New accessor function.
2612 (get_lines_to_list): New accessor function.
2613 (get_current_source_symtab_and_line): New function. Retrieves the
2614 position in the source code that we consider current.
2615 (get_current_or_default_source_symtab_and_line): New function.
2616 Like the above but attempts to determine a default position if one
2617 is not currently defined.
2618 (set_current_source_symtab_and_line): New function. Sets the source
2619 code position considered current and returns the previously set one.
2620 (clear_current_source_symtab_and_line): Reset stored information about
2621 a current source line.
2622 (_initialize_source): Remove registration for the "list" command and
2623 its alias.
2624 * source.h: Add declarations for the new functions above.
2625 * symtab.h: Remove declarations for the global variables mentioned
2626 above.
2627 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2628 obtain current source line.
2629 * linespec.c (decode_line_1): Ditto.
2630 * macroscope.c (default_macro_scope): Ditto.
2631 * scm-lang.c (scm_unpac): Ditto.
2632 * stack.c (print_frame_info_base): Ditto.
2633 * symfile.c (clear_symtab_users): Ditto.
2634 * symtab.c (decode_line_spec): Ditto.
2635 * cli/cli-cmds.c (list_command): Moved here from source.c.
2636 (ambiguous_line_spec): Moved here from source.c.
2637 (_init_cli_cmds): Add definition for "list" and its alias.
2638 * Makefile.in: Update dependencies.
2639
ddd216ea
CV
26402002-09-20 Corinna Vinschen <vinschen@redhat.com>
2641
2642 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2643 with what gcc thinks is correct.
2644
6d305052
CV
26452002-09-20 Corinna Vinschen <vinschen@redhat.com>
2646
2647 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2648 multiple register push instruction.
2649
234b45d4
KB
26502002-09-19 Jim Blandy <jimb@redhat.com>
2651
2652 Add support for distinct host and target character sets.
2653 * charset.c, charset.h: New files.
2654 * c-exp.y: #include "charset.h".
2655 (yylex): Convert character and string literals to the target
2656 character set, before returning them as the semantic value of the
2657 token.
2658 * c-lang.c: #include "charset.h".
2659 (c_emit_char): Use charset-specific methods to recognize
2660 characters with backslash escape forms, to decide which characters
2661 to print literally and which to print using numeric escape
2662 sequences, and to convert target characters to host characters
2663 before printing.
2664 * utils.c: #include "charset.h".
2665 (no_control_char_error): New function.
2666 (parse_escape): Use charset-specific methods to recognize
2667 backslash escapes, parse `control character' notation, and convert
2668 characters from the host character set to the target character set.
2669 * configure.in: Set the default host character set.
2670 Check where to find iconv, and what its argument types might be.
2671 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2672 * Makefile.in (SFILES): List charset.c.
2673 (COMMON_OBS): List charset.o.
2674 (charset.o): New rule.
2675 (charset_h): New header dependency variable.
2676 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2677 (LIBICONV): New variable, set by configure.
2678 (CLIBS): Include $(LIBICONV) here.
2679 * aclocal.m4, config.in, configure: Regenerated.
2680
525d6a61
JB
26812002-09-19 Joel Brobecker <brobecker@gnat.com>
2682
2683 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2684 bison 1.35 warning.
2685
3ed93867
RE
26862002-09-19 Richard Earnshaw <rearnsha@arm.com>
2687
2688 * gdb_mbuild.sh: New file.
2689
437666f8
AC
26902002-09-19 Andrew Cagney <ac131313@redhat.com>
2691
2692 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2693
389e51db
AC
26942002-09-18 Andrew Cagney <ac131313@redhat.com>
2695
2696 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2697 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2698 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2699 valops.c, value.h: Revert previous change.
2700
3b4efeaa
MS
27012002-09-18 Michael Snyder <msnyder@redhat.com>
2702
2703 Preliminary support for Objective-C:
2704 * defs.h (language_objc): New enum value.
2705 (puts_filtered_tabular): Declaration only, exported from utils.c.
2706 (skip_quoted): Delete, declared in completer.h.
2707 * c-exp.y: Include completer.h.
2708 * p-exp.y: Ditto.
2709 * jv-exp.y: Ditto.
2710 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2711 New operator enum values.
2712 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2713 * language.c (binop_result_type): Handle language_objc case.
2714 (integral_type, character_type, string_type, boolean_type,
2715 structured_type, binop_type_check): Ditto.
2716 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2717 (struct objc_specific): Add to general_symbol_info.
2718 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2719 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2720 * parser-defs.h (struct objc_class_str): New struct type.
2721 (start_msglist, end_msglist, add_msglist): Declaration only,
2722 exported from objc-lang.c.
2723 * value.h (value_of_local, value_nsstring,
2724 call_function_by_hand_expecting_type): Exported from valops.c.
2725 * valops.c (find_function_addr): Export.
2726 (call_function_by_hand_expecting_type): New function.
2727 (value_of_local): New function.
2728 * symfile.c (init_filename_language_table): Add ".m" extension
2729 for Objective-C.
2730 * utils.c (puts_filtered_tabular): New function.
2731 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2732 (set/show demangle): Extend help-string to refer to ObjC.
2733 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2734 * stabsread.c (symbol_reference_defined): Objective-C symbols
2735 may contain colons: make allowances when scanning stabs strings
2736 for colons.
2737 (objc_find_colon): New function.
2738 * printcmd.c (address_info): If language == objc then print
2739 "self" instead of "this".
2740 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2741 OP_NSSTRING, and OP_SELF.
2742 (prefixify_subexp): Ditto.
2743 * source.c (print_source_lines): Mention objc in comment.
2744 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2745 method names.
2746
b9caf505
AC
27472002-09-18 Andrew Cagney <ac131313@redhat.com>
2748
2749 * complaints.h: Update copyright.
2750 (struct complaints): Declare.
2751 (struct complaint): Make `message' constant.
2752 (internal_complaint): Declare.
2753 (complaint): Declare.
2754 (complaint_root): Delete declaration.
2755 (symfile_complaints): Delete declaration.
2756 (struct complaints): Add opaque declaration.
2757 (clear_complaints): Add a complaints parameter.
2758 * complaints.c: Update copyright.
2759 (enum complaint_series): Define.
2760 (complaint_root): Delete.
2761 (struct complaints): Define.
2762 (complaint_sentinel, symfile_complaint_book): New variables.
2763 (symfile_explanations, symfile_complaints): New variables.
2764 New variables.
2765 (get_complaints): New function.
2766 (vcomplaint): New function.
2767 (complaint): New function.
2768 (internal_complaint): New function.
2769 (complain): Call vcomplain with symfile_complaint.
2770 (clear_complaints): Rewrite.
2771 (_initialize_complaints): Use add_setshow_command.
2772 * Makefile.in (complaints.o): Update dependencies.
2773 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2774 to call to clear_complaints.
2775 (new_symfile_objfile, reread_symbols): Ditto.
2776 (oldsyms_complaint): Delete.
2777 (empty_symtab_complaint, unknown_option_complaint): Delete.
2778 (free_named_symtabs): Use complaint instead of complain.
2779
d2e6263c
MS
27802002-09-18 Michael Snyder <msnyder@redhat.com>
2781
5fb2031a
AC
2782 Contributed by Apple Computer, Inc. Merged with current sources
2783 by Adam Fedor <fedor@doc.com> [cagney].
2784
d2e6263c
MS
2785 * objc-lang.c: First clean-up round: comments, indentation.
2786 * objc-lang.h: Ditto.
2787 * objc-lang.y: Ditto.
2788
dec43320
AC
27892002-09-18 Andrew Cagney <ac131313@redhat.com>
2790
2791 * maint.c (maintenance_internal_error): Print the parameter as the
2792 error message.
2793 (maintenance_internal_warning): New function.
2794 (_initialize_maint_cmds): Add command `maint internal-warning'.
2795
2796 * defs.h (internal_warning, internal_vwarning): Declare.
2797 * utils.c (struct internal_problem): Define.
2798 (internal_vproblem): New function.
2799 (internal_warning): New function.
2800 (internal_vwarning): New function.
2801 (internal_warning_problem, internal_error_problem): New variables.
2802 (internal_verror): Just call internal_vproblem.
2803
b81654f1
MS
28042002-09-18 Michael Snyder <msnyder@redhat.com>
2805
2806 * objc-lang.c: New file, support for Objective-C.
2807 Preliminary check-in, not yet integrated into gdb.
2808 * objc-lang.h: New file.
2809 * objc-exp.y: New file.
2810
0542c381
AC
28112002-09-18 Andrew Cagney <ac131313@redhat.com>
2812
7bda5e4a
AC
2813 * infrun.c (signal_stop_update): Convert definition to ISO C.
2814 (signal_print_update): Ditto.
2815 (signal_pass_update): Ditto.
2816 * inflow.c (terminal_save_ours): Ditto.
2817
5247b418
AC
2818 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2819 comments.
2820
fc60962c
AC
2821 * config/djgpp/fnchange.lst: Handle name clashes between
2822 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2823 bfd/coff-tic80.c.
2824
0542c381
AC
2825 * i386-linux-tdep.h: Fix tipo.
2826
5b924b9b
AF
28272002-09-18 Adam Fedor <fedor@gnu.org>
2828
2829 * MAINTAINERS: Add myself to the Write After Approval list.
2830
5afc051b
JB
28312002-09-18 Jim Blandy <jimb@redhat.com>
2832
2833 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2834 texthigh and textlow to reader-specific structs caused
2835 objfile_relocate to miss them. This is fixable, but the work that
2836 the change was supposed to prepare GDB for never got done anyway.
2837
eb944380
DC
28382002-09-18 David Carlton <carlton@math.stanford.edu>
2839
2840 * MAINTAINERS: Alphabetize Write After Approval list.
2841
948e66d9
DJ
28422002-09-18 Daniel Jacobowitz <drow@mvista.com>
2843
2844 Fix PR gdb/709
2845 * values.c (value_static_field): Call read_var_value.
2846
dc604539
AC
28472002-09-18 Andrew Cagney <ac131313@redhat.com>
2848
2849 * valops.c (hand_function_call): Align the initial stack pointer
2850 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2851 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2852 return value.
2853 * mips-tdep.c (mips_frame_align): New function.
2854 (mips_gdbarch_init): Set frame_align.
2855 * gdbarch.sh (FRAME_ALIGN): New method.
2856 * gdbarch.h, gdbarch.c: Re-generate.
2857
cb7e422f
ML
28582002-09-18 Michal Ludvig <mludvig@suse.cz>
2859
2860 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2861 registers.
2862
a094c6fb
AC
28632002-09-17 Andrew Cagney <ac131313@redhat.com>
2864
2865 * NEWS: Mention that MIPS $fp behavior changed.
2866 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2867 reference to FP_REGNUM.
2868 (mipsnbsd_cannot_store_register): Ditto.
2869 * mips-linux-nat.c: Update copyright.
2870 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2871 (mips_linux_cannot_store_register): Ditto.
2872 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2873 * config/mips/tm-mips.h: Update copyright.
2874 (FP_REGNUM): Delete macro.
2875 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2876 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2877 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2878 (mips_r3041_reg_names, mips_r3051_reg_names)
2879 (mips_r3081_reg_names): Replace "fp" with "".
2880 Fix PR gdb/480.
2881
45cf40d1
TR
28822002-09-17 Theodore A. Roth <troth@verinet.com>
2883
2884 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2885 generic_read_register_dummy() (PR gdb/703).
2886 (avr_push_return_address): #if 0 out unused vars.
2887 (avr_gdbarch_init): Enable use of avr_push_return_address().
2888
c7e701b5
MS
28892002-09-17 Michael Snyder <msnyder@redhat.com>
2890
d76ba2a5 2891 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
2892 RTE will take care of it.
2893
20bcf01c
AC
28942002-09-17 Andrew Cagney <ac131313@redhat.com>
2895
2896 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2897 invalid, return SP_REGNUM.
2898
009a9971 28992002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
2900
2901 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2902 point registers without sign extension.
2903
135c175f
AC
29042002-09-17 Andrew Cagney <cagney@redhat.com>
2905
2906 * blockframe.c (deprecated_read_register_dummy): Rename
2907 generic_read_register_dummy.
2908 * frame.c (frame_unwind_signed_register): New function.
2909 (frame_unwind_unsigned_register): New function.
2910 * frame.h (frame_unwind_signed_register): Declare.
2911 (frame_unwind_unsigned_register): Declare.
2912 (deprecated_read_register_dummy): Rename
2913 generic_read_register_dummy.
2914
2915 * h8300-tdep.c (h8300_frame_chain): Update.
2916 (h8300_frame_saved_pc): Update.
2917 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2918 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2919 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2920 (s390_frame_chain): Update.
2921 * v850-tdep.c (v850_find_callers_reg): Update.
2922 (v850_frame_saved_pc): Update.
2923 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2924 (m32r_find_callers_reg): Update.
2925 (m32r_frame_saved_pc): Update.
2926 * sh-tdep.c (sh_find_callers_reg): Update.
2927 (sh64_get_saved_pr): Update.
2928 (sh_init_extra_frame_info): Update.
2929 (sh_init_extra_frame_info): Update.
2930 (sh64_init_extra_frame_info): Update.
2931 (sh64_init_extra_frame_info): Update.
2932 * mcore-tdep.c (mcore_find_callers_reg): Update.
2933 (mcore_frame_saved_pc): Update.
2934 (mcore_init_extra_frame_info): Update.
2935 * i386-tdep.c (i386_frame_saved_pc): Update.
2936 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2937 (ia64_init_extra_frame_info): Update.
2938 (ia64_init_extra_frame_info): Update.
2939 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2940 * cris-tdep.c (cris_init_extra_frame_info): Update.
2941 * avr-tdep.c (avr_frame_chain): Update.
2942 (avr_init_extra_frame_info): Update.
2943 (avr_frame_saved_pc): Update.
2944 * arm-tdep.c (arm_find_callers_reg): Update.
2945 (arm_init_extra_frame_info): Update.
2946 (arm_frame_saved_pc): Update.
2947
a741e514
TT
29482002-09-17 Tom Tromey <tromey@redhat.com>
2949
2950 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2951 is "'".
2952
d1a8e808
CV
29532002-09-17 Corinna Vinschen <vinschen@redhat.com>
2954
2955 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2956 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2957 NEXT_PROLOGUE_INSN.
2958 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2959 NEXT_PROLOGUE_INSN.
2960
d9025a18
JB
29612002-09-16 Joel Brobecker <brobecker@gnat.com>
2962
2963 * osfsolib.c: Remove file, replaced by solib-osf.c.
2964 * Makefile.in: Remove compilation rules for osfsolib.c.
2965
1b2ef1b6
DC
29662002-09-16 David Carlton <carlton@math.stanford.edu>
2967
2968 * cp-valprint.c (cp_print_class_method): Correct args to
2969 check_stub_method_group.
2970
928e48af
CV
29712002-09-16 Corinna Vinschen <vinschen@redhat.com>
2972
2973 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2974 `set architecture'. Unify naming convention of functions.
2975 (h8300_skip_prologue): Improve prologue analysis.
2976 (h8300_push_arguments): Rewritten to more closely match GCC's
2977 bizarre argument-passing behavior, along with the comment describing
2978 said behavior.
2979 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2980 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2981 sim, remote-e7000.c, remote-hms.c and remote.c
2982
5e3397bb
MK
29832002-09-15 Mark Kettenis <kettenis@gnu.org>
2984
2985 * i386-tdep.c (gdb_print_insn_i386): Removed.
2986 (i386_print_insn): New function.
2987 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2988 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2989 tm_print_insn_info.
2990
f710f4fc
MK
29912002-09-14 Mark Kettenis <kettenis@gnu.org>
2992
2993 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2994 zero.
2995
db54fef4
CV
29962002-09-14 Corinna Vinschen <vinschen@redhat.com>
2997
2998 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2999 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3000 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3001
2becadee
CF
30022002-09-13 Christopher Faylor <cgf@redhat.com>
3003
3004 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3005
de17c821
DJ
30062002-09-13 Daniel Jacobowitz <drow@mvista.com>
3007
3008 * gdbtypes.c (check_stub_method): Make static.
3009 (check_stub_method_group): New function.
3010 * gdbtypes.h: Update prototypes.
3011 * cp-support.c: New file.
3012 * cp-support.h: New file.
3013
3014 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3015 (update_method_name_from_physname): New function.
3016 (read_member_functions): Correct method names for operators
3017 and v3 constructors/destructors. Separate v2 constructors and
3018 destructors.
3019 * Makefile.in (stabsread.o): Update dependencies.
3020 (SFILES): Add cp-support.c.
3021 (COMMON_OBS): Add cp-support.o.
3022 (cp_support_h, cp-support.o): Add.
3023
3024 * cp-valprint.c (cp_print_class_method): Call
3025 check_stub_method_group instead of check_stub_method. Remove
3026 extraneous QUITs.
3027 * p-valprint.c (pascal_object_print_class_method): Likewise.
3028 * valops.c (search_struct_method): Likewise.
3029 (find_method_list, value_struct_elt_for_reference): Likewise.
3030
e76cff22
AC
30312002-09-13 Andrew Cagney <cagney@redhat.com>
3032
3033 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3034 * gdbarch.h, gdbarch.c: Regenerate.
3035
905abb3f
AC
30362002-09-13 Andrew Cagney <ac131313@redhat.com>
3037
3038 * frame.c (find_saved_register): Delete function.
3039 * frame.h (find_saved_register): Delete declaration.
3040 Fix PR gdb/631.
3041
64159455
AC
3042Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3043
3044 * mips-tdep.c (read_next_frame_reg): Re-hack using
3045 frame_register_unwind.
3046
795e1e11
AC
3047Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3048
3049 * mips-tdep.c (mips_get_saved_register): Re-hack using
3050 frame_register_unwind.
3051
5720643c
JB
30522002-09-12 Joel Brobecker <brobecker@gnat.com>
3053
3054 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3055 vector. Will be useful for Interix.
3056 * gdbarch.h, gdbarch.c: Regenerate.
3057
3058 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3059 name of the malloc function by NAME_OF_MALLOC.
3060
3bada2a2
JB
30612002-09-12 Joel Brobecker <brobecker@gnat.com>
3062
3063 * value.h (find_function_in_inferior): Add const keyword to
3064 one of the parameters. Allows us to invoke this function with
3065 a const char *.
3066 * valops.c (find_function_in_inferior): Likewise.
3067
3db26b01
JB
30682002-09-12 Joel Brobecker <brobecker@gnat.com>
3069
3070 * exec.c (xfer_memory): Fix compilation warning with old versions
3071 of GCC.
3072 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3073
17c5ed2c
DC
30742002-09-12 David Carlton <carlton@math.stanford.edu>
3075
3076 * symtab.h: Run through gdb_indent.h.
3077 Add 2002 to Copyright year list.
3078
ecd1107e
AM
30792002-09-12 Alan Modra <amodra@bigpond.net.au>
3080
3081 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3082 mach constants.
3083 * MAINTAINERS: Add myself to write after approval list.
3084
e64f66d1
JB
30852002-09-11 J. Brobecker <brobecker@gnat.com>
3086
3087 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3088
f9395794
JB
30892002-09-11 J. Brobecker <brobecker@gnat.com>
3090
3091 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3092 Interix.
3093
1a303dec
MS
30942002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3095
3096 * procfs.c (do_detach): Clear current signal, not just fault.
3097 Corrects problem with breakpoint trap signal leaking to detached
3098 process on Tru64.
3099
c0219d42
MS
31002002-09-10 Michael Snyder <msnyder@redhat.com>
3101
3102 * buildsym.c (finish_block): Protect against null pointer.
3103
9d84ac84
AC
31042002-09-10 Andrew Cagney <cagney@redhat.com>
3105
3106 * infcmd.c (default_print_registers_info): Send all output to
3107 ``file'' instead of ``gdb_stdout''.
3108
77d8f2b4
MS
31092002-09-10 Michael Snyder <msnyder@redhat.com>
3110
3111 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3112 LONGEST, and use signed register read (addresses are sign-
3113 extended for mips).
3114
99656a61
SC
31152002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3116
3117 * event-loop.c (gdb_do_one_event): Make public.
3118 * event-loop.h (gdb_do_one_event): Declare.
3119
da12f4d8
JL
31202002-09-10 Jeff Law <law@redhat.com>
3121
3122 * infttrace.c (child_resume): Simplify and rework to avoid
3123 TT_PROC_CONTINUE.
3124
d0aee0c4
FF
31252002-09-09 Fred Fish <fnf@intrinsity.com>
3126
3127 * printcmd.c (print_scalar_formatted): "len" is the number of
3128 target bytes, NOT the number of target bits.
3129
7cb3ec5e
EZ
31302002-09-09 Elena Zannoni <ezannoni@redhat.com>
3131
3132 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3133 * top.c (init_main): Set rl_terminal_name.
3134
4dc81987
AS
31352002-09-08 Aidan Skinner <aidan@velvet.net>
3136
3137 * ada-lang.c (ada_array_bound, ada_type_match,
3138 _initialize_ada_language): Fix K&R definitions.
3139 * ada-tasks.c (get_current_task): Fix K&R definitions.
3140 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3141
842330b4
CF
31422002-09-07 Christopher Faylor <cgf@redhat.com>
3143
3144 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3145 Add XP.
3146
43156d82
MK
31472002-09-06 Mark Kettenis <kettenis@gnu.org>
3148
66da5fd8
MK
3149 * i386-tdep.c (i386_register_virtual_type,
3150 i386_register_convertible, i386_register_convert_to_virtual,
3151 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3152 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3153 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3154 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3155 Don't set push_arguments twice.
3156
4b218c18
MK
3157 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3158 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3159 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3160 sigtramp_end to NULL.
3161 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3162 defines.
3163 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3164
4cc314d5
MK
3165 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3166 whitespace.
3167
43156d82
MK
3168 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3169 * gdbarch.h, gdbarch.c: Re-generate.
3170 * blockframe.c (find_pc_sect_partial_function): Convert to use
3171 SIGTRAMP_START_P predicate.
3172
6672060b
MS
31732002-09-05 Michael Snyder <msnyder@redhat.com>
3174
a90c3637
MS
3175 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3176 generic_dummy_frame method and old method. Also distinguish
3177 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 3178 (arm_extract_return_value): Use new regcache method.
a90c3637 3179
6672060b
MS
3180 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3181 adjustment that doesn't conform to the ABI.
3182 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3183 saved regcache, not from current regcache.
3184
299ffc64
AC
31852002-09-05 Andrew Cagney <ac131313@redhat.com>
3186
3187 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3188 * README: Update.
3189
a3a2ee65
JT
31902002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3191
3192 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3193 if arm_apcs_32 is false.
3194
2bc7eea9
AC
31952002-09-04 Andrew Cagney <ac131313@redhat.com>
3196
3197 GDB 5.3 branch created.
3198
8a55a7c5
TR
31992002-09-03 Theodore A. Roth <troth@verinet.com>
3200
3201 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3202 generic_unwind_get_saved_register.
3203
e26fb1d7
DC
32042002-09-03 David Carlton <carlton@math.stanford.edu>
3205
3206 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3207 argument (PR gdb/653). Update call to smash_to_method_type.
3208 (read_structure_scope): Update call to dwarf2_add_member_fn.
3209
30d52491
ML
32102002-09-03 Michal Ludvig <mludvig@suse.cz>
3211
3212 * x86-64-linux-tdep.c: Include gdb_string.h
3213 * x86-64-linux-nat.c: Ditto.
3214
06891d83
JT
32152002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3216
3217 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3218 when YYDEBUG is set to 1.
3219 * c-exp.y: Likewise.
3220 * f-exp.y: Likewise.
3221 * jv-exp.y: Likewise.
3222 * m2-exp.y: Likewise.
3223 * p-exp.y: Likewise.
3224
7d400e77
JT
32252002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3226
3227 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3228 dependency list.
3229 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3230 solib_svr4_fetch_link_map_offsets to
3231 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3232 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3233 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3234 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3235 solib-svr4.o, and solib-legacy.o.
3236 * config/i386/tm-nbsd.h: Include solib.h.
3237
704a27c4
JT
32382002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3239
3240 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3241 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3242 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3243 comment noting that this needs its own target configuration.
3244 * config/i386/nbsd.mt: New file.
3245 * config/i386/nbsdaout.mt: Remove.
3246 * config/i386/nbsdelf.mt: Ditto.
3247 * config/i386/tm-nbsdaout.h: Ditto.
3248
d66198e1
JT
32492002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3250
3251 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3252 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3253 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3254 tdep->sigtramp_end.
3255 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3256 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3257 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3258
3cac699e
JT
32592002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3260
3261 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3262 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3263 * i386-tdep.h (i386bsd_init_abi): New prototype.
3264 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3265 function declaration.
3266 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3267 for NetBSD-a.out or NetBSD-ELF.
3268 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3269 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3270 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3271 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3272 and nbsd-tdep.h.
3273 (i386nbsd_pc_in_sigtramp): New function.
3274 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3275 i386nbsd_pc_in_sigtramp.
3276 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3277 and i386nbsdelf_init_abi OS ABI handlers.
3278 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3279 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3280
7010ca0a
MK
32812002-09-02 Mark Kettenis <kettenis@gnu.org>
3282
3283 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3284 registers if the target really has them.
3285
6dd93b72
JT
32862002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3287
3288 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3289 than nbsd-tdep.h.
3290
2ca8ae21
JT
32912002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3292
3293 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3294 list.
3295 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3296 (alphanbsd_skip_sigtramp_frame): New functions.
3297 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3298 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3299 to alphanbsd_sigcontext_addr.
3300
3d9b49b0
JT
33012002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3302
3303 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3304 list.
3305 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3306 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3307 nbsd_pc_in_sigtramp.
3308 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3309 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3310 * nbsd-tdep.c: Include gdb_string.h.
3311 (nbsd_pc_in_sigtramp): New function.
3312 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3313 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3314 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3315 ppcnbsd_pc_in_sigtramp.
3316 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3317 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3318 shnbsd_pc_in_sigtramp.
3319 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3320 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3321 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3322
c860120c
PM
33232002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3324
3325 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3326 watchpoints to NULL.
3327 (insert_breakpoints): set val field of watchpoints if NULL.
3328
3329
c7612d53
JB
33302002-08-29 Jim Blandy <jimb@redhat.com>
3331
3332 * symtab.c (lookup_symbol_aux): In the cases where we find a
3333 minimal symbol of an appropriate name and use its address to
3334 select a symtab to read and search, use `name' (as passed to us)
3335 as the demangled name when searching the symtab's global and
3336 static blocks, not the minsym's name.
3337
66609862
KS
33382002-08-29 Keith Seitz <keiths@redhat.com>
3339
3340 * stack.c (print_frame_info_base): Always set current_source_symtab
3341 and current_source_line.
3342
151fefe2
JB
33432002-08-29 Donn Terry <donnte@microsoft.com>
3344
3345 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3346
bfb3754e
KS
33472002-08-28 Keith Seitz <keiths@redhat.com>
3348
3349 * stack.c (select_frame): Add FIXME concerning selected-frame
3350 events.
3351 (select_frame_command): Send selected-frame-level-changed
3352 event notification, but only if the level actually changed.
3353 (up_silently_base): Add selected-frame-level-changed event
3354 notification.
3355 (down_silently_base): Likewise.
3356
e822a2a0
AC
33572002-08-28 Andrew Cagney <ac131313@redhat.com>
3358
3359 * Makefile.in: Update dependencies for all gdb/*.c files.
3360
309367d4
TT
33612002-08-27 Tom Tromey <tromey@redhat.com>
3362
3363 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3364 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3365 Update dependencies.
3366 * i387-tdep.c: Include gdb_string.h.
3367 * osabi.c: Likewise.
3368 * i386-linux-nat.c: Likewise.
3369 * lin-lwp.c: Likewise.
3370 * ax-gdb.c: Likewise.
3371 * signals/signals.c: Likewise.
3372 * jv-valprint.c: Likewise.
3373 * p-lang.c: Likewise.
3374 * c-valprint.c: Likewise.
3375 * cp-abi.c: Likewise.
3376
e1507482
EZ
33772002-08-27 Elena Zannoni <ezannoni@redhat.com>
3378
3379 * cli/cli-script.h (copy_command_lines): Export.
3380 * breakpoint.c: Include cli/cli-script.h.
3381 * Makefile.in (breakpoint.o): Update dependencies.
3382
c6510018
MS
33832002-08-26 Michael Snyder <msnyder@redhat.com>
3384
3385 * breakpoint.c (insert_breakpoints): Protect all references
3386 to 'process_warning'. Shorten long lines.
3387
c2b8ed2c
MS
33882002-08-26 Joel Brobecker <brobecker@gnat.com>
3389
3390 * cli/cli-script.c (copy_command_lines): New function.
3391 * defs.h (copy_command_lines): Export.
3392 * testsuite/gdb.base/commands.exp: New tests for commands
3393 attached to a temporary breakpoint, and for commands that
3394 delete the breakpoint they are attached to.
3395
33962002-08-26 Michael Snyder <msnyder@redhat.com>
3397
3398 * breakpoint.c (bpstat_stop_status): Instead of copying the
3399 pointer to the breakpoint commands struct, make a new copy
3400 of the struct and point to that.
3401 (bpstat_clear): Free the commands struct.
3402 (bpstat_clear_actions): Free the commands struct.
3403 (bpstat_do_actions): Free the command actions. Also execute
3404 the local cleanups, instead of deleting them.
3405 (delete_breakpoint): Leave the commands field of the bpstat
3406 chain alone -- it will be freed later.
3407
64b84175
KB
34082002-08-26 Kevin Buettner <kevinb@redhat.com>
3409
3410 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3411 deleted in 2002-08-20 commit. This function is still used by
3412 ppc-linux-nat.c.
3413
55970da6
KS
34142002-08-26 Keith Seitz <keiths@redhat.com>
3415
3416 * gdb-events.sh: Add selected-frame-level-changed event.
3417 * gdb-events.c: Regenerated.
3418 * gdb-events.h: Regenerated.
3419
a790ad35
SC
34202002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3421
3422 Fix PR gdb/393:
3423 * inflow.c (terminal_save_ours): New function to save terminal
3424 settings.
3425 * inferior.h (terminal_save_ours): Declare.
3426 * target.c (debug_to_terminal_save_ours): New function.
3427 (cleanup_target): Defaults to_terminal_save_ours.
3428 (update_current_target): Inherit to_terminal_save_ours.
3429 (setup_target_debug): Set to_terminal_save_ours.
3430 * target.h (target_terminal_save_ours): New to save terminal settings.
3431 (target_ops): New member to_terminal_save_ours.
3432 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3433 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3434 * inftarg.c (init_child_ops): Likewise.
3435 * m3-nat.c (init_m3_ops): Likewise.
3436 * procfs.c (init_procfs_ops): Likewise.
3437 * wince.c (init_child_ops): Likewise.
3438 * win32-nat.c (init_child_ops): Likewise.
3439 * sol-thread.c (init_sol_thread_ops): Likewise.
3440
c00dcbe9
MK
34412002-08-26 Mark Kettenis <kettenis@gnu.org>
3442
3d7f4f49
MK
3443 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3444 use regcache_* functions.
3445 (i386_gdbarch_init): Set store_return_value instead of
3446 deprecated_store_return_value.
3447
c00dcbe9
MK
3448 * regcache.c (regcache_raw_write_signed,
3449 regcache_raw_write_unsigned): New functions.
3450 * regcache.h (regcache_raw_write_signed,
3451 regcache_raw_write_unsigned): New prototypes.
3452
0e0d15ca
AC
34532002-08-25 Andrew Cagney <ac131313@redhat.com>
3454
3455 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3456 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3457 source file dependencies. Cleanup corresponding generator rules.
3458
d3b22ed5
AC
34592002-08-25 Andrew Cagney <ac131313@redhat.com>
3460
3461 * regcache.h (register_offset_hack): Declare.
3462 (regcache_cooked_read_using_offset_hack): Declare.
3463 (regcache_cooked_write_using_offset_hack): Declare.
3464
3465 * regcache.c (register_offset_hack): New function.
3466 (regcache_cooked_read_using_offset_hack): New function.
3467 (regcache_cooked_write_using_offset_hack): New function.
3468 (regcache_dump): Check that the registers, according to their
3469 offset, are packed hard against each other.
3470 (cooked_xfer_using_offset_hack): New function.
3471
bb425013
AC
34722002-08-25 Andrew Cagney <ac131313@redhat.com>
3473
3474 * regcache.c (struct regcache_descr): Add field register_type.
3475 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3476 in as a parameter
3477 (init_regcache_descr): Initialize register_type. Pass the descr
3478 to init_legacy_regcache_descr. Use register_type instead of
3479 REGISTER_VIRTUAL_TYPE.
3480 (register_type): New function.
3481 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3482 * regcache.h (register_type): Declare.
3483
d0403e00
AC
34842002-08-25 Andrew Cagney <ac131313@redhat.com>
3485
3486 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3487 instead of deprecated_store_return_value. Fix fallout from
3488 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3489
0ed04cce
AC
34902002-08-25 Andrew Cagney <ac131313@redhat.com>
3491
3492 * regcache.c (max_register_size): New function.
3493 (init_legacy_regcache_descr): Ensure that max_register_size is
3494 large enough for REGISTER_VIRTUAL_SIZE.
3495 * regcache.h (max_register_size): Declare.
3496
46d79c04
AC
34972002-08-24 Andrew Cagney <ac131313@redhat.com>
3498
3499 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3500 store_return_value.
3501 (e500_extract_return_value): Change type of valbuf pointer to
3502 void.
3503
853c7bd0
MK
35042002-08-24 Mark Kettenis <kettenis@gnu.org>
3505
cd87e769
MK
3506 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3507 workaround.
3508
853c7bd0
MK
3509 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3510 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3511 long long) to prevent compiler warning on 64-bit systems.
3512
ebba8386
AC
35132002-08-23 Andrew Cagney <cagney@redhat.com>
3514
3515 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3516 (DEPRECATED_STORE_RETURN_VALUE): New method.
3517 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3518 * gdbarch.h, gdbarch.c: Re-generate.
3519
3520 * values.c (set_return_value): Pass current_regcache to
3521 STORE_RETURN_VALUE.
3522 * arch-utils.h (legacy_store_return_value): Declare.
3523 * arch-utils.c (legacy_store_return_value): New function.
3524 (legacy_extract_return_value): Update parameters.
3525
3526 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3527 STORE_RETURN_VALUE.
3528 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3529 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3530 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3531 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3532 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3533 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3534 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3535 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3536 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3537 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3538
3539 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3540 * i386-tdep.c (i386_extract_return_value): Update.
3541 * arch-utils.c (legacy_extract_return_value): Update.
3542 * frv-tdep.c (frv_gdbarch_init): Update.
3543 * cris-tdep.c (cris_gdbarch_init): Update.
3544 * d10v-tdep.c (d10v_gdbarch_init): Update.
3545 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3546 * m68k-tdep.c (m68k_gdbarch_init): Update.
3547 * mcore-tdep.c (mcore_gdbarch_init): Update.
3548 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3549 * s390-tdep.c (s390_gdbarch_init): Update.
3550 * sparc-tdep.c (sparc_gdbarch_init): Update.
3551 * sh-tdep.c (sh_gdbarch_init): Update.
3552 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3553 * v850-tdep.c (v850_gdbarch_init): Update.
3554 * avr-tdep.c (avr_gdbarch_init): Update.
3555 * ia64-tdep.c (ia64_gdbarch_init): Update.
3556 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3557 * vax-tdep.c (vax_gdbarch_init): Update.
3558 * alpha-tdep.c (alpha_gdbarch_init): Update.
3559 * arm-tdep.c (arm_gdbarch_init): Update.
3560 * mips-tdep.c (mips_gdbarch_init): Update.
3561 * i386-tdep.c (i386_gdbarch_init): Update.
3562
5bd8c6d0
AC
35632002-08-23 Andrew Cagney <ac131313@redhat.com>
3564
3565 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3566 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3567
e73e1724
MK
35682002-08-24 Mark Kettenis <kettenis@gnu.org>
3569
3570 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3571 problems.
3572
3e6564e1
JB
35732002-08-23 Joel Brobecker <brobecker@gnat.com>
3574
3575 * infrun.c (handle_inferior_event): Move a comment outside of a
3576 function call, in order to avoid indent reformatting this part
3577 of the code in an unreadable way.
3578
81d0cc19
GS
35792002-08-23 Grace Sainsbury <graces@redhat.com>
3580
3581 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3582 when breakpoints fail. Move general breakpoint error messages to
3583 insert_breakpoints.
3584 * breakpoint.c (insert_breakpoints): Change warnings when
3585 breakpoints are nto inserted to specify the type. Remove call to
3586 memory_error when hardware breakpoints can't be inserted. Remove
3587 multiple calls to warning so all messages are sent to the user at
3588 once.
3589 (delete_breakpoints): Make insert error messsages more explicit.
3590
17574093
DJ
35912002-08-23 Daniel Jacobowitz <drow@mvista.com>
3592
3593 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3594 gdbserver/ChangeLog.
3595
8acc2935
MK
35962002-08-23 Mark Kettenis <kettenis@gnu.org>
3597
dfe01d39
MK
3598 * i386-tdep.c: Include "objfiles.h".
3599 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3600 skip_trampoline_code.
3601 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3602 (CPLUS_MARKER): Define to '.'.
3603
8acc2935
MK
3604 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3605 member.
3606 (linux_corefile_thread_callback): Increase args->num_notes.
3607 (linux_make_note_section): Initialize thread_args.num_notes, and
3608 use it to determine whether notes for any threads were created.
3609
151fefe2 36102002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3611
3612 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3613 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3614 and PCUNKILL.
3615 (write_with_trace): Conditionalize out the switch branch handling
3616 PCSHOLD if the corresponding macro is not defined. Likewise for
3617 PRSABORT and PRSTOP.
3618 This change will be needed by the Interix port.
3619
e1507482
EZ
36202002-08-22 Elena Zannoni <ezannoni@redhat.com>
3621
3622 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3623 write_register wherever possible instead of manipulating the
3624 register bytes directly.
3625 Assign VALUE_CONTENTS to a variable and use that.
3626 The GPR numbers are now dependent on the architecture.
3627
96ff0de4
EZ
36282002-08-22 Elena Zannoni <ezannoni@redhat.com>
3629
3630 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3631 ev_offset fields.
3632 (skip_prologue): Add support for BookE/e500 instructions.
3633 (e500_extract_return_value): New function.
3634 (frame_get_saved_regs): Add support for saving ev registers and
3635 pseudo gpr's.
3636 (e500_store_return_value): New function.
3637 (rs6000_gdbarch_init): Move up default intializations of
3638 deprecated_extract_return_value and store_return_value. Overwrite
3639 init of store_return_value with e500 specific version.
3640 Set extract_return_value for e500.
3641
fbefca5b
EZ
36422002-08-22 Elena Zannoni <ezannoni@redhat.com>
3643
3644 * blockframe.c (generic_call_dummy_register_unwind): Use
3645 regcache_cooked_read to catch cases in which the variable is
3646 stored in a pseudo register.
3647
4d210288
AC
36482002-08-22 Andrew Cagney <cagney@redhat.com>
3649
3650 * NEWS: Mention that the i960 has been made obsolete.
3651 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3652 i960-tdep.c
3653 (remote-nrom.o): Obsolete target.
3654 (remote-nindy.o, i960-tdep.o): Ditto.
3655 * remote-nrom.c: Make file obsolete.
3656 * remote-nindy.c, remote-vx960.c: Ditto.
3657 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3658 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3659 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3660 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3661 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3662 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3663 i960-*-vxworks* obsolete.
3664 * MAINTAINERS: Note that the i960 is obsolete.
3665
6c0c456d
CV
36662002-08-21 Corinna Vinschen <vinschen@redhat.com
3667
3668 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3669 detach to allow reinitialization.
3670
9f9d12b3
AC
36712002-08-22 Andrew Cagney <ac131313@redhat.com>
3672
3673 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3674 attempt).
3675
ebeb39fe
JB
36762002-08-22 Jim Blandy <jimb@redhat.com>
3677
3678 * coffread.c (coff_symfile_read): Don't try to read the line
3679 number table from disk if the image file doesn't have a symbol
3680 table; we'll never actually look at the info anyway, and Windows
3681 ships DLL's with bogus file offsets for the line number data.
3682
5bf1c677
EZ
36832002-08-21 Elena Zannoni <ezannoni@redhat.com>
3684
3685 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3686 an e500 executable.
3687
71b8ef93
MS
36882002-08-21 Michael Snyder <msnyder@redhat.com>
3689
3690 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3691 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
3692 (DEFAULT_MIPS_TYPE): Delete unused macro.
3693 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3694 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 3695
d174216d
JB
36962002-08-21 Jim Blandy <jimb@redhat.com>
3697
3698 * valops.c (value_cast): Simplify and correct logic for doing a
3699 static cast from a pointer to a base class to a pointer to a
3700 derived class.
3701
0ab7a791
AC
37022002-08-21 Andrew Cagney <ac131313@redhat.com>
3703
3704 * infcmd.c (default_print_registers_info): Replace
3705 do_registers_info.
3706 (registers_info): Use gdbarch_print_registers_info instead of
3707 DO_REGISTERS_INFO.
3708 * inferior.h (default_print_registers_info): Replace
3709 do_registers_info.
3710 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3711 (DO_REGISTERS_INFO): Change to a predicate function.
3712 * gdbarch.h, gdbarch.c: Regenerate.
3713
e23792cc
KS
37142002-08-21 Keith Seitz <keiths@redhat.com>
3715
3716 * gdb-events.sh: Add target-changed event.
3717 * gdb-events.c: Regenerated.
3718 * gdb-events.c: Regenerated.
3719 * valops.c (value_assign): Add target-changed event notification
3720 to inlval_register, lval_memory, and lval_reg_frame_relative.
3721
9fb14e79
JB
37222002-08-21 Joel Brobecker <brobecker@gnat.com>
3723
3724 * NEWS: Add an entry regarding the improvement of the next/step
3725 operation on Alpha Tru64 multi-processor machines.
3726
6d39a69f
AC
37272002-08-21 Andrew Cagney <ac131313@redhat.com>
3728
72acd513
AC
3729 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3730 directores.
342af04b 3731 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
3732 * Makefile.in (install-gdbtk): Move to install section.
3733 (rdi-share/libangsd.a): Move to end of file.
3734
fa5f27c7
AC
37352002-08-19 Andrew Cagney <ac131313@redhat.com>
3736
3737 * frame.c (frame_register_unwind): When a register, set addrp to
3738 the register's byte.
3739
5a89d8aa
MS
37402002-08-20 Michael Snyder <msnyder@redhat.com>
3741
3742 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3743 used locally, so move them from the target machine header to here.
3744 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3745 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3746 Make static.
3747 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3748
822e978b
AC
37492002-08-20 Andrew Cagney <cagney@redhat.com>
3750
3751 * NEWS: Mention that the Apollo line was made obsolete.
3752 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3753 m68*-hp-hpux* obsolete.
3754 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3755 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3756 * buildsym.c (make_blockvector): Make static.
3757 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3758 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3759 (ALLDEPFILES): Remove dstread.c.
3760 (dstread.o): Obsolete make rule.
3761 * dstread.c: Makefile obsolete.
3762 * dst.h: Ditto.
3763 * config/m68k/hp300hpux.mt: Ditto.
3764 * config/m68k/hp300hpux.mh: Ditto.
3765 * config/m68k/hp300bsd.mt: Ditto.
3766 * config/m68k/hp300bsd.mh: Ditto.
3767 * config/m68k/apollo68b.mt: Ditto.
3768 * config/m68k/apollo68v.mh: Ditto.
3769 * config/m68k/apollo68b.mh: Ditto.
3770
e41b17f0
MS
37712002-08-20 Michael Snyder <msnyder@redhat.com>
3772
3773 * mips-tdep.c (mips_in_return_stub): Make static.
3774 (mips_gdbarch_init): Set in_solib_return_trampoline.
3775 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3776
d50355b6
MS
37772002-08-20 Michael Snyder <msnyder@redhat.com>
3778
3779 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3780 * gdbarch.c, gdbarch.h: Regenerate.
3781 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3782 Add.
3783 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3784
757a7cc6
MS
37852002-08-20 Michael Snyder <msnyder@redhat.com>
3786
3787 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3788 (mips_gdbarch_init): Set skip_trampoline_code,
3789 in_solib_call_trampoline.
3790 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3791 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3792
c8001721
EZ
37932002-08-20 Elena Zannoni <ezannoni@redhat.com>
3794
3795 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3796
3797 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3798 vector type for ev registers.
3799 (e500_pseudo_register_read): New function.
3800 (e500_pseudo_register_write): New function.
3801 (e500_dwarf2_reg_to_regnum): New function.
3802 (PPC_UISA_NOFP_SPRS): New macro.
3803 (PPC_EV_REGS): New macro.
3804 (PPC_GPRS_PSEUDO_REGS): New macro.
3805 (registers_e500): New register set for e500.
3806 (variants): Add e500 variant.
3807 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3808 before setting architectural dependent variations. Initialize ev
3809 registers numbers. Add case for e500 architecture. Set the
3810 number of pseudo registers.
3811
64366f1c
EZ
38122002-08-20 Elena Zannoni <ezannoni@redhat.com>
3813
3814 * rs6000-tdep.c: Clean up comments.
3815
7e78f0ca
AC
38162002-08-20 Andrew Cagney <cagney@redhat.com>
3817
3818 * h8300-tdep.c: Re-indent file.
3819
697f7479
JB
38202002-08-20 Jim Blandy <jimb@redhat.com>
3821
3822 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3823 default for this.
697f7479 3824
e86ae29f
KS
38252002-08-20 Keith Seitz <keiths@redhat.com>
3826
3827 * breakpoints.c (watch_command_1): Use internal breakpoint
3828 when setting a watchpoint_scope breakpoint.
3829
216b504f
EZ
38302002-08-20 Elena Zannoni <ezannoni@redhat.com>
3831
3832 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3833 (build_builtin_type_vec64i): Ditto.
3834 (build_builtin_type_vec128): Ditto.
3835 (build_builtin_type_vec128i): Ditto.
3836
f7ab6ec6
MS
38372002-08-19 Michael Snyder <msnyder@redhat.com>
3838
3839 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3840 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3841 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3842 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3843 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3844 CALL_DUMMY_ADDRESS): Delete.
3845 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3846 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3847 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3848 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3849 push_return_address.
3850 (mips_register_raw_size, mips_eabi_use_struct_convention,
3851 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3852 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3853 mips_init_extra_frame_info, mips_eabi_push_arguments,
3854 mips_n32n64_push_arguments, mips_push_return_address,
3855 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3856 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3857
b5d1566e
MS
38582002-08-19 Michael Snyder <msnyder@redhat.com>
3859
3860 * mips-tdep.c (mips_frame_num_args): New function.
3861 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3862 frame_saved_pc, frame_args_address, frame_locals_address,
3863 frame_num_args, and frame_args_skip.
3864 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3865 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3866 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3867 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3868
2f1488ce
MS
38692002-08-20 Michael Snyder <msnyder@redhat.com>
3870
3871 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3872 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3873 * mips-tdep.c (mips_store_struct_return): New function.
3874 (mips_extract_struct_value_address): New function.
3875 (mips_gdbarch_init): Set store_struct_return and
3876 extract_struct_value_address.
3877
41ff2da1
DC
38782002-08-20 David Carlton <carlton@math.stanford.edu>
3879
3880 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3881 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3882 (read_file_scope): Check that line_header is nonzero before
3883 decoding macro information.
3884
e5451d58
MK
38852002-08-20 Mark Kettenis <kettenis@gnu.org>
3886
3887 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3888 flag the general-purpose registers as floating-point on targets
3889 that don't support the floating-point registers.
3890
4a6daafa
EZ
38912002-08-20 Elena Zannoni <ezannoni@redhat.com>
3892
3893 * rs6000-tdep.c (altivec_register_p): Delete.
3894 (rs6000_do_altivec_registers): Delete.
3895 (rs6000_altivec_registers_info): Delete.
3896 (rs6000_do_registers_info): Delete.
3897 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3898 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3899
ab4327e0
EZ
39002002-08-20 Elena Zannoni <ezannoni@redhat.com>
3901
3902 * infcmd.c (do_registers_info): Print vector registers in hex
3903 format only.
3904 (print_vector_info): Check that printing registers
3905 makes sense.
3906 (print_float_info): Ditto.
3907
cb1d2653
AC
39082002-08-20 Andrew Cagney <ac131313@redhat.com>
3909
3910 * mips-tdep.c (mips_gdbarch_init): Update.
3911 (mips_o32_extract_return_value): Rewrite.
3912 (mips_o32_store_return_value): Rewrite.
3913 (mips_o32_xfer_return_value): New function.
3914 (mips_xfer_register): Tweak debug print message. Allow for
3915 buf_offset when dumping the value transfered.
3916
dfc3d9b2
AC
39172002-08-20 Andrew Cagney <ac131313@redhat.com>
3918
3919 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3920 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3921 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3922 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3923 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3924
7807aa61
MS
39252002-08-14 Michael Snyder <msnyder@redhat.com>
3926
3927 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3928
489461e2
EZ
39292002-08-19 Elena Zannoni <ezannoni@redhat.com>
3930
3931 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3932 register.
3933 (P): New macro to define a register as a pseudo register.
3934 (R, R4, R8, R16, FR32, R64, R0): Updated.
3935 (struct variant): Add new fields for number of pseudo registers
3936 and number of total registers.
3937 (tot_num_registers): New macro replacing....
3938 (num_registers): ...deleted macro.
3939 (num_registers): New function.
3940 (num_pseudo_registers): New function.
3941 (variants): Update all variants to intialize new fields correctly.
3942 Postpone initialization of number of pseudo regs and real regs.
3943 (init_variants): New function.
3944 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3945 registers offsets.
3946
fcaffe4c
DC
39472002-08-19 David Carlton <carlton@math.stanford.edu>
3948
2c2738a0
DC
3949 * valops.c (search_struct_field): Change error message to treat
3950 return value of 0 from value_static_field as meaning that field is
3951 optimized out.
3952 (value_struct_elt_for_reference): Ditto.
3953 * values.c (value_static_field): Treat an unresolved location the
3954 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
3955 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3956 enclosed. Fix PR gdb/574.
fcaffe4c
DC
3957 * MAINTAINERS: Add self to Write After Approval list.
3958
88658117
AC
39592002-08-19 Andrew Cagney <ac131313@redhat.com>
3960
3961 * mips-tdep.c (mips_xfer_register): New function.
3962 (mips_n32n64_extract_return_value): Rewrite.
3963 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3964 instead of deprecated_extract_return_value.
3965
21283beb
EZ
39662002-08-19 Elena Zannoni <ezannoni@redhat.com>
3967
3968 * rs6000-tdep.c (TDEP): Delete macro.
3969 (branch_dest): Replace use of TDEP macro with its body.
3970 (rs6000_pop_frame): Ditto.
3971 (rs6000_push_arguments): Ditto.
3972 (rs6000_skip_trampoline_code): Ditto.
3973 (rs6000_frame_saved_pc): Ditto.
3974 (rs6000_frame_chain): Ditto.
3975 (rs6000_register_name): Ditto.
3976 (rs6000_register_byte): Ditto.
3977 (rs6000_register_raw_size): Ditto.
3978 (rs6000_register_virtual_type): Ditto.
3979 (rs6000_register_convertible): Ditto.
3980 (rs6000_convert_from_func_ptr_addr): Ditto.
3981
bf072999
DJ
39822002-08-19 Daniel Jacobowitz <drow@mvista.com>
3983
3984 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3985 conditionally.
3986 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3987 MIPS_LINUX_JB_ELEMENT_SIZE.
3988 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3989 for MAX_REGISTER_RAW_SIZE arrays.
3990 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3991 MIPS_LINUX_JB_ELEMENT_SIZE.
3992
9b949a49
PM
39932002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3994
3995 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3996
6d3e79c6
AS
39972002-08-19 Aidan Skinner <aidan@velvet.net>
3998
3999 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4000 ada-valprint.c ada-tasks.c.
4001 (YYFILES): Add ada-exp.y.
4002 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4003 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4004 (ada-exp.tab.o): New target.
4005
06c0b04e
AC
40062002-08-18 Andrew Cagney <ac131313@redhat.com>
4007
4008 * regcache.c (regcache_xfer_part): New function.
4009 (regcache_raw_read_part): New function.
4010 (regcache_raw_write_part): New function.
4011 (regcache_cooked_read_part): New function.
4012 (regcache_cooked_write_part): New function.
4013 * regcache.h (regcache_raw_read_part): Declare.
4014 (regcache_raw_write_part): Declare.
4015 (regcache_cooked_read_part): Declare.
4016 (regcache_cooked_write_part): Declare.
4017
92d1e331
DJ
40182002-08-18 Daniel Jacobowitz <drow@mvista.com>
4019
4020 * remote.c (remote_open_1): Add async_p.
4021 (remote_async_open_1): Delete.
4022 (open_remote_target): Delete.
4023 (remote_open, extended_remote_open): Update calls to remote_open_1.
4024 (remote_async_open, extended_remote_async_open): Call
4025 remote_open_1 instead of remote_async_open_1.
4026
247055de
MK
40272002-08-19 Mark Kettenis <kettenis@gnu.org>
4028
4029 * blockframe.c: Fix a few coding standard violations.
4030
641eda39
MK
40312002-08-19 Mark Kettenis <kettenis@gnu.org>
4032
0b717710
MK
4033 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4034 here from ...
4035 * config/i386/tm-i386sco5.h: ... here. File removed.
4036 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4037
26d28e12 4038 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
4039 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4040 (TM_FILE): Set to tm-i386.h.
4041 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4042 * config/i386/tm-i386v.h: Remove file.
4043 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4044 instead of "i386/tm-i386v.h".
4045 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4046 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4047 "i386/tm-i386v.h".
4048 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4049 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4050 "i386/tm-i386.h".
4051
d4e0bab4
MK
40522002-08-18 Mark Kettenis <kettenis@gnu.org>
4053
4054 * config/i386/nm-i386v.h: Add protection against
4055 multiple-inclusion.
4056 (i386_register_u_addr): Remove prototype.
4057 (register_u_addr): New prototype.
4058 (REGISTER_U_ADDR): Redefine accordingly.
4059 * i386v-nat.c: Improve several comments.
4060 (i386_register_u_addr): Change signature and rename to
4061 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4062 ubase variable.
4063
46cac009
AC
40642002-08-18 Andrew Cagney <ac131313@redhat.com>
4065
4066 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4067 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4068 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4069 deprecated_extract_return_value.
4070 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4071 rename mips_o32o64_push_arguments.
4072 (mips_gdbarch_init): Update.
4073 (mips_extract_return_value): Delete.
4074 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4075 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4076 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4077 (mips_n32n64_extract_return_value): Clone
4078 mips_extract_return_value.
4079 (mips_store_return_value): Delete.
4080 (mips_o32_store_return_value): Clone mips_store_return_value.
4081 (mips_o64_store_return_value): Clone mips_store_return_value.
4082 (mips_eabi_store_return_value): Clone mips_store_return_value.
4083 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4084
d2e4a39e
AS
40852002-08-18 Aidan Skinner <aidan@velvet.net>
4086
0c30c098
AS
4087 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4088 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4089
40902002-08-18 Aidan Skinner <aidan@velvet.net>
4091
4092 * ada-lang.c: Run through gdb_indent.sh.
4093 * ada-lang.h: Run through gdb_indent.sh.
4094 * ada-tasks.c: Run through gdb_indent.sh.
4095 * ada-typeprint.c: Run through gdb_indent.sh.
4096 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 4097
01fc4e33
AC
40982002-08-18 Andrew Cagney <ac131313@redhat.com>
4099
4100 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4101 ABI.
4102
d8ee244c
MK
41032002-08-18 Mark Kettenis <kettenis@gnu.org>
4104
c38d8261
MK
4105 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4106
222db64c
MK
4107 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4108 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4109
c2848c82
MK
4110 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4111 write_register_gen instead of write_register_bytes.
4112
d8ee244c
MK
4113 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4114 i[3456]-*-osf1mk* configurations have been made obsolete.
4115 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4116 i[3456]86-*-osf1mk* hosts obsolete.
4117 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4118 targets obsolete.
4119 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4120 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4121 config/i386/i386m3.mt, config/i386/nm-m3.h,
4122 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4123 config/i386/i386mk.mh, config/i386/i386mk.mt,
4124 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4125 obsolete.
4126 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4127 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4128 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4129
61d8d407
AC
41302002-08-18 Andrew Cagney <ac131313@redhat.com>
4131
4132 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4133 (hppa_value_returned_from_stack): Declare.
4134 (hppa_extract_return_value): Declare.
4135 * config/pa/hppa.mt: New file.
4136 * configure.tgt: Recognize hppa*-*-*.
4137 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4138
0c52bd59
MK
41392002-08-18 Mark Kettenis <kettenis@gnu.org>
4140
4141 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4142 comment.
4143
b5686e99
MK
41442002-08-17 Mark Kettenis <kettenis@gnu.org>
4145
4146 * top.c (gdb_rl_operate_and_get_next): Make sure
4147 operate-and-get-next functions correctly even when the history
4148 list is completely filled.
4149
c1bab85b
AC
41502002-08-18 Andrew Cagney <ac131313@redhat.com>
4151
4152 * MAINTAINERS (Target Instruction Set Architectures): Rename
4153 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4154 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4155 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4156 already listed under Host/Native.
4157
4158 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4159 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4160 mips*-*-*.
4161
32089c7c
AC
41622002-08-17 Andrew Cagney <ac131313@redhat.com>
4163
4164 * config/ia64/ia64.mt: New file.
4165 * config/alpha/alpha.mt: New file.
4166 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4167 ia64-linux-gnu. Mention that ia64-elf is broken.
4168 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4169
b4671f85
MK
41702002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4171
4172 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4173 generic_func_frame_valid instead of func_frame_valid.
4174
c8edd8b4
JB
41752002-08-16 Joel Brobecker <brobecker@gnat.com>
4176
4177 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4178 procfs appears to be broken when debugging on multi-processor
4179 machines. So enable software single stepping in order to avoid
4180 using the procfs interface to do next/step operations, using
4181 internal breakpoints instead.
4182
4183 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4184 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4185 make this pc address equal to the value it would have if the
4186 system stepping capability was used. Also set a new flag used
4187 to ensure that we don't readjust the PC one more time later.
4188
4189 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4190 address by DECR_PC_AFTER_BREAK when software single step is
4191 in use for this architecture, as this has already been taken
4192 care of in handle_inferior_event().
4193
238617f6
JB
41942002-08-16 Joel Brobecker <brobecker@gnat.com>
4195
4196 * infrun.c (handle_inferior_event): Minor reformatting, to make
4197 a rather long condition expression easier to read.
4198
541a7aac
AC
41992002-08-16 Andrew Cagney <ac131313@redhat.com>
4200
4201 * Makefile.in (gdbtk.o): Move to end of file.
4202 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4203 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4204 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4205 (gdbtk-wrapper.o, gdbres.o): Ditto.
4206
f92d4a7b
AC
42072002-08-16 Andrew Cagney <ac131313@redhat.com>
4208
4209 * Makefile.in (copying.o): Separate out compile rule.
4210 (hpux-thread.o, procfs.o, signals.o): Ditto.
4211 (v850ice.o, z8k-tdep.o): Ditto.
4212 (tui-file.o): Move to TUI section.
4213 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4214 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4215
1cce71eb
JB
42162002-08-16 Joel Brobecker <brobecker@gnat.com>
4217
4218 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4219 skip_trampoline_code, for better namespace-proofing.
4220
4221 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4222
0851f23d
JB
42232002-08-16 Joel Brobecker <brobecker@gnat.com>
4224
4225 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4226
f8d40ec8
JB
42272002-08-16 Joel Brobecker <brobecker@gnat.com>
4228
4229 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4230 signal, check whether we hit a breakpoint before checking for a
4231 single step breakpoint. Otherwise, GDB fails to notice that a
4232 breakpoint has been hit when stepping onto a breakpoint.
4233
63d022e0
KS
42342002-08-16 Keith Seitz <keiths@redhat.com>
4235
4236 * gdb-events.sh (clear_gdb_event_hooks): New function.
4237 * gdb-events.c: Regenerate.
4238 * gdb-events.h: Regenerate.
4239
6e31adb3
AC
42402002-08-16 Andrew Cagney <ac131313@redhat.com>
4241
4242 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4243 not_a_sw_breakpoint.
4244 * breakpoint.h (bpstat_stop_status): Add parameter names.
4245
c8189ed1
GS
42462002-08-16 Grace Sainsbury <graces@redhat.com>
4247
4248 * remote.c (remote_insert_hw_breakpoint)
4249 (remote_remove_hw_breakpoint): Fix calculation of length field
4250 for Z-packet.
4251
d05285fa
MS
42522002-08-15 Michael Snyder <msnyder@redhat.com>
4253
466d7106
MS
4254 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4255 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4256 (supply_fpregset): Ditto.
4257
d05285fa
MS
4258 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4259 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4260 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 4261 (TARGET_READ_SP): Delete.
bf1f5b4c 4262 (DO_REGISTERS_INFO): Delete.
102182a9
MS
4263 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4264 Delete.
4265 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4266 from macros to functions.
bf1f5b4c 4267
d05285fa
MS
4268 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4269 (mips_register_convertible, mips_register_convert_to_virtual,
4270 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
4271 (mips_read_sp): New function.
4272 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
4273 (mips_do_registers_info): Make static.
4274 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
4275 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4276 (mips_register_convert_from_type, mips_register_convert_to_type):
4277 New functions.
4278 (mips_gdbarch_init): Set up function_start_offset,
4279 register_virtual_size, pc_in_sigtramp.
d05285fa 4280
e76f1f2e
AC
42812002-08-15 Andrew Cagney <ac131313@redhat.com>
4282
4283 * infcmd.c (vector_info): New function.
4284 (_initialize_infcmd): Add command "info vector".
4285 (print_vector_info): New function.
4286
4287 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4288 * gdbarch.h, gdbarch.c: Regenerate.
4289
4782dc19
AC
42902002-08-15 Andrew Cagney <ac131313@redhat.com>
4291
4292 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4293 ``print_all''. Only print vector registers when ``print_all''.
4294
23e3a7ac
AC
42952002-08-15 Andrew Cagney <ac131313@redhat.com>
4296
8e186fd6
AC
4297 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4298 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4299
23e3a7ac
AC
4300 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4301 Add `args' parameter.
4302 * gdbarch.h, gdbarch.c: Regenerate.
4303
4304 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4305
4306 * infcmd.c (float_info): Call print_float_info.
4307 (print_float_info): New function. By default, print the
4308 floating-point registers.
4309
4310 * arch-utils.h (default_print_float_info): Delete declaration.
4311 * arch-utils.c (default_print_float_info): Delete function.
4312
e0ca2bb9
MK
43132002-08-16 Mark Kettenis <kettenis@gnu.org>
4314
3f733acc
MK
4315 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4316 out define.
4317
7d8d2918
MK
4318 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4319 FRAME.
4320
1c7cc583
MK
4321 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4322 * configure.host: Make i[3456]86-*-aix host obsolete.
4323 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4324 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4325 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4326 config/i386/xm-i386aix.h: Make files obsolete.
4327 * i386aix-nat.c: Make file obsolete.
4328 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4329 (i386aix-nat.o): Make target obsolete.
4330
e0ca2bb9
MK
4331 * config/i386/nm-gnu.h: Removed.
4332 * config/i386/nm-i386gnu.h: New file.
4333 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4334 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4335 Moved here from ...
4336 * config/i386/tm-i386gnu.h: ... here. Removed.
4337 * config/i386/xm-i386gnu.h: Removed.
4338 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4339 (NAT_FILE): Set to nm-i386gnu.h.
4340 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4341 * i386-tdep.c: New file.
4342 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4343 (i386gnu-tdep.o): Specify dependencies.
4344
16057ec7 43452002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 4346
6b99ee2e
MK
4347 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4348 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4349 Adjust a few comments to reflect reality a bit closer.
4350 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4351 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4352 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4353 target_insert_watchpoint, target_remove_watchpoint):
4354 Move defines to ...
4355 * config/i386/nm-i386sco5.h: ... here.
4356 (kernel_u_size): Add prototype. Improve a few comments and add
4357 protection against multiple inclusion.
4358
d9a6f65c
MK
4359 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4360 out define.
4361
047eff6a
MK
4362 * uw-thread.c (SP_ARG0): Define if not already defined.
4363 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4364
dcdb1290
MK
4365 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4366
5d2d0b2a
MK
4367 * config/i386/tm-i386.h: Don't include "regcache.h".
4368
61113f8b
MK
4369 * i387-tdep.h (i387_print_float_info): New prototype.
4370 * i387-tdep.c (print_i387_value, print_i387_ext,
4371 print_i387_status_word, print_i387_control_word): Add `struct
4372 ui_file *' argument and use it for output.
4373 (i387_print_float_info): Renamed from i387_float_info. Add
4374 `struct gdbarch *' and `struct ui_file *' arguments and use the
4375 latter for output.
4376 * i386-tdep.c: Include "i387-tdep.h".
4377 (i386_gdbarch_init): Set print_float_info.
4378 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4379 (FLOAT_INFO): Remove define.
4380
46e0f506
MS
43812002-08-13 Michael Snyder <msnyder@redhat.com>
4382
4383 * mips-tdep.c (mips_push_arguments): Rename to
4384 mips_eabi_push_arguments, and tune for EABI.
4385 (MIPS_REGS_HAVE_HOME_P): Delete.
4386 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4387 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4388 Delete references to mips_regs_have_home_p.
4389
409268de
KS
43902002-08-14 Keith Seitz <keiths@redhat.com>
4391
4392 * Makefile.in (install-gdbtk): Create insight plugin directory.
4393 Install plugins.tcl file.
4394
ffc6a242
KS
43952002-08-14 Keith Seitz <keiths@redhat.com>
4396
4397 * configure.in: Move SUBDIRS to near top of the file so that
4398 --enable options may add things to it.
4399 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4400 * configure: Regenerate.
4401
ebafbe83
MS
44022002-08-13 Michael Snyder <msnyder@redhat.com>
4403
4404 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4405 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4406 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4407
32f6f25d
AC
44082002-08-13 Andrew Cagney <ac131313@redhat.com>
4409
4410 * vax-tdep.c (vax_get_saved_register): Delete function.
4411 (vax_gdbarch_init): Update.
4412 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4413 (ns32k_gdbarch_init): Update.
4414 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4415 (alpha_gdbarch_init): Update.
4416
53826de9
AC
44172002-08-13 Andrew Cagney <cagney@redhat.com>
4418
4419 * regcache.c (init_regcache_descr): Overallocate the
4420 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4421 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4422 nr_raw_registers.
4423 (set_register_cached): Add range checking assertions. Use
4424 current_regcache.
4425
16057ec7 44262002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
4427
4428 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4429 numbers for MMX registers.
4430
7b4c2dce
AC
44312002-08-13 Andrew Cagney <cagney@redhat.com>
4432
4433 * i386-tdep.c (i386_gdbarch_init): Use
4434 generic_unwind_get_saved_register.
4435
1e03ad20
KB
44362002-08-13 Kevin Buettner <kevinb@redhat.com>
4437
4438 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4439 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4440 target vector.
4441 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4442 Delete. Add comment regarding this now-deleted target method.
4443
548bcbec
SC
44442002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4445
4446 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4447 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4448 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4449 real PC and the page number (if it's within the memory bank window).
4450 (m68hc11_pseudo_register_write): Likewise when saving.
4451 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4452 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4453 (m68hc11_register_raw_size): And use 32-bit for it.
4454 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4455 16K memory bank is used by the prog; also use the virtual pc.
4456
7df11f59
SC
44572002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4458
4459 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4460 (m68hc11_gdbarch_init): Install it in gdbarch.
4461 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4462 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4463 (MSYMBOL_SIZE): New for documentation.
4464 (insn_return_kind): Enum to specify how a function returns.
4465 (frame_extra_info): Cleanup and record the return mode.
4466 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4467 register in address computation.
4468 (m68hc11_get_return_insn): New to obtain the return instruction used
4469 by the function.
4470 (m68hc11_frame_init_saved_regs): Take into account the return
4471 instruction used by the function for far and interrupt functions.
4472 (m68hc11_init_extra_frame_info): Take into account page register.
4473 (m68hc11_frame_args_address): Adjust according to the return mode.
4474 (show_regs): Print page register only when it's used.
4475
5706502a
SC
44762002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4477
4478 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4479 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4480 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4481 registers.
4482 (m68hc11_register_raw_size): Likewise.
4483
28fc6740
AC
44842002-08-13 Andrew Cagney <cagney@redhat.com>
4485
4486 * i386-tdep.c (i386_register_name): Handle mmx registers.
4487 (mmx_regnum_p): New function.
4488 (i386_mmx_names): New array.
4489 (mmx_num_regs): New variable.
4490 (i386_pseudo_register_read): New function.
4491 (i386_pseudo_register_write): New function.
4492 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4493
4494 * regcache.c (regcache_raw_read_unsigned): New function.
4495 (regcache_raw_read_signed): New function.
4496 * regcache.h (regcache_raw_read_unsigned): Declare.
4497 (regcache_raw_read_signed): Declare.
4498
a378f419
AC
44992002-08-13 Andrew Cagney <cagney@redhat.com>
4500
4501 * regcache.c (regcache_raw_read_as_address): Delete function.
4502 (regcache_cooked_read_signed): New function.
4503 (regcache_cooked_read_unsigned): New function.
4504 * regcache.h (regcache_cooked_read_signed): Declare.
4505 (regcache_cooked_read_unsigned): Declare.
4506 (regcache_raw_read_as_address): Delete declaration.
4507
4508 * blockframe.c (generic_read_register_dummy): Use
4509 regcache_cooked_read_unsigned.
4510 * i386-tdep.c (i386_extract_struct_value_address): Use
4511 regcache_cooked_read_unsigned.
4512
81967506
SC
45132002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4514
4515 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4516 double sizes according to ELF ABI flags.
4517 (gdbarch_tdep): Record elf_flags.
4518
ffe1f3ee
SC
45192002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4520
4521 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4522 (m6812_prolog): They can appear in 68HC12 function prologue.
4523 (m68hc11_frame_chain): Cleanup.
4524
98216c5d
AC
45252002-08-12 Andrew Cagney <cagney@redhat.com>
4526
4527 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4528 declarations.
4529 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4530 (i386_linux_register_raw_size): Delete function.
4531 (i386_linux_init_abi): Update.
4532 * i386-tdep.c (i386_register_raw_size): Delete function.
4533 (i386_register_byte): Delete function.
4534 (i386_gdbarch_init): Update.
4535 (i386_register_size): Delete array.
4536 (i386_register_offset): Delete array.
4537
4538 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4539 (REGISTER_RAW_SIZE): Delete macro.
4540 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4541 (REGISTER_BYTE): Delete macro.
4542
3b19021e
AS
45432002-08-11 Aidan Skinner <aidan@velvet.net>
4544
4545 * ada-lang.c (ada_lookup_partial_symbol)
4546 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4547 prototype names so that grep ^func works properly.
4548
4549 * ada-lang.c (ada_array_element_type)
4550 (ada_lookup_partial_symbol): Fix typos in parameter list.
4551
4552 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4553 Fix prototype names so that grep ^func works properly.
4554
b063e7a2
AC
45552002-08-10 Andrew Cagney <cagney@redhat.com>
4556 Elena Zannoni <ezannoni@redhat.com>
4557 Martin M. Hunt <hunt@redhat.com>
4558
4559 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4560 (build_builtin_type_vec128i): Set the vector bit.
4561 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4562 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4563 (build_builtin_type_vec64): New function.
4564 (build_builtin_type_vec64i): New function.
4565 (build_gdbtypes): Initialize builtin_type_vec64 and
4566 builtin_type_vec64i.
4567
a7e3c2ad
AC
45682002-08-09 Andrew Cagney <cagney@redhat.com>
4569
4570 * regcache.c (regcache_dump): Compare the register offset
4571 with REGISTER_BYTE.
4572 * arch-utils.c (generic_register_byte): New function.
4573 * arch-utils.h (generic_register_byte): Declare.
4574 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4575 * gdbarch.h, gdbarch.c: Regenerate.
4576
af030b9a
AC
45772002-08-09 Andrew Cagney <cagney@redhat.com>
4578
4579 * regcache.c: Include "gdbcmd.h"
4580 (_initialize_regcache): Add commands "maintenance print
4581 registers", "maintenance print raw-registers" and "maintenance
4582 print cooked-registers".
4583 (enum regcache_dump_what): Define.
4584 (dump_endian_bytes): New function.
4585 (regcache_dump): New function.
4586 (regcache_print): New function.
4587 (maintenance_print_registers): New function.
4588 (maintenance_print_raw_registers): New function.
4589 (maintenance_print_cooked_registers): New function.
4590 * Makefile.in (regcache.o): Update dependencies.
4591
cb3d25d1
MS
45922002-08-09 Michael Snyder <msnyder@redhat.com>
4593
4594 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4595 (mips_push_arguments): Correct some comments. Use paddr_nz
4596 for printing addresses in debug output. Replace static
4597 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4598 (mips_n32n64_push_arguments): New function, cloned from
4599 mips_push_arguments and tuned for the n32/n64 ABI.
4600 (mips_push_register): Buffer needs dynamic allocation.
4601 (mips_print_register): Ditto.
4602 (do_gp_register_row): Ditto.
4603 (mips_store_return_value): Ditto.
4604 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4605
2163ab9d
DH
46062002-08-09 Don Howard <dhoward@redhat.com>
4607
4608 * memattr.c (mem_info_command): Print special case of upper bound
4609 as max CORE_ADDR + 1.
4610
b78bcb18
MS
46112002-08-08 Michael Snyder <msnyder@redhat.com>
4612
4613 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4614 returns structs by ref if they're too big to fit in two registers.
4615
ffabd70d
KB
46162002-08-09 Kevin Buettner <kevinb@redhat.com>
4617
4618 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4619 saved regs value.
4620 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4621 mips_find_saved_regs().
4622 (mips_pop_frame): Likewise.
4623
fbcdb4a3
KB
46242002-08-09 Kevin Buettner <kevinb@redhat.com>
4625
4626 * blockframe.c (frame_saved_regs_register_unwind): Revise
4627 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4628 frames are in use.
4629
3c3bea1c
GS
46302002-08-09 Grace Sainsbury <graces@redhat.com>
4631
4632 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4633 T-packets; the 'a' is not taken as a register number.
4634 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4635 (remote_stopped_data_address): New functions; add to target
4636 vector.
4637 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4638 prototypes to match other implementations of this
4639 function. replace integer argument with pointer -- the length
4640 field in the Z-packet is the length of what is pointed to or 1 if
4641 pointer is null. Add to target vector.
4642 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4643 target vector.
4644
4645 From Mark Salter:
4646 * remote.c (remote_wait): Add support to extract optional
4647 watchpoint information from T-packet. Ignore unrecognized
4648 optional info in T-packet.
4649 (remote_async_wait): Ditto.
4650
5d1d95de
CV
46512002-08-09 Corinna Vinschen <vinschen@redhat.com>
4652
4653 * cli/cli-dump.c: Change fopen modes to use binary open modes
4654 as defined in include/fopen-bin.h throughout.
4655
c86b5b38
MS
46562002-08-08 Michael Snyder <msnyder@redhat.com>
4657
4658 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4659
b30590dc
KB
46602002-08-08 Kevin Buettner <kevinb@redhat.com>
4661
4662 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4663 assertion failure by returning early after a warning.
4664
498868ed
KB
46652002-08-08 Kevin Buettner <kevinb@redhat.com>
4666
4667 * mips-tdep.c (mips_find_saved_regs): Make static.
4668 (mips_frame_init_saved_regs): New function.
4669 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4670 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4671 (mips_find_saved_regs): Delete declaration.
4672
b2dd6311
GS
46732002-08-08 Grace Sainsbury <graces@redhat.com>
4674
3c3bea1c
GS
4675 * remote.c (remote_wait, remote_async_wait): Change
4676 thread_num from int to ULONGEST.
4677 (unpack_varlen_hex): Change result parameter from
4678 int * to ULONGEST *.
b2dd6311 4679
ea47855f
AC
46802002-08-08 Andrew Cagney <ac131313@redhat.com>
4681
4682 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4683 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4684 powerpc*-*-*.
4685 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4686
69db8bae
AC
46872002-08-08 Andrew Cagney <cagney@redhat.com>
4688
4689 * gcore.c (override_derive_stack_segment): Delete variable.
4690 (preempt_derive_stack_segment): Delete function.
4691 (derive_stack_segment): Delete function.
4692 (default_derive_stack_segment): Renamed to derive_stack_segment.
4693 (override_derive_heap_segment): Delete variable.
4694 (preempt_derive_heap_segment): Delete function.
4695 (derive_heap_segment): Delete function.
4696 (default_derive_heap_segment): Rename to derive_heap_segment.
4697
cb811fe7
MS
46982002-08-06 Michael Snyder <msnyder@redhat.com>
4699
4700 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4701 * mips-tdep.c (mips_EABI_use_struct_convention,
4702 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4703 New functions. (mips_use_struct_convention): Delete.
4704 (mips_gdbarch_init): set use_gdbarch_convention.
4705
8b389c40
MS
47062002-08-06 Michael Snyder <msnyder@redhat.com>
4707
4708 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4709 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4710 mips_o32_reg_struct_has_addr): New functions.
4711 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4712
5c27f28a
AC
47132002-08-07 Andrew Cagney <ac131313@redhat.com>
4714
4715 * regcache.c (pseudo_register): Delete function.
4716 (fetch_register): Delete function.
4717 (store_register): Delete function.
4718 (regcache_raw_read, legacy_read_register_gen): Use
4719 target_fetch_registers instead of fetch_register.
4720 (legacy_write_register_gen, regcache_raw_write): Use
4721 target_store_register instead of store_register.
4722 (write_register_bytes): Ditto.
4723
4724 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4725 (STORE_PSEUDO_REGISTER): Delete.
4726 * gdbarch.h, gdbarch.c: Regenerate.
4727
5b331675
CV
47282002-08-06 Corinna Vinschen <vinschen@redhat.com>
4729
4730 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4731 write dump file binary.
4732
6acdf5c7
MS
47332002-08-05 Michael Snyder <msnyder@redhat.com>
4734
4735 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4736 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4737 (mips_gdbarch_init): Set N32 target to be mips64.
4738
b2f01c35
KB
47392002-08-06 Kevin Buettner <kevinb@redhat.com>
4740
4741 * frame.c (find_saved_register): Break out of loop once saved
4742 register address is found. Don't mention sparc in loop comment
4743 anymore.
4744
63db5580
KB
47452002-08-06 Kevin Buettner <kevinb@redhat.com>
4746
4747 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4748 mips_default_saved_regsize to 8.
4749
5e34e75e
AC
47502002-08-06 Andrew Cagney <ac131313@redhat.com>
4751
4752 * gcore.c: Do not include <sys/procfs.h>.
4753 * Makefile.in (gcore.o): Update dependencies.
4754
eb4c54a2
AC
47552002-08-06 Andrew Cagney <cagney@redhat.com>
4756
4757 * configure.tgt: Make arc-*-* obsolete.
4758 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4759 * MAINTAINERS: Make arc-elf obsolete.
4760 * arc-tdep.c: Make file obsolete.
4761 * config/arc/arc.mt: Ditto.
4762 * config/arc/tm-arc.h: Ditto.
4763
ced15480
TR
47642002-08-05 Theodore A. Roth <troth@verinet.com>
4765
c1bab85b 4766 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 4767
b4743822
AC
47682002-08-05 Andrew Cagney <ac131313@redhat.com>
4769
4770 * mcore-tdep.c (mcore_gdbarch_init): Use
4771 generic_unwind_get_saved_register instead of
4772 generic_get_saved_register.
4773 * v850-tdep.c (v850_gdbarch_init): Ditto.
4774 * frv-tdep.c (frv_gdbarch_init): Ditto.
4775 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4776 * s390-tdep.c (s390_gdbarch_init): Ditto.
4777 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4778 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4779 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4780
3956d554
JB
47812002-08-05 Joel Brobecker <brobecker@gnat.com>
4782
4783 * objfiles.h: Add missing #include "symfile.h"
4784
4785 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4786
8249c0d6
AC
47872002-08-04 Andrew Cagney <ac131313@redhat.com>
4788
4789 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4790 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4791 of FIELD_BITSIZE.
4792
b9d14705
DJ
47932002-08-04 Daniel Jacobowitz <drow@mvista.com>
4794
4795 * NEWS: Cleanup and nitpick.
4796
dd73b9bb
AC
47972002-08-03 Andrew Cagney <ac131313@redhat.com>
4798
4799 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4800
043a27f8
AC
48012002-08-03 Andrew Cagney <ac131313@redhat.com>
4802
4803 * Makefile.in (gdbtk-bp.o): Update dependencies.
4804 (gdbtk-register.o): Ditto.
4805 (gdbtk-varobj.o): Ditto.
4806
46ce284d
AC
48072002-08-03 Andrew Cagney <cagney@redhat.com>
4808
4809 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4810 m68hc11_fetch_pseudo_register.
4811 (m68hc11_pseudo_register_write): Replace
4812 m68hc11_store_pseudo_register.
4813 (m68hc11_gdbarch_init): Update.
4814
b66d6d2e
AC
4815Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4816
4817 * gdbarch.sh: Include "gdb_string.h".
4818 * gdbarch.c: Regenerate.
4819
4820 * regcache.c: Include "gdb_string.h".
4821 * ax-general.c: Ditto.
4822 * varobj.c: Ditto.
4823 * std-regs.c: Ditto.
4824 * fbsd-proc.c: Ditto.
4825 * thread.c: Ditto.
4826
4827 * Makefile.in (regcache.o): Update dependencies.
4828 (thread.o, gdbarch.o): Ditto.
4829 (ax-general.o, gdbarch.o): Ditto.
4830 (varobj.o, std-regs.o): Ditto.
4831 (fbsd-proc.o): Specify dependencies.
4832
29e1842b
AC
48332002-08-02 Andrew Cagney <cagney@redhat.com>
4834
4835 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4836 regnum.
4837 (regcache_cooked_write): Ditto.
4838
68365089
AC
48392002-08-02 Andrew Cagney <ac131313@redhat.com>
4840
4841 * regcache.c (regcache_cooked_read): New function.
4842 (regcache_cooked_write): New function.
4843 (read_register_gen): Rewrite using regcache_cooked_read.
4844 (write_register_gen): Rewrite using regcache_cooked_write.
4845
4846 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4847 Declare.
4848
d8124050
AC
48492002-08-02 Andrew Cagney <cagney@redhat.com>
4850
4851 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4852 Replace the architecture methods register_read and register_write.
4853 * gdbarch.h, gdbarch.c: Regenerate.
4854 * regcache.c (init_regcache_descr): Update.
4855 (read_register_gen): Update.
4856 (write_register_gen): Update.
4857 (supply_register): Update comment.
4858
4859 * sh-tdep.c (sh_gdbarch_init): Update.
4860 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4861 `regcache' and `gdbarch' parameters. Make `buffer' a void
4862 pointer. Update code.
4863 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4864 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4865 void pointer. Update code.
4866 (sh64_register_write): Delete.
4867 (sh4_register_read): Delete.
4868 (sh64_register_read): Delete.
4869 (sh4_register_write): Delete.
4870 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4871 void pointer, `to' parameter a void pointer.
4872 (sh_sh64_register_convert_to_raw): Ditto.
4873
a6425924
KB
48742002-08-01 Kevin Buettner <kevinb@redhat.com>
4875
4876 * mips-tdep.c (mips_register_virtual_type): Use architecture
4877 invariant return values.
4878
ff5922b5
AC
48792002-08-01 Andrew Cagney <cagney@redhat.com>
4880
4881 * linux-proc.c: Include "gdb_string.h".
4882 * Makefile.in (linux-proc.o): Update dependency list.
4883
32a6503c
KB
48842002-08-01 Kevin Buettner <kevinb@redhat.com>
4885
4886 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4887 comment.
4888
ccaa32c7
GS
48892002-08-01 Grace Sainsbury <graces@redhat.com>
4890
4891 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4892 to_insert_watchpoint, to_remove_watchpoint,
4893 to_stopped_by_watchpoint, to_stopped_data_address,
4894 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4895 target vecctor. Define their corresponding macros so they call
4896 them.
4897
4898 * target.c: Add default and debug versions of for
4899 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4900 to_insert_watchpoint, to_remove_watchpoint,
4901 to_stopped_by_watchpoint, to_stopped_data_address,
4902 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4903
78fde5f8
KB
49042002-08-01 Kevin Buettner <kevinb@redhat.com>
4905
4906 * mips-tdep.c (mips_register_virtual_type): New function.
4907 (mips_gdbarch_init): Register mips_register_virtual_type()
4908 with gdbarch machinery.
4909 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4910 this file instead of tm-bigmips.h.
4911 (MIPS_REGSIZE): Delete this macro.
4912 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4913 multiarch version in mips-tdep.c will be found.
4914
db034ac5
AC
49152002-08-01 Andrew Cagney <cagney@redhat.com>
4916
4917 * NEWS: Menion that CHILL has been made obsolete.
4918
4919 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
4920 * stabsread.c (read_range_type): Ditto.
4921 * gdbtypes.h: Ditto.
4922 * language.c (binop_type_check): Ditto.
4923 (binop_result_type): Ditto.
4924 (integral_type): Ditto.
4925 (character_type): Ditto.
4926 (string_type): Ditto.
4927 (boolean_type): Ditto.
4928 (structured_type): Ditto.
4929 (lang_bool_type): Ditto.
4930 (binop_type_check): Ditto.
4931 * language.h (_LANG_chill): Ditto.
4932 * dwarfread.c (set_cu_language): Ditto.
4933 * dwarfread.c (CHILL_PRODUCER): Ditto.
4934 * dwarfread.c (handle_producer): Ditto.
4935 * expression.h (enum exp_opcode): Ditto.
4936 * eval.c: Ditto for comments.
4937 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4938 * expprint.c (print_subexp): Ditto.
4939 (print_subexp): Ditto.
4940 * valops.c (value_cast): Ditto.
4941 (search_struct_field): Ditto.
4942 * value.h (COERCE_VARYING_ARRAY): Ditto.
4943 * symfile.c (init_filename_language_table): Ditto.
4944 (add_psymbol_with_dem_name_to_list): Ditto.
4945 * valarith.c (value_binop): Ditto.
4946 (value_neg): Ditto.
4947 * valops.c (value_slice): Ditto.
4948 * symtab.h (union language_specific): Ditto.
4949 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4950 (SYMBOL_DEMANGLED_NAME): Ditto.
4951 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4952 * defs.h (enum language): Ditto.
4953 * symtab.c (got_symtab): Ditto.
4954 * utils.c (fprintf_symbol_filtered): Ditto.
4955
4956 * ch-typeprint.c: Make file obsolete.
4957 * ch-valprint.c: Make file obsolete.
4958 * ch-lang.h: Make file obsolete.
4959 * ch-exp.c: Make file obsolete.
4960 * ch-lang.c: Make file obsolete.
4961
4962 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4963 CHILL_LIB.
4964 (TARGET_FLAGS_TO_PASS): Ditto.
4965 (CHILLFLAGS): Obsolete.
4966 (CHILL): Obsolete.
4967 (CHILL_FOR_TARGET): Obsolete.
4968 (CHILL_LIB): Obsolete.
4969 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4970 ch-valprint.c.
4971 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4972 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4973 ch-lang.o.
4974 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4975 targets.
4976
8aaf0b47
JB
49772002-07-31 Joel Brobecker <brobecker@gnat.com>
4978
4979 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4980 This does not change anything at the moment, but will be helpful
4981 later when full Ada support is integrated.
4982
f3a7b3a5
KB
49832002-07-31 Kevin Buettner <kevinb@redhat.com>
4984
4985 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4986 help message.
4987
fb850278
KB
49882002-07-31 Kevin Buettner <kevinb@redhat.com>
4989
4990 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4991 and save it in a local variable. Use variable in later test.
4992
e3bddbfa
KB
49932002-07-31 Kevin Buettner <kevinb@redhat.com>
4994
4995 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4996 test. (Thanks to Daniel Jacobowitz.)
4997
28d169de
KB
49982002-07-31 Kevin Buettner <kevinb@redhat.com>
4999
5000 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5001 (mips_abi_strings): Add "n64".
5002 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5003
7fe7e44e
KB
50042002-07-31 Kevin Buettner <kevinb@redhat.com>
5005
5006 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5007 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5008
c6caf090
KB
50092002-07-31 Kevin Buettner <kevinb@redhat.com>
5010
5011 * utils.c (host_pointer_to_address, address_to_host_pointer):
5012 Use gdb_assert() instead of explicit call to internal_error().
5013
c41669e0
KB
50142002-07-30 Kevin Buettner <kevinb@redhat.com>
5015
5016 * Makefile.in (rs6000-nat.o): Update dependencies.
5017
5018 From Nicholas Duffek:
5019 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5020 (aix-thread.o): New rule.
5021 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5022 * config/powerpc/aix432.mh: New file.
5023
2fda4977
DJ
50242002-07-30 Daniel Jacobowitz <drow@mvista.com>
5025
5026 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5027 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5028 (fetch_core_registers, ppc_linux_supply_gregset)
5029 (ppc_linux_supply_fpregset): New functions.
5030 (ppc_linux_regset_core_fns): New.
5031 (_initialize_ppc_linux_tdep): Call add_core_fns.
5032 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5033 and ppc_linux_supply_gregset.
5034 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5035 (supply_fpregset): Call ppc_linux_supply_fpregset.
5036 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5037 corelow.o.
5038 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5039
729051e6
DJ
50402002-07-30 Daniel Jacobowitz <drow@mvista.com>
5041
5042 * symtab.c (lookup_symbol): Demangle before lowercasing.
5043
5f8a3188
AC
50442002-07-30 Andrew Cagney <ac131313@redhat.com>
5045
5046 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5047 declaration.
5048 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5049 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5050 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5051 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5052 "gdb_string.h".
5053 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5054 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5055 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5056 (avr-tdep.o, mon960-rom.o): Ditto.
5057 (aout_stabs_gnu_h): Define.
5058 (symtab_h): Remove $(gdb_obstack_h).
5059
67f07146
JB
50602002-07-30 Jim Blandy <jimb@redhat.com>
5061
5062 Patch from David Carlton <carlton@math.stanford.edu>:
5063 * gdbinit.in: Move the `dir' commands that add GDB's own source
5064 directory to the search path to the end, so that the `gdb' source
5065 directory will be searched first.
5066
04ea0df1
AC
50672002-07-29 Andrew Cagney <ac131313@redhat.com>
5068
5069 * gdb_obstack.h: New file.
5070 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5071 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5072 * objfiles.h: Include "gdb_obstack.h".
5073 * Makefile.in (gdb_obstack_h): Define.
5074 (symtab_h): Add $(gdb_obstack_h).
5075 (objfiles_h): Add $(gdb_obstack_h).
5076
5077 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5078 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5079 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5080 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5081 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5082 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5083 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5084 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5085
5086 * Makefile.in (bcache.o): Update dependencies.
5087 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5088 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5089 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5090 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5091 (stabsread.o, symfile.o, symmisc.o): Ditto.
5092 (symtab.o, typeprint.o, macroexp.o): Ditto.
5093 (macrotab.o, mdebugread.o): Ditto.
5094 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5095 (coff_ecoff_h, aout_aout64_h): Define.
5096 (aout_stabs_gnu_h, libaout_h): Define.
5097
d138e37a
AC
50982002-07-29 Andrew Cagney <cagney@redhat.com>
5099
5100 * regcache.c (struct regcache_descr): Rename nr_registers to
5101 nr_cooked_registers. Revise comments describing the structure
5102 member fields.
5103 (init_regcache_descr): Update.
5104 (init_legacy_regcache_descr): Update.
5105 (read_register_gen, write_register_gen): When a cooked register in
5106 the raw register range, directly access the value from the raw
5107 register cache.
5108
460e6ec3
AC
51092002-07-29 Andrew Cagney <ac131313@redhat.com>
5110
5111 * z8k-tdep.c: Do not include "obstack.h".
5112 * h8300-tdep.c, h8500-tdep.c: Ditto.
5113 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5114 * valprint.c, v850-tdep.c: Ditto.
5115 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5116 * mn10200-tdep.c: Ditto.
5117
5118 * Makefile.in (z8k-tdep.o): Update dependencies.
5119 (m68hc11-tdep.o, valprint.o): Ditto.
5120 (v850-tdep.o, d10v-tdep.o): Ditto.
5121 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5122 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5123 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5124 (sh_opc_h, gdb_sim_sh_h): Define.
5125 (elf_sh_h, elf_bfd_h): Define.
5126 (opcode_m68hc11_h): Define.
5127 (OPCODES_SRC, OPCODES_DIR): define.
5128 (OPCODES): Use $(OPCODES_DIR).
5129 (gdb_sim_d10v_h): Rename sim_d10v_h.
5130 (gdb_sim_arm_h): Rename sim_arm_h.
5131
790c9cf0
KB
51322002-07-26 Kevin Buettner <kevinb@redhat.com>
5133
5134 * utils.c (host_pointer_to_address, address_to_host_pointer):
5135 Change internal_error() message to indicate function responsible
5136 for the error.
5137
9647fa49
KB
51382002-07-26 Kevin Buettner <kevinb@redhat.com>
5139
5140 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5141 calls to local_hex_string_custom().
5142
dabbe2c0
KB
51432002-07-26 Kevin Buettner <kevinb@redhat.com>
5144
5145 * irix5-nat.c: Move IRIX shared library support from here...
5146 * solib-irix.c: ...to here. Revised substantially to work with
5147 generic solib framework.
5148
b96d0a4e
KB
5149 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5150 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5151 * mips-irix-tdep.c: New file.
5152
313fb2f6
KB
5153 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5154 (mips-irix-tdep.o, solib-irix.o): New rules.
5155 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5156 solib-irix.o.
5157 * config/mips/irix6.mt (TDEPFILES): Likewise.
5158 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5159
ab2eaf26
KB
51602002-07-26 Kevin Buettner <kevinb@redhat.com>
5161
177e4768 5162 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
5163 disabled (via ``#if 0'') includes.
5164
7244546a
KB
51652002-07-26 Kevin Buettner <kevinb@redhat.com>
5166
5167 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5168 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5169 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5170 Add support for the fpscr register.
5171 * rs6000-nat.c (regmap, fetch_inferior_registers)
5172 (store_inferior_registers, fetch_core_registers): Likewise.
5173
dd7be90a
KB
51742002-07-26 Kevin Buettner <kevinb@redhat.com>
5175
5176 * rs6000-nat.c (language.h): Include.
5177 (special_regs): Delete this array.
5178 (regmap): New function.
5179 (fetch_register, store_register): Use regmap() to map gdb
5180 register numbers to ptrace register numbers. Also, use
5181 outputs from regmap() to make decisions regarding type of
5182 ptrace() call to make. In particular, don't compare against
5183 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5184 (fetch_inferior_registers, store_inferior_registers): Where
5185 possible, obtain register numbers from tdep struct. Don't
5186 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5187 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5188 (LAST_UISA_SP_REGNUM): Delete.
5189
11bf77db
KB
51902002-07-25 Kevin Buettner <kevinb@redhat.com>
5191
5192 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
5193 (fetch_registers, store_register, fetch_core_registers): Don't
5194 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
5195 regcache_collect() as appropriate.
5196 (find_toc_address): Format hex address with local_hex_string().
5197
06afebeb
AC
51982002-07-25 Andrew Cagney <ac131313@redhat.com>
5199
5200 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5201 bfd/elf32-frv.c.
5202
8c554d79
TT
52032002-07-24 Tom Tromey <tromey@redhat.com>
5204
5205 * jv-exp.y: Marked all strings with _().
5206 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5207 internal_error.
5208 (MethodInvocation, CastExpression, parse_number, yyerror,
5209 java_type_from_name, push_expression_name, yylex): Typo fixes.
5210
e4c242d9
DJ
52112002-07-24 Daniel Jacobowitz <drow@mvista.com>
5212
5213 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5214 (tee_file_flush, tee_file_write, tee_file_fputs)
5215 (tee_file_isatty): New.
5216 * ui-file.h (tee_file_new): Add prototype.
5217
ebf56fd3
AS
52182002-07-24 Aidan Skinner <aidan@velvet.net>
5219
5220 * ada-lang.c: Change k&r style function definitions to prototyped
5221 form.
5222 * ada-typeprint.c: Change k&r style function definitions to prototyped
5223 form.
5224 * ada-valprint.c: Change k&r style function definitions to prototyped
5225 form.
5226
7fb623f7
AC
52272002-07-24 Andrew Cagney <cagney@redhat.com>
5228
5229 * README: Remove reference to remote-bug.
5230 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5231 remote-bug.c.
5232 (m88k-nat.o): Delete rule.
5233 (m88k-tdep.o): Delete rule.
5234 (remote-bug.o): Delete rule.
5235 * MAINTAINERS: Mark as obsolete.
5236 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5237 * m88k-tdep.c: Make file obsolete.
5238 * config/m88k/m88k.mh: Ditto.
5239 * config/m88k/delta88v4.mh: Ditto.
5240 * config/m88k/delta88v4.mt: Ditto.
5241 * config/m88k/delta88.mt: Ditto.
5242 * config/m88k/delta88.mh: Ditto.
5243 * remote-bug.c: Ditto.
5244 * config/m88k/tm-delta88.h: Ditto.
5245 * config/m88k/nm-delta88v4.h: Ditto.
5246 * config/m88k/xm-delta88.h: Ditto.
5247 * config/m88k/xm-dgux.h: Ditto.
5248 * config/m88k/tm-m88k.h: Ditto.
5249 * config/m88k/nm-m88k.h: Ditto.
5250 * config/m88k/tm-delta88v4.h: Ditto.
5251 * m88k-nat.c: Ditto.
5252 * cxux-nat.c: Ditto.
5253 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5254 and m88*-*-* obsolete.
5255 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5256 m88*-*-* obsolete.
5257
37611a2b
AC
52582002-07-24 Andrew Cagney <cagney@redhat.com>
5259
5260 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5261 constant. Same for local pointer variables.
5262 (extract_signed_integer): Ditto.
5263 * defs.h (extract_unsigned_integer): Update.
5264 (extract_signed_integer): Update.
5265
1aaa5f99
AC
52662002-07-24 Andrew Cagney <cagney@redhat.com>
5267
5268 * regcache.c (regcache_raw_write): Change buf parameter to a
5269 constant void pointer.
5270 (regcache_raw_read): Change buf parameter to a void pointer.
5271 (legacy_write_register_gen): Change myaddr parameter a constant
5272 void pointer.
5273 (supply_register): Change val parameter to a const void pointer.
5274 * regcache.h (regcache_raw_write): Update declaration.
5275 (regcache_raw_read): Update declaration.
5276 (supply_register): Update declaration.
5277
b4f5539f
TT
52782002-07-24 Tom Tromey <tromey@redhat.com>
5279
5280 * defs.h (gdb_readline_wrapper): Declare.
5281 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5282 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5283 * top.c (gdb_readline_wrapper): New function.
5284 (command_line_input): Use it.
5285
0818c12a
AC
52862002-07-24 Andrew Cagney <cagney@redhat.com>
5287
5288 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5289 regcache_read and regcache_write.
5290 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5291 * regcache.c: Update.
5292 * sh-tdep.c (sh64_push_arguments): Update comment.
5293 (sh_pseudo_register_read): Update.
5294 (sh_pseudo_register_write): Update.
5295 (sh4_register_read): Update.
5296 (sh4_register_write): Update.
5297 (sh64_pseudo_register_read): Update.
5298 (sh64_pseudo_register_write): Update.
5299 (sh64_register_read): Update.
5300 (sh64_register_write): Update.
5301 * i386-tdep.c (i386_extract_return_value): Update.
5302 (i386_extract_struct_value_address): Update.
5303 (i386_extract_return_value): Update.
5304 * blockframe.c (generic_read_register_dummy): Update.
5305 (generic_call_dummy_register_unwind): Update
5306 * infrun.c (write_inferior_status_register): Update.
5307
f7321c06
JB
53082002-07-23 Jim Blandy <jimb@redhat.com>
5309
5310 * parser-defs.h (expression_context_pc): Make this extern.
5311 (Thanks to Michael Snyder.)
5312
2037aebb
AC
53132002-07-23 Andrew Cagney <ac131313@redhat.com>
5314
5315 GDB 5.2.1 released from 5.2 branch.
5316 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5317 * README: Update to mention 5.2.1.
5318
66504d44
MS
53192002-07-23 Mark Salter <msalter@redhat.com>
5320
5321 * remote.c (remote_read_bytes): Fix check for error.
5322
27bae383
KB
53232002-07-22 Kevin Buettner <kevinb@redhat.com>
5324
5325 * aix-thread.c (language.h): Include.
5326 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5327 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5328 Print newlines at end of debug messages.
5329 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5330 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5331
53322002-07-22 Kevin Buettner <kevinb@redhat.com>
5333
5334 * aix-thread.c (ppc-tdep.h): Include.
5335 (special_register_p): New function.
5336 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5337 (store_regs_user_thread): Use register number information from
5338 gdbarch_tdep struct instead of hardcoded offsets relative to
5339 FIRST_UISA_SP_REGNUM.
5340 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5341 special_register_p() instead of using FPLAST_REGNUM and
5342 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5343 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5344 will be MQ's register number.
5345
53462002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
5347
5348 * aix-thread.c (ops): Rename to aix_thread_ops.
5349 (base_ops): Rename to base_target.
5350 (ops_attach): Rename to aix_thread_attach.
5351 (ops_detach): Rename to aix_thread_detach.
5352 (ops_resume): Rename to aix_thread_detach.
5353 (ops_wait): Rename to aix_thread_wait.
5354 (ops_kill): Rename to aix_thread_kill.
5355 (init_ops): Rename to init_aix_thread_ops.
5356 (ops_fetch_register): Rename to aix_thread_fetch_register.
5357 (ops_store_register): Rename to aix_thread_store_register.
5358 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5359 (ops_thread_alive): Rename to aix_thread_thread_alive.
5360 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5361 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5362 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5363 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5364 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5365 (store_regs_lib): Rename to store_regs_user_thread.
5366 (store_regs_kern): Rename to store_regs_kernel_thread.
5367
27bae383 53682002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
5369
5370 * aix-thread.c (ops_prepare_to_store): Eliminate.
5371 (init_ops): Don't initialize ops.prepare_to_store.
5372 (store_regs_kern): Pre-fetch register buffers from child,
5373 because some registers may not be in the cache. Copy
5374 regs from register cache only if they are cached.
5375 (store_regs_lib): Copy regs from register cache only
5376 if they are cached.
5377 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5378 fill_gprs64): Ditto.
5379
61c5da0b
KB
53802002-07-22 Kevin Buettner <kevinb@redhat.com>
5381
5382 * aix-thread.c (gdb_assert.h): Include.
5383 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5384 register sizes (from register cache) match size of buffer holding
5385 register data.
5386 (fill_sprs32): Change parameter types to match those in the ptrace()
5387 buffer.
5388 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5389 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5390
53912002-07-22 Michael Snyder <msnyder@redhat.com>
5392
5393 * aix-thread.c (supply_sprs64): Cosmetic change.
5394 (supply_sprs32): Cosmetic change.
5395 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5396 (fill_sprs64): Use regcache_collect instead of read_register.
5397 (store_regs_lib): Use regcache_collect instead of
5398 read_register. Use fill_sprs32 instead of fill_sprs64,
5399 if debugging a 32-bit architecture.
5400 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5401 out of the register cache, instead of passing a pointer into
5402 the register cache directly to ptrace. Use regcache_collect
5403 insteaad of read_register.
5404 (ops_prepare_to_store): Use target_read_registers instead
5405 of read_register_bytes.
5406
36479eb1
AS
54072002-07-20 Aidan Skinner <aidan@velvet.net>
5408
5409 * MAINTAINERS: Add self under write after approval.
5410
80ae6ee2
AS
54112002-07-20 Aidan Skinner <aidan@velvet.net>
5412
5413 * ada-tasks.c: Change k&r style function definitions to prototyped
5414 form.
5415
8a8ab2b9
AC
54162002-07-19 Andrew Cagney <ac131313@redhat.com>
5417
5418 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5419 * x86-64-tdep.c: Include "objfiles.h".
5420 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5421 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5422
fb16b900
ML
54232002-07-17 Michal Ludvig <michal@suse.cz>
5424
5425 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5426 (update_context): Initialise cfa variable.
5427
0fe7bf7b
MS
54282002-07-17 Michael Snyder <msnyder@redhat.com>
5429
5430 * aix-thread.c: Shorten some long lines.
5431 Bring comments into line with code spec.
5432
488f131b
JB
54332002-07-18 Joel Brobecker <brobecker@gnat.com>
5434
5435 * infrun.c: Re-indent using gdb_indent.sh.
5436
46c415d2
JB
54372002-07-18 Joel Brobecker <brobecker@gnat.com>
5438
5439 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5440 Leave the indentation temporarily untouched, to minimize the diffs.
5441
cdecafbe
EZ
54422002-07-18 Elena Zannoni <ezannoni@redhat.com>
5443
5444 * stabsread.c: Make os9k sections of the code obsolete,
5445 for real this time.
5446 * stabsread.h: Make os9k sections of the code obsolete.
5447
7b6aa020
ML
54482002-07-18 Michal Ludvig <mludvig@suse.cz>
5449
09ec9b38
ML
5450 * linux-low.c (regsets_store_inferior_registers): Add free()
5451 at the end of a loop to prevent memory leak.
5452 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5453 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5454 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5455 line a comment.
4894ac5d 5456 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5457
233282cd
JB
54582002-07-17 Jim Blandy <jimb@redhat.com>
5459
5460 * macrocmd.c (info_macro_command): Remove newline from error
5461 message.
5462
7b6aa020 54632002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5464
5465 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5466 (sh_gdbarch_init): Use it for sh-dsp.
5467
f7ef9339
KB
54682002-07-16 Kevin Buettner <kevinb@redhat.com>
5469
5470 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5471 64-bit DWARF2 format.
5472
8dd72958
JB
54732002-07-16 Joel Brobecker <brobecker@gnat.com>
5474
5475 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5476 <sys/proc.h> when not available.
5477
a99a9e1b
AC
54782002-07-16 Andrew Cagney <ac131313@redhat.com>
5479
5480 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5481 * stabsread.c: Make os9k sections of the code obsolete.
5482 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5483 * config/i386/i386os9k.mt: Make file obsolete.
5484 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5485 (COMMON_OBS): Remove os9kread.o
5486 (SFILES): Remove os9kread.c.
5487 (os9kread.o, remote-os9k.o): Make target obsolete.
5488 * remote-os9k.c: Make file obsolete.
5489 * os9kread.c: Make file obsolete.
5490 * Makefile.in
5491
7a3085c1
AC
54922002-07-16 Andrew Cagney <ac131313@redhat.com>
5493
5494 * NEWS: Mention that the FR30 has been made obsolete.
5495 * fr30-tdep.c: Make file obsolete.
5496 * config/fr30/tm-fr30.h: Ditto.
5497 * config/fr30/fr30.mt: Ditto.
5498 * configure.tgt: Make fr30-*-elf obsolete.
5499 * MAINTAINERS: Make fr30-elf obsolete.
5500
28a93f5a
PM
55012002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5502
5503 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5504 found is not inside a section.
5505
be006b8b
KB
55062002-07-15 Kevin Buettner <kevinb@redhat.com>
5507
5508 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5509 strerror().
5510 (pdc_realloc): Use xrealloc() instead of realloc().
5511
14fa3751
KB
55122002-07-15 Kevin Buettner <kevinb@redhat.com>
5513
5514 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5515 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5516 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5517 macros.
5518
42cc437f
KB
55192002-07-15 Kevin Buettner <kevinb@redhat.com>
5520
5521 * aix-thread.c (ptrace_check): Eliminate goto.
5522 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5523 problem.
5524
8e2c28d4
KB
55252002-07-15 Kevin Buettner <kevinb@redhat.com>
5526
5527 * aix-thread.c (gdbcmd.h): Include.
5528 (DEBUG, DBG, DBG2, dbg): Eliminate.
5529 (debug_aix_thread): New static global.
5530 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5531 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5532 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5533 invocations to DBG and DBG2 macros to test against
5534 ``debug_aix_thread'' and call fprintf_unfiltered().
5535 (_initialize_aix_thread): Add new command "set debug aix-thread".
5536
30413464
AC
55372002-07-15 Andrew Cagney <ac131313@redhat.com>
5538
5539 From Gerhard Tonn <TON@de.ibm.com>:
5540 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5541 instead of supply_register.
5542
7c43edc1
AC
55432002-07-15 Andrew Cagney <ac131313@redhat.com>
5544
5545 * dwarf2cfi.c: Include "gdb_assert.h".
5546 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5547 non-NULL.
5548 (update_context): Do not use __func__. Add missing ``break''.
5549 (update_context): Do not use __func__.
5550
9364a0ef
EZ
55512002-07-15 Elena Zannoni <ezannoni@redhat.com>
5552
5553 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5554 and its setting. Set gdbarch instruction printing functions
5555 directly. For non-rs6000 case use new function
5556 gdb_print_insn_powerpc.
5557 (gdb_print_insn_powerpc): New function.
5558
3fbeef0b
AC
55592002-07-13 Andrew Cagney <ac131313@redhat.com>
5560
92eb23c5 5561 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5562 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5563 * configure.tgt: Mark d30v-*-* as obsolete.
5564 * d30v-tdep.c: Mark file as obsolete.
5565 * config/d30v/d30v.mt: Ditto.
5566 * config/d30v/tm-d30v.h: Ditto.
5567
aacb1f0a
AS
55682002-07-13 Aidan Skinner <aidan@velvet.net>
5569
5570 * ada-tasks.c (add_task_entry): replace calls to
5571 malloc() with xmalloc
5572 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5573
5574 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5575 ada_finish_decode_line_1, all_sals_for_line
5576 ada_breakpoint_rewrite): replace calls to free() with xfree()
5577
c11d79f2
KB
55782002-07-12 Kevin Buettner <kevinb@redhat.com>
5579
5580 From Nicholas Duffek (with minor changes by Martin Hunt,
5581 Louis Hamilton, and Kevin Buettner):
5582 * aix-thread.c: New file.
5583
8e19ed76
PS
55842002-07-12 Petr Sorfa <petrs@caldera.com>
5585
5586 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5587 complaint for invalid attribute class or form.
5588 (read_func_scope): DW_AT_frame_base
5589 better handling of DW_AT_block*.
5590 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5591 better handling of DW_AT_block*.
5592 (read_common_block): DW_AT_location
5593 better handling of DW_AT_block*.
5594 (read_partial_die): DW_AT_location better handling
5595 of DW_AT_block*.
5596 (new_symbol): DW_AT_external better handling of
5597 DW_AT_block*. Proper initialization of variable
5598 "addr".
5599 (attr_form_is_block): New function that returns true
5600 if the attribute's form is of DW_FORM_block*.
5601
295401f7
DJ
56022002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5603
5604 * valops.c (find_method_list): Remove comment about
5605 removed STATIC_MEMFUNCP argument.
5606 (value_find_oload_method_list): Likewise.
5607
e42dc924
KB
56082002-07-12 Kevin Buettner <kevinb@redhat.com>
5609
5610 From Nicholas Duffek:
5611 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5612 target_new_objfile_hook.
5613
6904b546
KB
56142002-07-12 Kevin Buettner <kevinb@redhat.com>
5615
5616 From Nicholas Duffek:
5617 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5618 csect.
5619
53fe9346
AC
56202002-07-12 Andrew Cagney <cagney@redhat.com>
5621
5622 * MAINTAINERS: Mention --enable-sim-build-warnings.
5623 (m68hc11-elf): Disable sim build warnings.
5624 (m32r-elf): Mark as broken obsolete candidate.
5625 (x86_64-linux-gnu): Mark as buildable with -Werror.
5626 (arm-elf): Change -w to ``,'' which enables warnings but not
5627 -Werror.
5628
af5f3db6
AC
56292002-07-12 Andrew Cagney <ac131313@redhat.com>
5630
5631 * bcache.h: Update copyright.
5632 (struct bstring, struct bcache): Move definition to "bcache.c".
5633 Replaced by opaque declaration.
5634 (bcache_xfree): Replace free_bcache.
5635 (bcache_xmalloc, bcache_memory_used): Declare.
5636
5637 * bcache.c: Update copyright.
5638 (struct bstring, struct bcache): Moved to here from "bcache.h".
5639 Update comments.
5640 (bcache_xmalloc, bcache_memory_used): New functions.
5641 (bcache_xfree): Replace function free_bcache.
5642
5643 * Makefile.in (objfiles.o): Add $(bcache_h).
5644 (objfiles_h): Remove $(bcache_h).
5645 (symfile.o): Add $(bcache_h).
5646
5647 * symmisc.c: Update copyright.
5648 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5649 (print_objfile_statistics): Use bcache_memory_used.
5650
5651 * symfile.c: Include "bcache.h".
5652 (reread_symbols): Use bcache_xfree.
5653 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5654 (add_psymbol_to_list): Pass psymbol_cache by value.
5655 (add_psymbol_with_dem_name_to_list): Ditto.
5656
5657 * objfiles.h: Update copyright.
5658 (struct bcache): Declare opaque. Do not include "bcache.h".
5659 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5660 bcache'' pointers.
5661 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5662
5663 * objfiles.c: Include "bcache.h". Update copyright.
5664 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5665 macro_cache.
5666 (free_objfile): Use bcache_xfree.
5667
444199e7
GS
56682002-07-11 Grace Sainsbury <graces@redhat.com>
5669
5670 * monitor.c (monitor_fetch_register): Make name a constant.
5671 (monitor_store_register): Same.
5672
261397f8
DJ
56732002-07-11 Daniel Jacobowitz <drow@mvista.com>
5674
5675 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5676 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5677 (finish_block) For non-function blocks, hash the symbol table. For
5678 function blocks, mark the symbol table as unhashed.
5679 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5680 (msymbol_hash_iw): Likewise.
5681 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5682 value.
5683 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5684 (lookup_minimal_symbol): Likewise for both.
5685 * symtab.h (struct block): Add `hashtable' flag. Comment the
5686 hashtable.
5687 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5688 (ALL_BLOCK_SYMBOLS): Update.
5689 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5690 (struct symbol): Add `hash_next' pointer.
5691 * symtab.c (lookup_block_symbol): Search using the hash table when
5692 possible.
5693 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5694 (search_symbols, find_addr_symbol): Likewise.
5695
5696 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5697 (read_dst_symtab): Likewise.
5698 * jv-lang.c (get_java_class_symtab): Likewise.
5699 * mdebugread.c: Include "gdb_assert.h".
5700 (shrink_block): Assert that the block being modified is not hashed.
5701 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5702 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5703 symbols.
5704 (dump_symtab): Recognize hashed blocks.
5705 * printcmd.c (print_frame_args): Assert that function blocks do not
5706 have hashed symbol tables.
5707 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5708 (fill_in_ada_prototype, debug_print_block): Likewise.
5709 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5710
6f0eaa01
CV
57112002-07-11 Corinna Vinschen <vinschen@redhat.com>
5712
5713 * stack.c (print_frame): Use result of frame_address_in_block()
5714 instead of fi->pc when evaluating symbols.
5715 (backtrace_command_1): Ditto.
5716
a208b0cb
AC
57172002-07-11 Andrew Cagney <cagney@redhat.com>
5718
5719 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5720 Make static.
5721
5722 * arm-tdep.c (arm_register_name): Make return type constant.
5723
a6b6b089
AC
57242002-07-10 Andrew Cagney <ac131313@redhat.com>
5725
5ae5f592
AC
5726 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5727 prototype.
5728 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5729 * s390-tdep.c (s390_fp_regnum): Ditto.
5730 (s390_read_fp): Ditto.
5731 (s390_pop_frame): Ditto.
5732 (_initialize_s390_tdep): Ditto.
5733 * remote.c (get_remote_state): Ditto.
5734 * procfs.c (mappingflags): Ditto.
5735 * memattr.c (_initialize_mem): Ditto.
5736 * mcore-tdep.c (mcore_pop_frame): Ditto.
5737 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5738 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5739 * language.c (set_case_str): Ditto.
5740 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5741 * frv-tdep.c (new_variant): Ditto.
5742 (frv_stopped_data_address): Ditto.
5743 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5744 (context_alloc): Ditto.
5745 (frame_state_alloc): Ditto.
5746 (unwind_tmp_obstack_init): Ditto.
5747 (unwind_tmp_obstack_free): Ditto.
5748 (cfi_read_fp): Ditto.
5749 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5750 (cris_pop_frame): Ditto.
5751 * c-lang.c (scanning_macro_expansion): Ditto.
5752 (finished_macro_expansion): Ditto.
5753 (c_preprocess_and_parse): Ditto.
5754 * gdbarch.sh: Ditto.
5755 * gdbarch.h, gdbarch.c: Regenerate.
5756 * config/mn10200/tm-mn10200.h: Adjust indentation.
5757 * target.c: Adjust indentation.
5758 * symtab.h: Adjust indentation.
5759 * stabsread.h: Adjust indentation.
5760 * remote-es.c: Adjust indentation.
5761 * os9kread.c: Adjust indentation.
5762
57632002-07-10 Andrew Cagney <ac131313@redhat.com>
5764
a6b6b089
AC
5765 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5766 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5767
a1789893
GS
57682002-07-10 Grace Sainsbury <graces@redhat.com>
5769
5770 * NEWS: Mention m68k, mcore multi-arching.
5771 * MAINTAINERS: Change status of m68k, mcore to reflect
5772 multi-arching.
5773
02f0d45d
DJ
57742002-07-10 Daniel Jacobowitz <drow@mvista.com>
5775
5776 * valops.c (find_overload_match): Free oload_syms.
5777
f15f768e
JB
57782002-07-09 Joel Brobecker <brobecker@gnat.com>
5779
5780 Define HAVE_SYS_PROC_H if sys/proc.h exists
5781 * configure.in: Add check for sys/proc.h
5782 * config.in: Regenerate.
5783 * configure: Regenerate.
5784
902a7139
GS
57852002-07-09 Grace Sainsbury <graces@redhat.com>
5786
5787 * config/m68k/tm-m68k.h: Remove macros wrapped in
5788 #if !GDB_MULTI_ARCH.
5789
a534e424
AC
57902002-07-08 Andrew Cagney <ac131313@redhat.com>
5791
5792 * config.in, configure: Regenerate.
5793
9b94f7bf
MK
57942002-07-08 Mark Kettenis <kettenis@gnu.org>
5795
5796 * dwarf2cfi.c: Include "gcore.h".
5797 (execute_stack_op): Fix implementation of the
5798 DW_OP_deref and DW_OP_deref_size operators by letting do their
5799 lookup in the target.
5800
1d34db41
MK
58012002-07-07 Mark Kettenis <kettenis@gnu.org>
5802
5803 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5804 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5805 tdep->sc_sp_offset.
5806
79d5b63a
DJ
58072002-07-05 Daniel Jacobowitz <drow@mvista.com>
5808
5809 Fix PR gdb/595, gdb/602
5810 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5811 Don't call value_cast, just read the vtable pointer; update comments
5812 to match.
5813
3bb912e8
GS
58142002-07-05 Grace Sainsbury <graces@redhat.com>
5815
5816 * config/mcore/tm-mcore.h: Remove file.
5817 * config/mcore/mcore.mt: Remove definition of TM_FILE
5818 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5819
ca39387d
MK
58202002-07-05 Mark Kettenis <kettenis@gnu.org>
5821
5822 * i386bsd-tdep.c: Include "gdb_string.h".
5823
efdc1108
GS
58242002-07-04 Grace Sainsbury <graces@redhat.com>
5825
5826 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5827 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5828 mcore-tdep.
5829 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5830 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5831 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5832 (RETVAL_REGNUM): Move macros from tm-mcore.h
5833 (mcore_reg_struct_has_addr): New function.
5834 (mcore_gdbarch_init): Added initializations for the macros removed
5835 from tm-mcore.h.
5836
bb21884d
MK
58372002-07-04 Mark Kettenis <kettenis@gnu.org>
5838
5839 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5840 traditonal string branding within the ELF header.
5841
228c6d41
DJ
58422002-07-04 Daniel Jacobowitz <drow@mvista.com>
5843
5844 * symtab.c (remove_params): New function.
5845 (make_symbol_overload_list): Use it instead of cplus_demangle.
5846 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5847
2404952e
MK
58482002-07-04 Mark Kettenis <kettenis@gnu.org>
5849
e5e4acad
MK
5850 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5851
baadce09
MK
5852 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5853 New variables.
5854 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5855 and tdep->sigtramp_end.
5856 * i386obsd-nat.c: New file.
5857 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5858
2404952e
MK
5859 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5860 Don't call get_current_frame().
5861
9b4f1ba7
PM
58622002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5863
5864 * i386-nat.c (child_post_startup_inferior): New function
5865 calling i386_cleanup_dregs if
5866 I386_USE_GENERIC_WATCHPOINTS is defined.
5867 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5868 conditional to acknowledge that i386-nat.c has its
5869 own child_post_startup_inferior function.
5870
c0d1d883
MK
58712002-07-04 Mark Kettenis <kettenis@gnu.org>
5872
00f8375e
MK
5873 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5874 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5875 instead of MAX_REGISTER_RAW_SIZE.
5876 (i386_extract_return_value, i386_extract_struct_value_address):
5877 Convert to use regcache.
5878 (i386_gdbarch_init): Set max_register_raw_size and
5879 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5880 Set extract_return_value and extract_struct_value_address instead
5881 of their deprecated variants.
5882
c0d1d883
MK
5883 Convert i386 target to generic dummy frames.
5884 * i386-tdep.c: Include "symfile.h".
5885 (i386_frameless_signal_p): Consider a function to be frameless if
5886 the pc points at the first instruction of the function.
5887 (i386_frame_chain): Handle (generic) call dummies.
5888 (i386_frame_saved_pc): Likewise.
5889 (i386_frame_init_saved_regs): Remove code dealing with call
5890 dummies on the stack.
5891 (i386_push_dummy_frame): Removed.
5892 (i386_call_dummy_words): Removed.
5893 (i386_fix_call_dummy): Removed.
5894 (i386_push_return_address): New function.
5895 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5896 parameter, and don't call get_current_frame.
5897 (i386_pop_frame): New function.
5898 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5899 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5900 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5901 call_dummy_length to 0, set call_dummy_words to NULL, set
5902 sizeof_call_dummy_words to 0, set fix_call_dummy to
5903 generic_fix_call_dummy, set pc_in_call_dummy to
5904 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5905 generic_push_dummy_frame, set push_return_address to
5906 i386_push_return_address and set frame_chain_valid to
5907 generic_file_frame_chain_valid.
5908
049ee0e4
AC
59092002-07-03 Andrew Cagney <ac131313@redhat.com>
5910
5911 * gdbarch.sh (struct regcache): Add opaque declaration.
5912 (EXTRACT_RETURN_VALUE): New architecture method.
5913 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5914 * gdbarch.h, gdbarch.c: Regenerate.
5915 * arch-utils.c (legacy_extract_return_value): New function.
5916 * arch-utils.h (legacy_extract_return_value): Declare.
5917 * values.c (value_being_returned): Re-enable code handling
5918 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5919 deprecated_grub_regcache_for_registers call to block handling
5920 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5921 (EXTRACT_RETURN_VALUE): Do not define.
5922
4e0d9804
GS
59232002-07-03 Grace Sainsbury <graces@redhat.com>
5924
5925 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5926 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5927 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5928 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5929 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5930 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5931 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5932 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5933 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5934 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5935 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5936 argument so the function fits the prototype in the architecture
5937 vector.
5938 (mcore_pop_frame): Remove argument so the function fits the
5939 prototype. Use get_current_frame instead of the argument.
5940 (mcore_push_arguments): Change type of struct_return so the
5941 function can be used in the architecture vector.
5942 (mcore_store_struct_return): Add.
5943 (mcore_frame_init_saved_regs): Add.
5944 (mcore_gdbarch_init): Add function calls to replace the macros
5945 removed from tm-mcore.h
5946
36160dc4
AC
59472002-07-03 Andrew Cagney <ac131313@redhat.com>
5948
5949 * infcmd.c (print_return_value): Remove compatibility code calling
5950 deprecated_grub_regcache_for_registers.
5951
5952 * values.c: Include "regcache.h".
5953 (value_being_returned): Update. Use
5954 deprecated_grub_regcache_for_registers to extract the register
5955 buffer address.
5956 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5957 ``struct regcache''.
5958 * Makefile.in (values.o): Add dependency on $(regcache_h).
5959
5960 * inferior.h (run_stack_dummy): Change type of second parameter to
5961 a ``struct regcache''.
5962 * valops.c (hand_function_call): Change type of retbuf to ``struct
5963 regcache''. Allocate using regcache_xmalloc, clean using
5964 make_cleanup_regcache_xfree.
5965 * infcmd.c (run_stack_dummy): Update. Use
5966 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5967
5968 * regcache.c (do_regcache_xfree): New function.
5969 (make_cleanup_regcache_xfree): New function.
5970 * regcache.h (make_cleanup_regcache_xfree): Declare.
5971
e64d9b3d
MH
59722002-07-03 Martin M. Hunt <hunt@redhat.com>
5973
4dd79c29
MH
5974 * event-top.c (command_line_handler): Don't read past
5975 beginning of buffer.
e64d9b3d 5976
4dd79c29
MH
59772002-07-03 Martin M. Hunt <hunt@redhat.com>
5978
e64d9b3d
MH
5979 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5980 struct frame_id.
5981 (varobj_create): Store frame_id for root.
5982 (varobj_gen_name): Use xasprintf.
5983 (varobj_update): Save and restore frame using get_frame_id() and
5984 frame_find_by_id().
5985 (create_child): Use xasprintf.
5986 (new_root_variable): Initialize frame_id.
5987 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5988 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5989 to prevent memory leak.
5990
26e6c56a
AC
59912002-07-03 Andrew Cagney <ac131313@redhat.com>
5992
5993 * valops.c (hand_function_call): Move declaration of retbuf to
5994 start of function, allocate using malloc, add a cleanup but before
5995 the inf_status cleanup, cleanup the buffer. Rename local variable
5996 old_chain to inf_status_cleanup.
5997
f436dd25
MH
59982002-07-03 Martin M. Hunt <hunt@redhat.com>
5999
6000 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6001
6002 * cli/cli-decode.c (cmd_func_p): New function.
6003 (cmd_func): New function.
6004
6005 * command.h: Add cmd_func() and cmd_func_p().
6006
4cfe2084
GS
60072002-07-03 Grace Sainsbury <graces@redhat.com>
6008
6009 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6010 (REGISTER_SIZE): Remove.
6011 (MAX_REGISTER_RAW_SIZE): Remove.
6012 (REGISTER_VIRTUAL_TYPE): Remove.
6013 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6014 (REGISTER_NAME): Remove.
6015 (USE_GENERIC_DUMMY_FRAMES): Remove.
6016 (CALL_DUMMY): Remove.
6017 (CALL_DUMMY_START_OFFSET): Remove.
6018 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6019 (CALL_DUMMY_LOCATION): Remove.
6020 (FIX_CALL_DUMMY): Remove.
6021 (CALL_DUMMY_ADDRESS): Remove.
6022 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6023 (SAVE_DUMMY_FRAME_TOS): Remove.
6024 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6025 (mcore_register_virtual_type): New function.
6026 (mcore_register_byte): New function.
6027 (mcore_register_size): New function.
6028 (mcore_register_name): New function.
6029 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6030 macros removed from tm-mcore.h.
6031 (mcore_dump_tdep): Add.
6032 (_initialize_mcore_tdep): Add gdbarch_register call.
6033
4fd667e9
MK
60342002-07-03 Mark Kettenis <kettenis@gnu.org>
6035
6036 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6037 frameless_look_for_prologue, such that we actually call this
6038 function.
6039
42f99ac2
JB
60402002-07-02 Joel Brobecker <brobecker@gnat.com>
6041
6042 * frame.h (frame_address_in_block): New function.
6043
6044 * blockframe.c (frame_address_in_block): New function extracted
6045 from get_frame_block().
6046 (get_frame_block): Use frame_address_in_block().
6047 (block_innermost_frame): Use frame_address_in_block() to match
6048 the frame pc address against the block boundaries rather than
6049 the frame pc directly. This prevents a failure when a frame pc
6050 is actually a return-address pointing immediately after the end
6051 of the given block.
6052
103a1597 60532002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
6054
6055 * MAINTAINERS: Add self under write after approval.
6056
60572002-07-02 Grace Sainsbury <graces@redhat.com>
6058
103a1597
GS
6059 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6060 used in architecture vector. The default is
6061 m68k_local_breakpoint_from_pc.
6062 (m68k_local_breakpoint_from_pc): Add.
6063 (enum): Add register numbers from tm-m68k.h.
6064 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6065 vector.
6066 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6067 GDB_MULTI_ARCH_PARTIAL.
6068 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6069 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6070 m68k-tdep.c.
6071 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6072 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6073 to enum in m68k-tdep.c
6074
7a5a0534
JB
60752002-07-02 Joel Brobecker <brobecker@gnat.com>
6076
6077 * solib-osf.c (open_map): Compute the list of shared libraries
6078 loaded by the inferior, rather than the list of libraries loaded
6079 by GDB itself. Otherwise, GDB ends up reading the symbols from
6080 the wrong shared libraries...
6081
6f558d74
MK
60822002-07-02 Mark Kettenis <kettenis@gnu.org>
6083
b7d15bf7
MK
6084 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6085 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6086 macros.
6087 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6088 Remove functions.
6089 (FRAMELESS_SIGNAL): Remove function.
6090 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6091 i386_linux_saved_pc_after_call): Removed.
6092 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6093 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6094 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6095
6bff26de
MK
6096 * i386-tdep.c (i386_frameless_signal_p): New function.
6097 (i386_frame_chain): Deal with frameless signals.
6098 (i386_sigtramp_saved_sp): New function.
6099 (i386_frame_saved_pc): Deal with frameless signals.
6100 (i386_saved_pc_after_call): Make sure the correct value is
6101 returned just after entry into a sigtramp.
6102 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6103 i386fbsd4_sc_sp_offset): New variables.
6104 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6105 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6106 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6107 similiar to what we already did for sc_pc_offset.
6108 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6109 tdep->sc_sp_offset.
6110
6f558d74
MK
6111 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6112
145564b7
ML
61132002-07-02 Michal Ludvig <mludvig@suse.cz>
6114
6115 * config/i386/tm-x86-64linux.h: New.
6116 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6117 definitions.
6118 * config/i386/nm-x86-64.h: Rename to ...
6119 * config/i386/nm-x86-64linux.h: ... this one.
6120 * config/i386/x86-64linux.mh: Reflect the above change.
6121
3a1e71e3
MK
61222002-07-01 Mark Kettenis <kettenis@gnu.org>
6123
21d0e8a4
MK
6124 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6125 with sigcontext_addr. Add sc_sp_offset.
6126 (i386bsd_sigtramp_saved_pc): Remove prototype.
6127 (i386bsd_sicontext_addr): Add prototype.
6128 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6129 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6130 (i386_svr4_sigtramp_saved_pc): Removed.
6131 (i386_svr4_sigcontext_addr): New function.
6132 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6133 Initialize tdep->sigcontext_addr instead. Initialize
6134 tdep->sc_pc_offset and tdep->sc_sp_offset.
6135 (i386_gdbarch_init): Likewise.
6136 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6137 any more.
6138 (i386bsd_sigtramp_saved_pc): Remove function.
6139 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6140 Initialize tdep->sigcontext_addr instead. Initialize
6141 tdep->sc_pc_offset.
6142 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6143 of tdep->sigtramp_saved_pc.
6144 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6145 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6146 instead.
6147
3a1e71e3
MK
6148 * i386-tdep.c (i386_frameless_function_invocation,
6149 i386_frame_num_args, i386_frame_init_saved_regs,
6150 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6151 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6152 i386_extract_return_value, i386_store_return_value,
6153 i386_extract_struct_value_address, i386_register_virtual_type,
6154 i386_register_convertible, i386_register_convert_to_virtual,
6155 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6156 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6157 static.
6158
52e9098c
MK
61592002-07-01 Mark Kettenis <kettenis@gnu.org>
6160
77b13a25
MK
6161 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6162
52e9098c
MK
6163 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6164 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6165 this macro. Include "value.h".
6166
1b372fff
AS
61672002-06-30 Aidan Skinner <aidan@velvet.net>
6168
6169 * ada-exp.tab.c: remove as it's a generated file
6170 * ada-lex.c: remove as it's a generated file
6171
9c5045b5
MK
61722002-06-30 Mark Kettenis <kettenis@gnu.org>
6173
4a93c5bb
MK
6174 * config/i386/tm-i386.h (struct frame_info, struct
6175 frame_saved_regs, struct value, struct type): Remove forward
6176 declarations.
6177
322d4fe0
MK
6178 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6179 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6180 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6181 (FILL_FPXREGSET): Define.
6182
fdd8263d
MK
6183 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6184
482e577b
MK
6185 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6186 i[3456]86-*-netbsd* case.
6187 * config/i386/tm-obsd.h: Removed.
6188 * config/i386/obsd.mt: Removed.
6189 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6190 core-aout.o.
6191 (MH_CFLAGS): Add -DYYDEBUG=0.
6192
6916549a
MK
6193 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6194 i386nbsd_sc_pc_offset on OpenBSD too.
6195
9c5045b5
MK
6196 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6197 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6198 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6199 define.
6200 * i386bsd-tdep.c: Include "arch-utils.h".
6201 (i386bsd_aout_in_solib_call_trampoline): New function.
6202 (i386bsd_init_abi): Set in_solib_call_trampoline to
6203 i386bsd_aout_in_solib_call_trampoline.
6204 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6205 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6206
aa84d1bb
AC
62072002-06-28 Andrew Cagney <ac131313@redhat.com>
6208
6209 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6210 (struct obstack, struct bcache): Add opaque declarations.
6211 * Makefile.in (macrotab_h): Update
6212
b4d83933
AC
62132002-06-28 Andrew Cagney <ac131313@redhat.com>
6214
6215 * blockframe.c (generic_find_dummy_frame): Change return type to
6216 ``struct regcache''.
6217 (struct dummy_frame): Replace field ``registers'' with regcache, a
6218 struct regcache object.
6219 (generic_find_dummy_frame): Update.
6220 (generic_push_dummy_frame): Update. Use regcache_xfree,
6221 regcache_xmalloc and regcache_cpy.
6222 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6223 regcache_xfree.
6224 (deprecated_generic_find_dummy_frame): Update.
6225 (generic_read_register_dummy): Update. Use
6226 regcache_read_as_address.
6227 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6228 (generic_get_saved_register): Update. Use regcache_read.
6229
08c0b5bc
AC
62302002-06-28 Andrew Cagney <ac131313@redhat.com>
6231
6232 * Makefile.in (objfiles_h): Add $(bcache_h).
6233 * objfiles.h: Include "bcache.h".
6234
6235 * Makefile.in (symtab_h): Remove $(bcache_h).
6236 * symtab.h: Do not include "bcache.h".
6237
1f89801a
AC
62382002-06-28 Andrew Cagney <ac131313@redhat.com>
6239
6240 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6241 generic_func_frame_chain_valid.
6242
b9644b58
DB
62432002-06-28 David O'Brien <obrien@FreeBSD.org>
6244
6245 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6246 * config/i386/tm-fbsd.h: Likewise.
6247
dd486634
AC
62482002-06-28 Andrew Cagney <ac131313@redhat.com>
6249
6250 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6251 generic_unwind_get_saved_register.
6252
0b434a00
AC
62532002-06-27 Andrew Cagney <ac131313@redhat.com>
6254
6255 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6256 * regcache.c (supply_register): Add missing argument to
6257 register_buffer call.
6258
f30e5a77
AC
62592002-06-27 Andrew Cagney <ac131313@redhat.com>
6260
6261 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6262 Solaris /bin/grep does not not like it. From Peter Schauer.
6263
9f064c95
TT
62642002-06-26 Tom Tromey <tromey@redhat.com>
6265
6266 * command.h (add_setshow_cmd): Declare.
6267 (add_setshow_cmd_full): Declare.
6268 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6269 returns void. Use add_setshow_cmd_full.
6270 (add_setshow_cmd_full): New function.
6271 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6272 (add_setshow_boolean_cmd): Likewise.
6273
099c7589
JT
62742002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6275
6276 * config/vax/tm-vax.h: Protect from multiple inclusion.
6277 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6278 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6279 * config/vax/tm-vaxbsd.h: ...here. New file.
6280 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6281
1d049c5e
JT
62822002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6283
6284 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6285 (BELIEVE_PCC_PROMOTION): Remove.
6286 (AP_REGNUM): Move to...
6287 * config/vax/nm-vax.h: ...here.
6288 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6289 (vax_breakpoint_from_pc): New function.
6290 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6291 and gdbarch_believe_pcc_promotion.
6292
4791e091
JT
62932002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6294
6295 * Makefile.in (vax_tdep_h): Define.
6296 (vax-tdep.o): Use $(vax_tdep_h).
6297 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6298 (vax_dump_tdep): New function.
6299 (_initialize_vax_tdep): Register vax_dump_tdep.
6300 * vax-tdep.h: Include osabi.h.
6301 (struct gdbarch_tdep): New.
6302
da130f98
AC
63032002-06-26 Andrew Cagney <cagney@redhat.com>
6304
6305 * frame.h (deprecated_generic_find_dummy_frame): Rename
6306 generic_find_dummy_frame.
6307 * blockframe.c (generic_find_dummy_frame): Make static.
6308 (deprecated_generic_find_dummy_frame): New function.
6309 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6310 generic_find_dummy_frame with deprecated_find_dummy_frame.
6311 (sh64_nofp_frame_init_saved_regs): Ditto.
6312 (sh_fp_frame_init_saved_regs): Ditto.
6313 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6314 (s390_frame_chain): Ditto.
6315 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6316
6300c360
GS
63172002-06-26 Grace Sainsbury <graces@redhat.com>
6318
6319 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6320 gdbarch vector are at the top.
6321 (NUM_REGS): Remove.
6322 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6323 (FRAME_ARGS_ADDRESS): Remove.
6324 (FRAME_LOCALS_ADDRESS): Remove.
6325 (FRAME_NUM_ARGS): Remove.
6326 (FRAME_ARGS_SKIP): Remove.
6327 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6328 (m68k_gdbarch_init): Add gdbarch initializations for macros
6329 undefined in tm-m68k.h
6330
1c617db8
GS
63312002-06-26 Grace Sainsbury <graces@redhat.com>
6332
6333 * monitor.h: Add the function regname to monitor_ops
6334 structure. This way NUM_REGS does not have to be a constant.
6335 * monitor.c (monitor_fetch_register): Added support for regname
6336 function. The function is called if the array regnames is NULL.
6337 (monitor_store_register): Same.
da130f98
AC
6338 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6339 regnames array.
1c617db8
GS
6340 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6341 cpu32bug_cmds.regname to point to new function.
6342 * abug-rom.c (abug_regname): Same as above.
6343 (init_abug_cmds): Same.
6344 * dbug-rom.c (dbug_regname): Same as above.
6345 (init_dbug_cmds): Same.
6346 * remote-est.c (est_regname): Same.
6347 (init_est_cmds): Same.
6348 * rom68k-rom.c (rom68k_regname): Same.
6349 (init_rom68k_cmds): Same.
6350
ea9365bb
TT
63512002-06-25 Tom Tromey <tromey@redhat.com>
6352
6353 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6354
72cec141
AC
63552002-06-25 Andrew Cagney <cagney@redhat.com>
6356
6357 * infrun.c (stop_registers): Change variable's type to ``struct
6358 regcache'''.
6359 (xmalloc_inferior_status): Delete function.
6360 (free_inferior_status): Delete function.
6361 (normal_stop): Use regcache_cpy.
6362 (struct inferior_status): Change type of fields ``stop_registers''
6363 and ``registers'' to ``struct regcache''.
6364 (write_inferior_status_register): Use regcache_write.
6365 (save_inferior_status): Instead of calling
6366 xmalloc_inferior_status, allocate the inf_status buffer directly.
6367 Use regcache_dup_no_passthrough and regcache_dup to save the
6368 buffers.
6369 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6370 Replace the stop_registers regcache instead of overriding it. Use
6371 regcache_xfree. Instead of calling free_inferior_status, xfree
6372 the buffer directly.
6373 (discard_inferior_status): Use regcache_xfree. Instead of calling
6374 free_inferior_status, xfree the buffer directly.
6375 (build_infrun): Use regcache_xmalloc.
6376 (_initialize_infrun): Delete redundant call to build_infrun.
6377
6378 * Makefile.in (infcmd.o): Add $(regcache_h).
6379
6380 * infcmd.c: Include "regcache.h".
6381 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6382 obtain the address of `stop_registers' register buffer.
6383 (print_return_value): Ditto.
6384
6385 * inferior.h (struct regcache): Add opaque declaration.
6386 (stop_registers): Change variable's declared type to ``struct
6387 regcache''.
6388
defc6f8c
TT
63892002-06-24 Tom Tromey <tromey@redhat.com>
6390
c0e624e7
TT
6391 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6392 * target.c (initialize_targets): Fixed typo in
6393 trust-readonly-sections `show' documentation.
6394
defc6f8c
TT
6395 * main.c: Marked all strings with _().
6396
2b236d82
DH
63972002-06-24 Don Howard <dhoward@redhat.com>
6398
6399 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6400 that means max CORE_ADDR+1.
6401 (lookup_mem_region): Ditto.
6402 (mem_info_command): Ditto.
6403
942dc0e9
GS
64042002-06-24 Grace Sainsbury <graces@redhat.com>
6405
6406 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6407 (REGISTER_BYTES_OK): Remove.
6408 (REGISTER_BYTES): Remove.
6409 (STORE_STRUCT_RETURN): Remove.
6410 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6411 (STORE_RETURN_VALUE): Remove.
6412 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6413 (FRAME_CHAIN): Remove.
6414 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6415 (FRAME_SAVED_PC): Remove.
6416 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6417 (m68k_store_struct_return): Add.
6418 (m68k_deprecated_extract_return_value): Add.
6419 (m68k_deprecated_extract_struct_value_address): Add.
6420 (m68k_store_return_value): Add.
6421 (m68k_frame_chain): Add.
6422 (m68k_frameless_function_invocation): Add.
6423 (m68k_frame_saved_pc): Add.
6424 (m68k_gdbarch_init): added set_gdbarch calls for new
6425 functions and deleted macros.
6426
03c30d4d
TT
64272002-06-23 Tom Tromey <tromey@redhat.com>
6428
6429 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6430 (ALLDEPFILES): Likewise.
6431 (udiheaders): Removed.
6432 (udip2soc.o): Likewise.
6433 (udi2go32.o): Likewise.
6434 (udr.o): Likewise.
6435 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6436
37e71372
AC
64372002-06-22 Andrew Cagney <ac131313@redhat.com>
6438
06a6ac57
AC
6439 * infrun.c (_initialize_infrun): Delete unnecessary call to
6440 build_infrun.
6441
37e71372
AC
6442 * regcache.h: Update comments describing the regcache_cpy family
6443 of functions.
6444 (regcache_save, regcache_restore): Delete declaration.
6445 (regcache_save_no_passthrough): Delete declaration.
6446 (regcache_restore_no_passthrough): Delete declaration.
6447 * regcache.c (regcache_save): Delete function.
6448 (regcache_save_no_passthrough): Delete function.
6449 (regcache_restore): Delete function.
6450 (regcache_restore_no_passthrough): Delete function.
6451
78f6d055
AC
64522002-06-21 Andrew Cagney <ac131313@redhat.com>
6453
6454 * config/m68k/tm-m68k.h: Fix typo.
6455 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6456 (m68k_frame_init_saved_regs): Declare.
6457
78b119cb
JB
64582002-06-21 Jim Blandy <jimb@redhat.com>
6459
6460 Remove some vestiges of Harris 88k support.
6461 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6462 register numbering quirk.
6463 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6464 odd symbols occurring in Harris 88k ELF targets.
6465
0fbb3da7
TT
64662002-06-21 Tom Tromey <tromey@redhat.com>
6467
6468 * gdb_locale.h: New file.
6469 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6470 (defs_h): Added gdb_locale.h.
6471 * configure, config.in: Rebuilt.
6472 * configure.in (PACKAGE): Define.
6473 * defs.h: Include gdb_locale.h.
6474 * main.c (captured_main): Call setlocale, bindtextdomain,
6475 textdomain.
6476
456f8b9d
DB
64772002-06-21 Dave Brolley <brolley@redhat.com>
6478
6479 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6480 * config/frv/frv.mt: New file.
6481 * config/frv/tm-frv.h: New file.
6482 * configure.tgt: Support frv-*-*.
6483 * Makefile.in (frv-tdep.o): New target.
6484 * frv-tdep.c: New file.
6485 * NEWS: Mention frv.
6486
cdd463f9
DB
64872002-06-21 Dave Brolley <brolley@redhat.com>
6488
6489 * MAINTAINERS: Add self to "Write After Approval" list.
6490
5d3ed2e3
GS
64912002-06-21 Grace Sainsbury <graces@redhat.com>
6492
6493 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6494 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6495 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6496 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6497 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6498
6499 * m68k-tdep.c: Include arch-utils.h
6500 (m68k_register_raw_size): Add.
6501 (m68k_register_virtual_size): Add.
6502 (m68k_register_virtual_type): Add.
6503 (m68k_register_name): Add.
6504 (m68k_stack_align): Add.
6505 (m68k_register_byte): Add.
6506 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6507 tm-m68k.h.
6508
7f8e7424
GS
65092002-06-21 Grace Sainsbury <graces@redhat.com>
6510
a2c6a6d5 6511 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6512 m68k_find_saved_regs.
6513 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6514 references to it with frame->saved_regs.
7f8e7424
GS
6515 (m68k_gdbarch_init): Added function calls to initialize the
6516 gdbarch structure.
a2c6a6d5
GS
6517 (m68k_fix_call_dummy): Add.
6518 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6519 (CALL_DUMMY): Remove.
6520 (CALL_DUMMY_LENGTH): Remove.
6521 (CALL_DUMMY_START_OFFSET): Remove.
6522 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6523 (FIX_CALL_DUMMY): Remove.
6524 (PUSH_DUMMY_FRAME): Remove.
6525 (POP_FRAME): Remove.
7f8e7424 6526
f461f5cf
PM
65272002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6528
6529 * parse.c (parse_fprintf): New function used to avoid calls to
6530 fprintf in bison parser generated debug code.
6531 * parser-defs.h: Declaration of new parse_fprintf function.
6532 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6533 Set YYDEBUG to 1 by default.
6534 Set YYFPRINTF as parse_fprintf.
6535
7f0c12ed
ML
65362002-06-21 Michal Ludvig <mludvig@suse.cz>
6537
6538 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6539 encoding anymore.
6540 (pointer_encoding, enum ptr_encoding): New.
6541 (execute_cfa_program): Take care about pointer encoding.
6542 (dwarf2_build_frame_info): Only call parse_frame_info for
6543 .debug_frame and .eh_frame.
6544 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6545 fixed augmentation handling, added relative addressing,
6546 ignore duplicate FDEs. Added comments.
19d833a2 6547 * dwarf2cfi.c: Reindented.
7f0c12ed 6548
87c4a039
EZ
65492002-06-20 Elena Zannoni <ezannoni@redhat.com>
6550
6551 * event-top.c (command_handler): Don't use space_at_cmd_start
6552 unless there is sbrk() on the host. Assign time and space data
6553 to union fields of the appropriate length.
6554
1cf877ad
ML
65552002-06-20 Michal Ludvig <mludvig@suse.cz>
6556
6557 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6558 x86_64_register_name. Return type changed to 'const char *'.
6559 (x86_64_register_name2nr): Rename to x86_64_register_number.
6560 (x86_64_gdbarch_init): Update to reflect the change.
6561 * x86-64-tdep.h: Ditto.
6562 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6563 (supply_fpregset): Ditto.
6564
3fadccb3
AC
65652002-06-19 Andrew Cagney <cagney@redhat.com>
6566
6567 * regcache.h: Update copyright.
6568 (struct regcache, struct gdbarch): Add opaque declarations.
6569 (current_regcache): Declare global variable.
6570 (regcache_read, regcache_write): Add gdbarch parameter.
6571 (regcache_save, regcache_save_no_passthrough)
6572 (regcache_restore, regcache_restore_no_passthrough)
6573 (regcache_dup, regcache_dup_no_passthrough)
6574 (regcache_cpy, regcache_cpy_no_passthrough)
6575 (deprecated_grub_regcache_for_registers)
6576 (deprecated_grub_regcache_for_register_valid)
6577 (regcache_valid_p): Add function declarations.
6578
6579 * regcache.c: Update copyright.
6580 (regcache_descr_handle): New global variable.
6581 (struct regcache_descr): Define.
6582 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6583 (regcache_descr, xfree_regcache_descr): New functions.
6584 (struct regcache): Define.
6585 (regcache_xmalloc, regcache_xfree): New functions.
6586 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6587 (regcache_dup, regcache_dup_no_passthrough): New functions.
6588 (regcache_valid_p, regcache_read_as_address): New functions.
6589 (deprecated_grub_regcache_for_registers): New function.
6590 (deprecated_grub_regcache_for_register_valid): New function.
6591 (current_regcache): New global variable.
6592 (register_buffer): Add regcache parameter. Update calls.
6593 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6594 (read_register_gen, write_register_gen): Update register_buffer
6595 call. Test for legacy_p instead of gdbarch_register_read_p or
6596 gdbarch_register_write_p.
6597 (regcache_collect): Update register_buffer call.
6598 (build_regcache): Rewrite. Use deprecated grub functions.
6599 (regcache_save, regcache_save_no_passthrough): New functions.
6600 (regcache_restore, regcache_restore_no_passthrough): New
6601 functions.
6602 (_initialize_regcache): Create the regcache_data_handle. Swap
6603 current_regcache global variable.
6604
6605 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6606 parameter to regcache_read and regcache_write calls.
6607 (sh4_register_read): Ditto.
6608 (sh64_pseudo_register_read): Ditto.
6609 (sh64_register_read): Ditto.
6610 (sh_pseudo_register_write): Ditto.
6611 (sh4_register_write): Ditto.
6612 (sh64_pseudo_register_write): Ditto.
6613 (sh64_register_write): Ditto.
6614
6615 * defs.h (XCALLOC): Define.
6616
152d9db6
GS
66172002-06-19 Grace Sainsbury <graces@redhat.com>
6618
6619 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6620 * m68k-tdep.c (m68k_gdbarch_init): Added.
6621 (m68k_dump_tdep): Added.
6622
170911c7
DJ
66232002-06-19 Daniel Jacobowitz <drow@mvista.com>
6624
6625 * ada-lang.c (fill_in_ada_prototype): Update comment.
6626
2e4ebe70
DJ
66272002-06-19 Daniel Jacobowitz <drow@mvista.com>
6628
6629 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6630 MIPS_ABI_LAST.
6631 (mips_abi_string, mips_abi_strings): New.
6632 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6633 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6634 tdep->mips_abi_string. Honor mips_abi_string. Default to
6635 O32 if no ABI is found.
6636 (mips_dump_tdep): Use mips_abi_strings.
6637 (mips_abi_update): New function.
6638 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6639 ``set mips abi'' and ``show mips abi''. Check the size of
6640 mips_abi_strings.
6641
16775908
AC
66422002-06-19 Andrew Cagney <cagney@redhat.com>
6643
6644 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6645 constant.
6646
5051bfa4 66472002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6648
5051bfa4
JB
6649 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6650 current frame using only the first stack size adjustment. All
6651 subsequent size adjustments are not considered to be part of
6652 the "static" part of the current frame.
6653 Compute the address of the saved registers relative to the
6654 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6655 in use in this frame.
6656
56468235
DH
66572002-06-18 Don Howard <dhoward@redhat.com>
6658
6659 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6660 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6661 suggesting this solution.
6662
0b624158
AC
66632002-06-18 Andrew Cagney <ac131313@redhat.com>
6664
6665 * config/romp/xm-rtbsd.h: Delete file.
6666 * config/romp/rtbsd.mh: Delete file.
6667
221ea385
KS
66682002-06-18 Keith Seitz <keiths@redhat.com>
6669
6670 * breakpoint.c (condition_command): Post breakpoint_modify
6671 when a condition is added to an existing breakpoint.
6672 (commands_command): Likewise for commands.
6673 (set_ignore_count): Likewise for ignore counts.
6674 If no tty, do not simply return, still need to send event
6675 notification.
6676 (ignore_command): Only print a newline if the command came
6677 from a tty.
6678 Don't call breakpoints_changed, since this is now properly
6679 handled by set_ignore_count.
6680
5402eed1
AC
66812002-06-18 Andrew Cagney <cagney@redhat.com>
6682
6683 * MAINTAINERS: Note that cris-elf target can be compiled with
6684 -Werror.
6685 * cris-tdep.c (cris_register_name): Make return type constant.
6686 (cris_breakpoint_from_pc): Ditto.
6687
cc22880b
ML
66882002-06-18 Michal Ludvig <mludvig@suse.cz>
6689
6690 * frame.h (struct frame_info): Change type of context to
6691 'struct context'.
6692
fa88f677
AC
66932002-06-17 Andrew Cagney <cagney@redhat.com>
6694
6695 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6696 pointer.
6697 * gdbarch.h, gdbarch.c: Regenerate.
6698 * config/mips/tm-mips.h (mips_register_name): Update.
6699 * i386-tdep.h (i386_register_name): Update.
6700 * mips-tdep.c (mips_register_name): Update
6701 * alpha-tdep.c (alpha_register_name): Update.
6702 * arch-utils.c (legacy_register_name): Update.
6703 * arch-utils.h (legacy_register_name): Update.
6704 * avr-tdep.c (avr_register_name): Update.
6705 * ia64-tdep.c (ia64_register_name): Update.
6706 * i386-tdep.c (i386_register_name): Update.
6707 * sparc-tdep.c (sparc32_register_name): Update.
6708 (sparc64_register_name): Update.
6709 (sparclite_register_name): Update.
6710 (sparclet_register_name): Update.
6711 * sh-tdep.c (sh_generic_register_name): Update.
6712 (sh_sh_register_name): Update.
6713 (sh_sh3_register_name): Update.
6714 (sh_sh3e_register_name): Update.
6715 (sh_sh_dsp_register_name): Update.
6716 (sh_sh3_dsp_register_name): Update.
6717 (sh_sh4_register_name): Update.
6718 (sh_sh64_register_name): Update.
6719 * s390-tdep.c (s390_register_name): Update.
6720 * rs6000-tdep.c (rs6000_register_name): Update.
6721 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6722 (ns32k_register_name_32382): Update.
6723 * d10v-tdep.c (d10v_ts2_register_name): Update.
6724 (d10v_ts3_register_name): Update.
6725 * xstormy16-tdep.c (xstormy16_register_name): Update.
6726 * vax-tdep.c (vax_register_name): Update.
6727 * v850-tdep.c (v850_register_name): Update.
6728 * m68hc11-tdep.c (m68hc11_register_name): Update.
6729 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6730 (am33_register_name): Update.
6731
ea1e7ef6
GS
67322002-06-17 Grace Sainsbury <graces@redhat.com>
6733
6734 * m68k-tdep.c: Reindented.
6735
9b02dd1b
AC
67362002-06-17 Andrew Cagney <ac131313@redhat.com>
6737
6738 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6739 list of predefined types.
6740
8758dec1
MK
67412002-06-16 Mark Kettenis <kettenis@gnu.org>
6742
b6197528
MK
6743 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6744 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6745 REGISTER_CONVERT_TO_RAW): Remove defines.
6746 (i386_register_virtual_type, i386_register_convertible,
6747 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6748 Remove prototypes.
6749 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6750 macros mentioned above.
6751
82b47e62
MK
6752 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6753 (i386lynx_saved_pc_after_call): Remove prototype.
6754 * i386ly-tdep.c: Include "i386-tdep.h".
6755 (i386lynx_saved_pc_after_call): Make static. Use
6756 read_memory_nobpt instead of read_memory. Use
6757 read_memory_unsigned_integer instead of read_memory_integer.
6758 (i386lynx_init_abi): New function.
6759 (i386lynx_coff_osabi_sniffer): New function.
6760 (_initialize_i386bsd_tdep): New function.
6761
8758dec1
MK
6762 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6763 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6764 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6765 (i386_fix_call_dummy): Remove prototype.
6766 * i386-tdep.c (i386_call_dummy_words): New variable.
6767 (i386_gdbarch_init): Adjust for removal of the
6768 macros mentioned above.
6769
e9e68a56
AC
67702002-06-15 Andrew Cagney <ac131313@redhat.com>
6771
6772 * command.h (add_setshow_auto_boolean_cmd): Replace
6773 add_set_auto_boolean_cmd.
6774 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6775 add_set_auto_boolean_cmd.
6776 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6777 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6778 mask-address'' command.
6779 (show_mask_address): Add cmd parameter.
6780 * remote.c (add_packet_config_cmd): Update. Change type of
6781 set_func and show_func to cmd_sfunc_ftype.
6782 (_initialize_remote): Update `set remote Z-packet'
6783 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6784 (show_remote_protocol_e_packet_cmd): Ditto.
6785 (show_remote_protocol_E_packet_cmd): Ditto.
6786 (show_remote_protocol_P_packet_cmd): Ditto.
6787 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6788 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6789 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6790 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6791 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6792 (show_remote_protocol_Z_packet_cmd): Ditto.
6793 (show_remote_protocol_binary_download_cmd): Ditto.
6794 (show_remote_cmd): Pass NULL to all of above.
6795
fc08ec52
MK
67962002-06-15 Mark Kettenis <kettenis@gnu.org>
6797
6798 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6799 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6800 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6801 POP_FRAME): Remove defines.
6802 (i386_push_arguments, i386_store_struct_return,
6803 i386_extract_return_value, i386_store_return_value,
6804 i386_extract_struct_value_address, i386_push_dummy_frame,
6805 i386_pop_frame): Renove prototypes.
6806 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6807 macros mentioned above.
6808
e707bbc2
AC
68092002-06-15 Andrew Cagney <ac131313@redhat.com>
6810
6811 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6812 add_set_boolean_cmd.
6813 (add_setshow_cmd): New function.
6814 * command.h (add_setshow_boolean_cmd): Replace
6815 add_set_boolean_cmd.
6816 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6817 and ``set rdiromatzero''.
6818 * maint.c (_initialize_maint_cmds): Update commented out code.
6819 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6820 * target.c (initialize_targets): Update `set
6821 trust-readonly-sections'.
6822 * remote.c (_initialize_remote): Update `set remotebreak'.
6823
42fdc8df
MK
68242002-06-15 Mark Kettenis <kettenis@gnu.org>
6825
93924b6b
MK
6826 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6827 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6828 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6829 fit into multi-arch framework.
6830 (i386_breakpoint_from_pc): New function.
6831 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6832 above.
6833
42fdc8df
MK
6834 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6835 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6836 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6837 (i386_frameless_function_invocation, i386_frame_num_args,
6838 i386_frame_init_saved_regs): Remove prototypes.
6839 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6840 macros mentioned above.
6841
9773a94b
AC
68422002-06-15 Andrew Cagney <ac131313@redhat.com>
6843
6844 * cli/cli-decode.c (set_cmd_cfunc): Update.
6845 (set_cmd_sfunc): Update.
6846 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6847 (set_cmd_sfunc, set_cmd_cfunc): Update.
6848 * cli/cli-decode.h: Update.
6849
6e157172
MK
68502002-06-15 Mark Kettenis <kettenis@gnu.org>
6851
6852 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6853 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6854
7f19b9a2
AC
68552002-06-15 Andrew Cagney <ac131313@redhat.com>
6856
6857 * defs.h (auto_boolean): Declare enum.
6858 * command.h (cmd_auto_boolean): Delete enum.
6859 * mips-tdep.c (mask_address_var): Update.
6860 (mips_mask_address_p): Update.
6861 (show_mask_address): Update.
6862 * remote.c (struct packet_config): Update.
6863 (update_packet_config): Update.
6864 (show_packet_config_cmd): Update.
6865 (packet_ok): Update.
6866 (add_packet_config_cmd): Update.
6867 (_initialize_remote):
6868 * command.h: Update.
6869 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6870 (do_setshow_command): Update.
6871 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6872 * cli/cli-decode.h: Update.
6873
1cf88de5
MK
68742002-06-15 Mark Kettenis <kettenis@gnu.org>
6875
22ba8cf2
MK
6876 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6877 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6878 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6879 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6880 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6881 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6882
762c5349
MK
6883 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6884 list of DJGPP COFF targets.
6885
091198bb
MK
6886 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6887 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6888 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6889 (FP0_REGNUM): Remove define.
6890 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6891 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6892 (i386_register_virtual_size): Remove protoype.
6893 * i386-tdep.c (i386_register_virtual_size): Removed.
6894 (i386_extract_return_value, i386_store_return_value): Use
6895 FP0_REGNUM instead of NUM_FREGS to determine whether the
6896 floating-point registers are available.
6897 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6898 Adjust for removal of macros mentioned above.
6899
69002002-06-15 Mark Kettenis <kettenis@gnu.org>
6901
fcc9bf01
MK
6902 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6903 comments.
6904 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6905 Remove prototypes.
6906 (supply_gregset, fill_gregset): Remove use of register keyword and
6907 remove declaration for regmap. Use I386_NUM_GREGS instead of
6908 NUM_REGS and NUM_FREGS.
6909 (FPREGSET_FSAVE_OFFSET): Remove.
6910 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6911 NUM_FREGS to determine whether the floating-point registers are
6912 available.
6913
65e78234
MK
6914 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6915 gnu_store_registers): Replace usage of NUM_GREGS with
6916 I386_NUM_GREGS.
6917
98df6387
MK
6918 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6919 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6920 usage of NUM_GREGS with I386_NUM_GREGS.
6921
099a9414
MK
6922 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6923
57976e88
MK
6924 * i386bsd-nat.c: Include "i386-tdep.h".
6925 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6926 I386_NUM_GREGS.
6927
b335f4a6
MK
6928 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6929 and associated comment. They no longer make any sense, since we
6930 don't use this file anymore on Linux.
6931
1cf88de5
MK
6932 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6933 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6934 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6935 elements in these arrays.
6936 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6937 MAX_NUM_REGS.
6938
daa66587
MK
69392002-06-15 Mark Kettenis <kettenis@gnu.org>
6940
6941 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6942 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6943
26e9b323
AC
69442002-06-14 Andrew Cagney <cagney@redhat.com>
6945
6946 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6947 EXTRACT_RETURN_VALUE.
6948 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6949 EXTRACT_STRUCT_VALUE_ADDRESS.
6950 * gdbarch.h, gdbarch.c: Regenerate.
6951
6952 * values.c (value_being_returned): Handle
6953 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6954 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6955
6956 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6957 * arm-tdep.c (arm_gdbarch_init): Update.
6958 * avr-tdep.c (avr_gdbarch_init): Update.
6959 * cris-tdep.c (cris_gdbarch_init): Update.
6960 * d10v-tdep.c (d10v_gdbarch_init): Update.
6961 * ia64-tdep.c (ia64_gdbarch_init): Update.
6962 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6963 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6964 * s390-tdep.c (s390_gdbarch_init): Update.
6965 * sh-tdep.c (sh_gdbarch_init): Update.
6966 * s390-tdep.c (s390_gdbarch_init): Update.
6967 * sparc-tdep.c (sparc_gdbarch_init): Update.
6968 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6969 * v850-tdep.c (v850_gdbarch_init): Update.
6970 * vax-tdep.c (vax_gdbarch_init): Update.
6971 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6972 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6973
6974 * config/arc/tm-arc.h: Update.
6975 * config/d30v/tm-d30v.h: Update.
6976 * config/fr30/tm-fr30.h: Update.
6977 * config/h8300/tm-h8300.h: Update.
6978 * config/h8500/tm-h8500.h: Update.
6979 * config/i386/tm-i386.h: Update.
6980 * config/i386/tm-ptx.h: Update.
6981 * config/i386/tm-symmetry.h: Update.
6982 * config/i960/tm-i960.h: Update.
6983 * config/m32r/tm-m32r.h: Update.
6984 * config/m68k/tm-delta68.h: Update.
6985 * config/m68k/tm-linux.h: Update.
6986 * config/m68k/tm-m68k.h: Update.
6987 * config/m88k/tm-m88k.h: Update.
6988 * config/mcore/tm-mcore.h: Update.
6989 * config/mips/tm-mips.h: Update.
6990 * config/mn10200/tm-mn10200.h: Update.
6991 * config/pa/tm-hppa.h: Update.
6992 * config/pa/tm-hppa64.h: Update.
6993 * config/sparc/tm-sp64.h: Update.
6994 * config/sparc/tm-sparc.h: Update.
6995 * config/sparc/tm-sparclet.h: Update.
6996 * config/z8k/tm-z8k.h: Update.
6997
5179e78f
AC
69982002-06-14 Andrew Cagney <cagney@redhat.com>
6999
7000 * Makefile.in (i386_linux_tdep_h): Define.
7001 (i386_tdep_h, i387_tdep_h): Define.
7002 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7003 $(i386_tdep_h) and $(i387_tdep_h).
7004 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7005
8201327c
MK
70062002-06-14 Mark Kettenis <kettenis@gnu.org>
7007
edf393ac
MK
7008 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7009 Already covered by the default.
7010
896fb97d
MK
7011 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7012 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7013 (i386_gdbarch_init): Initialize long_double_format and long_double
7014 bit.
7015
8201327c
MK
7016 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7017 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7018 Move these to ...
7019 * config/i386/i386sol2.mh: ... here.
7020 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7021 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7022 (SIGCONTEXT_PC_OFFSET): Remove define.
7023 (IN_SIGTRAMP): Remove define.
7024 * i386-sol2-tdep.c: New file.
7025
7026 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7027 * config/i386/tm-i386nw.h: Removed.
7028
7029 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7030 USE_STRUCT_CONVENTION): Remove defines.
7031 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7032 (get_longjmp_target): Remove prototype.
7033 (IN_SIGTRAMP): Remove define.
7034 (i386bsd_in_sigtramp): Remove prototype.
7035 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7036 function. Update comment accordingly
7037 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7038 (FRAME_SAVED_PC): Remove define.
7039 (i386bsd_frame_saved_pc): Remove prototype.
7040 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7041 GET_LONGJMP_TARGET): Remove defines.
7042 (get_longjmp_target): Remove prototype.
7043 (IN_SIGTRAMP): Remove define.
7044 (i386bsd_in_sigtramp): Remove prototype.
7045 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7046 function. Update comment accordingly
7047 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7048 (FRAME_SAVED_PC): Remove define.
7049 (i386bsd_frame_saved_pc): Remove prototype.
7050 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7051 Remove prototype.
7052 (USE_STRUCT_CONVENTION): Remove prototype.
7053 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7054 declaration.
7055 (_initialize_i386bsd_nat): Revise logic to determine some
7056 constants at compile time when compiling a native GDB. Warn if
7057 things don't match up with what we expect.
7058 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7059 Remove variables.
7060 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7061 to use date stored in `struct gdbarch_tdep'.
7062 (i386bsd_sigcontext_offset): Remove varaible.
7063 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7064 stored in `struct gdbarch_tdep'.
7065 (i386bsd_frame_saved_pc): Make static.
7066 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7067 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7068 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7069 i386fbsd4_sc_pc_offset): New variables.
7070 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7071 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7072 functions.
7073 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7074 functions.
7075 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7076 Modify the value of i386fbsd_sigtramp_start and
7077 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7078 i386fbsd_sigtramp_end.
7079 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7080 function.
7081
7082 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7083 define to i386-linux-tdep.h.
7084 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7085 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7086 defines.
7087 (i386_linux_register_name, i386_linux_register_byte,
7088 i386_linux_register_raw_size): Remove prototypes.
7089 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7090 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7091 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7092 TARGET_WRITE_PC): Remove defines.
7093 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7094 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7095 i386_linux_write_pc): Remove prototypes.
7096 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7097 (get_longjmp_target): Remove prototype.
7098 * i386-linux-tdep.h: New file.
7099 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7100 * i386-linux-tdep.c: Include "i386-tdep.h" and
7101 "i386-linux-tdep.h".
7102 (i386_linux_register_name, i386_linux_register_byte,
7103 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7104 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7105 Make static.
7106 (i386_linux_init_abi): New function.
7107 (_initialize_i386_linux_tdep): New function.
7108
7109 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7110 (i386_saved_pc_after_call): Remove prototype.
7111 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7112 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7113 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7114 (i386_register_name, i386_stab_reg_to_regnum,
7115 i386_dwarf_reg_to_regnum): Remove prototypes.
7116 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7117 SIZEOF_SSE_REGS): Remove defines.
7118 (REGISTER_BYTES): Remove define.
7119 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7120 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7121 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7122 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7123 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7124 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7125 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7126 (get_longjmp_target): Remove prototype.
7127 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7128 (sigtramp_saved_pc): Remove define.
7129 (i386v4_sigtramp_saved_pc): Remove prototype.
7130 * config/i386/tm-go32.h (FRAME_CHAIN,
7131 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7132 (i386go32_frame_saved_pc): Remove prototype.
7133 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7134 (get_longjmp_target): Remove prototype.
7135 * i386-tdep.h: Include "osabi.h".
7136 (enum i386_abi): Removed.
7137 (enum struct_return): New enum.
7138 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7139 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7140 sc_pc_offset members.
7141 (i386_gdbarch_register_os_abi): Remove prototype.
7142 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7143 I386_SSE_NUM_REGS): New defines.
7144 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7145 I386_SSE_SIZEOF_REGS): New defines.
7146 (i386_register_name, i386_register_byte, i386_register_raw_size):
7147 New prototypes.
7148 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7149 (i386bsd_sigtramp_saved_pc): New prototype.
7150 * i386-tdep.c: Don't include "elf-bfd.h".
7151 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7152 i386_frame_chain, i386_saved_pc_after_call): Make static.
7153 (i386_frame_saved_pc): Rewrite to call architecture dependent
7154 function to deal with signal handlers. Make static.
7155 (i386go32_frame_saved_pc): Removed.
7156 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7157 Removed.
7158 (i386_get_longjmp_target): New function.
7159 (default_struct_convention, pcc_struct_convention,
7160 reg_struct_convention, valid_conventions, struct_convention): New
7161 variables.
7162 (i386_use_struct_convention): New function.
7163 (i386v4_sigtramp_saved_pc): Renamed to
7164 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7165 (i386_pc_in_sigtramp): New function.
7166 (i386_abi_names): Removed.
7167 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7168 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7169 Removed.
7170 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7171 i386_gdbarch_register_os_abi): Removed.
7172 (struct i386_abi_handler): Removed.
7173 (i386_abi_handler_list): Removed.
7174 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7175 functions.
7176 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7177 i386_nw_init_abi): New functions.
7178 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7179 Use set_gdbarch_xxx() calls instead of relying on macros for a
7180 number of calls.
7181 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7182 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7183 Register the various architecture variants defined in this file.
7184
ad2f7632
DJ
71852002-06-14 Daniel Jacobowitz <drow@mvista.com>
7186
7187 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7188 (struct main_type): Remove arg_types member. Update comments for
7189 struct field.
7190 (TYPE_ARG_TYPES): Remove.
7191 (TYPE_FN_FIELD_ARGS): Update.
7192 (smash_to_method_type): Update prototype.
7193
7194 * c-typeprint.c (cp_type_print_method_args): Take method type
7195 instead of argument list. Use new argument layout. Simplify.
7196 (c_type_print_args): Use new argument layout. Simplify.
7197 (c_type_print_base): Update call to cp_type_print_method_args.
7198 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7199 argument; use die->type instead. Update call to
7200 smash_to_method_type.
7201 (read_structure_scope): Update call to dwarf2_add_member_fn.
7202 * gdbtypes.c (allocate_stub_method): Update comment.
7203 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7204 Use new argument layout.
7205 (check_stub_method): Use new argument layout. Don't count
7206 void as an argument.
7207 (print_arg_types): Update comments. Use new argument layout.
7208 (recursive_dump_type): Don't print arg_types member.
7209 * hpread.c (hpread_read_struct_type): Use new argument layout.
7210 (fixup_class_method_type): Likewise.
7211 (hpread_type_lookup): Likewise.
7212 * stabsread.c (read_type): Update calls to read_args and
7213 smash_to_method_type.
7214 (read_args): Use new argument layout. Simplify.
7215 * valops.c (typecmp): Use new argument layout. Update parameters
7216 and comments. Simplify.
7217 (hand_function_call): Use new argument layout.
7218 (search_struct_method): Update call to typecmp.
7219 (find_overload_match): Use new argument layout.
7220
6da02953
DJ
72212002-06-13 Daniel Jacobowitz <drow@mvista.com>
7222
7223 * NEWS: Mention multithreaded debug support for gdbserver.
7224
519b2366
DJ
72252002-06-13 Daniel Jacobowitz <drow@mvista.com>
7226
7227 * MAINTAINERS: Mention NEWS.
7228
6c0d6680
DJ
72292002-06-13 Daniel Jacobowitz <drow@mvista.com>
7230
7231 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7232 (struct mips_objfile_private, compare_pdr_entries): New.
7233 (non_heuristic_proc_desc): Read the ".pdr" section if it
7234 is present.
7235
6529d2dd
AC
72362002-06-12 Andrew Cagney <ac131313@redhat.com>
7237
7238 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7239 (arm_debug): New static variable.
7240 (_initialize_arm_tdep): Add ``set debug arm'' command.
7241
26216b98
AC
72422002-06-12 Andrew Cagney <ac131313@redhat.com>
7243
7244 * Makefile.in (sim_arm_h): Define.
7245 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7246 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7247 (arm_register_sim_regno): New function, map an internal REGNUM
7248 onto a simulator register number.
7249 (arm_gdbarch_init): Set register_sim_regno.
7250
814b3ba0
AH
72512002-06-09 Aldy Hernandez <aldyh@redhat.com>
7252
7253 * MAINTAINERS: Add self.
7254
475b0867
JB
72552002-06-11 Jim Blandy <jimb@redhat.com>
7256
919d772c
JB
7257 * source.c (source_info): Mention whether the symtab has
7258 information about preprocessor macros.
7259
475b0867
JB
7260 Call the command `info macro', not `show macro'.
7261 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7262 Fix error message.
7263 (_initialize_macrocmd): Register `info_macro_command' in
7264 `infolist', not `showlist'.
7265
9e364162
DJ
72662002-06-11 Daniel Jacobowitz <drow@mvista.com>
7267
7268 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7269 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7270 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7271 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7272 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7273 unconditionally.
7274 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7275 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7276 (_initialize_mips_tdep): Remove dead code.
7277 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7278 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7279 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7280 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7281 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7282 MIPS_LAST_FP_ARG_REGNUM): Remove.
7283
23aa4c72
ML
72842002-06-11 Michal Ludvig <mludvig@suse.cz>
7285
7286 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7287 (unwind_tmp_obstack_free, parse_frame_info)
7288 (update_context, cfi_read_fp, cfi_write_fp)
7289 (cfi_frame_chain, cfi_init_extra_frame_info)
7290 (cfi_virtual_frame_pointer): Use the above function.
264d1763 7291 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 7292
70eb15a4
CV
72932002-06-11 Corinna Vinschen <vinschen@redhat.com>
7294
7295 * v850-tdep.c (v850_type_is_scalar): New function.
7296 (v850_use_struct_convention): Match current gcc implementation
7297 as close as possible.
7298 (v850_push_arguments): Fix stack_offset handling. Don't write
7299 struct_addr into register. This is done by v850_store_struct_return.
7300 (v850_extract_return_value): Care for structs.
7301 (v850_store_return_value): Ditto.
7302 (v850_store_struct_return): Actually write address.
7303
482a4d06
ML
73042002-06-11 Michal Ludvig <mludvig@suse.cz>
7305
7306 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7307 without debug information too.
7308
d855c300
AC
73092002-06-10 Andrew Cagney <ac131313@redhat.com>
7310
7311 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7312 Make multi-arch pure.
7313 * gdbarch.h, gdbarch.c: Re-generate.
7314 * arm-tdep.c (arm_print_float_info): Update.
7315 * arch-utils.h (default_print_float_info): Update.
7316 * arch-utils.c (default_print_float_info): Update.
7317 * infcmd.c (float_info): Update call.
7318
dd12a101
AC
73192002-06-10 Andrew Cagney <ac131313@redhat.com>
7320
7321 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7322 the front of the initialize list.
7323
101dcfbe
AC
73242002-06-10 Andrew Cagney <ac131313@redhat.com>
7325
7326 * infrun.c (struct inferior_status): Replace fields
7327 selected_frame_address and selected_level with field
7328 selected_frame_id.
7329 (save_inferior_status): Update. Use get_frame_id.
7330 (struct restore_selected_frame_args): Delete.
7331 (restore_selected_frame): Update. Use frame_find_by_id.
7332 (restore_inferior_status): Update.
7333
7334 * breakpoint.h (struct breakpoint): Change type of
7335 watchpoint_frame to frame_id.
7336 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7337 call to get_current_frame.
7338 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7339 get_current_frame.
7340 (watchpoint_check): Use frame_find_by_id.
7341
7342 * frame.h (record_selected_frame): Delete declaration.
7343 * stack.c (record_selected_frame): Delete function.
7344
7345 * frame.h (struct frame_id): Define.
7346 (get_frame_id): Declare.
7347 (frame_find_by_id): Declare.
7348 * frame.c (frame_find_by_id): New function.
7349 (get_frame_id): New function.
7350
304270b6
AV
73512002-06-10 Andrey Volkov <avolkov@transas.com>
7352
7353 * ser-e7kpc.c: Fix duplicated define and call of
7354 _initialize_ser_e7000pc
7355
2f2cf184
DJ
73562002-06-09 Daniel Jacobowitz <drow@mvista.com>
7357
7358 * signals/signals.c (target_signal_from_host): Fix #ifdef
7359 SIGRTMIN case.
7360 (do_target_signal_to_host): Likewise.
7361
caaa3122
DJ
73622002-06-09 Daniel Jacobowitz <drow@mvista.com>
7363
7364 * mips-tdep.c (mips_find_abi_section): New function.
7365 (mips_gdbarch_init): Call it.
7366
6ac5df3a
MK
73672002-06-09 Mark Kettenis <kettenis@gnu.org>
7368
7369 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7370 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7371 after Andrew's 2002-06-08 gdbarch change.
7372
82ea117a
MK
73732002-06-09 Mark Kettenis <kettenis@gnu.org>
7374
7375 * i386-linux-nat.c (suppy_gregset): Don't supply
7376 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7377 register cache.
7378 (fill_gregset): Don't fetch it under the same circumstances.
7379
3c25f8c7
AC
73802002-06-09 Andrew Cagney <cagney@redhat.com>
7381
7382 * Makefile.in (callback_h): Define.
7383 (remote_sim_h): Update path to remote-sim.h.
7384 (remote-rdp.o): Add $(callback_h).
7385 (remote-sim.o): Use $(callback_h).
7386 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7387 * remote-rdp.c: Include "gdb/callback.h".
7388
1029b7fa
MK
73892002-06-09 Mark Kettenis <kettenis@gnu.org>
7390
7391 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7392 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7393
616675d3
AC
73942002-06-08 Andrew Cagney <ac131313@redhat.com>
7395
a3efda28
AC
7396 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7397 * rdi-share/serpardr.c: Ditto.
7398 * rdi-share/unixcomm.c: Ditto.
7399 * rdi-share/serdrv.c: Ditto.
7400 * rdi-share/hostchan.h: Ditto.
7401 * rdi-share/hostchan.c: Ditto.
7402 * rdi-share/host.h: Ditto.
7403 * rdi-share/devsw.c: Ditto.
7404
c5f10366
AC
7405 * objfiles.h: Change type of obj_private to void pointer.
7406 * pa64solib.c: Update copyright. Don't include "assert.h", use
7407 strcmp instead of STREQ, use LONGEST, do not use PTR
7408 * somsolib.c: Ditto.
7409
616675d3
AC
7410 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7411 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7412 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7413
e4b415d9
AC
74142002-06-08 Andrew Cagney <ac131313@redhat.com>
7415
7416 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7417 (default_get_saved_register): Delete function.
7418 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7419 generic_unwind_get_saved_register.
7420 * gdbarch.h, gdbarch.c: Re-generate.
7421
ca0d0b52
AC
74222002-06-08 Andrew Cagney <ac131313@redhat.com>
7423
7424 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7425 generic_func_frame_chain_valid.
7426 * gdbarch.h, gdbarch.c: Re-generate.
7427 * blockframe.c (generic_func_frame_chain_valid): Only check
7428 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7429 passing FP to PC_IN_CALL_DUMMY.
7430 Fix PR gdb/360.
7431
76860b5f
AC
74322002-06-08 Andrew Cagney <ac131313@redhat.com>
7433
7434 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7435 (register_gdbarch_data): Initialize init_p.
7436 (gdbarch_data): Initialize data pointer using the init function.
7437 (init_gdbarch_data): Delete function.
7438 (gdbarch_update_p): Update.
7439 (initialize_non_multiarch): Update.
7440 (struct gdbarch): Add field initialized_p.
7441 * gdbarch.h, gdbarch.c: Re-generate.
7442
8dda9770
ML
74432002-06-07 Michal Ludvig <mludvig@suse.cz>
7444
7445 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7446 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7447 better do the things actually here.
7448 * x86-64-tdep.c (x86_64_register_name2nr): New.
7449 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7450 (x86_64_gdbarch_init): Respect the above change.
7451 * x86-64-tdep.h (x86_64_register_name2nr)
7452 (x86_64_register_nr2name): Add prototypes.
7453 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7454
3d79a47c
MS
74552002-06-06 Michael Snyder <msnyder@redhat.com>
7456
7bd91a28
MS
7457 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7458 Delete extra braces and re-indent.
7459 (d10v_store_return_value): Char return values
3d79a47c
MS
7460 must be shifted over by one byte in R0.
7461 (d10v_extract_return_value): Delete extra braces, re-indent.
7462
095a4c96
EZ
74632002-06-06 Elena Zannoni <ezannoni@redhat.com>
7464
7465 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7466 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7467 (d10v_integer_to_address): Rewrite.
7468 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7469 the d10v specific functions which take care of converting to the
7470 correct space.
7471
e8a77ca4
EZ
74722002-06-06 Elena Zannoni <ezannoni@redhat.com>
7473
7474 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7475 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7476
4f2e4a4f
AC
74772002-06-02 Andrew Cagney <ac131313@redhat.com>
7478
7479 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7480 includes.
7481 * config/tm-linux.h: Ditto.
7482 * config/alpha/tm-alphalinux.h: Ditto.
7483 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7484 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7485 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7486 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7487 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7488 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7489 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7490 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7491 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7492 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7493 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7494 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7495 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7496 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7497 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7498 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7499 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7500 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7501 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7502 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7503 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7504 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7505 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7506 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7507 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7508 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7509 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7510 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7511 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7512 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7513 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7514 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7515 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7516 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7517 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7518 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7519 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7520
ae2ab2ce
AS
75212002-05-04 Aidan Skinner <aidan@velvet.net>
7522
7523 * ada-exp.tab.c: New file
7524 * ada-exp.y: New file
7525 * ada-lang.c: New file
7526 * ada-lang.h: New file
7527 * ada-lex.c: New file
7528 * ada-lex.l: New file
7529 * ada-tasks.c: New file
7530 * ada-typeprint.c: New file
7531 * ada-valprint.c: New file
7532
0ddd0135
JT
75332002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7534
7535 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7536 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7537
750fbacc
JT
75382002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7539
7540 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7541 insetead of ppc-linux-tdep.o.
7542 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7543 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7544
df94e18a
AC
75452002-06-02 Andrew Cagney <ac131313@redhat.com>
7546
7547 2002-05-07 Christian Groessler <chris@groessler.org>
7548 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7549 bit register contents for little endian hosts.
7550
1a38ab75
AC
75512002-06-01 Andrew Cagney <ac131313@redhat.com>
7552
7553 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7554 any maintainer.
7555
8b1632ac
AC
75562002-06-01 Andrew Cagney <ac131313@redhat.com>
7557
7558 * gdbarch.h: Regenerate.
7559
627054c8
AC
75602002-06-01 Andrew Cagney <ac131313@redhat.com>
7561
7562 * MAINTAINERS: Add everyone to write-after-approval list.
7563
4f460812
AC
75642002-06-01 Andrew Cagney <ac131313@redhat.com>
7565
7566 * stack.c (frame_info): Use frame_register_unwind instead of
7567 saved_regs. Mention when the SP is on the stack or in a register.
7568
7569 * frame.h (frame_register_unwind_ftype): Define. Document.
7570 (struct frame_info): Add field register_unwind and
7571 register_unwind_cache.
7572 (frame_register_unwind): Declare.
7573 (generic_unwind_get_saved_register): Declare.
7574
7575 * frame.c (frame_register_unwind): New function.
7576 (generic_unwind_get_saved_register): New function.
7577
7578 * blockframe.c (generic_call_dummy_register_unwind): New function.
7579 (frame_saved_regs_register_unwind): New function.
7580 (set_unwind_by_pc): New function.
7581 (create_new_frame): New function.
7582 (get_prev_frame): New function.
7583
de888f76
AC
75842002-05-30 Andrew Cagney <ac131313@redhat.com>
7585
7586 * a29k-share/: Delete directory.
7587 * remote-vx29k.c: Delete file.
7588
2f2c3626
JT
75892002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7590
7591 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7592 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7593
9ce5c36a
JT
75942002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7595
7596 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7597 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7598 (sparc64nbsd-nat.o)
7599 (sparcnbsd-nat.o)
7600 (sparcnbsd-tdep.o): New dependency lists.
7601 * NEWS: Note new UltraSPARC NetBSD native configuration.
7602 * configure.host (sparc64-*-netbsd*): New host.
7603 * configure.tgt (sparc-*-netbsdelf*)
7604 (sparc-*-netbsd*): Set gdb_target to nbsd.
7605 (sparc64-*-netbsd*): New target.
7606 * sparc64nbsd-nat.c: New file.
7607 * sparcnbsd-nat.c: New file.
7608 * sparcnbsd-tdep.c: New file.
7609 * sparcnbsd-tdep.h: New file.
7610 * config/sparc/nbsd.mt: New file.
7611 * config/sparc/nbsd64.mh: New file.
7612 * config/sparc/nbsd64.mt: New file.
7613 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7614 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7615 (HOST_IPC): Remove.
7616 * config/sparc/nbsdaout.mt: Remove.
7617 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7618 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7619 (HOST_IPC): Remove.
7620 * config/sparc/nbsdelf.mt: Remove.
7621 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7622 sparc-nat.c compatiblity defines.
7623 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7624 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7625 * config/sparc/tm-nbsd64.h: New file.
7626 * config/sparc/tm-nbsdaout.h: Remove.
7627 * config/sparc/xm-nbsd.h: Remove.
7628
ef3cf062
JT
76292002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7630
7631 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7632 * sparc-tdep.c: Include osabi.h.
7633 (gdbarch_tdep): Add osabi member.
7634 (_initialize_sparc_tdep): Use gdbarch_register.
7635 (sparc_gdbarch_init): Use generic OS ABI framework.
7636 (sparc_dump_tdep): New function.
7637
ee8ff470
KB
76382002-05-30 Kevin Buettner <kevinb@redhat.com>
7639
7640 * corefile.c (do_captured_read_memory_integer): Return non-zero
7641 result.
7642 (safe_read_memory_integer): Copy result of memory read when
7643 status is non-zero. Also, add comments.
7644
7b112f9c
JT
76452002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7646
7647 * Makefile.in (ppc_tdep_h): Define.
7648 (ppc-linux-nat.o)
7649 (ppc-linux-tdep.o)
7650 (rs6000-tdep.o): Use $(ppc_tdep_h).
7651 (ppc-sysv-tdep.o)
7652 (ppcnbsd-nat.o)
7653 (ppcnbsd-tdep.o): New dependency lists.
7654 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7655 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7656 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7657 (ppc_sysv_abi_broken_use_struct_convention)
7658 (ppc_sysv_abi_use_struct_convention)
7659 (ppc_sysv_abi_push_arguments): Move to...
7660 * ppc-sysv-tdep.c: ...here.
7661 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7662 * rs6000-tdep.c (process_note_abi_tag_sections)
7663 (get_elfosabi): Remove.
7664 (rs6000_gdbarch_init): Use generic OS ABI framework.
7665 (rs6000_dump_tdep): New function.
7666 (_initialize_rs6000_tdep): Use gdbarch_register.
7667 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7668 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7669 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7670 of ppc-linux-tdep.o.
7671 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7672 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7673 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7674 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7675 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7676 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7677
480dd42a
JB
76782002-05-29 Jim Blandy <jimb@redhat.com>
7679
7680 * macroscope.c (default_macro_scope): Put `void' in empty argument
7681 list.
7682
4182591f
AC
76832002-05-29 Andrew Cagney <ac131313@redhat.com>
7684
7685 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7686 * arch-utils.c: Include "sim-regno.h".
7687 * gdbarch.sh: Don't include "sim-regno.h".
7688 * gdbarch.h, gdbarch.c: Regenerate.
7689 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7690 here.
7691 * arch-utils.h (legacy_register_sim_regno): To here.
7692 * remote-sim.c (legacy_register_sim_regno): Move function from
7693 here.
7694 * arch-utils.c (legacy_register_sim_regno): To here.
7695
8238d0bf
AC
76962002-05-28 Andrew Cagney <ac131313@redhat.com>
7697
7698 * sim-regno.h: New file.
7699 * Makefile.in (sim_regno_h): Define.
7700 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7701 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7702 (legacy_register_sim_regno): New function.
7703 (one2one_register_sim_regno): New function.
7704 (gdbsim_fetch_register): Rewrite.
7705 (gdbsim_store_register): Only store a register when
7706 REGISTER_SIM_REGNO is valid.
7707 * d10v-tdep.c: Include "sim-regno.h".
7708 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7709 (d10v_ts3_register_sim_regno): Ditto.
7710 * gdbarch.sh: Include "sim-regno.h".
7711 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7712 * gdbarch.h, gdbarch.c: Regenerate.
7713 * arch-utils.h (default_register_sim_regno): Delete declaration.
7714 * arch-utils.c (default_register_sim_regno): Delete function.
7715
485721b1
JT
77162002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7717
7718 * ppcnbsd-nat.c: Rewrite.
7719 * ppcnbsd-tdep.c: New file.
7720 * ppcnbsd-tdep.h: New file.
7721 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7722 solib.o, and solib-svr4.o.
7723 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7724 nbsd-tdep.o, and corelow.o.
7725
697f244d
AC
77262002-05-28 Andrew Cagney <ac131313@redhat.com>
7727
7728 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7729 `tr' and `sed'. Mention that `broken' targets are not expected to
7730 build.
7731
f08caad1 77322002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
7733
7734 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7735 Let PC point right after the prologue before looking up symbols.
7736
3139facc
MH
77372002-05-27 Martin M. Hunt <hunt@redhat.com>
7738
7739 * i386-tdep.c (i386_register_virtual_type): Return
7740 builtin_type_vec128i for SSE registers.
7741
7742 * gdbtypes.h (builtin_type_vec128i): Declare.
7743
7744 * gdbtypes.c (build_builtin_type_vec128i): New function.
7745 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7746 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7747 (build_gdbtypes): Initialize new builtin vector types.
7748 (_initialize_gdbtypes): Register new vector types with gdbarch.
7749
6e3ba3b8
JT
77502002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7751
7752 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7753 since it has been multi-arch'd.
7754 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7755 Move Alpha and VAX multi-arch news entries to same section
7756 as other multi-arch news.
7757
93d5585d
JT
77582002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7759
7760 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7761 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7762 static. Rename some register numbers to put them in ns32k-tdep
7763 private namespace.
7764 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7765 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7766 functions.
7767 (_initialize_ns32k_tdep): Use gdbarch_register.
7768 * ns32k-tdep.h: New file.
7769 * ns32knbsd-tdep.c: New file.
7770 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7771 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7772 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7773 REGISTER_BYTES, REGISTER_BYTE): Remove.
7774 * config/ns32k/tm-ns32k.h: New file.
7775 * config/ns32k/tm-umax.h: Remove.
7776
efb2c70e
JT
77772002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7778
7779 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7780 ns32k_store_struct_return, ns32k_extract_return_value,
7781 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7782 functions.
7783 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7784 ns32k_saved_pc_after_call.
7785 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7786 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7787 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7788 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7789 ns32k_extract_struct_value_address.
7790
7bcc927b
JT
77912002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7792
7793 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7794 ns32k_fix_call_dummy): New.
7795 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7796 ns32k_call_dummy_words.
7797 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7798 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7799 CALL_DUMMY_NARGS): Remove.
7800 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7801
78f9d765
JT
78022002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7803
7804 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7805 ns32k_frame_saved_pc, ns32k_frame_args_address,
7806 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7807 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7808 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7809 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7810 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7811 (BREAKPOINT): Remove..
7812 (FRAME_CHAIN): Define as ns32k_frame_chain.
7813 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7814 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7815 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7816 (FRAME_FIND_SAVED_REGS): Remove.
7817 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7818 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7819 (POP_FRAME): Define as ns32k_pop_frame.
7820
f2c762e0
JT
78212002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7822
7823 * ns32k-tdep.c (ns32k_register_byte_32082,
7824 ns32k_register_byte_32382, ns32k_register_raw_size,
7825 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7826 functions.
7827 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7828 ns32k_register_byte_32382.
7829 * config/ns32k/tm-umax.h: Update copyright years.
7830 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7831 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7832 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7833 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7834 (ns32k_get_enter_addr): Fix prototype.
7835
af137673
JT
78362002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7837
7838 * ns32k-tdep.c: Update copyright years.
7839 (ns32k_register_name_32082): New function.
7840 (ns32k_register_name_32382): Ditto.
7841 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7842 (REGISTER_NAME): Define as ns32k_register_name_32382.
7843 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7844 (REGISTER_NAME): Define as ns32k_register_name_32082.
7845
a8bc7b56
JB
78462002-05-24 Jim Blandy <jimb@redhat.com>
7847
7848 * dwarf2read.c (free_line_header): Use xfree, not free.
7849
83a45910
JT
78502002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7851
7852 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7853 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7854
0db71247
AC
78552002-05-23 Andrew Cagney <ac131313@redhat.com>
7856
7857 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7858
b9e5e4dd
AC
78592002-05-23 Andrew Cagney <ac131313@redhat.com>
7860
7861 From Ross Alexander at NEC Europe:
7862 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7863
de530e84
MS
78642002-05-23 Michael Snyder <msnyder@redhat.com>
7865
7866 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7867 for input, rather than parse_and_eval_address.
7868
b91b96f4
AC
78692002-05-23 Andrew Cagney <ac131313@redhat.com>
7870
7871 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7872 * Makefile.in (sim_d10v_h): Update definition.
7873
8b279e7a
AC
78742002-05-24 Andrew Cagney <cagney@redhat.com>
7875
7876 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7877 change `2002-05-22 Michael Snyder' below.
7878 (d10v_push_arguments): Ditto.
7879 (d10v_extract_return_value): Ditto.
7880
0a3d0425
JB
78812002-05-23 Jim Blandy <jimb@redhat.com>
7882
7883 * macrotab.c (check_for_redefinition): Don't complain if the new
7884 definition is the same as the previous one. Take more arguments
7885 to allow the comparison.
7886 (macro_define_object, macro_define_function): Pass more arguments
7887 to check_for_redefinition.
7888
78eac43e
MS
78892002-05-22 Michael Snyder <msnyder@redhat.com>
7890
7891 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7892 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7893 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7894 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7895 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7896 Add a temp variable to save a call (and a memory read).
7897 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7898 if possible (so that PC_IN_CALL_DUMMY will work).
7899
9bc1edb8
CV
79002002-05-22 Corinna Vinschen <vinschen@redhat.com>
7901
7902 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7903
005ef3d2
ML
79042002-05-22 Michal Ludvig <mludvig@suse.cz>
7905
7906 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7907 fde->cie_ptr.
7908 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7909 (dwarf2_build_frame_info): Add offset to fde->initial_location
7910 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
7911 (execute_stack_op): Change type of 'result' from ULONGEST to
7912 CORE_ADDR.
005ef3d2 7913
fcf4f891
JT
79142002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7915
7916 * config/alpha/tm-nbsd.h: Include solib.h.
7917
cfef91e4
JT
79182002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7919
7920 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7921 assumptions about the host's byte order.
7922
9964235a
JT
79232002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7924
7925 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7926 to dependency list.
7927 * alphanbsd-tdep.c: Include solib-svr4.h.
7928 * shnbsd-tdep.c: Ditto.
7929
9eeef8ef
JT
79302002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7931
7932 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7933 nbsd-tdep.h to dependency list.
7934 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7935 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7936 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7937 nbsdaout.mh and nbsdelf.mh consistently.
7938 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7939 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7940 nbsdaout.mt and nbsdelf.mh consistently.
7941 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7942 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7943 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7944 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7945 a.out shared library stuff from here...
7946 * config/nm-nbsdaout.h: ...to here.
7947 * config/tm-nbsd.h: Remove.
7948 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7949 * config/arm/nbsd.mh: Remove.
7950 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7951 nbsd-tdep.o.
7952 * config/arm/nbsdaout.mh: New file.
7953 * config/arm/nbsdelf.mh: New file.
7954 * config/arm/nm-nbsdaout.h: New file.
7955 * config/i386/nbsd.mh: Remove.
7956 * config/i386/nbsd.mt: Remove.
7957 * config/i386/nbsdaout.mh: New file.
7958 * config/i386/nbsdaout.mt: New file.
7959 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7960 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7961 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7962 i386_register_u_addr): Remove.
7963 * config/i386/nm-nbsdaout.h: New file.
7964 * config/i386/nm-nbsdelf.h: Remove.
7965 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7966 (USE_STRUCT_CONVENTION): Remove.
7967 * config/i386/tm-nbsdaout.h: New file.
7968 * config/i386/tm-nbsdelf.h: Remove.
7969 * config/m68k/nbsd.mh: Remove.
7970 * config/m68k/nbsd.mt: Remove.
7971 * config/m68k/nbsdaout.mh: New file.
7972 * config/m68k/nbsdaout.mt: New file.
7973 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7974 * config/m68k/nm-nbsdaout.h: New file.
7975 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7976 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7977 * config/ns32k/nbsd.mh: Remove.
7978 * config/ns32k/nbsd.mt: Remove.
7979 * config/ns32k/nbsdaout.mh: New file.
7980 * config/ns32k/nbsdaout.mt: New file.
7981 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7982 * config/ns32k/nm-nbsdaout.h: New file.
7983 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7984 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7985 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7986 (SVR4_SHARED_LIBS): Remove.
7987 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7988 * config/sparc/nbsd.mh: Remove.
7989 * config/sparc/nbsd.mt: Remove.
7990 * config/sparc/nbsdaout.mh: New file.
7991 * config/sparc/nbsdaout.mt: New file.
7992 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7993 * config/sparc/nbsdelf.mt: New file.
7994 * config/sparc/nm-nbsdaout.h: New file.
7995 * config/sparc/nm-nbsdelf.h: Remove.
7996 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7997 * config/sparc/tm-nbsdaout.h: New file.
7998
257ce470
JT
79992002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8000
8001 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8002 mipsnbsd-tdep.c
8003 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8004
76a6d5fe
JT
80052002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8006
8007 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8008 shnbsd-nat.c.
8009 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8010
45888261
JT
80112002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8012
8013 * NEWS: Note new MIPS NetBSD native configuration.
8014 * configure.host (mips*-*-netbsd*): New host.
8015 * configure.tgt (mips*-*-netbsd*): New target.
8016 * mipsnbsd-nat.c: New file.
8017 * mipsnbsd-tdep.c: New file.
8018 * mipsnbsd-tdep.h: New file.
8019 * config/mips/nbsd.mh: New file.
8020 * config/mips/nbsd.mt: New file.
8021 * config/mips/nm-nbsd.h: New file.
8022 * config/mips/tm-nbsd.h: New file.
8023
70f80edf
JT
80242002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8025
8026 * Makefile.in (SFILES): Add osabi.c.
8027 (COMMON_OBS): Add osabi.o.
8028 (osabi.o): New dependency list.
8029 * osabi.c: New file.
8030 * osabi.h: New file.
8031 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8032
8033 * Makefile.in (alpha_tdep_h): Define and use instead of
8034 alpha-tdep.h.
8035 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8036 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8037 Remove.
8038 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8039 * alpha-tdep.h: Include osabi.h.
8040 (alpha_abi): Remove.
8041 (gdbarch_tdep): Use generic OS ABI framework.
8042 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8043 gdbarch_register_osabi.
8044 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8045 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8046 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8047
8048 * Makefile.in (sh_tdep_h): Add osabi.h.
8049 * sh-tdep.h (sh_osabi): Remove.
8050 (gdbarch_tdep): Use generic OS ABI framework.
8051 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8052 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8053 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8054 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8055
8056 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8057 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8058 gdbarch_register_osabi.
8059 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8060 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8061 (get_elfosabi): Rename to...
8062 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8063 ABI framework support routines.
8064 (arm_gdbarch_init): Use generic OS ABI framework.
8065 (arm_dump_tdep): Likewise.
8066 (_initialize_arm_tdep): Likewise.
8067 * arm-tdep.h: Include osabi.h.
8068 (arm_abi): Remove.
8069 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8070 osabi member.
8071 (arm_gdbarch_register_os_abi): Remove prototype.
8072 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8073 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8074
8075 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8076 * mips-tdep.c: Include osabi.h.
8077 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8078 OS ABI framework.
8079
d194345b
KH
80802002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8081
8082 * h8300-tdep.c: Fix formatting.
8083
70c6b0d1
EZ
80842002-05-20 Elena Zannoni <ezannoni@redhat.com>
8085
8086 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8087 printing vector registers.
8088
165b8e33
AC
80892002-05-19 Andrew Cagney <ac131313@redhat.com>
8090
8091 From Fernando Nasser:
8092 * remote.c (remote_async_open_1): Re-throw the exception when the
8093 connection fails.
8094 (remote_cisco_open): Ditto.
8095 (remote_open_1): Ditto.
8096
36918e70
AC
80972002-05-19 Andrew Cagney <ac131313@redhat.com>
8098
8099 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8100 (remote_start_remote): Add uiout parameter. Pass through to
8101 remote_start_remote_dummy.
8102 (remote_open_1): Use catch_exception instead of catch_errors.
8103 (remote_async_open_1): Ditto.
8104 (remote_cisco_open): Ditto.
8105
ae44c0c4
AC
81062002-05-19 Andrew Cagney <ac131313@redhat.com>
8107
8108 * remote.c (remote_start_remote): Replace PTR with void pointer.
8109 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8110 static.
8111
8efe637d
AC
81122002-05-18 Andrew Cagney <ac131313@redhat.com>
8113
8114 * gdb_indent.sh: Allow the script to be run in the sim directory.
8115
2f1b5984
MK
81162002-05-18 Mark Kettenis <kettenis@gnu.org>
8117
f0f625e2
MK
8118 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8119 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8120
2f1b5984
MK
8121 * corelow.c (core_open): Only call set_gdbarch_from_file if
8122 exec_bfd is NULL.
8123
fc974602
AV
81242002-05-17 Andrey Volkov <avolkov@transas.com>
8125
8126 * h8300-tdep.c: Add support of EXR register
8127 * config/h8300/tm-h8300.h: Ditto.
8128
906709f4
AV
81292002-05-17 Andrey Volkov <avolkov@transas.com>
8130
8131 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8132
6e591d68
AV
81332002-05-17 Andrey Volkov <avolkov@transas.com>
8134
8135 * h8300-tdep.c: Change literal regnums to REGNO.
8136
84f0252a
JB
81372002-05-17 Jim Blandy <jimb@redhat.com>
8138
e0e9281e
JB
8139 * NEWS: Note addition of macro support.
8140
84f0252a
JB
8141 Expand preprocessor macros in C expressions.
8142 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8143 (scan_macro_expansion, scanning_macro_expansion,
8144 finished_macro_expansion): New function declarations.
8145 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8146 variable declarations.
8147 * parser-defs.h (expression_context_pc): New declaration.
8148 * parse.c (expression_context_pc): New variable.
8149 (parse_exp_1): Set expression_context_pc, as well as
8150 expression_context_block.
8151 * c-exp.y (yylex): If we're not already reading the result of a
8152 macro expansion, try to macro-expand the next token. When we're
8153 done scanning a macro expansion, switch back to the mainline text.
8154 Commas and `if's in a macro's expansion don't terminate the input.
8155 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8156 (macro_original_text, macro_expanded_text,
8157 expression_macro_lookup_func, expression_macro_lookup_baton): New
8158 variables.
8159 (scan_macro_expansion, scanning_macro_expansion,
8160 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8161 c_preprocess_and_parse): New functions.
8162 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8163 c_preprocess_and_parse, instead of c_parse.
8164 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8165 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8166
1c509ca8
JR
8167Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8168
8169 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8170 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8171 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8172
2250ee0c
CV
81732002-05-17 Corinna Vinschen <vinschen@redhat.com>
8174
8175 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8176
ab3b8126
JT
81772002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8178
8179 * Makefile.in (sh_tdep_h): Define and use.
8180 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8181 register enum): Move to...
8182 * * sh-tdep.h: ...here.
8183 * sh-tdep.c: Include sh-tdep.h.
8184 * sh3-rom.c: Likewise.
8185 * shnbsd-tdep.c: Likewise.
8186
ed9d4749
MS
81872002-05-16 Michael Snyder <msnyder@redhat.com>
8188
8189 * arm-tdep.c: Spelling fix in comment.
8190
2e276125
JB
81912002-05-16 Jim Blandy <jimb@redhat.com>
8192
6821892e
JB
8193 Add commands for manually expanding macros and showing their
8194 definitions.
8195 * macrocmd.c, macroscope.c, macroscope.h: New files.
8196 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8197 (macroscope_h): New variable.
8198 (HFILES_NO_SRCDIR): Add macroscope.h.
8199 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8200 (macroscope.o, macrocmd.o): New rules.
8201
2e276125
JB
8202 Teach the Dwarf 2 reader to read macro information.
8203 * dwarf2read.c: #include "macrotab.h".
8204 (dwarf_macinfo_buffer): New variable.
8205 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8206 dwarf_macinfo_size.
8207 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8208 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8209 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8210 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8211 dwarf2_macro_spaces_in_definition): New complaints.
8212 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8213 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8214 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8215 the partial symbol table.
8216 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8217 from what's recorded in the partial symbol table.
8218 (read_file_scope): If the compilation unit has a
8219 `DW_AT_macro_info' attribute, read its macro information.
8220 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8221
2f53fe6c
DJ
82222002-05-16 Daniel Jacobowitz <drow@mvista.com>
8223
8224 Fix PR gdb/546
8225 * ser-tcp.c: Don't include <netinet/udp.h>.
8226
2be99286
SC
82272002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8228
8229 * MAINTAINERS: Update my email address.
8230
c9af212b 82312002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
8232
8233 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8234 include file of the same name.
8235
bf5f1a52
CV
82362002-05-16 Corinna Vinschen <vinschen@redhat.com>
8237
8238 * configure.tgt: Mark v850 as multi-arched.
8239 * config/v850/tm-v850.h: Remove file.
8240 * config/v850/v850.mt: Eliminate TM_FILE.
8241
435e042a
CV
82422002-05-16 Corinna Vinschen <vinschen@redhat.com>
8243
8244 * v850-tdep.c: Full multi-arch.
8245 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8246 Define GDB_MULTI_ARCH to 2.
8247
9819c6c8
PM
82482002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8249
8250 * p-exp.y (current_type): New static variable.
8251 Carries the type of the expression at the position that is parsed.
8252 (push_current_type, pop_current_type): Two new functions. Used
8253 to store/restore current_type in expression on specific tokens.
c9af212b
RE
8254 (search_field): New static variable. Set to one after parsing a point
8255 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
8256 (FIELDNAME): New token. After a point only a token belonging to
8257 current_type type definition is allowed.
8258 (all over token rules): reset and change current_type according
8259 to rules.
8260 (exp '[' rule): insert implicit array index field if
8261 exp is a pascal string type.
8262
3a06899a
CV
82632002-05-16 Corinna Vinschen <vinschen@redhat.com>
8264
8265 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8266 frame info. Use frame_info's saved_regs instead of matching member
8267 in extra_frame_info throughout.
8268 (v850_frame_init_saved_regs): New function.
8269 (v850_init_extra_frame_info): Move most functionality into
8270 v850_frame_init_saved_regs().
8271 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8272 (v850_frame_find_saved_regs): Remove declaration.
8273 (FRAME_FIND_SAVED_REGS): Remove definition.
8274 (v850_frame_init_saved_regs): Add declaration.
8275 (FRAME_INIT_SAVED_REGS): Add definition.
8276
6ed14b0e
CV
82772002-05-16 Corinna Vinschen <vinschen@redhat.com>
8278
8279 * v850-tdep.c: Begin multi-arch'ing v850.
8280 (v850_target_architecture_hook): Remove function.
8281 (v850_gdbarch_init): New function. Add code previously in
8282 v850_target_architecture_hook().
8283 (_initialize_v850_tdep): Don't set target_architecture_hook.
8284 Call register_gdbarch_init() instead.
8285
42725910
DJ
82862002-05-16 Daniel Jacobowitz <drow@mvista.com>
8287
8288 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8289 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8290 (fixup_class_method_type): Likewise.
8291
99d9066e
JB
82922002-05-15 Jim Blandy <jimb@redhat.com>
8293
8294 Add macro structures to GDB's symbol tables. Nobody puts anything
8295 in them yet.
8296 * symtab.h (struct symtab): New member: `macro_table'.
8297 * buildsym.h (pending_macros): New global variable.
8298 * buildsym.c: #include "macrotab.h".
8299 (buildsym_init): Initialize `pending_macros'.
8300 (end_symtab): If we found macro information while reading a CU's
8301 debugging info, do build a symtab structure for it. Make the
8302 symtab point to the macro information, and clear the
8303 `pending_macros' pointer which held it while we were reading the
8304 debug info.
8305 (really_free_pendings): Free any pending macro table.
8306 * objfiles.h (struct objfile): New member: `macro_cache'.
8307 * objfiles.c (allocate_objfile): Set allocate and free functions
8308 for the macro cache's objstack.
8309 (free_objfile): Empty the macro cache's obstack.
8310 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8311 set new allocate and free functions for it.
8312 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8313 free functions for the macro cache's objstack. (Why is this
8314 function building its own objfile?)
8315 * symmisc.c (print_objfile_statistics): Print statistics on the
8316 macro bcache.
8317 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8318
c899585b
RE
83192002-05-15 Richard Earnshaw <rearnsha@arm.com>
8320
8321 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8322 (REGISTER_U_ADDR): Delete definition.
8323 (arm_register_u_addr): Delete declaration.
8324
a6cdd8c5
RE
83252002-05-15 Richard Earnshaw <rearnsha@arm.com>
8326
8327 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8328 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8329
c97dcfc7
AC
83302002-05-14 Andrew Cagney <ac131313@redhat.com>
8331
8332 * regcache.c (register_valid): Revise comments refering to "Not
8333 available" and "unavailable".
8334 * frame.c (frame_register_read): Ditto.
8335 * findvar.c (value_of_register): Ditto.
8336
93021b7d
AC
83372002-05-15 Andrew Cagney <cagney@redhat.com>
8338
8339 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8340 (remote-sim.o): Update dependencies.
8341 (d10v-tdep.o): Specify dependencies.
8342 (sim_d10v_h): Define.
8343
a86bc61c
JB
83442002-05-14 Jim Blandy <jimb@redhat.com>
8345
8346 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8347 * macrotab.c (macro_lookup_inclusion, find_definition,
8348 new_macro_table): Same.
8349
8350 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8351 not `! strcmp ()'. This is a dubious improvement.
8352 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8353
8354 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8355 although it's not necessary, to avoid a warning.
8356
2fdde8f8
DJ
83572002-05-14 Daniel Jacobowitz <drow@mvista.com>
8358
8359 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8360 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8361 TYPE_INSTANCE_FLAGS.
8362 (struct main_type): New.
8363 (struct type): Move most members to struct main_type. Change
8364 cv_type and as_type to new type_chain member. Add instance_flags.
8365 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8366 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8367 (finish_cv_type): Remove prototype.
8368 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8369 Set TYPE_CHAIN.
8370 (alloc_type_instance): New function.
8371 (smash_type): New function.
8372 (make_pointer_type, make_reference_type, make_function_type)
8373 (smash_to_member_type, smash_to_method_type): Call smash_type.
8374 (make_qualified_type): New function.
8375 (make_type_with_address_space): Call make_qualified_type.
8376 (make_cv_type): Likewise.
8377 (finish_cv_type): Remove unnecessary function.
8378 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8379 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8380 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8381 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8382 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8383 * hpread.c (hpread_read_struct_type): Likewise.
8384 * stabsread.c (read_struct_type): Likewise.
8385
843fedf4
EZ
83862002-05-14 Elena Zannoni <ezannoni@redhat.com>
8387
8388 * configure.tgt: Add a catch all sh* target, for cases like
8389 sh[2,3,4]-elf and sh-hms.
8390
05a6c72c
KS
83912002-05-14 Keith Seitz <keiths@redhat.com>
8392
8393 * event-loop.c (create_file_handler): Don't do anything but
8394 update data when we are given a fd which we are already
8395 monitoring.
8396
5d085aaf
ML
83972002-05-14 Michal Ludvig <mludvig@suse.cz>
8398
8399 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8400 (update_context): Use __func__ in warnings.
8401
9db8d71f
DJ
84022002-05-14 Daniel Jacobowitz <drow@mvista.com>
8403
8404 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8405 and tcp_close to net_open and net_close.
8406 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8407 using UDP if requested. Don't try to disable Nagle on UDP
8408 sockets.
8409 * remote.c (remote_serial_open): New function. Warn about UDP.
8410 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8411
5dbc6baa
EZ
84122002-05-13 Elena Zannoni <ezannoni@redhat.com>
8413
8414 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8415
cc3023f7
EZ
84162002-05-13 Elena Zannoni <ezannoni@redhat.com>
8417
8418 * configure.tgt: Remove sh-hms target.
8419 * MAINTAINERS: Don't list sh-hms as a separate target.
8420
ec2bcbe7
JB
84212002-05-13 Jim Blandy <jimb@redhat.com>
8422
8423 Add first preprocessor macro-expansion files.
8424 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8425 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8426 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8427 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8428 (COMMON_OBS): Add macrotab.o, macroexp.o.
8429 (macroexp.o, macrotab.o): New rules.
8430
6d531722
AC
84312002-05-13 Andrew Cagney <ac131313@redhat.com>
8432
8433 * config/m88k/tm-m88k.h: Update copyright.
8434 (m88k_target_write_pc): Declare
8435 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8436 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8437 (SHIFT_INST_REGS): Update definition.
8438 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8439 using old definition of TARGET_WRITE_PC.
8440 * regcache.c (generic_target_write_pc): Delete code handling
8441 NNPC_REGNUM.
8442 * gdbarch.sh (NNPC_REGNUM): Delete.
8443 * gdbarch.h, gdbarch.c: Regenerate.
8444
3e3f2739
RE
84452002-05-13 Richard Earnshaw <rearnsha@arm.com>
8446
8447 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8448 builtin reg number.
8449
0004e5a2
DJ
84502002-05-13 Daniel Jacobowitz <drow@mvista.com>
8451
8452 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8453 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8454 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8455 access macros.
8456 * c-typeprint.c (cp_type_print_method_args): Likewise.
8457 (c_type_print_args): Likewise.
8458 * d10v-tdep.c (d10v_push_arguments): Likewise.
8459 (d10v_extract_return_value): Likewise.
8460 * expprint.c (print_subexp): Likewise.
8461 * gdbtypes.c (lookup_primitive_typename): Likewise.
8462 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8463 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8464 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8465 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8466 (TYPE_VECTOR): Likewise.
8467 * hpread.c (hpread_read_struct_type)
8468 (fix_static_member_physnames, fixup_class_method_type)
8469 (hpread_type_lookup): Likewise.
8470 * mdebugread.c (parse_symbol, parse_type): Likewise.
8471 * p-lang.c (is_pascal_string_type): Likewise.
8472 * valops.c (hand_function_call): Likewise.
8473 * x86-64-tdep.c (classify_argument): Likewise.
8474
8475 * hpread.c (hpread_read_function_type)
8476 (hpread_read_doc_function_type): Call replace_type.
8477 * dstread.c (create_new_type): Delete.
8478 (decode_dst_structure, process_dst_function): Call alloc_type.
8479 Use type access macros.
8480
dff95cc7
MK
84812002-05-12 Mark Kettenis <kettenis@gnu.org>
8482
8483 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8484 the're not supported by the current architecture.
8485 (i387_fill_fxsave): Likewise.
8486
bbcd32ad
FF
84872002-05-12 Fred Fish <fnf@redhat.com>
8488
8489 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8490 sect_index_xxx members to index the first slot in section_offsets
8491 if all of the section_offsets are zero.
8492
89cf4787
MK
84932002-05-12 Mark Kettenis <kettenis@gnu.org>
8494
8495 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8496 checked in with last change.
8497
1f77ffc5
MK
84982002-05-12 Mark Kettenis <kettenis@gnu.org>
8499
8500 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8501 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8502 config.sub.
8503
89b8b4a9
DJ
85042002-05-12 Daniel Jacobowitz <drow@mvista.com>
8505
8506 * Makefile.in: Update dependencies.
8507
14a5e767
AC
85082002-05-11 Andrew Cagney <ac131313@redhat.com>
8509
8510 * language.c (local_hex_string_custom): Simplify. Do not depend
8511 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8512
8513 * memattr.c (mem_info_command): Replace calls to
8514 longest_local_hex_string and longest_local_hex_string_custom.
8515 * buildsym.c (make_blockvector): Ditto.
8516 * solib.c (info_sharedlibrary_command): Ditto.
8517 * tracepoint.c (tracepoints_info): Ditto.
8518 * symtab.c (print_msymbol_info): Ditto.
8519
8520 * language.c (local_hex_string): Delete.
8521 (local_hex_string_custom): Delete.
8522 (longest_local_hex_string): Rename to local_hex_string.
8523 (longest_local_hex_string_custom): Rename to
8524 local_hex_string_custom.
8525 * language.h (local_hex_string): Change parameter type to LONGEST.
8526 (local_hex_string_custom): Ditto.
8527 (longest_local_hex_string): Delete declaration.
8528 (longest_local_hex_string_custom): Ditto.
8529
8530 * solib.c: Update copyright.
8531 * memattr.c: Update copyright.
8532
13d01224
AC
85332002-05-11 Andrew Cagney <ac131313@redhat.com>
8534
8535 * arch-utils.h (legacy_register_to_value): Declare.
8536 (legacy_value_to_register): Declare.
8537 (legacy_convert_register_p): Declare.
8538 * arch-utils.c (legacy_register_to_value): New function.
8539 (legacy_value_to_register): New function.
8540 (legacy_convert_register_p): New function.
8541
8542 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8543 (VALUE_TO_REGISTER): Define.
8544 (CONVERT_REGISTER_P): Define.
8545 * gdbarch.h, gdbarch.c: Regenerate.
8546
8547 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8548 VALUE_TO_REGISTER.
8549 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8550 CONVERT_REGISTER_P.
8551
4a1970e4
DJ
85522005-05-11 Daniel Jacobowitz <drow@mvista.com>
8553 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8554
8555 * Makefile.in: Update dependencies for valops.c.
8556 * valops.c: Include "gdb_assert.h".
8557 (typecmp): Skip THIS parameter to methods.
8558 (find_method_list): Remove static_memfuncp argument,
8559 update callers. Check for stub methods.
8560 (find_value_oload_method_list): Don't set *static_memfuncp.
8561 (find_overload_match): Don't check for stub methods. Assert
8562 that methods are not stubbed. Handle static methods.
8563 (value_find_oload_method_list): Remove static_memfuncp argument.
8564 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8565 to the argument list for static stub methods.
8566 * value.h (value_find_oload_method_list): Update prototype.
8567
b2e75d78
AC
85682002-05-11 Andrew Cagney <ac131313@redhat.com>
8569
8570 * arch-utils.h (generic_register_size): Declare.
8571 (generic_register_raw_size, generic_register_virtual_size): Delete
8572 declarations.
8573 * arch-utils.c (generic_register_raw_size): Delete.
8574 (generic_register_size): New function.
8575 (generic_register_virtual_size): Delete.
8576
8577 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8578 default generic_register_size.
8579 * gdbarch.h, gdbarch.c: Re-generate.
8580
8581 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8582 register_virtual_size.
8583 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8584 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8585
451fbdda
AC
85862002-05-11 Andrew Cagney <ac131313@redhat.com>
8587
8588 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8589 * gdbarch.h, gdbarch.c: Regenerate.
8590 * gnu-v3-abi.c: Update copyright.
8591 (vtable_address_point_offset): Update.
8592 (gnuv3_rtti_type): Update.
8593 (gnuv3_baseclass_offset): Update.
8594 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8595 (init_fetch_link_map_offsets): Update.
8596 * remote.c (get_remote_state): Update.
8597
6d2f5cea
DJ
85982002-05-11 Daniel Jacobowitz <drow@mvista.com>
8599
8600 * TODO: Remove value_headof/value_from_vtable_info comment.
8601 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8602 * values.c (value_headof, value_from_vtable_info): Delete.
8603 * value.h (value_from_vtable_info): Delete prototype.
8604
d2324da4
AC
86052002-05-11 Andrew Cagney <ac131313@redhat.com>
8606
8607 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8608 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8609 $(gdb_regex_h).
8610 (gdb_assert_h): Define.
8611 (gdb_wait_h): Define.
8612 (gdb_regex_h): Define.
8613
5c717440
DJ
86142002-05-11 Daniel Jacobowitz <drow@mvista.com>
8615
8616 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8617 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8618
6c7861b3
JT
86192002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8620
8621 * nbsd-tdep.c: Fix comment.
8622
ea5bc2a6
JT
86232002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8624
8625 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8626 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8627 (nbsd-tdep.o): New dependency list.
8628 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8629 nbsd-tdep.h.
8630 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8631 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8632 * nbsd-tdep.c: New file.
8633 * nbsd-tdep.h: New file.
8634 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8635 nbsd-tdep.h.
8636 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8637 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8638 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8639 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8640
b28da865
JT
86412002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8642
8643 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8644 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8645 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8646 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8647 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8648 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8649
4b8ff1fa
JT
86502002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8651
8652 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8653 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8654 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8655 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8656 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8657 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8658 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8659
dfe6eb1f
JT
86602002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8661
8662 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8663 fetch_elfcore_registers to...
8664 * i386nbsd-tdep.c: ...here.
8665 (i386nbsd_use_struct_convention): Rename to...
8666 (i386nbsd_aout_use_struct_convention): ...this.
8667 (i386nbsd_supply_reg): New function.
8668 (i386nbsd_fill_reg): New function.
8669 (fetch_core_registers): Use i386nbsd_supply_reg.
8670 (fetch_elfcore_registers): Likewise.
8671 (_initialize_i386nbsd_tdep): New function.
8672 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8673 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8674 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8675 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8676 (i386nbsd_aout_use_struct_convention): ...this.
8677
20cb8cda
JT
86782002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8679
8680 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8681 (store_inferior_registers): Use shnbsd_fill_reg.
8682 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8683 sh_nbsd_supply_register): Collapse into...
8684 (shnbsd_supply_reg): ...this.
8685 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8686 (shnbsd_fill_reg): ...this.
8687 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8688 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8689 (fetch_core_registers): Use shnbsd_supply_reg.
8690 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8691 (sh_nbsd_core_fns): Rename to...
8692 (shnbsd_core_fns): ...this.
8693 (sh_nbsd_elfcore_fns): Rename to...
8694 (shnbsd_elfcore_fns): ...this.
8695 (sh_nbsd_init_abi): Rename to...
8696 (shnbsd_init_abi): ...this.
8697 (_initialize_sh_nbsd_tdep): Rename to...
8698 (_initialize_shnbsd_tdep): ...this.
8699 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8700 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8701 sh_nbsd_fill_register): Remove prototypes.
8702 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8703
e750d25e
JT
87042002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8705
8706 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8707 (i387-nat.o): Delete dependency list.
8708 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8709 (x86-64-linux-nat.o): Likewise.
8710 * i387-nat.c: Delete file, moving contents to...
8711 * i387-tdep.c: ...here.
8712 * i387-nat.h: Rename...
8713 * i387-tdep.h: ...to this.
8714 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8715 * i386-linux-nat.c: Likewise.
8716 * i386bsd-nat.c: Likewise.
8717 * i386gnu-nat.c: Likewise.
8718 * i386nbsd-nat.c: Likewise.
8719 * i386v4-nat.c: Likewise.
8720 * x86-64-linux-nat.c: Likewise.
8721 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8722 * config/i386/go32.mh (NATDEPFILES): Likewise.
8723 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8724 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8725 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8726 * config/i386/linux.mh (NATDEPFILES): Likewise.
8727 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8728 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8729 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8730 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8731
1aee598a
JT
87322002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8733
8734 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8735 (alphanbsd-nat.o): Remove dependency list.
8736 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8737 * alphanbsd-nat.c: Delete. Contents moved to...
8738 * alphanbsd-tdep.c: ...here.
8739 (_initialize_alphanbsd_tdep): Register core functions.
8740 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8741
12bcb0fe
JT
87422002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8743
8744 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8745 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8746 (alphanbsd-nat.o): Likewise.
8747 (alphabsd-tdep.o): New dependency list.
8748 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8749 (fill_gregset): Use alphabsd_fill_reg.
8750 (supply_fpregset): Use alphabsd_supply_fpreg.
8751 (fill_fpregset): Use alphabsd_fill_fpreg.
8752 (fetch_inferior_registers): Use struct reg and struct fpreg
8753 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8754 and alphabsd_supply_fpreg.
8755 (store_inferior_registers): Use struct reg and struct fpreg
8756 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8757 and alphabsd_fill_fpreg.
8758 * alphabsd-tdep.c: New file.
8759 * alphabsd-tdep.h: New file.
8760 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8761 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8762 alphabsd_supply_fpreg.
8763 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8764 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8765
361d1df0
EC
87662002-05-11 Eric Christopher <echristo@redhat.com>
8767
8768 * mips-tdep.c (mips_double_register_type): Fix thinko.
8769 (mips_single_register_type): Ditto.
8770 * MAINTAINERS: Add self.
8771
92dd7cee
MK
87722002-05-11 Mark Kettenis <kettenis@gnu.org>
8773
8774 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8775 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8776 right thing on architectures with different endianness and/or
8777 integer sizes.
8778
e27da16d
JT
87792002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8780
8781 From Christian Limpach <chris@Pin.LU>
8782 * configure.in: Change sed expression which comments out
8783 NATDEPFILES to also comment out continuation lines.
8784 * configure: Regenerate.
8785
ddde02bd
EZ
87862002-05-10 Elena Zannoni <ezannoni@redhat.com>
8787
8788 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8789 big patch.
8790
1c922164
EZ
87912002-05-10 Elena Zannoni <ezannoni@redhat.com>
8792
8793 * sh-tdep.c: Include correct file.
8794
283150cd
EZ
87952002-05-10 Elena Zannoni <ezannoni@redhat.com>
8796
8797 New support for sh64-elf (sh5) target.
8798
8799 * configure.tgt: For sh64-elf target, default to sh-elf.
8800
8801 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8802 (struct gdbarch_tdep): Add new fields for new registers and ABI
8803 info.
361d1df0 8804
283150cd
EZ
8805 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8806 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8807 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8808 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8809 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8810 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8811 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8812 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8813 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8814 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8815 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8816 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8817 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8818 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8819 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8820 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8821 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8822 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8823 sign_extend, sh64_nofp_frame_init_saved_regs,
8824 sh64_init_extra_frame_info, sh64_get_saved_register,
8825 sh64_extract_struct_value_address, sh64_pop_frame,
8826 sh64_push_arguments, sh64_extract_return_value,
8827 sh64_store_return_value, sh64_show_media_regs,
8828 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8829 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8830 sh_sh64_register_virtual_type,
8831 sh_sh64_register_convert_to_virtual,
8832 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8833 sh64_register_read, sh64_pseudo_register_write,
8834 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8835 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8836 sh64_do_pseudo_register, sh_compact_do_registers_info,
8837 sh64_do_registers_info, sh_gdbarch_init): New functions.
8838
3117ed25
EZ
88392002-05-10 Elena Zannoni <ezannoni@redhat.com>
8840
8841 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8842
2654e6d4
DJ
88432002-05-10 Daniel Jacobowitz <drow@mvista.com>
8844
8845 * linespec.c (decode_line_1): Check for a double quote after
8846 a filename correctly.
8847
9ab3e532
JB
88482002-05-10 Jim Blandy <jimb@redhat.com>
8849
8850 Properly track the size of the current objfile's .debug_line section.
8851 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8852 (DWARF_LINE_SIZE): New macro.
8853 (dwarf2_build_psymtabs_hard): Record the line section's size in
8854 the partial symbol table.
8855 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8856 symbol table.
8857
126fa72d
PS
88582002-05-10 Petr Sorfa <petrs@caldera.com>
8859
8860 * ia64-tdep.c: Handle breakpoints on L instruction type
8861 in MLX instruction bundle by moving the breakpoint to
8862 the third slot (X instruction type) as L holds only data.
8863
1f077a3e
KB
88642002-05-10 Kevin Buettner <kevinb@redhat.com>
8865
8866 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8867 (process_one_symbol): Complain about discarding local symbols
8868 due to a misplaced N_LBRAC entry.
8869
8120c9d5 88702002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
8871
8872 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
8873 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8874 decrease the depth we are at, in the case of templates.
361d1df0 8875
67b2c998
DJ
88762002-05-09 Daniel Jacobowitz <drow@mvista.com>
8877
8878 * mips-tdep.c (mips_float_register_type): New function.
8879 (mips_double_register_type): New function.
8880 (mips_print_register): Use them.
8881 (do_fp_register_row): Likewise.
8882
fd326606
DJ
88832002-05-09 Daniel Jacobowitz <drow@mvista.com>
8884
6609d9af 8885 * signals/signals.c (signals): Remove conditional compilation around
fd326606 8886 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 8887 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 8888
bef35864
MS
88892002-05-09 Michael Snyder <msnyder@redhat.com>
8890
8891 * remote-rdp.c (remote_rdp_can_run): Remove.
8892
c55a3f73
TT
88932002-05-09 Tom Tromey <tromey@redhat.com>
8894
8895 * jv-valprint.c (java_val_print): Handle `char' as a special case
8896 of TYPE_CODE_INT.
8897
b8d5e71d
MS
88982002-05-09 Michael Snyder <msnyder@redhat.com>
8899
8900 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8901 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 8902 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 8903 str r(0123),[sp,#nn].
361d1df0 8904 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
8905 order-independent by placing it in a loop.
8906
e2cd42dd
MS
89072002-05-06 Michael Snyder <msnyder@redhat.com>
8908
8909 * stabsread.c (read_type): Add recognition for new attribute:
8910 "@V;" means that an array type is actually a vector.
8911 This is analogous to the vector flag that's been added to dwarf2.
8912
3ce1502b
MK
89132002-05-09 Mark Kettenis <kettenis@gnu.org>
8914
8915 * i386-tdep.h (i386_abi): New enum.
8916 (struct gdbarch_tdep): Replace os_ident member with abi.
8917 (i386_gdbarch_register_os_abi): New prototype.
8918 * i386-tdep.c (i386_abi_names): New array.
8919 (process_note_abi_tag_sections): Removed.
8920 (process_note_sections): New function.
8921 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8922 (struct i386_abi_handler): New struct.
8923 (i386_abi_handler_list): New variable.
8924 (i386_gdbarch_register_os_abi): New function.
8925 (i386_gdbarch_init): Adapt for the changes given above.
8926
084c156a
DJ
89272002-05-08 Daniel Jacobowitz <drow@mvista.com>
8928
8929 * gregset.h: Say "GNU/Linux".
8930
6599f021
EZ
89312002-05-08 Elena Zannoni <ezannoni@redhat.com>
8932
8933 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8934 (build_gdbtypes): Build builtin_type_v2_float.
8935 (_initialize_gdbtypes): Register new builtin type.
8936
40af4b0c
AC
89372002-05-08 Andrew Cagney <ac131313@redhat.com>
8938
8939 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8940 (clear_gdbarch_swap): New function.
8941 (initialize_non_multiarch): Call.
8942 (gdbarch_update_p): Before calling init(), swap out and clear the
8943 existing architecture.
8944 * gdbarch.c: Regenerate.
8945
4fe84f46
JT
89462002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8947
8948 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8949 alphanbsd-tdep.c.
8950
4015edd1
JT
89512002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8952
8953 * sh-nbsd-nat.c: Rename to...
8954 * shnbsd-nat.c: ...this.
8955 * sh-nbsd-tdep.c: Rename to...
8956 * shnbsd-tdep.c: ...this.
8957 * sh-nbsd-tdep.h: Rename to...
8958 * shnbsd-tdep.h: ...this.
8959 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8960 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8961
0e2bd219
RE
89622002-05-08 Richard Earnshaw <rearnsha@arm.com>
8963
8964 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8965 concatenation for command help messages.
8966
13a38d45
JT
89672002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8968
8969 * NEWS: Note new sh*-*-netbsdelf* configuration.
8970 * configure.host: Set gdb_host_cpu to sh for all sh*.
8971 (sh*-*-netbsdelf*): New host.
8972 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8973 (sh*-*-netbsdelf*): New target.
8974 * sh-nbsd-nat.c: New file.
8975 * sh-nbsd-tdep.c: New file.
8976 * sh-nbsd-tdep.h: New file.
8977 * config/sh/nbsd.mh: New file.
8978 * config/sh/nbsd.mt: New file.
8979 * config/sh/nm-nbsd.h: New file.
8980 * config/sh/tm-nbsd.h: New file.
8981
d658f924
JT
89822002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8983
8984 * sh-tdep.c (sh_osabi_names): Declare.
8985 (process_note_abi_tag_sections): New function.
8986 (get_elfosabi): Ditto.
8987 (sh_gdbarch_register_os_abi): Ditto.
8988 (sh_dump_tdep): Ditto.
8989 _initialize_sh_tdep): Use gdbarch_register to register
8990 sh_gdbarch_init and sh_dump_tdep.
8991 * config/sh/tm-sh.h (sh_osabi): Declare.
8992 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8993
848cfffb
AC
89942002-05-07 Andrew Cagney <ac131313@redhat.com>
8995
8996 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8997 (thumb_scan_prologue): Ditto.
8998 (arm_find_callers_reg): Ditto.
8999 (arm_frame_chain): Ditto.
9000 (arm_init_extra_frame_info): Ditto.
9001 (arm_frame_saved_pc): Ditto.
9002 (arm_pop_frame): Ditto.
9003 (arm_push_return_address): New function.
9004 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9005 call_dummy_location, call_dummy_breakpoint_offset_p,
9006 call_dummy_breakpoint_offset, call_dummy_p,
9007 call_dummy_stack_adjust_p, call_dummy_words,
9008 sizeof_call_dummy_words, call_dummy_start_offset,
9009 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9010 call_dummy_address, push_return_address and push_dummy_frame for
9011 generic dummy frames.
9012
e7d717c0
JT
90132002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9014
9015 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9016 size computation for alloca.
9017 (sh_fp_frame_init_saved_regs): Likewise.
9018
7bbcf283
RE
90192002-05-07 Richard Earnshaw <rearnsha@arm.com>
9020
9021 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9022 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 9023 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
9024 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9025 * remote-rdp.c (remote_rdp_fetch_register): Use
9026 ARM_MAX_REGISTER_RAW_SIZE.
9027 (remote_rdp_store_register): Likewise.
9028
4657573b
ML
90292002-05-07 Michal Ludvig <mludvig@suse.cz>
9030
361d1df0 9031 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
9032 added default labels to switch {} statements.
9033 * x86-64-tdep.c: Ditto.
9034 * x86-64-linux-nat.c: Ditto.
9035
010f3b2f
JT
90362002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9037
9038 * solib.h: Protect against multiple inclusion.
9039
debd256d
JB
90402002-05-06 Jim Blandy <jimb@redhat.com>
9041
9ab3e532
JB
9042 Add first preprocessor macro-expansion files.
9043 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9044 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9045 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9046 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9047 (COMMON_OBS): Add macrotab.o, macroexp.o.
9048 (macroexp.o, macrotab.o): New rules.
9049
debd256d
JB
9050 Separate the job of reading the line number info statement program
9051 header (...expialidocious) out into its own function.
9052 * dwarf2read.c (struct line_head, struct filenames, struct
9053 directories): Replace with...
9054 (struct line_header): New structure, containing the full
9055 contents of the statement program header, including the
9056 include directory and file name tables.
9057 (read_file_scope): If we have line number info, instead of just
9058 calling dwarf_decode_lines to do all the work, call
9059 dwarf_decode_line_header first to get a `struct line_header'
9060 containing the data in the statement program header, and then
9061 pass that to dwarf_decode_lines, which will pick up where that
9062 left off. Be sure to clean up the `struct line_header' object.
9063 (dwarf_decode_line_header, free_line_header, add_include_dir,
9064 add_file_name): New functions.
9065 (dwarf_decode_lines): Move all the code to read the statement
9066 program header into dwarf_decode_line_header. Take the line
9067 header it built as the first argument, instead of the offset to
9068 the compilation unit's line number info. Use the new `struct
9069 line_header' type instead of the old structures. No need to do
9070 cleanups here now, since we don't allocate anything.
9071 (dwarf2_statement_list_fits_in_line_number_section,
9072 dwarf2_line_header_too_long): New complaints.
9073
ac3aafc7
EZ
90742002-05-06 Elena Zannoni <ezannoni@redhat.com>
9075
9076 * gdbtypes.c (init_vector_type): New function.
9077 (build_builtin_type_vec128): Simplify the representation of SIMD
9078 registers.
9079 (build_gdbtypes): Initialize new builtin vector types.
9080 (_initialize_gdbtypes): Register new vector types with gdbarch.
9081 (builtin_type_v4_float, builtin_type_v4_int32,
9082 builtin_type_v8_int16, builtin_type_v16_int8,
9083 builtin_type_v2_int32, builtin_type_v4_int16,
9084 builtin_type_v8_int8): New (renamed) SIMD types.
9085
13e49980
MK
90862002-05-06 Mark Kettenis <kettenis@gnu.org>
9087
9088 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9089 (i387_fill_fxsave): Likewise.
9090
997b20b8
AO
90912002-05-05 Alexandre Oliva <aoliva@redhat.com>
9092
9093 * alpha-tdep.c (alpha_extract_return_value): Don't use
9094 non-constant array size in prototype.
9095
535c96ce
AC
90962002-05-04 Andrew Cagney <ac131313@redhat.com>
9097
9098 From Brian Taylor <briant at model dot com>:
9099 * ui-out.c (ui_out_field_core_addr): Use the function
9100 longest_local_hex_string_custom'to format addresses > 32 bits
9101 wide.
9102
9103 * ui-out.c (ui_out_field_core_addr): Update comment.
9104
bedfa57b
AC
91052002-05-04 Andrew Cagney <ac131313@redhat.com>
9106
9107 * stack.c (select_and_print_frame): Make static. Delete the
9108 parameter `level'.
9109 (func_command): Update call.
9110 (select_frame_command): Delete code computing the frame level.
9111 * frame.h (select_and_print_frame): Delete declaration.
9112
f621c63e
AC
91132002-05-04 Andrew Cagney <ac131313@redhat.com>
9114
9115 * sparc-tdep.c (sparc_get_saved_register): Comment why
9116 get_prev_frame call is safe.
9117
0f7d239c
AC
91182002-05-04 Andrew Cagney <ac131313@redhat.com>
9119
9120 * frame.h (select_frame): Delete level parameter.
9121 * stack.c (select_frame): Update. Use frame_relative_level to
9122 obtain the frame's level.
9123 (select_and_print_frame): Update call.
9124 (select_frame_command): Ditto.
9125 (up_silently_base): Ditto.
9126 (down_silently_base): Ditto.
9127 * ocd.c (ocd_start_remote): Ditto.
9128 * remote-rdp.c (remote_rdp_open): Ditto.
9129 * remote-mips.c (mips_initialize): Ditto.
9130 (common_open): Ditto.
9131 * remote-e7000.c (e7000_start_remote): Ditto.
9132 * m3-nat.c (select_thread): Ditto.
9133 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9134 (child_get_current_exception_event): Ditto.
9135 * varobj.c (varobj_create): Ditto.
9136 (varobj_update): Ditto.
9137 (c_value_of_root): Ditto.
9138 * tracepoint.c (finish_tfind_command): Ditto.
9139 * corelow.c (core_open): Ditto.
9140 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9141 * thread.c (info_threads_command): Ditto.
9142 (switch_to_thread): Ditto.
9143 * infrun.c (normal_stop): Ditto.
9144 (restore_selected_frame): Ditto.
9145 (restore_inferior_status): Ditto.
9146 * breakpoint.c (insert_breakpoints): Ditto.
9147 (watchpoint_check): Ditto.
9148 (bpstat_stop_status): Ditto.
9149 (do_enable_breakpoint): Ditto.
9150 * blockframe.c (flush_cached_frames): Ditto.
9151 (reinit_frame_cache): Ditto.
9152
71d6c7b1
AC
91532002-05-04 Andrew Cagney <ac131313@redhat.com>
9154
9155 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9156 maintainer.
9157
cda6c68a
JB
91582002-05-04 Jim Blandy <jimb@redhat.com>
9159
9160 * gdbtypes.c (replace_type): Doc fix.
9161
5c1c87f0
AC
91622002-05-04 Andrew Cagney <ac131313@redhat.com>
9163
9164 * valprint.c (strcat_longest): Delete commented out function.
9165 Update copyright.
9166
cd9bfe15
AC
91672002-05-04 Andrew Cagney <ac131313@redhat.com>
9168
9169 * MAINTAINERS: Mark a29k as deleted.
9170 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9171 Move new configurations to the top.
9172 * configure.tgt: Remove a29k.
9173 * config/a29k/tm-vx29k.h: Delete.
9174 * config/a29k/vx29k.mt: Delete.
9175 * config/a29k/tm-a29k.h: Delete.
9176 * config/a29k/a29k-udi.mt: Delete.
9177 * config/a29k/a29k.mt: Delete.
9178 * a29k-tdep.c: Delete.
9179 * remote-udi.c: Delete.
9180 * remote-mm.c: Delete.
9181 * remote-eb.c: Delete.
9182 * remote-adapt.c: Delete.
9183 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
9184 * config/s390/s390x.mt: Ditto.
9185 * config/s390/s390.mt: Ditto.
9186 * config/sparc/sparclynx.mh: Ditto.
9187 * config/sparc/linux.mh: Ditto.
9188 * config/pa/hppaosf.mh: Ditto.
9189 * config/pa/hppabsd.mh: Ditto.
9190 * config/ns32k/nbsd.mt: Ditto.
9191 * config/mips/vr5000.mt: Ditto.
9192 * config/m68k/sun3os4.mh: Ditto.
9193 * config/m68k/nbsd.mt: Ditto.
9194 * config/m68k/m68klynx.mh: Ditto.
9195 * config/m32r/m32r.mt: Ditto.
9196 * config/i386/x86-64linux.mt: Ditto.
9197 * config/i386/nbsdelf.mt: Ditto.
9198 * config/i386/nbsd.mt: Ditto.
9199 * config/i386/i386lynx.mh: Ditto.
9200
bf0c5130
AC
92012002-05-04 Andrew Cagney <ac131313@redhat.com>
9202
9203 * target.c (debug_print_register): New function. Handle oversize
9204 registers.
9205 (debug_to_fetch_registers): Call.
9206 (debug_to_store_registers): Call.
9207
2ae1c2d2
JB
92082002-05-03 Jim Blandy <jimb@redhat.com>
9209
13a393b0
JB
9210 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9211 (read_type): Doc fix.
9212 * gdbtypes.c (replace_type): Doc fix.
9213
2ae1c2d2
JB
9214 * stabsread.c (multiply_defined_struct): New complaint.
9215 (read_struct_type): If the type we were passed isn't empty, or
9216 incomplete, don't read the new struct type into it; complain,
9217 and return the original type unchanged. Take a new `type_code'
9218 argument, which is the type code for the new type.
9219 (read_type): Rather than storing the type's type code here, pass
9220 it as an argument to read_struct_type, and let that take care of
9221 storing it. That way, we don't overwrite the original type code,
9222 so read_struct_type can use it to decide whether we're overwriting
9223 something we shouldn't.
9224 (complain_about_struct_wipeout): New function.
9225
8de9bdc4
AC
92262002-05-03 Andrew Cagney <ac131313@redhat.com>
9227
9228 * gdbarch.sh: Assert that gdbarch is non-NULL.
9229 * gdbarch.c: Regenerate.
9230
f773fdbb
JM
92312002-05-03 Jason Merrill <jason@redhat.com>
9232
9233 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9234 and return NULL.
9235
0e04a514
ML
92362002-05-03 Michal Ludvig <mludvig@suse.cz>
9237
9238 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9239 (x86_64_dwarf2gdb_regno_map_length),
9240 (x86_64_dwarf2_reg_to_regnum): Added.
9241 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9242 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9243 (_initialize_x86_64_tdep): Synced with the change above.
9244 (x86_64_skip_prologue): Reformulated message.
9245
065432a8
PM
92462002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9247
9248 * f-exp.y: Also use new prev_lexptr variable
9249 to improve error reporting. Based on Michael Snyder
9250 2002-04-24 dated patch to c-exp.y.
9251 * jv-exp.y: Likewise.
9252 * m2-exp.y: Likewise.
9253
a3162708
EZ
92542002-05-02 Elena Zannoni <ezannoni@redhat.com>
9255
9256 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9257 we are dealing with vectors.
9258
03620c38
PM
92592002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9260
9261 * config/m68k/tm-nbsd.h: Obvious fix,
9262 correct machine name.
9263
6604db2e
PM
92642002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9265
9266 * p-typeprint.c (pascal_type_print_base): Add support
9267 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9268
0906b739
PM
92692002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9270
9271 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9272 for fondamental pascal 'char' type.
9273
e2625b33
PM
92742002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9275
9276 * p-lang.h (is_pascal_string_type): Declaration changed,
9277 new sixth argument of type char ** added.
361d1df0 9278 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
9279 changed. Args length_pos, length_size, string_pos, char_size
9280 can now be NULL. New argument arrayname set to the field
9281 name of the char array. Return value set to char array
9282 field index plus one.
361d1df0 9283 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
9284 is_pascal_string_type function.
9285
cf17c188
AC
92862002-05-02 Andrew Cagney <cagney@redhat.com>
9287
9288 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9289 <cagney@redhat.com> change.
9290 * gdbarch.c: Regenerate.
9291
52bca491
AC
92922002-05-02 Andrew Cagney <cagney@redhat.com>
9293
9294 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9295 before probing for a new one. Detect errorenous gdbarch_init
9296 functions.
9297 * gdbarch.c: Regenerate.
9298
d5e72505
AC
92992002-05-01 Andrew Cagney <cagney@redhat.com>
9300
9301 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9302 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9303 * config/v850/tm-v850.h: Ditto. Update copyright.
9304
af566d9f
AC
93052002-04-30 Andrew Cagney <ac131313@redhat.com>
9306
9307 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9308 current_gdbarch.
9309
880d85fa
MS
93102002-04-30 Michael Snyder <msnyder@redhat.com>
9311
94c30b78
MS
9312 * arm-tdep.c: Whitespace clean-ups.
9313 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
9314 should have been removed as part of 4/24 change.
9315
6f5987a6
KB
93162002-04-30 Kevin Buettner <kevinb@redhat.com>
9317
9318 * rs6000-tdep.c: Added comment describing how fpscr register
9319 numbers were chosen.
9320
1a113c93
MS
93212002-04-30 Michael Snyder <msnyder@redhat.com>
9322
9323 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9324
9a6f53fe
EZ
93252002-04-29 Elena Zannoni <ezannoni@redhat.com>
9326
9327 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9328 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9329 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9330
11ed25ac
KB
93312002-04-29 Kevin Buettner <kevinb@redhat.com>
9332
9333 From Louis Hamilton <hamilton@redhat.com>:
9334 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9335 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9336 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9337 not bfd-private xcoff data, to determine wordsize.
9338 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9339
ae232405
AC
93402002-04-29 Andrew Cagney <ac131313@redhat.com>
9341
9342 GDB 5.2 released from 5.2 branch.
9343
91fd20f7
ML
93442002-04-29 Michal Ludvig <mludvig@suse.cz>
9345
9346 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9347 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9348 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 9349
2dc5091b
EZ
93502002-04-29 Elena Zannoni <ezannoni@redhat.com>
9351
9352 * rs6000-tdep.c (rs6000_extract_return_value,
9353 rs6000_store_return_value): Handle returning vectors.
9354 (rs6000_gdbarch_init): Use
9355 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9356 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9357 New function.
9358 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9359 vectors.
9360 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9361 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 9362
2b9848d8
PM
93632002-04-24 Pierre Muller <ics.u-strasbg.fr>
9364
9365 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 9366 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
9367 with fprintf_unfiltered (gdb_stderr,...).
9368
f8d17dc5
PM
93692002-04-24 Pierre Muller <ics.u-strasbg.fr>
9370
9371 * remote-array.c (printf_monitor, write_monitor,
361d1df0 9372 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
9373 Replace fprintf (stderr,...
9374 with fprintf_unfiltered (gdb_stderr,....
9375 * remote-es.c: Likewise.
9376 * remote-os9k.c: Likewise.
9377 * remote-st.c: Likewise.
9378
2f2f1ad1
AS
93792002-04-28 Andreas Schwab <schwab@suse.de>
9380
9381 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9382 linux-proc.o and gcore.o.
9383
b6779aa2
AC
93842002-04-26 Michal Ludvig <mludvig@suse.cz>
9385
9386 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9387 code without frame pointers.
9388
7e57f5f4
AC
93892002-04-26 Andrew Cagney <ac131313@redhat.com>
9390
9391 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9392 ON_STACK is needed.
9393
2ceb85d0
BE
93942002-04-26 Ben Elliston <bje@redhat.com>
9395
9396 * target.c (do_xfer_memory): Correct reference to the new option
9397 "trust-readonly-sections".
9398
f5f8a009
EZ
93992002-04-26 Elena Zannoni <ezannoni@redhat.com>
9400
9401 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9402 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9403 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9404 vectors.
9405 (read_array_type): Record the fact that this array type is really a
9406 vector (i.e. are passed in by value).
9407
5868c862
JT
94082002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9409
9410 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9411 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9412 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9413 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9414 * alpha-linux-tdep.c: Include frame.h.
9415 (alpha_linux_sigcontext_addr): New function.
9416 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9417 alpha_linux_sigcontext_addr.
9418 * alpha-osf1-tdep.c: Include gdbcore.h.
9419 (alpha_osf1_sigcontext_addr): New function.
9420 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9421 alpha_osf1_sigcontext_addr.
9422 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9423 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9424
bfb01f37
AC
94252002-04-26 Andrew Cagney <ac131313@redhat.com>
9426
361d1df0 9427 * stack.c (selected_frame_level):
bfb01f37
AC
9428 (select_frame): Do not set selected_frame_level.
9429 * frame.h (selected_frame_level): Delete declaration.
9430
15813d3f
AC
94312002-04-26 Andrew Cagney <ac131313@redhat.com>
9432
9433 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9434 convert_from_func_ptr-addr when AIX / PowerOpen.
9435
6096c27a
AC
94362002-04-25 Andrew Cagney <ac131313@redhat.com>
9437
9438 * valops.c (hand_function_call): Call
9439 generic_save_call_dummy_addr.
9440 * frame.h (generic_save_call_dummy_addr): Declare.
9441 * blockframe.c (struct dummy_frame): Add fields call_lo and
9442 call_hi.
9443 (generic_find_dummy_frame): Check for PC in range call_lo to
9444 call_hi instead of entry_point_address.
9445 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9446 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9447 (generic_save_call_dummy_addr): New function.
9448
f510d44e
DM
94492002-04-24 David S. Miller <davem@redhat.com>
9450
9451 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9452 sparc_skip_prologue.
9453 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9454 information to find prologue when possible.
9455 (sparc_prologue_frameless_p): Call examine_prologue directly.
9456 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9457 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9458 second argument.
9459 (SKIP_PROLOGUE): Likewise.
9460
15d72a92
JT
94612002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9462
9463 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9464 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9465 indicate that the condition it was testing is always true.
9466 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9467 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9468 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9469
accc6d1f
JT
94702002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9471
9472 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9473 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9474 tdep->jb_pc and tdep->jb_elt_size.
9475 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9476 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9477 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9478 * alpha-nat.c (get_longjmp_target): Remove.
9479 (JB_ELEMENT_SIZE): Ditto.
9480 (JB_PC): Ditto.
9481 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9482 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9483 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9484 to alpha_get_longjmp_target.
9485 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9486 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9487 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9488
1bfdc549
AC
94892002-04-25 Andrew Cagney <ac131313@redhat.com>
9490
9491 * README: Update to GDB 5.2.
9492
1bd316f0
AC
94932002-04-25 Andrew Cagney <ac131313@redhat.com>
9494
9495 * gdbarch.sh (LC_ALL): Set to `c'.
9496
2e5ff58c
TR
94972002-04-25 Theodore A. Roth <troth@verinet.com>
9498
9499 * avr-tdep.c: Ran through gdb_indent.sh.
9500
e33ce519
TR
95012002-04-25 Theodore A. Roth <troth@verinet.com>
9502
9503 * MAINTAINERS: Add myself as AVR maintainer.
9504 * NEWS: Note new target avr.
9505
8818c391
TR
95062002-04-25 Theodore A. Roth <troth@verinet.com>
9507
9508 * Makefile.in: Add support for AVR target.
9509 * configure.tgt: Add support for AVR target.
9510 * avr-tdep.c: New file
9511 * config/avr/avr.mt: New file.
9512
79509c2d
TR
95132002-04-25 Theodore A. Roth <troth@verinet.com>
9514
9515 * MAINTAINERS: Add myself to write-after-approval.
9516
dac8068e
PM
95172002-04-24 Pierre Muller <ics.u-strasbg.fr>
9518
9519 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9520 with fprintf_unfiltered (gdb_stderr,....
9521
25bf3106
PM
95222002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9523
9524 Fix PR gdb/508.
9525 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9526
24467a86
PM
95272002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9528
9529 * p-exp.y: Also use new prev_lexptr variable
9530 to improve error reporting. Based on Michael Snyder
9531 2002-04-24 dated patch to c-exp.y.
9532
95b80706
JT
95332002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9534
9535 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9536 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9537 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9538 to 0.
9539 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9540 and struct value.
9541 (FUNCTION_START_OFFSET): Remove.
9542 (BREAKPOINT): Ditto.
9543
e90cc612
JT
95442002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9545
9546 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9547 * NEWS: Ditto.
9548
6c72f9f9
JT
95492002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9550
9551 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9552 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9553 alpha_linux_pc_in_sigtramp.
9554 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9555 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9556 alpha_osf1_pc_in_sigtramp.
9557 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9558 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9559 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9560 alphafbsd_pc_in_sigtramp.
9561 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9562 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9563 alphanbsd_pc_in_sigtramp.
9564 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9565 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9566
5e4f3379
JT
95672002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9568
9569 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9570
da8ca43d
JT
95712002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9572
9573 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9574 alphanbsd-tdep.c.
9575 (alphanbsd-nat.o): New dependency list.
9576 (alphanbsd-tdep.o): Ditto.
9577 * NEWS: Note new native NetBSD/alpha configuration.
9578 * alphanbsd-nat.c: New file.
9579 * alphanbsd-tdep.c: Ditto.
9580 * configure.host (alpha*-*-netbsd*): New host.
9581 * configure.tgt (alpha*-*-netbsd*): New target.
9582 * config/alpha/nbsd.mh: New file.
9583 * config/alpha/nbsd.mt: Ditto.
9584 * config/alpha/nm-nbsd.h: Ditto.
9585 * config/alpha/tm-nbsd.h: Ditto.
9586
36a6271d
JT
95872002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9588
9589 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9590 (alpha-osf1-tdep.o): New dependency list.
9591 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9592 and skip_sigtramp_frame members.
9593 * alpha-linux-tdep.c: Include gdbcore.h.
9594 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9595 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9596 * alpha-osf1-tdep.c: New file.
9597 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9598 alpha-osf1-dep.c.
9599 (alpha_frame_past_sigtramp_frame): New function.
9600 (alpha_dynamic_sigtramp_offset): Ditto.
9601 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9602 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9603 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9604 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9605 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9606 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9607 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9608 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9609 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9610 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9611 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9612 to find_solib_trampoline_target.
9613 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9614 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9615 (SKIP_TRAMPOLINE_CODE): Remove.
9616 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9617 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9618 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9619 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9620 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9621 (PROC_SIGTRAMP_MAGIC): Ditto.
9622 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9623 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9624 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9625 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9626 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9627
2f4bc57b
JT
96282002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9629
9630 * NEWS: Note that Alpha targets are now multi-arch.
9631
665132f9
MS
96322002-04-24 Michael Snyder <msnyder@redhat.com>
9633
9634 * parser-defs.h (prev_lexptr): New external variable.
9635 * parse.c (parse_exp_1): Set prev_lexptr to null before
9636 calling the language-specific parser.
9637 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9638 (yyerror): Use prev_lexptr in error reporting.
9639
32872fa7
DJ
96402002-04-24 Daniel Jacobowitz <drow@mvista.com>
9641
9642 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9643 * gregset.h: If FILL_FPXREGSET is defined, provide
9644 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9645 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9646 is defined, call fill_fpxregset.
9647
57e76fac
MS
96482002-04-24 Roland McGrath <roland@frob.com>
9649
9650 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9651 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9652 (supply_gregset, supply_fpregset): New functions.
9653
9654 * gnu-nat.c (gnu_find_memory_regions): New function.
9655 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9656 (gnu_xfer_memory): Add a cast.
9657
f43845b3
MS
96582002-04-24 Michael Snyder <msnyder@redhat.com>
9659
361d1df0 9660 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9661 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9662 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9663 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9664 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9665 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9666
a0abec03
AC
9667Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9668
9669 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9670 NUM_PSEUDO_REGS can be used.
9671
d7bd68ca
AC
96722002-04-24 Andrew Cagney <ac131313@redhat.com>
9673
9674 * arch-utils.h: Update copyright.
9675
9676 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9677 * gdbarch.h, gdbarch.c: Re-generate.
9678
9679 * inferior.h (IN_SIGTRAMP): Delete definition.
9680 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9681 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9682
9683 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9684 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9685 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9686 (find_proc_framesize): Ditto.
9687 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9688 (alpha_init_extra_frame_info): Ditto.
9689 * infrun.c (handle_inferior_event): Ditto.
9690 (handle_inferior_event): Ditto.
9691 (check_sigtramp2): Ditto.
9692 * blockframe.c (create_new_frame): Ditto.
9693 (get_prev_frame): Ditto.
9694 * ppc-linux-tdep.c: Update comments.
9695 * i386-linux-tdep.c: Update comments.
9696 * breakpoint.c (bpstat_what): Update comment.
9697
4867e41e
DM
96982002-04-24 David S. Miller <davem@redhat.com>
9699
21d83aa5
DM
9700 * i960-tdep.c (register_in_window_p): New function.
9701 (i960_find_saved_register): Use it instead of
9702 REGISTER_IN_WINDOW_P.
9703 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9704
4867e41e
DM
9705 * symtab.h (find_stab_function_addr): Kill extern.
9706 * minsyms.c (find_stab_function_addr): Remove from here...
9707 * dbxread.c: ... to here, and mark it static.
9708
69cdf6a2
DM
97092002-04-20 David S. Miller <davem@redhat.com>
9710
9711 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9712 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9713
5a595886
DM
97142002-04-21 David S. Miller <davem@redhat.com>
9715
9716 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9717 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9718 (vx_write_register): Likewise.
9719
1da1a192
JB
97202002-04-23 J. Brobecker <brobecker@gnat.com>
9721
9722 * source.c (is_regular_file): New function.
9723 (openp): Check wether file to open is a regular file
9724 to avoid opening directories.
9725
baa6f10b
JT
97262002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9727
9728 * findvar.c (extract_signed_integer): Cast printf argument
9729 to suppress format warning.
9730 (extract_unsigned_integer): Likewise.
9731 * infcmd.c (registers_info): Likewise.
9732 * top.c (get_prompt_1): Likewise.
9733 * valops.c (value_assign): Likewise.
9734 * valprint.c (print_decimal): Likewise.
9735
b2c4da81
L
97362002-04-22 H.J. Lu (hjl@gnu.org)
9737
9738 * c-exp.y (typebase): Support
361d1df0 9739
b2c4da81
L
9740 [long|long long|short] [signed|unsigned] [int|]
9741
9742 and
9743
9744 signed [long|long long|short] int
9745
f267bd6a
JT
97462002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9747
9748 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9749 and vax-tdep.h.
9750 * vax-tdep.h: New file.
9751 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9752 Make several routines static.
9753 (vax_get_saved_register): New function.
9754 (vax_gdbarch_init): New function.
9755 (_initialize_vax_tdep): Register vax_gdbarch_init.
9756 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9757 Remove macros now under the control of gdbarch.
9758
da3c6d4a
MS
97592002-04-22 Michael Snyder <msnyder@redhat.com>
9760
11d3b27d
MS
9761 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9762 Some whitespace and coding standards tweaks.
da3c6d4a 9763
a33f7558
JT
97642002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9765
9766 * vax-tdep.c: Include regcache.h.
9767 (vax_call_dummy_words): New.
9768 (sizeof_vax_call_dummy_words): New.
9769 (vax_fix_call_dummy): New function.
9770 (vax_saved_pc_after_call): Ditto.
9771 * config/vax/tm-vax.h: Don't include regcache.h.
9772 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9773 (CALL_DUMMY): Remove.
9774 (CALL_DUMMY_WORDS): Define.
9775 (SIZEOF_CALL_DUMMY_WORDS): Define.
9776 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9777
47a73475
MS
97782002-04-18 Michael Snyder <msnyder@redhat.com>
9779
9780 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9781
52efde73
JT
97822002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9783
9784 * vax-tdep.c (vax_frame_chain): New function.
9785 (vax_push_dummy_frame): Ditto.
9786 (vax_pop_frame): Ditto.
9787 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9788 (FRAMELESS_FUNCTION_INVOCATION): Use
9789 generic_frameless_function_invocation_not.
9790 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9791 (POP_FRAME): Use vax_pop_frame.
9792
ea74468c
JT
97932002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9794
9795 * vax-tdep.c (vax_store_struct_return): New function.
9796 (vax_extract_return_value): Ditto.
9797 (vax_store_return_value): Ditto.
9798 (vax_extract_struct_value_address): Ditto.
9799 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9800 vax_store_struct_return.
9801 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9802 (STORE_RETURN_VALUE): Use vax_store_return_value.
9803 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9804
5516aa92
JT
98052002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9806
9807 * vax-tdep.c (vax_frame_saved_pc): New function.
9808 (vax_frame_args_address_correct): Ditto.
9809 (vax_frame_args_address): Ditto.
9810 (vax_frame_locals_address): Ditto.
9811 (vax_frame_num_args): Move code to be in proximity to
9812 other frame-related functions.
9813 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9814 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9815 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9816 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9817 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9818
36af0b35
L
98192002-04-22 H.J. Lu (hjl@gnu.org)
9820
9821 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9822 includedir.
9823
ab62c900
JT
98242002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9825
9826 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9827 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9828 (FRAME_INIT_SAVED_REGS): New macro.
9829
7232b100
JT
98302002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9831
9832 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9833
b70d2aee
JT
98342002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9835
9836 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9837 where needed.
9838 (fetch_osf_core_registers): Likewise.
9839 (supply_gregset): Likewise.
9840
a0e8a2d1 98412002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 9842
a0e8a2d1
JB
9843 * symfile.h (get_section_index): Define.
9844 * symfile.c (get_section_index): New function.
9845 * mdebugread.c (SC_IS_SBSS): New macro.
9846 (SC_IS_BSS): Return true for the scBss storage class only, as
9847 the scSBss storage class refers to the .sbss section.
9848 (parse_partial_symbols): Discard the symbols which associated
9849 section does not exist.
9850 Make sure to use the .sbss section index for symbols which
9851 storage class is scBss, rather than using the .bss section index.
9852
51eb8b08
JT
98532002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9854
9855 * vax-tdep.c: Update copyright years.
9856 (vax_register_name): New function.
9857 (vax_register_byte): Ditto.
9858 (vax_register_raw_size): Ditto.
9859 (vax_register_virtual_size): Ditto.
9860 (vax_register_virtual_type): Ditto.
9861 * config/vax/tm-vax.h: Update copyright years.
9862 (REGISTER_NAMES): Remove.
9863 (REGISTER_NAME): Define.
9864 (REGISTER_BYTE): Use vax_register_byte.
9865 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9866 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9867 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9868
6cc1c0a8
AC
98692002-04-21 Andrew Cagney <ac131313@redhat.com>
9870
9871 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9872 declaration
9873 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9874
9319a2fe
DM
98752002-04-21 David S. Miller <davem@redhat.com>
9876
9877 * arch-utils.c (generic_prologue_frameless_p): Kill
9878 SKIP_PROLOGUE_FRAMELESS_P code.
9879 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9880 references.
9881 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9882 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9883 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9884 references.
9885 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9886 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9887 (sparc_gdbarch_init): Pass it to
9888 set_gdbarch_prologue_frameless_p.
a0e8a2d1 9889
e9ed6d01
JT
98902002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9891
9892 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9893 (alphabsd-nat.o): New dependency list.
9894
36012033
JT
98952002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9896
9897 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9898 alphafbsd-tdep.c.
9899 (alpha-linux-tdep.o): New dependency list.
9900 (alphafbsd-tdep.o): Likewise.
9901
3379287a
JT
99022002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9903
9904 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9905 to here...
9906 * alpha-tdep.c: ...from here.
9907 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9908
4bcbd6cb
JT
99092002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9910
9911 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9912 prototype from here...
9913 * alpha-tdep.h: ...to here.
9914
b31da25e
AC
99152002-04-21 Andrew Cagney <ac131313@redhat.com>
9916
9917 * frame.h (selected_frame_level): Document as deprecated.
9918 (frame_relative_level): Declare.
9919 * stack.c (frame_relative_level): New function.
9920 (selected_frame_level): Document as deprecated.
9921 (select_frame): Do not set the selected_frame_level.
9922
9923 * stack.c (frame_info, record_selected_frame): Update.
9924 (frame_command, current_frame_command): Update.
9925 (up_silently_base, up_command, down_silently_base): Update.
9926 (down_command): Update.
9927 * inflow.c (kill_command): Update.
9928 * tracepoint.c (finish_tfind_command): Update.
9929 * corelow.c (core_open): Update.
9930 * thread.c (info_threads_command): Update.
9931 (do_captured_thread_select): Update.
9932 * infcmd.c (finish_command): Update.
9933 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9934
9c1d6fe5
JT
99352002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9936
9937 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9938
ab89facf
AC
99392002-04-21 Andrew Cagney <ac131313@redhat.com>
9940
9941 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9942 type const.
9943
82a4efa1
JT
99442002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9945
9946 * alphafbsd-tdep.c: Update copyright years. Include
9947 alpha-tdep.h.
9948 (alphafbsd_use_struct_convention): Make static.
9949 (alphafbsd_init_abi): New function.
9950 (_initialize_alphafbsd_tdep): New function.
9951 * config/alpha/tm-fbsd.h: Update copyright years.
9952 (USE_STRUCT_CONVENTION): Remove.
9953
44dffaac
JT
99542002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9955
9956 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9957 an Alpha ABI variant.
9958 (alpha_abi_handler_list): Declare.
9959 (alpha_gdbarch_register_os_abi): New function.
9960 (alpha_gdbarch_init): Give registered ABI variant handlers a
9961 chance to tweak the gdbarch once we have set up defaults.
9962 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9963
65585be4
JT
99642002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9965
9966 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9967 to standard_coerce_float_to_double.
9968 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9969
d9b023cc
JT
99702002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9971
9972 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9973 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9974 from gdbarch_tdep rather than a constant.
9975 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9976 the default text address for all Alpha Unix ABIs.
9977 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9978 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9979
dc129d82
JT
99802002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9981
9982 * alpha-tdep.h: New file. Includes several Alpha target constants
9983 taken from...
9984 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9985 let gdbarch deal with.
9986 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9987 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9988 to dependency list.
9989 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9990 Alpha target register names.
9991 * alphabsd-nat.c: Likewise.
9992 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9993 Alpha target register names. Make serveral routines static.
9994 (alpha_get_saved_register): New function.
9995 (alpha_abi_names): New.
9996 (process_note_abi_tag_sections): New function.
9997 (get_elfosabi): New function.
9998 (alpha_gdbarch_init): New function.
9999 (alpha_dump_tdep): New function.
10000 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10001
d49d1e0a
AC
100022002-04-21 Andrew Cagney <ac131313@redhat.com>
10003
10004 * frame.c (find_saved_register): Delete #ifdef
10005 HAVE_REGISTER_WINDOWS code.
10006 * config/sparc/tm-sparc.h: Update comments.
10007 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10008
92e8c9ed
AC
100092002-04-21 Andrew Cagney <ac131313@redhat.com>
10010
10011 * i960-tdep.c (i960_find_saved_register): New function.
10012 (i960_get_saved_register): New function.
10013 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10014 (i960_get_saved_register): Declare.
10015 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10016
e1925118
DM
100172002-04-20 David S. Miller <davem@redhat.com>
10018
10019 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10020
29673b29
AC
100212002-04-20 Andrew Cagney <ac131313@redhat.com>
10022
10023 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10024 instead of NUM_PSEUDO_REGS.
10025
6c86dcd5
DM
100262002-04-20 David S. Miller <davem@redhat.com>
10027
10028 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10029 GDB_MULTI_ARCH_PARTIAL
10030 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10031 define, let tm-sp64.h do it.
10032
aa40ec90
JT
100332002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10034
10035 * frame.c (find_saved_register): Avoid a NULL pointer
10036 dereference and actually walk the frame list.
10037
0f79675b
AC
100382002-04-20 Andrew Cagney <ac131313@redhat.com>
10039
10040 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10041 sorted in most most-recent-used order. Document.
10042 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10043
f91305dd 100442002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
10045
10046 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10047 instead of ->prev.
10048 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10049 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10050 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10051 instead of ->prev.
10052
73d322b1
EZ
100532002-04-19 Elena Zannoni <ezannoni@redhat.com>
10054
10055 Fix PR gdb/471.
10056 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10057 (build_builtin_type_vec128): Ditto.
10058 (append_composite_type_field): Fix calculation of type length in
10059 union case.
10060
ccd9a834
EZ
100612002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10062
10063 * config/djgpp/README: Update.
10064
10065 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10066 compiler warnings.
10067
a57f9e49
JT
100682002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10069
10070 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10071 (alpha_setup_arbitrary_frame): ...to this.
10072 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10073 for alpha_setup_arbitrary_frame.
10074
f4f9705a
AC
100752002-04-18 Andrew Cagney <cagney@redhat.com>
10076
10077 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10078 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10079
f4f9705a
AC
10080 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10081 * target.h (memory_breakpoint_from_pc): Update declaration.
10082 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10083
10084 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10085 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10086 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10087 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10088 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10089 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10090 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10091 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10092 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10093 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10094 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10095 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10096
10097 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10098 const pointer.
10099 * monitor.c (monitor_insert_breakpoint): Ditto.
10100 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10101
10102 * config/mcore/tm-mcore.h: Update copyright.
10103 * mem-break.c: Ditto.
10104 * xstormy16-tdep.c: Ditto.
10105
29f319b8
PM
101062002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10107
10108 * p-exp.y: Add precedence rule for '^' token.
10109 This removes the shift/reduce conflicts.
10110 Remove the comment concerning these shift/reduce conflicts.
10111
ebeac11a
EZ
101122002-04-18 Elena Zannoni <ezannoni@redhat.com>
10113
10114 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10115 (registers_powerpc_nofp): New register set for processors
10116 without floating point unit.
10117
27c31547
DM
101182002-04-18 David S. Miller <davem@redhat.com>
10119
10120 * MAINTAINERS: Add myself to write-after-approval.
10121
47a73475
MS
101222002-04-17 Michael Snyder <msnyder@redhat.com>
10123
10124 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10125
953836b2
AC
101262002-04-17 Andrew Cagney <ac131313@redhat.com>
10127
10128 * rs6000-tdep.c (frame_initial_stack_address): Use
10129 frame_register_read to read the alloca_reg.
10130
8b0d4340
AC
101312002-04-17 Andrew Cagney <ac131313@redhat.com>
10132
10133 * frame.c (find_saved_register): Find saved registers in the next
10134 not prev frame.
10135 Fix PR gdb/365.
10136
d8864532
AC
101372002-04-17 Andrew Cagney <ac131313@redhat.com>
10138
10139 * gdbarch.sh (LANG): Set to ``c''.
10140
36cc83a3 101412002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 10142
36cc83a3 10143 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 10144
2f4150cc 101452002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
10146
10147 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10148 Update copyright.
10149
628703c6 10150 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 10151 Also fix PR gdb/391.
361d1df0 10152
56157b4a
AC
101532002-04-14 Andrew Cagney <ac131313@redhat.com>
10154
10155 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10156 * aclocal.m4, configure: Re-generate.
10157 Fix PR gdb/391.
361d1df0 10158
6d1e3329
EZ
101592002-04-14 Elena Zannoni <ezannoni@redhat.com>
10160
10161 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10162 instead of tm_print_insn.
10163
cb06fa07
EZ
101642002-04-14 Elena Zannoni <ezannoni@redhat.com>
10165
10166 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10167
f208ba17
AC
101682002-04-14 Andrew Cagney <ac131313@redhat.com>
10169
10170 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10171 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10172 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10173
20f01a46
DH
101742002-04-12 Don Howard <dhoward@redhat.com>
10175
10176 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10177 max_user_call_depth.
10178 (init_cmd_lists): Initialize the new value;
10179 * cli/cli-script.c (execute_user_command): Limit the call depth of
10180 user defined commands. This avoids a core-dump when user commands
10181 are infinitly recursive.
10182
a88376a3
KB
101832002-04-12 Kevin Buettner <kevinb@redhat.com>
10184
10185 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10186 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10187 from tdep struct instead of DEFAULT_LR_SAVE.
10188 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10189 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10190 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10191
f2172603
MS
101922002-04-12 Michael Snyder <msnyder@redhat.com>
10193
694f61fb 10194 * Remote.c: Spelling fix.
20fe79c8
MS
10195 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10196 If no symbol found for "sbrk", try "_sbrk".
10197 (make_output_phdrs): Use bfd_section_name.
10198 (gcore_copy_callback): Use bfd_section_name.
62995fc4 10199 * eval.c: Indentation fix-ups.
169a7369
MS
10200 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10201 in case it gets applied to an address that is already
10202 in the instruction space.
de74f71f
MS
10203 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10204 * symfile.c: Fix indentation, long lines.
f2172603
MS
10205 * source.c: White space fix-up.
10206
cda5a58a
AC
102072002-04-12 Andrew Cagney <cagney@redhat.com>
10208
10209 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10210 * frame.c (frame_register_read): New function. Return non-zero on
10211 success.
10212 (read_relative_register_raw_bytes_for_frame): Delete.
10213 (read_relative_register_raw_bytes): Delete.
10214 * frame.h (frame_register_read): Declare.
10215 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10216 * sh-tdep.c: Ditto.
10217 * infcmd.c (do_registers_info): Ditto.
10218 * hppa-tdep.c: Ditto.
10219 * rs6000-tdep.c: Ditto.
10220 * h8500-tdep.c: Ditto.
10221 * mips-tdep.c: Ditto.
10222 * h8300-tdep.c: Ditto.
10223 * z8k-tdep.c: Ditto.
10224
2ea5f656
KB
102252002-04-12 Kevin Buettner <kevinb@redhat.com>
10226
10227 From Jimi X <jimix@watson.ibm.com>:
10228 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10229 64-bit SysV ABI.
10230
27b15785
KB
102312002-04-12 Kevin Buettner <kevinb@redhat.com>
10232
10233 From Jimi X <jimix@watson.ibm.com>:
10234 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10235 bfd info.
10236
5d57ee30
KB
102372002-04-12 Kevin Buettner <kevinb@redhat.com>
10238
10239 From Jimi X <jimix@watson.ibm.com>:
10240 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10241 register sets for these processor variants.
10242
bc1e36ca
DJ
102432002-04-11 Daniel Jacobowitz <drow@mvista.com>
10244
bc1e36ca
DJ
10245 * regformats/reg-ppc.dat: Support FPSCR.
10246
e3f36dbd
KB
102472002-04-11 Kevin Buettner <kevinb@redhat.com>
10248
10249 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10250 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10251 Add fpscr as an invalid/unfetchable register.
10252 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10253 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10254 (fill_fpregset): Add support for register fpscr.
10255 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10256 (fill_gregset): Account for the fact that register ``mq'' might
10257 not exist.
10258 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10259 (registers_power): Add fpscr to register set at slot 71.
10260 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10261 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10262
943c9c25
MS
102632002-04-11 Michael Snyder <msnyder@redhat.com>
10264
10265 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10266 * configure: Regenerate.
10267 * config.in: Regenerate.
10268 * acconfig.h: Add define for _SYSCALL32.
10269 * core-sol2.c: Remove #define _SYSCALL32.
10270 * solib-legacy.c: Remove #define _SYSCALL32.
10271
d8c0a2e7
AC
102722002-04-10 Andrew Cagney <ac131313@redhat.com>
10273
10274 * stack.c (select_frame): Cleanup internal error message, do not
10275 use %p.
10276
7cc19214
AC
102772002-04-10 Andrew Cagney <ac131313@redhat.com>
10278
10279 * stack.c (select_frame): Check that selected_frame and the
10280 specified level are as expected.
10281 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10282 Update copyright.
10283 * frame.h (struct frame_info): Add field `level'. Update
10284 copyright.
10285 Work-in-progress PR gdb/464.
10286
67a2b77e
AC
102872002-04-10 Andrew Cagney <ac131313@redhat.com>
10288
10289 * maint.c (maint_print_section_info): Rename print_section_info.
10290 (print_bfd_section_info, print_objfile_section_info): Update.
10291 * inferior.h (struct gdbarch): Add opaque declaration.
10292 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10293 * gdbarch.h: Regenerate.
10294
8cfda98c
ML
102952002-04-10 Michal Ludvig <mludvig@suse.cz>
10296
10297 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10298 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10299 (kernel_u_size): Added.
10300 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10301 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10302
ca439ad2 103032002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 10304
ca439ad2
JI
10305 * valarith.c (find_size_for_pointer_math): New function, either returns
10306 the size for a pointer's target, returns 1 for void *, or errors for
10307 incomplete types.
10308 (value_add, value_sub): use find_size_for_pointer_math.
10309
2f2893d9
DJ
103102002-04-09 Daniel Jacobowitz <drow@mvista.com>
10311
10312 * linux-low.c (linux_look_up_symbols): New hook.
10313 (linux_target_ops): Add linux_look_up_symbols.
10314 * remote-utils.c (decode_address): New function.
10315 (look_up_one_symbol): New function.
10316 * server.c (handle_query): Call target look_up_symbols hook.
10317 * server.h (look_up_one_symbol): Add prototype.
10318 * target.h (struct target_ops): Add look_up_symbols hook.
10319
96cb11df
AC
103202002-04-09 Andrew Cagney <ac131313@redhat.com>
10321
10322 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10323 override FP_REGNUM with frame->fp. Update copyright.
10324 * parse.c (num_std_regs, std_regs): Delete.
10325 (target_map_name_to_register): Do not search std_regs. Update
10326 function description.
10327 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10328 declarations. Update copyright.
10329 Fix PR gdb/251.
361d1df0 10330
97658e92
DJ
103312002-04-09 Daniel Jacobowitz <drow@mvista.com>
10332
10333 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10334 after the last symbol in a block.
10335
6044e3eb
PM
103362002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10337
10338 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10339 is non zero as a found symbol.
10340
0406ec40
AC
103412002-04-08 Andrew Cagney <ac131313@redhat.com>
10342
10343 * findvar.c: Include "builtin-regs.h".
10344 (value_of_register): Call value_of_builtin_reg when applicable.
10345 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10346 (target_map_name_to_register): Call
10347 builtin_reg_map_name_to_regnum.
10348 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10349 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10350 (builtin_regs_h): Define.
10351 (builtin-regs.o): New target.
10352 (findvar.o): Add $(builtin_regs_h).
10353 * builtin-regs.c, builtin-regs.h: New files.
10354 * std-regs.c: New file.
10355 Partial fix for PR gdb/251.
10356
56a6dfb9
KB
103572002-04-08 Kevin Buettner <kevinb@redhat.com>
10358
10359 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10360 it's no longer required.
10361
3a808432
AC
103622002-04-08 Andrew Cagney <ac131313@redhat.com>
10363
10364 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10365
7c40d541
KB
103662002-04-08 Kevin Buettner <kevinb@redhat.com>
10367
10368 From Jimi X <jimix@watson.ibm.com>:
10369 * rs6000-tdep.c (rs6000_software_single_step): Use
10370 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10371 and size. Use target_insert_breakpoint() and
10372 target_remove_breakpoint() to insert and remove breakpoints
10373 instead of explicit memory reads and writes.
10374
cc9836a8
KB
103752002-04-08 Kevin Buettner <kevinb@redhat.com>
10376
10377 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10378 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10379 ELF_OBJECT_FORMAT ifdef.
10380
7495d1dc
KB
103812002-04-08 Kevin Buettner <kevinb@redhat.com>
10382
10383 From Jimi X <jimix@watson.ibm.com>:
10384 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10385
4288e836
KB
103862002-04-08 Kevin Buettner <kevinb@redhat.com>
10387
10388 From Jimi X <jimix@watson.ibm.com>:
10389 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10390 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10391
a4e4e501
MK
103922002-04-07 Mark Kettenis <kettenis@gnu.org>
10393
10394 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10395 s/asprintf/xasprintf/.
10396 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10397
006defba
AC
103982002-04-07 Andrew Cagney <ac131313@redhat.com>
10399
10400 I believe Jeff Law denies responsability for this one:
10401 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10402 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10403 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10404 Work-around for PR gdb/366.
10405
7aa83cac
EZ
104062002-04-07 Elena Zannoni <ezannoni@redhat.com>
10407
10408 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10409 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10410 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10411
cf1fcca1
EZ
104122002-04-07 Elena Zannoni <ezannoni@redhat.com>
10413
10414 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10415 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10416 information.
10417
3f289e6f
AC
104182002-04-07 Andrew Cagney <ac131313@redhat.com>
10419
10420 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10421 maintainer.
10422
129188f6
AC
104232002-04-07 Andrew Cagney <ac131313@redhat.com>
10424
10425 * README (Reporting Bugs in GDB): Document the bug web page as the
10426 prefered way of submitting bugs.
10427 Fix PR gdb/402.
10428
1200cd6e
AC
104292002-04-06 Andrew Cagney <ac131313@redhat.com>
10430
10431 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10432 -1. Update comment.
10433 * gdbarch.h, gdbarch.c: Re-generate.
10434
2853c33c
AS
104352002-04-07 Andreas Schwab <schwab@suse.de>
10436
10437 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10438 buffer to regcache_collect.
10439
c2169756
AC
104402002-04-06 Andrew Cagney <ac131313@redhat.com>
10441
10442 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10443 * gdbarch.c, gdbarch.h: Re-generate.
10444
25f1b008
AC
104452002-04-06 Andrew Cagney <ac131313@redhat.com>
10446
10447 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10448 declaration. Fix -Werror.
10449
59263426
DJ
104502002-04-05 Daniel Jacobowitz <drow@mvista.com>
10451
10452 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10453 * gdbarch.c: Regenerate.
10454
f5db4da3
MS
104552002-04-05 Michael Snyder <msnyder@redhat.com>
10456
80f8a6eb
MS
10457 * breakpoint.c (clear_command): Rewrite middle section to
10458 combine two loops with identical control conditions.
10459 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10460 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10461
ad3dcc5c
L
104622002-04-05 H.J. Lu (hjl@gnu.org)
10463
10464 * solib-svr4.c (bkpt_names): Add "__start".
10465
f32e7a74
AC
104662002-04-04 Andrew Cagney <ac131313@redhat.com>
10467
10468 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10469 as test for 64 bit target.
10470
8227c0ff
AC
104712002-04-05 Andrew Cagney <ac131313@redhat.com>
10472
10473 * h8500-tdep.c (h8500_write_fp): Delete function.
10474 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10475 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10476 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10477 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10478 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10479 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10480 (s390_write_fp):
10481 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10482 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10483 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10484 (d10v_write_fp): Delete function.
10485 * inferior.h (write_fp, generic_target_write_fp): Delete
10486 declarations.
10487 * regcache.c (generic_target_write_fp): Delete function.
10488 (write_fp): Delete function.
10489 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10490 * gdbarch.h, gdbarch.c: Regenerate.
10491 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10492 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10493 (sparc64_write_fp): Delete declaration.
10494 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10495 (h8500_write_fp): Delete declaration.
10496
2757dd86
AC
104972002-04-04 Andrew Cagney <ac131313@redhat.com>
10498
10499 * sparc-tdep.c (sparc64_write_fp): Delete.
10500 (sparc_push_dummy_frame): Replace write_fp call with code to store
10501 the FP directly.
10502 (sparc_gdbarch_init): Do not initialize write_fp.
10503
c69255e1
KB
105042002-04-05 Kevin Buettner <kevinb@redhat.com>
10505
10506 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10507 clause.
10508
ae767bfb
JB
105092002-03-29 Jim Blandy <jimb@redhat.com>
10510
10511 * stack.c (get_selected_block): Add new argument `addr_in_block',
10512 used to return the exact code address we used to select the block,
10513 not just the block.
10514 * blockframe.c (get_frame_block, get_current_block): Same.
10515 * frame.h (get_frame_block, get_current_block,
10516 get_selected_block): Update declarations.
10517 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10518 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10519
84d2ac95
MS
105202002-04-05 Michael Snyder <msnyder@redhat.com>
10521
10522 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10523 warning message.
10524
596aa3bf
JB
105252002-04-05 J. Brobecker <brobecker@gnat.com>
10526
10527 * utils.c (xfullpath): New function.
10528 * defs.h (xfullpath): Add declaration.
10529 * source.c (openp): Use xfullpath in place of gdb_realpath to
10530 avoid resolving the basename part of filenames when the
10531 associated file is a symbolic link. This fixes a potential
10532 inconsistency between the filenames known to GDB and the
10533 filenames it prints in the annotations.
10534 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10535 to be able to match a filename with either the real filename, or
10536 the name of any symbolic link to this file.
10537 (lookup_partial_symtab): Ditto.
10538
c02f5703
MS
105392002-04-04 Michael Snyder <msnyder@redhat.com>
10540
10541 * breakpoint.c: Add support for hardware breakpoints in overlays.
10542 (overlay_events_enabled): New state variable.
10543 (insert_breakpoints): Use overlay_events_enabled to decide
10544 whether to attempt to set a breakpoint at the overlay load addr.
10545 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10546 (remove_breakpoint): Use overlay_events_enabled to decide
10547 whether breakpoints need to be removed from overlay load addr.
10548 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10549 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 10550 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
10551 disable_overlay_breakpoints): Update overlay_events_enabled.
10552
5fb290d7
DJ
105532002-04-04 Daniel Jacobowitz <drow@mvista.com>
10554
10555 * dwarf2read.c (struct function_range): New.
10556 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10557 (check_cu_functions): New.
10558 (read_file_scope): Initialize global function lists.
10559 Call dwarf_decode_line after processing children.
10560 (read_func_scope): Add to global function list.
10561 (dwarf_decode_lines): Call check_cu_functions everywhere
10562 record_line is called. Call record_line with a linenumber
10563 of 0 to mark sequence ends.
10564
7b3fabf0
ML
105652002-04-04 Michal Ludvig <mludvig@suse.cz>
10566
361d1df0 10567 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10568 change sync with glibc.
10569
bce58c09
JB
105702002-04-03 Jim Blandy <jimb@redhat.com>
10571
10572 * configure.in: Call AC_C_INLINE.
10573 * configure: Regenerated.
361d1df0 10574
2fccf04a
DJ
105752002-04-01 Daniel Jacobowitz <drow@mvista.com>
10576
10577 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10578 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10579
2d1bfe2e
MK
105802002-03-31 Mark Kettenis <kettenis@gnu.org>
10581
a5941fbf
MK
10582 * NEWS: Mention gcore support on FreeBSD/i386.
10583
a90cd31d
MK
10584 * fbsd-proc.c: New file.
10585 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10586 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10587
2d1bfe2e
MK
10588 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10589 while statement.
10590
9eb6e5a1
JB
105912002-03-29 Jim Blandy <jimb@redhat.com>
10592
10593 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10594 unescaped newlines in string literals, but newer ones don't. So
10595 escape them.
10596
f02df580
MS
105972002-03-26 Michael Snyder <msnyder@redhat.com>
10598 Andrew Cagney <cagney@redhat.com>
10599
361d1df0 10600 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10601 restore file to memory.
10602 * cli/cli-dump.h: New file.
10603 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10604 * NEWS: Mention new commands.
f02df580 10605
109f874e
MS
106062002-03-28 Michael Snyder <msnyder@redhat.com>
10607
10608 * symfile.c (symbol_file_add): Move test for null symbols to later.
10609
520f6ade
AC
106102002-03-27 Andrew Cagney <ac131313@redhat.com>
10611
10612 From veksler at il.ibm.com:
10613 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10614 the xstrduped original path.
10615 Fix PR gdb/417.
10616
d4654627
MS
106172002-03-27 Michael Snyder <msnyder@redhat.com>
10618
10619 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10620 * infcmd.c (_initialize_infcmd): Ditto.
10621 * language.c (_initialize_language): Ditto.
10622 * symfile.c (_initialize_symfile): Ditto.
10623 * top.c (_init_main): Ditto.
10624 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10625
6be8bc0c
EZ
106262002-03-27 Elena Zannoni <ezannoni@redhat.com>
10627
10628 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10629 vector registers handling.
10630 (skip_prologue): Handle new AltiVec instructions. Fill in new
10631 fields of frame data.
10632 (frame_get_saved_regs): Fill in information for AltiVec registers.
10633
12af6855
JB
106342002-03-27 Jim Blandy <jimb@redhat.com>
10635
10636 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10637 a function; leave this macro here to invoke that function.
10638 (symbol_init_mangled_name): Declaration for that function.
10639 * symtab.c (symbol_init_mangled_name): New function.
10640
dc672865
AC
106412002-03-27 Andrew Cagney <ac131313@redhat.com>
10642
10643 * valarith.c: Replace strerror with safe_strerror.
10644 * tracepoint.c: Ditto.
10645 * lin-lwp.c: Ditto.
10646 * go32-nat.c: Ditto.
10647 * inflow.c: Ditto.
10648 * gnu-nat.c: Ditto.
10649
d96429cd
AS
106502002-03-27 Andreas Schwab <schwab@suse.de>
10651
10652 * event-top.c (command_line_handler): Remove useless if.
10653
7e336ba1
AJ
106542002-03-27 Andreas Jaeger <aj@suse.de>
10655
10656 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10657 comment.
10658
de220d0f
ML
106592002-03-27 Michal Ludvig <mludvig@suse.cz>
10660
10661 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10662 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10663 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10664 (x86_64_linux_dr_get_status, supply_gregset),
10665 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10666 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10667 (x86_64_register_info_table): Add.
10668 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10669 (x86_64_register_raw_size, x86_64_register_virtual_type),
10670 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10671 general x86_64_register_info_table.
10672 (i386_gdbarch_init): gdbarch_register_bytes is now set
10673 dynamicaly during initialization.
10674 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10675 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10676
0e98d0a7
DJ
106772002-03-27 Daniel Jacobowitz <drow@mvista.com>
10678
10679 * gdbserver/server.c (main): Call target_signal_to_host_p
10680 and target_signal_to_host on signals received from the remote.
10681 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10682 target_signal_from_host on signals sent to the remote.
10683 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10684 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10685
3130066b
DJ
106862002-03-27 Daniel Jacobowitz <drow@mvista.com>
10687
10688 * signals/signals.c: Include "server.h" in gdbserver build.
10689 (target_signal_from_name): Don't use STREQ.
10690 (_initialize_signals): Likewise. Don't include function in
10691 gdbserver build.
10692
9aedf4f4
DJ
106932002-03-27 Daniel Jacobowitz <drow@mvista.com>
10694
10695 * signals.c: Moved to...
10696 * signals/signals.c: Here.
7e336ba1 10697 * Makefile (signals.o): Update.
9aedf4f4 10698
3fa41cdb
JL
106992002-03-26 Jeff Law (law@redhat.com)
10700
10701 * somread.c (som_symtab_read): Remove some commented out code and
10702 updated related comments. Do not set the minimal symbol table to
10703 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10704 in a dynamic executable.
10705 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10706 where we are unable to find the minimal symbol for the given
10707 PC value.
10708
ee677e8d
MS
107092002-03-25 Jeff Law (law@redhat.com)
10710
10711 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10712
e76e1718
ML
107132002-03-25 Michal Ludvig <mludvig@suse.cz>
10714
10715 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10716
18a642a1
AC
107172002-03-23 Andrew Cagney <ac131313@redhat.com>
10718
10719 * command.h: Update copyright.
10720 (struct cmd_list_element): Replace definition with opaque
10721 declaration.
10722 (enum cmd_types): Document that it will eventually be moved to
10723 cli/cli-decode.h
10724 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10725 (MALLOCED_REPLACEMENT): Delete macro.
10726 * Makefile.in (cli_decode_h): Add $(command_h).
10727 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 10728 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
10729 * completer.c: Include "cli/cli-decode.h".
10730 * maint.c: Include "cli/cli-decode.h".
10731 * cli/cli-decode.h: Include "command.h".
10732 (enum command_class): Delete.
10733 (enum cmd_types): Comment out.
10734 (enum cmd_auto_boolean): Delete.
10735 (enum var_types): Delete.
10736
b2875cc0
AC
107372002-03-23 Andrew Cagney <ac131313@redhat.com>
10738
10739 * cli/cli-decode.c: Include "gdb_assert.h".
10740 (add_set_or_show_cmd): New static function.
10741 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10742 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10743 all fields, such as func, from the set command.
10744
3b45974e
AC
107452002-03-23 Andrew Cagney <ac131313@redhat.com>
10746
10747 * MAINTAINERS (sh-elf): Change warning flag to -w.
10748
823ca731
AC
107492002-03-23 Andrew Cagney <cagney@redhat.com>
10750
10751 * defs.h (error): Add printf format attribute.
10752 * thread-db.c (thread_from_lwp): Fix error format string.
10753 * stack.c (parse_frame_specification): Ditto.
10754 * cli/cli-decode.c (undef_cmd_error): Ditto.
10755 * scm-lang.c (scm_lookup_name): Ditto.
10756 * tracepoint.c (trace_error): Ditto.
10757 * remote-utils.c (usage): Ditto.
10758 * remote.c (compare_sections_command): Ditto.
10759 Fix PR gdb/328.
10760
0e101458
AC
107612002-03-22 Andrew Cagney <ac131313@redhat.com>
10762
10763 * gdbtypes.c (append_composite_type_field): New function.
10764 (init_composite_type): New function.
10765 * gdbtypes.h (append_composite_type_field): Declare.
10766 (init_composite_type): Ditto.
10767
8e0662df
EZ
107682002-03-22 Elena Zannoni <ezannoni@redhat.com>
10769
10770 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 10771 function.
8e0662df
EZ
10772 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10773 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10774 structure returning convention for SYSV ABI case, but not
10775 for GNU/Linux, FreeBSD, or NetBSD.
10776
3121eff0
DJ
107772002-03-22 Daniel Jacobowitz <drow@mvista.com>
10778
10779 * symtab.h (lookup_block_symbol): Add mangled_name argument
10780 to prototype.
10781
10782 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10783 with new mangled_name argument.
10784 * linespec.c (decode_line_1): Likewise.
10785 * valops (value_of_this): Likewise.
10786 * symtab.c (lookup_transparent_type): Likewise.
10787 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10788 (lookup_symbol): If we are given a mangled name, pass it down
10789 to lookup_symbol_aux.
10790 (lookup_block_symbol): If we are given a mangled name to check
10791 against, only return symbols which match it.
10792
349b409f
CF
107932002-03-22 Christopher Faylor <cgf@redhat.com>
10794
10795 * win32-nat.c (child_create_inferior): Check for proper shell to use
10796 here, in case the user changes it on the fly.
10797 (_initialize_inftarg): Remove shell path considerations.
10798
2a873819
EZ
107992002-03-21 Elena Zannoni <ezannoni@redhat.com>
10800
10801 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10802 for gdbarch_max_register_raw_size and max_register_virtual_size.
10803 Adjust copyright year.
10804
a1b9830c
DJ
108052002-03-21 Daniel Jacobowitz <drow@mvista.com>
10806
10807 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10808 in a function to cover the entire beginning of the function
10809 as well if it does not already.
10810
8b5790f2
TR
108112002-03-21 Tom Rix <trix@redhat.com>
10812
10813 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10814 (rs6000_ptrace64): Renamed from ptrace64.
10815
bdbe5747
MH
108162002-03-20 Martin M. Hunt <hunt@redhat.com>
10817
10818 * gdbserver/remote-utils.c (remote_open): Don't call
10819 getprotobyname, we're all using TCP here so just use
10820 IPPROTO_TCP.
7e336ba1 10821 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
10822
108232002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 10824
bdbe5747
MH
10825 * regcache.c (_initialize_regcache): No need to call
10826 build_regcache() at this time; it gets called whenever
10827 the gdbarch changes.
10828
7781cd62
DB
108292002-03-20 David O'Brien <obrien@FreeBSD.org>
10830
10831 * sparc-nat.c: Include sys/param.h where possible.
10832
f65ca430
DJ
108332002-03-20 Daniel Jacobowitz <drow@mvista.com>
10834
10835 Fix PR gdb/422.
10836 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10837 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10838 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10839 complex types.
10840 * stabsread.c (rs6000_builtin_type): Likewise.
10841 (read_sun_floating_type): Likewise.
10842
0c867556
PS
108432002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10844
10845 * stabsread.c (read_member_functions): Remove skip code for duplicate
10846 constructor/destructor methods. Use standard parsing for these
10847 methods and just do not chain them to the list of methods after
10848 parsing.
10849
12b9c64f
AO
108502002-03-19 Alexandre Oliva <aoliva@redhat.com>
10851
10852 * coffread.c: Remove redundant static declarations. Replace
10853 occurrences of `PTR' with `void *'.
10854 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10855 * top.h (quit_cover): Likewise.
10856 * defs.h (catch_errors): Likewise.
10857
349c5d5f
AC
108582002-03-18 Andrew Cagney <ac131313@redhat.com>
10859
10860 * defs.h (XMALLOC): Define.
10861 * gdb-events.sh (XMALLOC): Delete macro.
10862 * gdb-events.c, gdb-events.h: Regenerate.
10863 * gdbarch.sh (XMALLOC): Delete macro.
10864 * gdbarch.c: Regenerate.
10865 * serial.c (XMALLOC): Delete macro.
10866 * ui-file.c (XMALLOC): Ditto.
10867 * ser-unix.h (XMALLOC): Ditto.
10868 * sh-tdep.c (XMALLOC): Ditto.
10869 * ui-out.c (XMALLOC): Ditto.
10870 * utils.c (XMALLOC): Ditto.
10871 * i386-tdep.c (XMALLOC): Ditto.
10872 * gdb-events.c (XMALLOC): Ditto.
10873 * d10v-tdep.c (XMALLOC): Ditto.
10874 * cli-out.c (XMALLOC): Ditto.
10875
10876 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10877 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10878 * ui-file.c, ui-out.c: Ditto.
10879
7d0766f3
AC
108802002-03-18 Andrew Cagney <ac131313@redhat.com>
10881
10882 * command.h (struct cmd_list_element): Add field context.
10883 (set_cmd_context, get_cmd_context): Declare.
10884 * cli/cli-decode.h: Ditto.
10885 * cli/cli-decode.c (get_cmd_context): New function.
10886 (set_cmd_context): New function.
10887 (add_cmd): Initialize context.
10888 Part of fixing PR gdb/145 and PR gdb/146.
10889
5913bcb0
AC
108902002-03-17 Andrew Cagney <ac131313@redhat.com>
10891
1868c04e
AC
10892 * cli/cli-decode.c (cmd_type): New function.
10893 * command.h (cmd_type): Declare.
10894 * infrun.c (set_schedlock_func): Call function cmd_type.
10895 * kod.c (kod_set_os): Call cmd_type.
10896 * cris-tdep.c (cris_version_update): Use function cmd_type.
10897 (cris_mode_update, cris_abi_update): Ditto.
10898
5913bcb0
AC
10899 * command.h: (execute_cmd_post_hook): Declare.
10900 (execute_cmd_pre_hook): Declare.
10901 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10902 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10903 functions. Execute pre/post hook while ensuring that afterwords
10904 hook_in is cleared.
10905 * top.c (execute_command): Use execute_cmd_post_hook, and
10906 execute_cmd_pre_hook to execute pre/post commands.
10907 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10908 hook_stop_stub.
10909 (hook_stop_stub): Call execute_cmd_pre_hook.
10910
b51450c9
AC
109112002-03-17 Andrew Cagney <ac131313@redhat.com>
10912
10913 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10914 set'' and this leads to a core dump. Move xstrdup of
10915 operating_system to after check that it is not NULL.
10916
f66c9f11
AC
109172002-03-17 Andrew Cagney <ac131313@redhat.com>
10918
8e694ecf
AC
10919 * kod.c (kod_set_os): Remove unnecessary check that
10920 ``command->type'' is set_cmd.
10921
f66c9f11
AC
10922 * valprint.c (set_input_radix): Use input_radix.
10923 (set_output_radix): Use output_radix.
10924 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10925 isn't reverted.
10926
9d01611c
AC
109272002-03-16 Andrew Cagney <ac131313@redhat.com>
10928
10929 * value.h (struct value): Delete field ``substring_addr''. Change
10930 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
10931 force_core_addr_align and force_pointer_aligh.
10932
10933 * value.h (struct value): Fix typo in above change.
9d01611c 10934
4156bb53
PS
109352002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10936
10937 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10938 to fix internal_error from ``maintenance print architecture''.
10939
0e5e3ea6
PS
109402002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10941
10942 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10943 for gcc versions after gcc-2.8.1.
10944
9b013045
PS
109452002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10946
10947 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10948 for method resolution. Restore adjustment of ``this'' pointer after
10949 calling value_struct_elt, which was accidentally removed during the
10950 HP merge.
10951
376c9600
AC
109522002-03-15 Andrew Cagney <ac131313@redhat.com>
10953
10954 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10955 value_of_register.
10956 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10957 get_saved_register.
10958 * value.h (value_of_register): Update.
10959
a4db0f07
RH
109602002-03-14 Richard Henderson <rth@redhat.com>
10961
10962 * configure.in: Detect declaration for canonicalize_file_name.
10963 * utils.c (canonicalize_file_name): Declare, if needed.
10964 (gdb_realpath): Prefer realpath if available and usable.
10965 * config.in, configure: Rebuild.
10966
96383835
RH
109672002-03-14 Richard Henderson <rth@redhat.com>
10968
10969 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10970 a constant array bound.
10971
10972 * MAINTAINERS: Add myself to write-after-approval.
10973
75245b24
MS
109742002-03-14 Michael Snyder <msnyder@redhat.com>
10975
10976 * symfile.c (syms_from_objfile): Return immediately if no syms.
10977 (symbol_file_add): Return immediately if no syms.
10978 (find_sym_fns): Return immediately if no syms.
10979
e641a1ca
ML
109802002-03-13 Michal Ludvig <mludvig@suse.cz>
10981
10982 * gdbserver/remote-util.c (remote_open): Print remote-side's
10983 IP address when remote debugging over the network.
7e336ba1 10984
df08bfec
DB
109852002-03-12 David O'Brien <obrien@FreeBSD.org>
10986
10987 * config/sparc/fbsd.mh: Fix copyright.
10988 * config/sparc/fbsd.mt: Likewise.
10989
9a57864f
RE
109902002-03-11 Richard Earnshaw <rearnsha@arm.com>
10991
10992 * MAINTAINERS: Fix typo in name of gdb warnings option.
10993 (x86-64): Fix formating so that this can be parsed by awk.
10994
dd7bf85e
DJ
109952002-03-10 Daniel Jacobowitz <drow@mvista.com>
10996
10997 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10998 * defs.h: Include "gdb/signals.h".
10999 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11000
33a0a2ac
ML
110012002-03-10 Michal Ludvig <mludvig@suse.cz>
11002
11003 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 11004 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
11005 from x86-64-tdep.h
11006
dd824b04
DJ
110072002-03-10 Daniel Jacobowitz <drow@mvista.com>
11008 Don Howard <dhoward@redhat.com>
11009
11010 * mips-tdep.c (ST0_FR): Define.
11011 (mips2_fp_compat): New function, temporarily disabled.
11012 (mips_read_fp_register_single): New function.
11013 (mips_read_fp_register_double): New function.
11014 (mips_print_register): Use them.
11015 (do_fp_register_row): Likewise.
11016
6a41ff59
AC
110172002-03-09 Andrew Cagney <ac131313@redhat.com>
11018
11019 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11020 approval''.
11021
4ea09c10
PS
110222002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11023
11024 * stabsread.c (read_member_functions): Fix is_stub test for
11025 static member functions, improve comment.
11026
6ccc741d
RE
110272002-03-07 Richard Earnshaw <rearnsha@arm.com>
11028
11029 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11030 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11031 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11032 commands that set boolean values.
11033 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11034 (arm_rdi_resume): Always initialize PC.
11035 (arm_rdi_open): Don't use rslt as a boolean.
11036 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11037 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11038 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11039 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11040
438013df
AO
110412002-03-06 Alexandre Oliva <aoliva@redhat.com>
11042
11043 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11044 * configure: Rebuilt.
11045
70ed8774
SC
110462002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11047
11048 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11049 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11050
5ba2abeb
AC
110512002-03-06 Andrew Cagney <ac131313@redhat.com>
11052
11053 * cli/cli-decode.c (set_cmd_completer): New function.
11054 * command.h (set_cmd_completer): Declare.
11055 * cli/cli-decode.h (set_cmd_completer): Ditto.
11056
11057 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11058 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11059 * win32-nat.c (_initialize_inftarg): Ditto.
11060 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11061 * proc-api.c (_initialize_proc_api): Ditto.
11062 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11063 * source.c (_initialize_source): Ditto.
11064 * exec.c (_initialize_exec): Ditto.
11065 * solib.c (_initialize_solib): Ditto.
11066 * top.c (init_main): Ditto.
11067 * tracepoint.c (_initialize_tracepoint): Ditto.
11068 * symfile.c (_initialize_symfile): Ditto.
11069 * printcmd.c (_initialize_printcmd): Ditto.
11070 * infcmd.c (_initialize_infcmd): Ditto.
11071 * corefile.c (_initialize_core): Ditto.
11072
f779ca99
AC
110732002-03-05 Andrew Cagney <ac131313@redhat.com>
11074
11075 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11076
01a3934b
AC
110772002-03-05 Andrew Cagney <ac131313@redhat.com>
11078
11079 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11080
37057839
AC
110812002-03-05 Andrew Cagney <ac131313@redhat.com>
11082
11083 * NEWS: Update headings, 5.2 has branched.
11084
c6ecbae5
DJ
110852002-03-04 Daniel Jacobowitz <drow@mvista.com>
11086
11087 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11088 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11089 (register_addr, REGISTER_RAW_SIZE): Likewise.
11090 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11091 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11092
e9f30c21
ML
110932002-03-03 Michal Ludvig <mludvig@suse.cz>
11094
11095 * MAINTAINERS (x86-64): Add myself.
11096 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11097 changed value_ptr -> struct value *
11098
54394ac3
DB
110992002-03-01 David O'Brien <obrien@FreeBSD.org>
11100
11101 * configure.host (sparc64-*-freebsd): Add.
11102 * configure.tgt: Likewise.
11103 * config/sparc/fbsd.mh: New file.
11104 * config/sparc/fbsd.mt: Likewise.
11105 * config/sparc/nm-fbsd.h: Likewise.
11106 * config/sparc/tm-fbsd.h: Likewise.
11107
bfe95955
DJ
111082002-03-01 Daniel Jacobowitz <drow@mvista.com>
11109
11110 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11111 regformats/reg-s390x.dat.
11112
f33c6cbf
AC
111132002-03-01 Andrew Cagney <ac131313@redhat.com>
11114
11115 * utils.c: Add FIXME explaining true/false problem.
11116
5ecaa7dd
AC
111172002-02-28 Andrew Cagney <ac131313@redhat.com>
11118
11119 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11120
2a251cc2
MC
111212002-02-28 Michael Chastain <mec@shout.net>
11122
11123 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11124
6a8031a3 111252002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
11126
11127 * gdbserver/linux-s390-low.c: New file.
11128 * regformats/reg-s390.dat: New file.
11129 * regformats/reg-s390x.dat: New file.
11130 * gdbserver/configure.srv: Add S/390.
11131 * gdbserver/Makefile.in: Add S/390.
11132 * configure.tgt: Enable gdbserver for S/390.
11133
ac469903
EZ
111342002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11135
11136 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11137 first line of the doc string for "info dos", except at the end of
11138 the sentence, since the short help stops at the first period.
11139
985cb1a3
JM
111402002-02-28 Jason Merrill <jason@redhat.com>
11141
11142 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11143
c570663e
FF
111442002-02-27 Fred Fish <fnf@redhat.com>
11145
11146 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11147 comment (dumy -> dummy).
11148
43630227
PS
111492002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11150
11151 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11152
b84911e8
RB
111532002-02-27 Rodney Brown <rbrown64@csc.com.au>
11154
11155 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11156
58caa3dc
DJ
111572002-02-27 Daniel Jacobowitz <drow@mvista.com>
11158
11159 * gdbserver/acconfig.h: New file.
11160 * gdbserver/i387-fp.c: New file.
11161 * gdbserver/i387-fp.h: New file.
11162 * gdbserver/linux-x86-64.c: New file.
11163 * regformats/reg-x86-64.dat: New file.
11164 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11165 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11166 * gdbserver/configure.in: Add support for regsets.
11167 * gdbserver/config.in: Regenerate.
11168 * gdbserver/configure: Regenerate.
11169 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11170 * gdbserver/linux-low.h: New file.
11171 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11172 for regsets.
11173 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11174 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11175 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11176 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11177 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11178 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11179 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11180 "i387-fp.h". Add PTRACE_GETREGS and friends.
11181 * gdbserver/regcache.c (supply_register): New function.
11182 (supply_register_by_name): New function.
11183 (collect_register): New function.
11184 (collect_register_by_name): New function.
11185
93652174
DJ
111862002-02-27 Daniel Jacobowitz <drow@mvista.com>
11187
11188 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11189 (config.status): Add configure.srv dependency.
11190 (server_h): Add config.h dependency.
11191
a02e4a61
DJ
111922002-02-27 Daniel Jacobowitz <drow@mvista.com>
11193
11194 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11195 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11196 * gdbserver/configure.srv: Change i386-*-linux* to use
11197 reg-i386-linux.o.
11198
ce0eebec
AC
111992002-02-26 Andrew Cagney <ac131313@redhat.com>
11200
11201 * x86-64-tdep.c: Re-indent. Update copyright date.
11202
82dbc5f7
AC
112032002-02-26 Andrew Cagney <ac131313@redhat.com>
11204
11205 From Michal Ludvig <mludvig@suse.cz>:
11206 * x86-64-tdep.c (value.h): Delete.
11207 (gdb_assert.h): Include.
11208 (x86_64_register_convert_to_virtual,
11209 x86_64_register_convert_to_raw ): Add check which lets only
11210 floating-point values to be converted.
11211 (value_push): Delete.
11212 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11213 (i386_gdbarch_init): Number of register_bytes fixed.
11214
e4621584
AC
112152002-02-26 Andrew Cagney <ac131313@redhat.com>
11216
11217 * MAINTAINERS: Add x86-64 target.
11218
81a9a963
AC
112192002-02-26 Andrew Cagney <ac131313@redhat.com>
11220
11221 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11222 * osfsolib.c (solib_map_sections): Ditto.
11223 * irix5-nat.c (solib_map_sections): Ditto.
11224 * corelow.c (gdb_check_format): Ditto.
11225 * symfile.c (symfile_bfd_open): Ditto.
11226 * solib.c (solib_map_sections): Ditto.
11227 Fix PR gdb/354.
7e336ba1 11228
0f017ab9
AC
112292002-02-26 Andrew Cagney <ac131313@redhat.com>
11230
11231 * remote.c (_initialize_remote): By default, disable ``e'' and
11232 ``E'' step out-of-range packets.
11233
75738c29
AS
112342002-02-26 Andreas Schwab <schwab@suse.de>
11235
11236 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11237 m68k_linux_frame_saved_pc.
11238 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11239 in_sigtramp.
11240 (SIGCONTEXT_PC_OFFSET): Remove.
11241 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11242 m68k_linux_sigtramp_saved_pc): New functions.
11243 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11244 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11245 (UCONTEXT_PC_OFFSET): Define.
11246 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11247 non-RT and RT signal trampolines.
11248
7e8ed687
RE
112492002-02-26 Richard Earnshaw <rearnsha@arm.com>
11250
11251 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11252 (TARGET_NBPG, STACK_END_ADDR): Delete
11253 (VARIABLES_INSIDE_BLOCK): Delete.
11254
6972bc8b
AC
112552002-02-25 Andrew Cagney <ac131313@redhat.com>
11256
11257 * utils.c (perror_with_name): Make string parameter constant.
11258 (print_sys_errmsg): Ditto.
11259 (query): Ditto.
11260 * defs.h (perror_with_name): Update.
11261 (print_sys_errmsg): Update.
11262 (query): Update.
11263
aa32f823
DJ
112642002-02-25 Daniel Jacobowitz <drow@mvista.com>
11265
11266 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11267 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11268
19caaa45
PS
112692002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11270
11271 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11272 if it already matches the current architecture from the exec file.
11273 Include arch-utils.h for gdbarch_info_init prototype.
11274 * Makefile.in (rs6000-nat.o): Update dependencies.
11275
d951901f
EZ
112762002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11277
11278 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11279 list of exported variables.
11280
7ea81414
DJ
112812002-02-24 Daniel Jacobowitz <drow@mvista.com>
11282
11283 * gdbserver/configure.srv: New file.
11284 * gdbserver/configure.in: Use configure.srv instead
11285 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11286 from it.
11287 * gdbserver/configure: Regenerated.
11288 * gdbserver/terminal.h: New file.
11289 * gdbserver/Makefile.in: Update for configure changes. Remove
11290 more unneeded include paths.
11291
080fe24b
AC
112922002-02-24 Andrew Cagney <ac131313@redhat.com>
11293
11294 From wiz at danbala:
11295 * config/sparc/tm-sp64.h: Fix grammar and typos.
11296 Fix PR gdb/287.
11297
8605d56e
AC
112982002-02-24 Andrew Cagney <ac131313@redhat.com>
11299
11300 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
11301 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11302 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11303 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
11304 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11305 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11306 * s390-tdep.c: Ditto.
92362027
AC
11307 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11308 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11309 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11310 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11311 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11312 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11313 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11314 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11315 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11316 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 11317 Fix PR gdb/378.
7e336ba1 11318
8ed32cc0
AC
113192002-02-23 Andrew Cagney <ac131313@redhat.com>
11320
a3007b6f
AC
11321 * lin-thread.c: Delete file.
11322 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11323 to gdb_proc_service.h.
11324 * configure: Re-generate.
11325
50a9e2f1
AC
11326 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11327 * serial.c (serial_open): Delete check for "ocd".
11328 Fix PR gdb/349.
11329
8b6e7932
AC
11330 * Makefile.in (linux-thread.o): Delete target.
11331 * linux-thread.c: Delete file.
11332
d155c46b
AC
11333 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11334 renamed SH files to be consistent.
11335
8ed32cc0
AC
11336 * symtab.c (sort_search_symbols): Use xfree.
11337
0e18d038
RE
113382002-02-23 Richard Earnshaw <rearnsha@arm.com>
11339
11340 * arm-linux-tdep.c (arm_linux_init_abi): Register
11341 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11342 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11343 definition with undef, since we don't want the sysvr4 definition.
11344 (SKIP_TRAMPOLINE_CODE): Likewise.
11345
27aac7ff
AC
113462002-02-23 Andrew Cagney <ac131313@redhat.com>
11347
11348 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11349
11350 * configure.in: (AC_CHECK_FUNCS) Added test for
11351 canonicalize_file_name Regenerated.
11352 * config.in, configure: Regenerated.
11353 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11354 defined use canonicalize_file_name.
7e336ba1 11355
65a6e0ee
MC
113562002-02-23 Michael Chastain <mec@shout.net>
11357
11358 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11359
47b95330
AC
113602002-02-23 Andrew Cagney <ac131313@redhat.com>
11361
11362 * README: Remove references to cygnus.com.
11363 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11364 dot com'' form. Remove references to cygnus.com and sourceware.
11365
696f451b
AC
113662002-02-23 Andrew Cagney <ac131313@redhat.com>
11367
11368 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11369 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11370 1003.1-2001 no longer allows "head -1".
11371 * gdb/Makefile.in (version.c): Likewise.
11372 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11373 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11374 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11375
bbaca940
AC
113762002-02-23 Andrew Cagney <ac131313@redhat.com>
11377
11378 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11379 * command.h (cmd_cfunc_eq): Declare.
11380 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11381
11382 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11383 ``struct cmd_list_element *''.
11384 * cli/cli-cmds.c (is_complete_command): Update. Use
11385 cmd_cfunc_eq.
11386 * top.c (execute_command): Pass the command to
11387 is_complete_command.
11388 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11389
b8b8b047
AC
113902002-02-23 Andrew Cagney <ac131313@redhat.com>
11391
11392 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11393 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11394 architecture defines.
11395 * s390-tdep.c (s390_gdbarch_init): Likewise.
11396
19d3fc80
RE
113972002-02-23 Richard Earnshaw <rearnsha@arm.com>
11398
11399 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11400 (arm_linux_push_arguments): Likewise.
11401 (arm_linux_init_abi): Register them. Also register linux-specific
11402 call_dummy_words.
11403 (find_minsym_and_objfile): Use strcmp, not STREQ.
11404 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11405 (arm_linux_call_dummy_words): Delete declaration.
11406 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11407 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11408 declarations.
11409 (LOWEST_PC): Delete.
11410
3ab13650
PS
114112002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11412
11413 * maint.c (print_section_info): Do not prepend `0x' to filepos
11414 output, it will be handled by local_hex_string_custom.
11415
19d3fc80 114162002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
11417
11418 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11419 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11420 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11421
d85a5daf
JB
114222002-02-22 Jim Blandy <jimb@redhat.com>
11423
11424 Indicate that the bcache functions don't change the strings
11425 they're passed.
11426 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11427 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11428
eeb25b8a
PM
114292002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11430
11431 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11432
6badb179
CF
114332002-02-21 Christopher Faylor <cgf@redhat.com>
11434
11435 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11436 find the complete path to a loaded DLL.
11437
e8717518
FF
114382002-02-21 Fred Fish <fnf@redhat.com>
11439
11440 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11441 that marks the end of the range of a function, enter a line number
11442 entry that has a line number of zero and a PC offset that matches
11443 the end of the function. This starts a range of PC's for which no
11444 line number information is known.
11445 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11446 PC's for which no line number info is found (line number is zero)
11447 then we didn't find any valid line information.
11448 * symtab.h: Document use of zero line number entry.
11449
9abe5450
EZ
114502002-02-21 Elena Zannoni <ezannoni@redhat.com>
11451
11452 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11453 (have_ptrace_getvrregs): Define for run time checks.
11454 (gdb_vrregset_t): New type for Altivec register handling.
11455 (fetch_register, store_register): Fetch/store altivec register
11456 when needed.
11457 (fetch_altivec_register, store_altivec_register): New functions.
11458 (supply_vrregset, fill_vrregset): New functions.
11459 (fetch_altivec_registers, store_altivec_registers): New functions.
11460 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11461 registers as well.
11462
aaa38bb5
AJ
114632002-02-21 Jiri Smid <smid@suse.cz>
11464
11465 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11466
b34db576
RE
114672002-02-21 Richard Earnshaw <rearnsha@arm.com>
11468
11469 * Makefile.in (armnbsd-nat.o): Update dependencies.
11470 * armnbsd-nat.c (supply_gregset): New function. Common code to
11471 supply the integer register set.
11472 (supply_fparegset): New function. Similar for FPA registers.
11473 (fetch_regs, fetch_fp_regs): Use them.
11474 (fetch_core_registers): Likewise.
11475 (fetch_elfcore_registers): New function.
11476 (arm_netbsd_elfcore_fns): New core-file type specification.
11477 (_initialize_arm_netbsd_nat): Register it.
11478
3e56fc4b
RE
114792002-02-21 Richard Earnshaw <rearnsha@arm.com>
11480
11481 * armnbsd-nat.c: Include gdbcore.h.
11482 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11483 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11484 'void' to declaration, to shut up ARI.
11485 (fetch_core_registers): Make static. Rewrite using supply_register.
11486 (arm_netbsd_core_fns): New core-file type specification.
11487 (_initialize_arm_netbsd_nat): New function.
11488
097f6b0b
CF
114892002-02-21 Christopher Faylor <cgf@redhat.com>
11490
11491 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11492 value.
11493
c914e0cc
CF
114942002-02-20 Christopher Faylor <cgf@redhat.com>
11495
11496 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11497 fails.
11498
385fa495
DJ
114992002-02-20 Daniel Jacobowitz <drow@mvista.com>
11500
11501 * jv-exp.y (parse_number): Change type of implicit longs
11502 to builtin_type_uint64.
11503
e5f1222d
DJ
115042002-02-20 Daniel Jacobowitz <drow@mvista.com>
11505
11506 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11507 to be an integer instead of a `union wait'.
11508
75c9abc6
DJ
115092002-02-20 Daniel Jacobowitz <drow@mvista.com>
11510
11511 * mips-linux-nat.c: Call the operating system GNU/Linux.
11512 * mips-linux-tdep.c: Likewise.
11513 * mips-tdep.c: Likewise.
11514
551792a5
DJ
115152002-02-20 Daniel Jacobowitz <drow@mvista.com>
11516
11517 Fix PR gdb/265.
11518 * jv-exp.y (parse_number): Handle 64-bit integers.
11519
ee6e2b82
DJ
115202002-02-20 Daniel Jacobowitz <drow@mvista.com>
11521
11522 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11523 AC_STDC_HEADERS to AC_HEADER_STDC.
11524 * gdbserver/configure: Regenerated.
11525
a48442a0
RE
115262002-02-20 Richard Earnshaw <rearnsha@arm.com>
11527
11528 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11529 is defined.
11530 * sparc-tdep.c (get_longjmp_target): Likewise.
11531
fe419ffc
RE
115322002-02-20 Richard Earnshaw <rearnsha@arm.com>
11533
11534 * News: Add news about ARM and Multi-arch. Mention the new target
11535 arm*-*-netbsd*.
11536
5832ed7e
JB
115372002-02-19 Jim Blandy <jimb@redhat.com>
11538
11539 * stabsread.c (error_type_complaint): Improve error message.
11540
84563040
DJ
115412002-02-19 Daniel Jacobowitz <drow@mvista.com>
11542
11543 * gdbserver/README: Update documentation.
11544 * gdbserver/configure.in: Update configury to match documentation.
11545 * gdbserver/Makefile.in: Likewise.
11546 * gdbserver/configure: Regenerated.
11547 * gdbserver/aclocal.m4: New file, generated by aclocal.
11548 * gdbserver/config.in: New file, generated by autoheader.
11549
375fd65b
RE
115502002-02-19 Richard Earnshaw <rearnsha@arm.com>
11551
11552 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11553 armnbsd-nat.c.
11554
08216dd7
RE
115552002-02-19 Richard Earnshaw <rearnsha@arm.com>
11556
11557 * arm-tdep.h (enum arm_float_model): New enum.
11558 (struct gdbarch_tdep): Add fp_model.
11559 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11560 up floating-point conversions until we know the floating-point model
11561 in use by the inferior. Don't complain about being unable to
11562 determine the ABI of the inferior when we don't have one.
11563 (arm_extract_return_value): Support different floating-point models.
11564 (arm_store_return_value): Likewise.
aaa38bb5 11565 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11566 ARM_FLOAT_SOFT.
11567 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11568
65d6d66a
PS
115692002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11570
11571 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11572 of ``current_gdbarch''.
11573
47221191
RE
115742002-02-19 Richard Earnshaw <rearnsha@arm.com>
11575
11576 * armnbsd-nat.c : ANSIfy all function declarations.
11577 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11578 (fetch_inferior_registers): Re-implement in terms of above.
11579 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11580 (store_inferior_registers): Re-implement in terms of above.
11581
fdf39c9a
RE
115822002-02-19 Richard Earnshaw <rearnsha@arm.com>
11583
aaa38bb5 11584 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11585 kernel.
11586 * arm-linux-tdep.c: Likewise.
11587 * config/arm/tm-linux.h: Likewise.
11588
93247f88
RE
115892002-02-19 Richard Earnshaw <rearnsha@arm.com>
11590
11591 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11592 * config/arm/nbsd.mt (TM_FILE): Delete.
11593 * config/arm/tm-nbsd.h: Delete.
11594
d7b486e7
RE
115952002-02-19 Richard Earnshaw <rearnsha@arm.com>
11596
11597 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11598 Initialize CALL_DUMMY_LENGTH.
11599
41d39a95
RE
116002002-02-19 Richard Earnshaw <rearnsha@arm.com>
11601
11602 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11603 function.
11604 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11605 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11606 defines one thing and that is incorrect for this port.
11607 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11608
e1195560
PM
116092002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11610
11611 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11612
c1748f97
PM
116132002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11614
11615 * win32-nat.c (display_selector): New function. Displays information
11616 about the information returned by GetThreadSelectorEntry API function.
11617 (display_selectors): New function. Displays the infomation of
11618 the selector given as argument, or of CS, DS ans FS selectors
11619 if no argument is given.
11620 ( _initialize_inftarg): Add "w32" as info prefix command.
11621 Add "info w32 selector" as command calling display_selectors.
11622
e41e6bbf
PM
116232002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11624
11625 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11626 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11627 if not defined.
11628
0d3a9f48
RE
116292002-02-18 Richard Earnshaw <rearnsha@arm.com>
11630
11631 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11632
3fb4b924
RE
116332002-02-18 Richard Earnshaw <rearnsha@arm.com>
11634
11635 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11636 (arm_fix_call_dummy): Call it.
11637 (arm_call_dummy_breakpoint_offset): Delete.
11638 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11639 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11640
7f55af32
AC
116412002-02-18 Andrew Cagney <ac131313@redhat.com>
11642
11643 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11644 Default to func_frame_chain_valid.
11645 * gdbarch.h, gdbarch.c: Re-generate.
11646 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11647
05f13b9c
EZ
116482002-02-18 Elena Zannoni <ezannoni@redhat.com>
11649
11650 * ppc-linux-nat.c: Update copyright.
11651 (fetch_register, store_register): Add tid parameter, don't compute
11652 tid here.
11653 (fetch_ppc_registers, store_ppc_registers): Add tid
11654 parameter. Pass it along to callees.
11655 (fetch_inferior_registers, store_inferior_registers): Compute tid
11656 here, and pass it to calleed functions.
11657 (fill_gregset, supply_fpregset): Clean up formatting.
11658
d7afb4c9
RE
116592002-02-18 Richard Earnshaw <rearnsha@arm.com>
11660
11661 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11662 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11663
9df628e0
RE
116642002-02-18 Richard Earnshaw <rearnsha@arm.com>
11665
11666 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11667 * gdbarch.c gdbarch.h: Regenerate.
11668 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11669 function.
11670 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11671 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11672 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11673
11674 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11675 * arm-tdep.c (arm_get_longjmp_target): New function.
11676 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11677 this to a positive value register arm_get_longjmp_target as the
11678 longjmp handler.
11679 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11680 (arm_linux_init_abi): Set up longjmp description in tdep.
11681 * armnbsd-nat.c (get_longjmp_target): Delete.
11682 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11683 description in tdep.
11684 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11685 (get_longjmp_target): Delete declaration.
11686 (GET_LONGJMP_TARGET): Delete.
11687 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11688 (GET_LONGJMP_TARGET): Delete.
11689
57bc8964
KB
116902002-02-17 Kevin Buettner <kevinb@redhat.com>
11691
11692 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11693 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11694 of ``current_gdbarch''.
11695
83d31a92
TT
116962002-02-17 Tom Tromey <tromey@redhat.com>
11697
11698 * cli/cli-cmds.c (compare_strings): New function.
11699 (complete_command): Only print each unique item once.
11700 * completer.h (complete_line): Declare.
11701 * completer.c (complete_line): New function.
11702 (line_completion_function): Use it.
11703
17ef5d92
AC
117042002-02-16 Andrew Cagney <ac131313@redhat.com>
11705
11706 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11707 * gdbarch.h, gdbarch.c: Re-generate.
11708
491b8946
DJ
117092002-02-16 Daniel Jacobowitz <drow@mvista.com>
11710
11711 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11712
117132002-02-16 Daniel Jacobowitz <drow@mvista.com>
11714
11715 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11716 * valops.c (value_arg_coerce): Don't take the address of a reference
11717 to convert an argument to a reference.
11718
dfe7f3ac
CF
117192002-02-15 Christopher Faylor <cgf@redhat.com>
11720
11721 * win32-nat.c (get_image_name): New function.
11722 (handle_load_dll): Use get_image_name function.
11723 (get_child_debug_event): Avoid registering debug events until possibly
11724 execed process is started.
11725 (child_create_inferior): Allow invocation via shell so that command
11726 line redirection, etc. works ok.
11727 (_initialize_inftarg): Add new command: "set shell" to control whether
11728 a shell is used to start a process.
11729
1d33e73a
DJ
117302002-02-15 Daniel Jacobowitz <drow@mvista.com>
11731
11732 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11733 instead of find_register_by_number.
11734 (cannot_store_register): Likewise.
11735
48cd0caa
PM
117362002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11737
aaa38bb5 11738 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
11739 fprintf_unfiltered (gdb_stderr, ...).
11740
8656e7d8
DJ
117412002-02-15 Daniel Jacobowitz <drow@mvista.com>
11742
11743 * gdbserver/gdbserver.1: Document --attach.
11744
66e810cd
RE
117452002-02-15 Richard Earnshaw <rearnsha@arm.com>
11746
11747 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11748 descriptions.
11749 * arm-tdep.c (arm_default_arm_le_breakpoint)
11750 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11751 (arm_default_thumb_be_breakpoint): New. Initialize them from
11752 traditional breakpoint defines.
11753 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11754 (arm_gdbarch_init): Initialize new breakpoint variables.
11755 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11756 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11757 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11758 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11759 code out to ...
11760 (arm_netbsd_init_abi_common): ... here; new function.
11761 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11762 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11763 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11764 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11765
97e03143
RE
117662002-02-15 Richard Earnshaw <rearnsha@arm.com>
11767
11768 * arm-tdep.h (enum arm_abi): New enum.
11769 (struct gdbarch_tdep): New structure.
11770 (LOWEST_PC): Provide a default.
11771 (arm_gdbarch_register_os_abi): Declare new function.
11772 * arm-tdep.c (arm_abi_names): New array.
11773 (process_note_abi_tag_sections): New function.
11774 (get_elfosabi): New function.
11775 (arm_gdbarch_register_os_abi): New function.
11776 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11777 support for that ABI has been built in, then call the appropriate
11778 configuration routine. Use gdbarch_num_regs() to get the number
11779 of registers.
11780 (arm_dump_tdep): New function.
11781 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11782 place-holder functions.
11783 (_initialize_arm_tdep): Register them.
11784 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11785
11786 * armnbsd-tdep.c: New file.
11787 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11788 * config/arm/nbsd.mt (TDEPFILES): Add it.
11789 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11790
11791 * armnbsd-nat.c: Include regcache.h.
11792 * Makefile.in (armnbsd-nat.o): Update dependency list.
11793
11794 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11795
ad68be46
DJ
117962002-02-14 Daniel Jacobowitz <drow@mvista.com>
11797
11798 * gdbserver/Makefile.in: Fix typos in target rules.
11799
003d6d1d
DJ
118002002-02-14 Daniel Jacobowitz <drow@mvista.com>
11801
aaa38bb5 11802 Fix part of PR gdb/267.
003d6d1d
DJ
11803 * linespec.c (find_methods): Handle constructors specially for now.
11804
6b230f1b
CV
118052002-02-14 Corinna Vinschen <vinschen@redhat.com>
11806
11807 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11808 handling.
11809 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11810 standard_coerce_float_to_double().
11811
1ea98d12
CF
118122002-02-14 Christopher Faylor <cgf@redhat.com>
11813
11814 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11815 GDBINIT_FILENAME.
11816
dd47e6fd
EZ
118172002-02-14 Elena Zannoni <ezannoni@redhat.com>
11818
11819 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11820 find_variant_by_name, because it confuses the multiarch
11821 framework. Return NULL if there isn't an architecture with the
11822 user supplied name, instead of forcing a different one without
11823 recording the change with the multiarch machinery.
11824 (find_variant_by_name): Delete.
11825
d7e39b9e
PS
118262002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11827
11828 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11829 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11830
76e42a4f
MH
118312002-02-13 Martin M. Hunt <hunt@redhat.com>
11832
aaa38bb5 11833 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
11834 print_frame_info_listing_hook, set current_source_symtab.
11835
0a30fbc4
DJ
118362002-02-14 Daniel Jacobowitz <drow@mvista.com>
11837
11838 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11839 and remove unused $(INCLUDE_DIR).
11840 Add regcache.c to OBS.
11841 Add generated register protocol files to clean target.
11842 Update dependencies for new objects, obsolete old target code.
11843
11844 * gdbserver/linux-low.c: Remove all platform-specific code to
11845 new files. Remove various dead code. Update to use regcache
11846 functionality.
11847 * gdbserver/remote-utils.c (fromhex): Add return statement
11848 to quiet warning.
11849 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11850 constant.
11851 (input_interrupt): Add integer parameter to match prototype
11852 of a signal handler.
11853 (outreg): Use register_data ().
11854 (prepare_resume_reply): Use gdbserver_expedite_regs.
11855 * gdbserver/server.c (main): Dynamically allocate own_buf because
11856 PBUFSIZ is no longer constant. Use registers_to_string () and
11857 registers_from_string ().
11858 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11859 for error (), fatal (), and warning (). Update definition of
11860 PBUFSIZ to use regcache functionality. Add include guard.
11861 * gdbserver/utils.c (fatal): Add missing ``const''.
11862 (warning): New function.
11863
11864 * regformats/regdat.sh: Include "regcache.h" in generated files.
11865 Provide init_registers () function.
11866 * regformats/regdef.h: Add prototype for set_register_cache ().
11867 Add include guard.
11868
11869 * gdbserver/linux-arm-low.c: New file.
11870 * gdbserver/linux-i386-low.c: New file.
11871 * gdbserver/linux-ia64-low.c: New file.
11872 * gdbserver/linux-m68k-low.c: New file.
11873 * gdbserver/linux-mips-low.c: New file.
11874 * gdbserver/linux-ppc-low.c: New file.
11875 * gdbserver/linux-sh-low.c: New file.
11876
11877 * gdbserver/regcache.c: New file.
11878 * gdbserver/regcache.h: New file.
11879
11880 * gdbserver/low-linux.c: Removed obsolete file.
11881
4cc841d0
DJ
118822002-02-14 Daniel Jacobowitz <drow@mvista.com>
11883
11884 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11885 * config/i386/linux.mt: Likewise.
11886 * config/ia64/linux.mt: Likewise.
11887 * config/m68k/linux.mh: Likewise.
11888 * config/powerpc/linux.mh: Likewise.
11889 * config/mips/linux.mt: Likewise.
11890
11891 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11892
11893 * config/i386/i386lynx.mh: Mark gdbserver variables
11894 as (currently) obsolete for this target.
11895 * config/i386/nbsd.mt: Likewise.
11896 * config/i386/nbsdelf.mt: Likewise.
11897 * config/m32r/m32r.mt: Likewise.
11898 * config/m68k/m68klynx.mh: Likewise.
11899 * config/m68k/nbsd.mt: Likewise.
11900 * config/m68k/sun3os4.mh: Likewise.
11901 * config/mips/vr5000.mt: Likewise.
11902 * config/ns32k/nbsd.mt: Likewise.
11903 * config/pa/hppabsd.mh: Likewise.
11904 * config/pa/hppaosf.mh: Likewise.
11905 * config/powerpc/nbsd.mt: Likewise.
11906 * config/rs6000/rs6000lynx.mh: Likewise.
11907 * config/s390/s390.mt: Likewise.
11908 * config/s390/s390x.mt: Likewise.
11909 * config/sparc/sparclynx.mh: Likewise.
11910 * config/sparc/sun4os4.mh: Likewise.
11911 * config/i386/x86-64linux.mt: Likewise.
11912 * config/sparc/linux.mh: Likewise.
11913
a85f51e7
DJ
119142002-02-14 Daniel Jacobowitz <drow@mvista.com>
11915
11916 * configure.tgt: Configure gdbserver only for known working
11917 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11918 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11919 SUBDIRS if it is configured. Update comment for ${nativefile}.
11920 * configure: Regenerated.
11921
65554fef
MS
119222002-02-13 Michael Snyder <msnyder@redhat.com>
11923
670a52db
MS
11924 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11925
6dbdc4a3
MS
11926 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11927 (default_gcore_mach): Just return 0, work around a problem in bfd.
11928 (default_gcore_target): OK to return NULL if exec_bfd is null.
11929 (make_mem_sec): Use a cast, avoid a warning.
11930
11931 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 11932 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
11933 sizeof (host pointer) != sizeof (target pointer)).
11934 (procfs_make_note_section): Avoid overflow in psargs string.
11935
aaa38bb5 11936 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
11937 implementation return an error.
11938
119392002-02-13 Rodney Brown <rbrown64@csc.com.au>
11940
11941 * procfs.c (procfs_make_note_section): Provide a default definition
11942 (for alpha-dec-osf4.0f). Fix typos.
11943
1e4d76e7
EZ
119442002-02-13 Elena Zannoni <ezannoni@redhat.com>
11945
11946 * linux-proc.c: Add include of regcache.h.
11947 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11948
b6d1a1d5
AC
119492002-02-13 Andrew Cagney <ac131313@redhat.com>
11950
11951 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
11952 * memattr.c (create_mem_region): Disallow useless empty region.
11953 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 11954 non-overlapping.
b6d1a1d5 11955
6c6ea35e
MC
119562002-02-13 Michael Chastain <mec@shout.net>
11957
11958 * defs.h: Kill CONST_PTR.
11959 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11960 * c-lang.c (c_builtin_types): Likewise.
11961 * ch-lang.c (ch_builtin_types): Likewise.
11962 * f-lang.c (f_builtin_types): Likewise.
11963 * language.c (unknown_builtin_types): Likewise.
11964 * m2-lang.c (m2_builtin_types): Likewise.
11965 * p-lang.c (pascal_builtin_types): Likewise.
11966 * scm-lang.c (c_builtin_types): Likewise.
11967
3e0b0f48
KS
119682002-02-13 Keith Seitz <keiths@redhat.com>
11969
11970 * arm-tdep.h (arm_get_next_pc): Add declaration.
11971
67255d04
RE
119722002-02-13 Richard Earnshaw <rearnsha@arm.com>
11973
11974 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11975 with other related struct-returning functions.
11976 (arm_extract_struct_value_address): New function.
11977 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11978 initialize float_format, double_format and long_double_format as
11979 appropriate to the endianness of the target.
11980 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11981 (arm_use_struct_convention): Delete declaration.
11982 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11983
079777f6
KS
119842002-02-13 Keith Seitz <keiths@redhat.com>
11985
11986 * defs.h (core_addr_to_string_nz): New function.
11987
34588f23
MK
119882002-02-13 Mark Kettenis <kettenis@gnu.org>
11989
11990 Apply missing bits of 2002-01-15 patch.
11991 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11992 (fill_fpregset): Use i387_fill_fsave.
11993
49b563f9
KS
119942002-02-12 Keith Seitz <keiths@redhat.com>
11995
49b563f9
KS
11996 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11997 (core_addr_to_string_nz): New function.
11998
aeb98c60
RE
119992002-02-11 Richard Earnshaw <rearnsha@arm.com>
12000
12001 * arm-linux-nat.c: Really include arm-tdep.h.
12002 * config/arm/tm-linux.h (struct type, struct value): Declare.
12003
65554fef
MS
120042002-02-11 Michael Snyder <msnyder@redhat.com>
12005
12006 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12007 (gcore section): Ifdef for Solaris and Unixware only.
12008 (procfs_do_thread_registers): Unixware needs one lwpstatus
12009 per thread (not one prstatus or pstatus).
12010 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12011 not over all gdb threads. For unixware, call elfcore_write_pstatus
12012 once before iterating over threads.
12013
34e8f22d
RE
120142002-02-11 Richard Earnshaw <rearnsha@arm.com>
12015
12016 * arm-tdep.h: New file.
12017 * arm-tdep.c: Include arm-tdep.h.
12018 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12019 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12020 (arm_print_float_info, arm_register_type, convert_to_extended)
12021 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12022 (arm_extract_return_value, arm_register_name): Make static.
12023 (arm_software_single_step): Similarly. Fix types in declaration.
12024 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12025 (arm_store_return_value, arm_store_struct_return): New functions.
12026 (arm_gdbarch_init): Register the above functions. Also register
12027 call_dummy_start_offset, sizeof_call_dummy_words,
12028 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12029 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 12030 max_register_virtual_size, register_size. Set up
34e8f22d
RE
12031 prologue_cache.saved_regs here, rather than ...
12032 (_initialize_arm_tdep): ... here.
12033 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12034 declarations.
12035 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12036 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12037 (arm_print_float_info, arm_register_type, convert_to_extended)
12038 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12039 (arm_extract_return_value, arm_register_name): Delete declarations.
12040 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12041 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12042 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12043 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12044 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12045 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12046 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12047 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12048 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12049 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12050 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12051 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12052 interface.
12053 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12054 * remote-rdi.c remote-rdp.c: Likewise.
12055 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12056 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12057 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12058 definition.
12059
12060 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12061 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12062 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12063 from non-ARM_ prefixed definitions.
12064 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12065 all uses of above.
12066 * remote-rdi.c remote-rdp.c: Likewise.
12067 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12068
148754e5
RE
120692002-02-11 Richard Earnshaw <rearnsha@arm.com>
12070
12071 * arm-tdep.c (arm_frameless_function_invocation)
12072 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12073 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12074 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12075 (arm_pop_frame, arm_get_next_pc): Make static.
12076 (arm_gdbarch_init): Register above in gdbarch structure.
12077 (arm_read_fp): Renamed from arm_target_read_fp.
12078 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12079 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12080 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12081 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12082 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12083 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12084 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
12085 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12086 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12087 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12088 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 12089
434d2d4f
DJ
120902002-02-10 Daniel Jacobowitz <drow@mvista.com>
12091
12092 * symtab.c (compare_search_syms): New function.
12093 (sort_search_symbols): New function.
12094 (search_symbols): Sort symbols after searching rather than
12095 before.
12096
55241689
AC
120972002-02-10 Andrew Cagney <ac131313@redhat.com>
12098
12099 * NEWS: Linux -> GNU/Linux.
12100
028c194b
AC
121012002-02-10 Andrew Cagney <ac131313@redhat.com>
12102
12103 * gdbarch.sh: For for level one methods, disallow a definition
12104 when partially multi-arched. Add comments explaining rationale.
12105 * gdbarch.h: Re-generate.
12106
6acf50cd
AC
121072002-02-10 Andrew Cagney <ac131313@redhat.com>
12108
12109 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12110 multi-arch partial.
aaa38bb5 12111
50248794
AC
121122002-02-10 Andrew Cagney <ac131313@redhat.com>
12113
12114 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12115 field. Use diff -u.
12116 * gdbarch.c: Re-generate.
12117
c30e0066
AC
121182002-02-10 Andrew Cagney <ac131313@redhat.com>
12119
9b56c5f3 12120 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
12121 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12122 partial.
12123
6e6d6484
AC
121242002-02-10 Andrew Cagney <ac131313@redhat.com>
12125
12126 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12127 multi-arch partial.
12128 (PUSH_ARGUMENTS): Switch to using predefault.
12129 * gdbarch.c: Regenerate.
12130
c203844d
AC
121312002-02-10 Andrew Cagney <ac131313@redhat.com>
12132
12133 * valops.c (PUSH_ARGUMENTS): Delete definition.
12134 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12135 partial. Default to default_push_arguments.
12136 * gdbarch.h, gdbarch.c: Regenerate.
12137
b5a2688f
AC
121382002-02-09 Andrew Cagney <ac131313@redhat.com>
12139
12140 * defs.h (throw_exception): Rename return_to_top_level. Update
12141 comments.
12142 * utils.c (error_stream, internal_verror, quit): Ditto.
12143 * top.c (throw_exception, catcher): Ditto.
12144 * sparclet-rom.c (sparclet_load): Ditto.
12145 * remote.c (interrupt_query, minitelnet): Ditto.
12146 * remote-sds.c (interrupt_query): Ditto.
12147 * remote-mips.c (mips_error, mips_kill): Ditto.
12148 * ocd.c (interrupt_query): Ditto.
12149 * monitor.c (monitor_interrupt_query): Ditto.
12150 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12151 * target.h: Update comment.
aaa38bb5 12152
b5a2688f 12153 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 12154
2fa5c1e0
AC
121552002-02-09 Andrew Cagney <ac131313@redhat.com>
12156
12157 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12158 default_double_format.
12159 * gdbarch.h, gdbarch.c: Re-generate.
12160 * findvar.c (floatformat_unknown): Delete variable definition.
12161 * doublest.h (floatformat_unknown): Delete variable declaration.
12162
da966255
JB
121632002-02-09 Jim Blandy <jimb@redhat.com>
12164
12165 * stabsread.c (read_type): Add code to parse Sun's syntax for
12166 prototyped function types.
12167
123a4891
AC
121682002-02-09 Andrew Cagney <ac131313@redhat.com>
12169
12170 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12171 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12172
fb39c8f3
PS
121732002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12174
12175 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12176 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12177 now _initialize_xcoffsolib gets called again and overrides the
12178 commands from solib.c in a native configuration.
12179
0b87a11d
MK
121802002-02-09 Mark Kettenis <kettenis@gnu.org>
12181
12182 * doublest.c (store_typed_floating): Don't try to return a value.
12183 Fixes PR gdb/290.
12184
bdc2fc72
JB
121852002-02-08 Jim Blandy <jimb@redhat.com>
12186
12187 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12188 is prototyped and has no arguments, print its argument list as
12189 `(void)'.
12190
da69bbcf
CD
121912002-02-08 Chris Demetriou <cgd@broadcom.com>
12192
12193 * MAINTAINERS (write-after-approval): Add myself.
12194 (paper-trail): I've escaped!
aaa38bb5 12195
b69571f5
CF
121962002-02-08 Christopher Faylor <cgf@redhat.com>
12197
12198 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12199 changes.
12200 (_initialize_check_for_gdb_ini): Ditto.
12201
f6871398
MH
122022002-02-08 Martin M. Hunt <hunt@redhat.com>
12203
12204 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12205 xaprintf -> xasprintf.
12206
4e52d31c
PM
122072002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12208
12209 * win32-nat.c: Remove use of printf and sprintf functions.
12210
39bbf761
RE
122112002-02-08 Richard Earnshaw <rearnsha@arm.com>
12212
12213 * arm-tdep.c (arm_frame_chain_valid): Make static.
12214 (arm_push_arguments): Likewise.
12215 (arm_gdbarch_init): New function.
12216 (_initialize_arm_tdep): Call it.
12217 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12218 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12219 (FRAME_CHAIN_VALID): Delete.
12220 (arm_frame_chain_valid): Delete declaration.
12221 (PUSH_ARGUMENTS): Delete.
12222 (arm_push_arguments): Delete declaration.
12223 (CALL_DUMMY_P): Delete.
12224
9c9532c9
CV
122252002-02-08 Andrew Cagney <ac131313@redhat.com>
12226 Corinna Vinschen <vinschen@redhat.com>
12227
12228 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12229 on builtin float types.
12230
4e8f7a8b
DJ
122312002-02-08 Daniel Jacobowitz <drow@mvista.com>
12232
12233 * utils.c: Include <curses.h> before "bfd.h".
12234 * tui/tui-hooks.c: Likewise.
12235 * tui/tui.c: Likewise.
12236 * tui/tuiCommand.c: Likewise.
12237 * tui/tuiData.c: Likewise.
12238 * tui/tuiDataWin.c: Likewise.
12239 * tui/tuiDisassem.c: Likewise.
12240 * tui/tuiGeneralWin.c: Likewise.
12241 * tui/tuiIO.c: Likewise.
12242 * tui/tuiLayout.c: Likewise.
12243 * tui/tuiRegs.c: Likewise.
12244 * tui/tuiSource.c: Likewise.
12245 * tui/tuiSourceWin.c: Likewise.
12246 * tui/tuiStack.c: Likewise.
12247 * tui/tuiWin.c: Likewise.
12248
cd4bffcf
EZ
122492002-02-07 Elena Zannoni <ezannoni@redhat.com>
12250
12251 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12252 to include space for pseudoregs as well. Update loops accordingly.
12253 (sh_fp_frame_init_saved_regs): Ditto.
12254 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12255
26806ce2
AC
122562002-02-07 Andrew Cagney <ac131313@redhat.com>
12257
12258 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12259 Add Richard Earnshaw to Arm maintainers.
12260
97fdab62
AC
122612002-02-07 Andrew Cagney <ac131313@redhat.com>
12262
a6b98203
AC
12263 * defs.h (warning_begin): Delete declaration.
12264
97fdab62
AC
12265 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12266 Delete macro.
12267
78b29b40
MS
122682002-02-07 Michael Snyder <msnyder@redhat.com>
12269
aaa38bb5 12270 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
12271 Logic bug, remove misplaced else.
12272
d8849953
KD
122732002-02-07 Klee Dienes <klee@apple.com>
12274
12275 * fork-inferior.c (fork_inferior): Add '!' to the list of
12276 characters that need to be quoted when building a string for the
12277 shell. Quote '!' specifically with a backslash, since CSH chokes
12278 when trying to evaluate "str!str".
aaa38bb5 12279
095778a0
NC
122802002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12281
12282 * rdi-share/host.h: Only provide a typedef for bool if it is not
12283 defined.
12284
1900040c
MS
122852002-02-04 Michael Snyder <msnyder@redhat.com>
12286
12287 * breakpoint.h (enum bptype): Add new overlay event bp type.
12288 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 12289
1900040c
MS
12290 * breakpoint.c (create_internal_breakpoint): New function.
12291 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12292 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12293 (create_thread_event_breakpoint): Ditto.
12294 (create_solib_event_breakpoint): Ditto.
12295 (create_overlay_event_breakpoint): New function.
12296 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12297 (update_breakpoints_after_exec): Delete and re-initialize
12298 overlay event breakpoints after an exec. Add FIXME comment
12299 about longjmp breakpoint.
12300 (print_it_typical): Ignore overlay event breakpoints.
12301 (print_one_breakpoint): Ditto.
12302 (mention): Ditto.
12303 (bpstat_what): Do not stop for overlay event breakpoints.
12304 (delete_breakpoint): Don't delete overlay event breakpoints.
12305 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12306 (breakpoint_re_set): Re-create overlay event breakpoint.
12307
12308 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12309 (overlay_manual_command): Disable overlay breakpoints.
12310 (overlay_off_command): Disable overlay breakpoints.
12311
082fc60d
RE
123122002-02-06 Richard Earnshaw <rearnsha@arm.com>
12313
12314 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12315 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12316 to here from config/tm-arm.h.
12317 (coff_sym_is_thumb): Make static.
12318 (arm_elf_make_msymbol_special): New function.
12319 (arm_coff_make_msymbol_special): New function.
12320 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12321 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12322 (coff_sym_is_thumb): Delete declaration.
12323 (arm_elf_make_msymbol_special): Declare.
12324 (arm_coff_make_msymbol_special): Declare.
12325 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12326 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12327
039c5766
RE
123282002-02-06 Richard Earnshaw <rearnsha@arm.com>
12329
12330 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12331
123322002-02-06 Richard Earnshaw <rearnsha@arm.com>
12333
12334 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12335 * gdbarch.c gdbarch.h: Regenerate.
12336 * arch-utils.c (default_print_float_info): New function.
12337 * arch-utils.h (default_print_float_info): Prototype it.
12338 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12339 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12340 (PRINT_FLOAT_INFO): Document it.
12341
12342 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12343 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12344 (PRINT_FLOAT_INFO): Define.
12345
58fa08f0
PM
123462002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12347
aaa38bb5 12348 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
12349 Add typecast to sprintf argument to suppress a warning.
12350
7393af7c
PM
123512002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12352
58fa08f0 12353 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
12354 to allow easier handling of pass state.
12355 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12356 that gives exception name and address.
12357 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 12358 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 12359 exceptions added.
aaa38bb5
AJ
12360 (child_continue): Correctly report continue_status.
12361 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 12362 TARGET_SIGNAL_0 (new default value).
aaa38bb5 12363 (child_resume): consider sig argument passed to decide if
7393af7c
PM
12364 the exception should be passed to debuggee or not.
12365
6af4589c
MS
123662002-02-05 Michael Snyder <msnyder@redhat.com>
12367
12368 * regcache.c (fetch_register): Call target_fetch_register
12369 only if we don't call FETCH_PSEUDO_REGISTER.
12370 (store_register): Call target_store_register only if we
12371 don't call STORE_PSEUDO_REGISTER.
12372
a2cf933a
EZ
123732002-02-05 Elena Zannoni <ezannoni@redhat.com>
12374
12375 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12376 ELF_MAKE_MSYMBOL_SPECIAL.
12377 * gdbarch.c, gdbarch.h: Regenerate.
12378 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12379 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12380 * elfread.c (elf_symtab_read): Compile use of
12381 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12382 multiarched.
12383 * coffread.c (coff_symtab_read): Ditto, for
12384 COFF_MAKE_MSYMBOL_SPECIAL.
12385
6bb7be43
JB
123862002-02-05 Jim Blandy <jimb@redhat.com>
12387
12388 * solib-svr4.c (svr4_truncate_ptr): New function.
12389 (svr4_relocate_section_addresses): Do the address arithmetic with
12390 the appropriate truncation for target addresses, even when
12391 CORE_ADDR is larger than a target address.
12392
e18651ec
DJ
123932002-02-05 Daniel Jacobowitz <drow@mvista.com>
12394
12395 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12396 to (int *).
12397
6b2725be
DJ
123982002-02-05 Daniel Jacobowitz <drow@mvista.com>
12399
12400 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12401 code.
12402
fca9e603
DJ
124032002-02-05 Daniel Jacobowitz <drow@mvista.com>
12404
12405 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12406
6c537a52
DJ
124072002-02-05 Daniel Jacobowitz <drow@mvista.com>
12408
12409 * gdbserver/linux-low.c: Remove unused include files.
12410
d844cde6
DJ
124112002-02-05 Daniel Jacobowitz <drow@mvista.com>
12412
12413 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12414 (read_inferior_memory): Use it.
12415 (write_inferior_memory): Likewise.
12416
d07c63e7
DJ
124172002-02-05 Daniel Jacobowitz <drow@mvista.com>
12418
12419 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12420 grubbing through sys_errlist.
12421
da6d8c04
DJ
124222002-02-05 Daniel Jacobowitz <drow@mvista.com>
12423
12424 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12425
5b421780
PM
124262002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12427 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12428
9f60d481
AC
124292002-02-04 Andrew Cagney <ac131313@redhat.com>
12430
12431 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12432 (do_sfunc, set_cmd_sfunc): New functions.
12433
12434 * command.h (struct cmd_list_element): Add field func.
12435 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12436 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12437 * cli/cli-decode.h: Ditto.
12438
12439 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12440 (help_all, help_cmd_list): Ditto.
12441 (find_cmd, complete_on_cmdlist): Ditto.
12442 * top.c (execute_command): Ditto.
12443
12444 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12445 function.sfunc.
12446
12447 * infcmd.c (notice_args_read): Fix function signature.
12448
12449 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12450 * cli/cli-decode.c (add_set_cmd): Ditto.
12451 * utils.c (initialize_utils): Ditto.
12452 * maint.c (_initialize_maint_cmds): Ditto.
12453 * infrun.c (_initialize_infrun): Ditto.
12454 * demangle.c (_initialize_demangler): Ditto.
12455 * remote.c (add_packet_config_cmd): Ditto.
12456 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12457 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12458 * proc-api.c (_initialize_proc_api): Ditto.
12459 * kod.c (_initialize_kod): Ditto.
12460 * valprint.c (_initialize_valprint): Ditto.
12461 * top.c (init_main): Ditto.
12462 * infcmd.c (_initialize_infcmd): Ditto.
12463 * corefile.c (_initialize_core): Ditto.
12464 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12465 * arch-utils.c (initialize_current_architecture): Ditto.
12466 (_initialize_gdbarch_utils): Ditto.
12467 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12468
12469 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12470 * wince.c (_initialize_inftarg): Ditto.
12471 * symfile.c (_initialize_symfile): Ditto.
12472 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12473 * language.c (_initialize_language): Ditto.
12474 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12475
f9ba0717
MS
124762002-02-04 Michael Snyder <msnyder@redhat.com>
12477
12478 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12479
0c74b2a7
DJ
124802002-02-04 Daniel Jacobowitz <drow@mvista.com>
12481
12482 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12483 Add rules for building the register data files.
12484
c638789f
DJ
124852002-02-04 Daniel Jacobowitz <drow@mvista.com>
12486
12487 * regformats/regdat.sh: Add braces to the definition of
12488 expedite_regs_${arch}.
12489
db253027
DJ
124902002-02-04 Daniel Jacobowitz <drow@mvista.com>
12491
12492 * regformats/regdef.h (struct reg): Add comment describing the
12493 requirements for offset and size fields.
12494
206be19c
AS
124952002-02-04 Andreas Schwab <schwab@suse.de>
12496
12497 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12498 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12499
181c1381
RE
125002002-02-04 Richard Earnshaw <rearnsha@arm.com>
12501
12502 * gdbarch.sh (copyright): Update years in generated header.
12503 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12504 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12505 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12506 * dbxread.c: Likewise.
12507 * dwarfread.c: Likewise.
12508 * elfread.c: Likewise.
12509 * somread.c: Likewise.
12510
12511 * arm-tdep.c (arm_smash_text_address): New function.
12512 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12513
fa4ba8da
PM
125142002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12515
12516 Add support for hardware watchpoints on win32 native.
aaa38bb5 12517 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12518 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12519 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12520 of debug registers.
12521 (debug_registers_changed): New variable. Reflects when debug registers
12522 are changed and need to be written to inferior.
aaa38bb5 12523 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12524 was set, used when new threads are created.
12525 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12526 i386-nat code.
12527 (thread_rec): Set dr array if id is the thread of current_event .
12528 (child_continue, child_resume): Change the debug registers for all
12529 threads if debug_registers_changed.
12530 (child_add_thread): Change the debug registers if debug_registers_used.
12531 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12532 Link nm.h to new nm-cygwin.h file.
12533 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12534 of hardware registers.
12535
a73c86fb
AC
125362002-02-03 Andrew Cagney <ac131313@redhat.com>
12537
12538 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12539 Restore behavour broken by 2002-01-20 Andrew Cagney
12540 <ac131313@redhat.com> IEEE_FLOAT removal.
12541
acf5ed49
DJ
125422002-02-03 Daniel Jacobowitz <drow@mvista.com>
12543
12544 * c-valprint.c (c_val_print): Pass a proper valaddr to
12545 cp_print_class_method.
12546 * valops.c (search_struct_method): If there is only one method
12547 and args is NULL, return that method.
12548
493d28d5
DJ
125492002-02-03 Daniel Jacobowitz <drow@mvista.com>
12550
12551 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12552 accessing tag_name directly.
12553
7495dfdb
DJ
125542002-02-03 Daniel Jacobowitz <drow@mvista.com>
12555
12556 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12557 of accessing tag_name directly.
12558
dd6bda65
DJ
125592002-02-03 Daniel Jacobowitz <drow@mvista.com>
12560
12561 PR gdb/280
12562 * gdbtypes.c (replace_type): New function.
12563 * gdbtypes.h (replace_type): Add prototype.
12564 * stabsread.c (read_type): Use replace_type.
12565
88fe217c
RE
125662002-02-03 Richard Earnshaw <rearnsha@arm.com>
12567
12568 * Makefile.in (memattr.o): Add missing dependencies rule.
12569
e5d66720
PS
125702002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12571
12572 * breakpoint.c (break_at_finish_command): Really export.
12573 (break_at_finish_at_depth_command): Ditto.
12574 (tbreak_at_finish_command): Ditto.
12575 * hppa-tdep.c: Include completer.h.
12576 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12577 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12578
fffee0be
AC
125792002-02-01 Andrew Cagney <ac131313@redhat.com>
12580
12581 * utils.c (do_write): New function.
12582 (error_stream): Rewrite combining the code from error_begin and
12583 verror.
12584 (verror): Rewrite using error_stream.
12585 (error_begin): Delete function.
12586
255e7dbf
AC
125872002-02-01 Andrew Cagney <ac131313@redhat.com>
12588
12589 * utils.c (error_begin): Make static.
12590 * defs.h (error_begin): Delete declaration.
12591
12592 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12593 (decode_line_1): Use cplusplus_error instead of error_begin,
12594 cplusplus_hint and return_to_top_level.
12595 * coffread.c (coff_symfile_read): Use error instead of error_begin
12596 and return_to_top_level.
12597 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12598
ddfe3c15
AC
125992002-02-01 Andrew Cagney <ac131313@redhat.com>
12600
12601 * language.h (type_error, range_error): Make string parameter
12602 constant.
12603 * language.c (warning_pre_print): Delete extern declaration.
12604 * dwarfread.c (warning_pre_print): Ditto.
12605 * language.c (type_error, range_error): Rewrite to use verror and
12606 vwarning instead of warning_begin.
12607
03ac34d5
MS
126082002-02-01 Michael Snyder <msnyder@redhat.com>
12609
261c4ca2
MS
12610 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12611 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12612
e00d1dc8
AC
126132002-02-01 Andrew Cagney <ac131313@redhat.com>
12614
12615 * command.h (NO_FUNCTION): Delete macro.
12616 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12617 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12618 * tracepoint.c (_initialize_tracepoint): Ditto.
12619 * cli/cli-decode.c (add_set_cmd): Ditto.
12620 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12621
76b79d6e
DJ
126222002-02-01 Daniel Jacobowitz <drow@mvista.com>
12623
12624 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12625 Update ``this'' pointer when calling virtual functions.
12626
799f9e91
MS
126272002-02-01 Michael Snyder <msnyder@redhat.com>
12628
c7bd442c 12629 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12630 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12631
3cf384d4
DJ
126322002-02-01 Daniel Jacobowitz <drow@mvista.com>
12633
12634 * regformats/reg-arm.dat: New file.
12635 * regformats/reg-i386.dat: New file.
12636 * regformats/reg-ia64.dat: New file.
12637 * regformats/reg-m68k.dat: New file.
12638 * regformats/reg-mips.dat: New file.
12639 * regformats/reg-ppc.dat: New file.
12640 * regformats/reg-sh.dat: New file.
12641 * regformats/regdef.h: New file.
12642 * regformats/regdat.sh: New file.
12643
0defa245
RE
126442002-02-01 Richard Earnshaw <reanrsha@arm.com>
12645
12646 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12647 (arm_frame_args_address, arm_frame_locals_address): New functions.
12648 (arm_frame_num_args): New function.
12649 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12650 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12651 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12652
405f26e6
MS
126532002-01-31 Michael Snyder <msnyder@redhat.com>
12654
502fd408
MS
12655 * breakpoint.c (break_at_finish_command): Export.
12656 (break_at_finish_at_depth_command): Export.
12657 (tbreak_at_finish_command): Export.
d6020d45 12658 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12659 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12660 "txbreak" commands, which are HPPA specific.
502fd408 12661
7d35e135
MS
12662 * printcmd.c (disassemble_command): Remove an ancient
12663 artifact of an old merge.
12664
aaa38bb5 12665 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12666 Define enum constant values for overlay mode.
12667 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12668 (overlay_is_mapped, overlay_auto_command,
12669 overlay_manual_command): Ditto.
d874f1e2 12670
aaa38bb5
AJ
12671 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12672 breakpoint_here_p, breakpoint_inserted_here_p,
12673 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12674 describe_other_breakpoints, check_duplicates, clear_command):
12675 Coding standard fixes.
12676
8add0441 12677 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12678 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12679 code: check bfd SEC_READONLY flag for section.
12680
e351066e
AC
126812002-01-31 Andrew Cagney <ac131313@redhat.com>
12682
7d35e135 12683 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 12684
8a48e967
DJ
126852002-01-30 Daniel Jacobowitz <drow@mvista.com>
12686
12687 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12688 data symbols, since we search based on textlow and texthigh.
12689 (find_pc_sect_symtab): Likewise.
12690
f5a96129
AC
126912002-01-30 Andrew Cagney <ac131313@redhat.com>
12692
12693 * defs.h (vwarning): Declare.
f5a96129
AC
12694 * utils.c (vwarning): New function.
12695 (warning): Call vwarning.
12696 (warning_begin): Delete function.
12697
12698 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12699 the warning message.
12700 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12701 warning_begin.
12702
cefd4ef5
MS
127032002-01-30 Michael Snyder <msnyder@redhat.com>
12704
1a703748
MS
12705 * NEWS: Mention "set trust-readonly-sections" command.
12706 Mention generate-core-file command.
cefd4ef5 12707
3a11626d
MS
127082002-01-15 Michael Snyder <msnyder@redhat.com>
12709
12710 * target.c: New command, "set trust-readonly-sections on".
12711 (do_xfer_memory): Honor the suggestion to trust readonly sections
12712 by reading them from the object file instead of from the target.
12713 (initialize_targets): Register command "set trust-readonly-sections".
12714
d1c7e53b
AC
127152002-01-29 Andrew Cagney <ac131313@redhat.com>
12716
12717 * parse.c (target_map_name_to_register): Simplify, search regs and
12718 pseudo-regs using a single loop.
12719
e2c9a72c
AC
127202002-01-30 Andrew Cagney <ac131313@redhat.com>
12721
12722 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12723
69824b4e
MK
127242002-01-15 Rodney Brown <rbrown64@csc.com.au>
12725
12726 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12727 * config/i386/i386v42mp.mh: Add i387-nat.o .
12728 * i386v4-nat.c: Include i387-nat.h.
12729 (supply_fpregset): Use i387_supply_fsave.
12730 (fill_fpregset): Use i387_fill_fsave.
12731
6eb69eab
RE
127322002-01-30 Richard Earnshaw <rearnsha@arm.com>
12733
12734 * arm-tdep.c (arm_call_dummy_words): Define.
12735 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12736 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12737 (CALL_DUMMY_WORDS): Define.
12738 (arm_call_dummy_words): Declare.
12739 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12740 (arm_linux_call_dummy_words): Declare.
12741
9852326a
AS
127422002-01-30 Andreas Schwab <schwab@suse.de>
12743
12744 * m68klinux-nat.c: Fix last change to use regcache_collect
12745 instead of referencing registers[] directly.
12746
977a3030
AC
127472002-01-29 Andrew Cagney <ac131313@redhat.com>
12748
12749 * parse.c (target_map_name_to_register): Delete code wrapped in
12750 #ifdef REGISTER_NAME_ALIAS_HOOK.
12751
2076c72b
MS
127522002-01-28 Michael Snyder <msnyder@redhat.com>
12753
12754 * regcache.c (legacy_read_register_gen): Need to be able to
12755 read pseudo-register as well as real register.
12756 (legacy_write_register_gen): Ditto.
12757
8fcc723b
AC
127582002-01-28 Andrew Cagney <ac131313@redhat.com>
12759
12760 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12761 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12762 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12763 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12764 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12765 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12766 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12767 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12768 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12769 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12770 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12771 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12772 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12773 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12774 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12775 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12776 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12777 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12778 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12779 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12780
afe64c1a
AC
127812002-01-28 Andrew Cagney <ac131313@redhat.com>
12782
12783 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12784 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12785 (initialize_current_architecture): Update target_byte_order using
12786 information from BFD.
aaa38bb5 12787 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
12788 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12789
75bc7ddf
AC
127902002-01-28 Andrew Cagney <ac131313@redhat.com>
12791
12792 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12793 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12794
12795 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12796 #ifdef INVALID_FLOAT.
12797 * infcmd.c (do_registers_info): Ditto.
12798 * values.c (unpack_double): Ditto. Add comment.
12799
12800 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12801 already commented out.
12802
0280a90a
AS
128032002-01-26 Andreas Schwab <schwab@suse.de>
12804
12805 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12806 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12807 registers and add support for PTRACE_GETREGS.
12808
7072a954
AC
128092002-01-24 Andrew Cagney <ac131313@redhat.com>
12810
12811 GDB 5.1.1 released from 5.1 branch.
12812 * NEWS: Add 5.1.1 news.
12813 * README: Sync with 5.1 branch.
12814
86f902e0
FF
128152002-01-23 Fred Fish <fnf@redhat.com>
12816
12817 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12818 stabstring on initial malloc. Reallocing will copy it for us,
12819 if necessary.
12820
8af51c36
EZ
128212002-01-23 Elena Zannoni <ezannoni@redhat.com>
12822
aaa38bb5 12823 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
12824 (HFILES_NO_SRCDIR): Remove hpread.h.
12825 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12826 (hpread.o): Update dependencies.
12827 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12828
12829 * hp-psymtab-read.c: Remove file.
12830 * hp-symtab-read.c: Remove file.
12831 * hpread.h: Remove file.
12832
12833 * hpread.c: Merge all contents of hp-psymtab-read.c,
12834 hp-symtab-read.c and hpread.h into this file, as it was prior to
12835 January 1999.
12836
12837 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 12838 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
12839 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12840 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12841
dc5cfeb6
EZ
128422002-01-23 Elena Zannoni <ezannoni@redhat.com>
12843
12844 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12845 fill_gregset): Call gdbarch_tdep() just once, assign result to
12846 variable and use that, instead of calling the function several
12847 times.
12848
ea87b71b
AO
128492002-01-24 Alexandre Oliva <aoliva@redhat.com>
12850
12851 * configure.host: Accept sparcv9 as alias for sparc64.
12852 * configure.tgt: Likewise.
12853
13fc0c2f
KB
128542002-01-22 Kevin Buettner <kevinb@redhat.com>
12855
12856 * solib-aix5.c (build_so_list_from_mapfile)
12857 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12858 arguments is not reversed.
12859 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12860 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 12861
7bd872fe
EZ
128622002-01-22 Elena Zannoni <ezannoni@redhat.com>
12863
12864 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12865 modified version of obsolete sh_fetch_pseudo_register.
12866 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12867 (sh4_register_read): New function.
12868 (sh_pseudo_register_write): New function. Renamed and modified
12869 version of obsolete sh_store_pseudo_register.
12870 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12871 (sh4_register_write): New function.
12872 (sh_gdbarch_init): Remove setting of gdbarch function
12873 fetch_pseudo_register and store_pseudo_register. Remove setting of
12874 register_convert_to_raw, register_convert_to_virtual,
12875 register_convertible.
12876 (sh_sh4_register_convertible): Delete. No longer needed. All is
12877 taken care by architecture specific functions
12878 register_read/register_write.
12879 (sh_sh4_register_convert_to_virtual): Make static.
12880 (sh_sh4_register_convert_to_raw): Ditto.
12881
069e84fd
AC
128822002-01-22 Andrew Cagney <ac131313@redhat.com>
12883
12884 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12885 (floatformat_is_nan, floatformat_mantissa): Ditto.
12886
12887 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12888 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12889 builtin_type_ieee_double_little,
12890 builtin_type_ieee_double_littlebyte_bigword,
12891 builtin_type_m68881_ext, builtin_type_i960_ext,
12892 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12893 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12894 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12895 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12896
211a4f69
CV
128972002-01-22 Corinna Vinschen <vinschen@redhat.com>
12898
12899 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12900 parameter. Set frameless flag if it exists and depended of
12901 whether the scanned function is frameless or not.
12902 (xstormy16_skip_prologue): If function is frameless, return
12903 result of xstormy16_scan_prologue().
12904 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12905 call.
12906
f81353e4
EZ
129072002-01-21 Elena Zannoni <ezannoni@redhat.com>
12908
12909 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12910 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12911 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12912 sh_sh4_register_byte, sh_sh4_register_raw_size,
12913 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12914 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12915 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12916 sh_store_pseudo_register, sh_do_pseudo_register): Call
12917 gdbarch_tdep() just once, assign result to variable and use that,
12918 instead of calling the function several times.
12919
63c73a17
MK
129202002-01-20 Mark Kettenis <kettenis@gnu.org>
12921
12922 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12923 macros instead of LAST_FPU_CTRL_REGNUM.
12924 (store_register): Likewise.
12925
39ad761d
JB
129262002-01-21 Jim Blandy <jimb@redhat.com>
12927
12928 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12929 is up-to-date before running the program, not just when a program
12930 exits.
12931
3d74b771
FF
129322002-01-21 Fred Fish <fnf@redhat.com>
12933
12934 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12935 when we have found all instructions we are looking for.
12936
966fbf70
RE
129372002-01-21 Richard Earnshaw <rearnsha@arm.com>
12938
12939 * arm-tdep.c (arm_register_name): New function.
12940 (arm_registers_names): Make static.
12941 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12942 (arm_register_name): Declare.
12943 (REGISTER_NAME): Use it.
12944
c3b4394c
RE
129452002-01-21 Richard Earnshaw <rearnsha@arm.com>
12946 Kevin Buettner <kevinb@redhat.com>
12947
12948 Convert arm targets to new FRAME interface.
12949 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12950 (arm_frame_find_save_regs): Delete.
12951 (arm_frame_init_saved_regs): New.
12952 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12953 Allocate extra_info as required. Convert all uses of fsr.regs
12954 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12955 to use extra_info.
12956 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12957 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12958 (check_prologue_cache, save_prologue_cache): Likewise.
12959 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12960 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12961 (FRAME_FIND_SAVED_REGS): Delete.
12962 (arm_frame_find_saved_regs): Delete prototype.
12963 (arm_frame_init_saved_regs): New prototype.
12964 (FRAME_INIT_SAVED_REGS): Define.
12965
61d99182
AC
129662002-01-20 Andrew Cagney <ac131313@redhat.com>
12967
12968 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12969
6aaea291
AC
129702002-01-20 Andrew Cagney <ac131313@redhat.com>
12971
12972 From Jeff Law <law@redhat.com>:
12973 * infttrace.c: Include <sys/pstat.h>.
12974 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12975 exec file if the ttrace equivalent fails.
12976
15f698d2
AC
129772002-01-20 Andrew Cagney <ac131313@redhat.com>
12978
12979 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12980 (closeLogFile): Ditto.
12981
f86ddd7c
MC
129822002-01-20 Michael Chastain <mec@shout.net>
12983
12984 * top.c (print_gdb_version): Bump copyright year to 2002.
12985
904507ce
AC
129862002-01-20 Andrew Cagney <ac131313@redhat.com>
12987
12988 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12989 Zannoni and Eli Zaretskii.
12990
d7f0b9ce
DJ
129912002-01-20 Daniel Jacobowitz <drow@mvista.com>
12992
12993 * buildsym.c: Update copyright years.
12994 * c-typeprint.c: Likewise.
12995 * dwarf2read.c: Likewise.
12996 * f-typeprint.c: Likewise.
12997 * gdbtypes.c: Likewise.
12998 * gdbtypes.h: Likewise.
12999 * hp-symtab-read.c: Likewise.
13000 * hpread.c: Likewise.
13001 * mdebugread.c: Likewise.
13002 * p-typeprint.c: Likewise.
13003
3fd3d7d2
AC
130042002-01-20 Andrew Cagney <ac131313@redhat.com>
13005
13006 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13007 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13008 byte-order selectable.
13009 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13010 * arch-utils.c: Ditto.
13011 (set_endian): Ditto.
13012 (set_endian_from_file): Ditto.
13013 * gdbserver/low-sim.c (create_inferior): Ditto.
13014 * gdbarch.sh: Ditto.
13015 * gdbarch.h: Re-generate.
aaa38bb5
AJ
13016 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13017 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13018 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13019 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13020 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13021 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13022 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
13023 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13024 macro definition.
13025 * config/mips/tm-wince.h: Remove #undef of macro
13026 TARGET_BYTE_ORDER_SELECTABLE.
13027 * config/sh/tm-wince.h: Ditto.
13028
b02dede2
DJ
130292002-01-20 Daniel Jacobowitz <drow@mvista.com>
13030
13031 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13032 member function fields. Add accessor macro
13033 TYPE_FN_FIELD_ARTIFICIAL.
13034 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13035 * c-typeprint.c (c_type_print_base): Skip artificial member
13036 functions.
13037
c3643761
DJ
130382002-01-20 Daniel Jacobowitz <drow@mvista.com>
13039
13040 * f-typeprint.c: Delete unused function f_type_print_args.
13041 * p-typeprint.c: Delete unused function pascal_type_print_args.
13042
8176bb6d
DJ
130432002-01-20 Daniel Jacobowitz <drow@mvista.com>
13044
13045 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13046 comment. Add ``artificial'' to ``union field_location''.
13047
13048 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13049
13050 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13051 * mdebugread.c (parse_symbol): Likewise.
13052 * stabsread.c (define_symbol): Likewise.
13053 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13054 initializing TYPE_FIELD_BITPOS to n (obsolete).
13055 (hpread_doc_function_type): Likewise.
13056 * hpread.c (hpread_function_type): Likewise.
13057
7fd60527
AC
130582002-01-20 Andrew Cagney <ac131313@redhat.com>
13059
13060 * configure.in (host_makefile_frag): Only require a host makefile
13061 fragment when a native build.
13062 * configure: Re-generate.
13063
c2f05ac9
AC
130642002-01-20 Andrew Cagney <ac131313@redhat.com>
13065
13066 * doublest.h (floatformat_from_type): Declare.
13067 * doublest.c (floatformat_from_type): New function.
13068 (convert_typed_floating): Use.
13069
13070 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13071 call to function floatformat_from_type.
13072
13073 * gdbarch.sh (IEEE_FLOAT): Delete.
13074 * gdbarch.h, gdbarch.c: Re-generate.
13075 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13076 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13077 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13078 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13079 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13080 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13081 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13082 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13083 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13084 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13085 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
13086 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13087
13088 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13089 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13090 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13091 * sh-tdep.c (sh_gdbarch_init): Ditto.
13092 * mips-tdep.c (mips_gdbarch_init): Ditto.
13093 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13094 * cris-tdep.c (cris_gdbarch_init): Ditto.
13095
abf22e64
AJ
130962002-01-20 Jiri Smid <smid@suse.cz>
13097
13098 * configure.host, configure.tgt: Support x86-64.
13099 * NEWS: Note new target x86-64.
13100
b7c4cbf8
AJ
13101 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13102 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13103 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13104 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13105 x86-64-linux-nat.o): Fix dependencies.
13106
82600034
AC
131072002-01-19 Andrew Cagney <ac131313@redhat.com>
13108
13109 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13110 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13111 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13112 * config/sparc/xm-sun4os4.h: Delete file.
13113 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 13114
bbe5c628
AC
131152002-01-19 Andrew Cagney <ac131313@redhat.com>
13116
13117 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13118 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13119 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13120 * config/i386/i386lynx.mh (XM_FILE): Delete.
13121 * config/rs6000/xm-rs6000ly.h: Delete file.
13122 * config/sparc/xm-sparclynx.h: Delete file.
13123 * config/m68k/xm-m68klynx.h: Delete file.
13124 * config/i386/xm-i386lynx.h: Delete file.
13125 * config/xm-lynx.h: Delete file.
13126 * config/djgpp/fnchange.lst: Update.
13127
f8453e34
JT
131282002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13129
13130 * alpha-tdep.c (alpha_register_byte): New function.
13131 (alpha_register_raw_size): Ditto.
13132 (alpha_register_virtual_size): Ditto.
13133 (alpha_skip_prologue_internal): Renamed from
13134 alpha_skip_prologue.
13135 (alpha_skip_prologue): New version that calls
13136 alpha_skip_prologue_internal.
13137 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13138 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13139 second argument from alpha_skip_prologue.
13140 (REGISTER_BYTE): Use alpha_register_byte.
13141 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13142 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13143 (FRAMELESS_FUNCTION_INVOCATION): Use
13144 generic_frameless_function_invocation_not.
13145 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13146 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13147
52d9e613
AC
131482002-01-19 Andrew Cagney <ac131313@redhat.com>
13149
13150 * config/mips/xm-news-mips.h: Delete file.
13151 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13152
13153 * config/m88k/xm-m88k.h: Delete file.
13154 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13155 * config/m88k/xm-delta88v4.h: Ditto.
13156 * config/m88k/xm-delta88.h: Ditto.
13157
13158 * config/alpha/xm-fbsd.h: Delete file.
13159 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13160
13161 * config/sparc/xm-sparc.h: Delete file.
13162 * Makefile.in (xm-sun4os4.h): Delete dependency.
13163 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13164 * config/sparc/xm-sun4os4.h: Ditto.
13165 * config/sparc/xm-linux.h: Ditto.
13166
13167 * config/i386/xm-windows.h: Delete file.
13168
2d1b2124
AC
131692002-01-19 Andrew Cagney <ac131313@redhat.com>
13170
13171 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13172 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13173
ee1f65f0
JT
131742002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13175
13176 * alpha-tdep.c (alpha_call_dummy_words): New.
13177 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13178 (CALL_DUMMY_P): Define.
13179 (CALL_DUMMY_WORDS): Define.
13180 (SIZEOF_CALL_DUMMY_WORDS): Define.
13181
98081e55
PB
131822002-01-19 Per Bothner <per@bothner.com>
13183
13184 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13185 isn't NULL, which can happen with some gcj-3.x-produced code.
13186
0d056799
JT
131872002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13188
13189 * alpha-tdep.c (alpha_register_virtual_type): New function.
13190 (alpha_init_frame_pc_first): Ditto.
13191 (alpha_fix_call_dummy): Ditto.
13192 (alpha_store_struct_return): Ditto.
13193 (alpha_extract_struct_value_address): Ditto.
13194 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13195 alpha_register_virtual_type.
13196 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13197 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13198 alpha_extract_struct_value_address.
13199 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13200 (INIT_FRAME_PC): Use init_frame_pc_noop.
13201 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13202
4604bcad
MK
132032002-01-19 Mark Kettenis <kettenis@gnu.org>
13204
13205 * i386gnu-nat.c: Include "i386-tdep.h".
13206 (fetch_fpregs): Simplify code dealing with uninitialized floating
13207 point states such that it doesn't require FP7_REGNUM.
13208
140f9984
JT
132092002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13210
abf22e64
AJ
13211 * alpha-tdep.c (frame_extra_info): New.
13212 (alpha_find_saved_regs): Make static. Use
140f9984
JT
13213 frame->extra_info.
13214 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
13215 (alpha_frame_saved_pc): Use frame->extra_info.
13216 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13217 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
13218 (init_extra_frame_info): Rename to...
13219 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 13220 (alpha_print_extra_frame_info): New function.
140f9984
JT
13221 (alpha_frame_locals_address): Ditto.
13222 (alpha_frame_args_address): Ditto.
abf22e64 13223 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
13224 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13225 alpha_frame_args_address.
abf22e64 13226 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 13227 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
13228 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13229 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
13230 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13231 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13232
d734c450
JT
132332002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13234
13235 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13236 (alpha_cannot_fetch_register): Ditto.
13237 (alpha_cannot_store_register): Ditto.
13238 (alpha_register_convertible): Ditto.
13239 (alpha_use_struct_convention): Ditto.
13240 * config/alpha/tm-alpha.h: Update copyright years.
13241 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13242 (INNER_THAN): Use core_addr_lessthan.
13243 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13244 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13245 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13246 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13247 (FRAME_CHAIN): Remove unnecessary cast.
13248
b4ceaee6
AC
132492002-01-18 Andrew Cagney <ac131313@redhat.com>
13250
13251 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13252 obsolete.
13253
0a65a603
AC
132542002-01-18 Andrew Cagney <ac131313@redhat.com>
13255
13256 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13257 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13258 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13259 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13260 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13261 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13262 * x86-64-linux-nat.c: Ditto.
13263
636a6dfc
JT
132642002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13265
abf22e64 13266 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
13267 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13268 (REGISTER_NAME): Define.
13269
acceddb6
JT
132702002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13271
13272 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13273
ec32e4be
JT
132742002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13275
13276 * alpha-tdep.c: Update copyright years.
13277 (alpha_next_pc): New function.
13278 (alpha_software_single_step): Ditto.
13279 * config/alpha/tm-alpha.h: Add prototype for
13280 alpha_software_single_step.
13281
e771a871
JT
132822002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13283
13284 * alphabsd-nat.c: Update copyright years.
13285 (fill_gregset): Use regcache_collect.
13286 (fill_fpregset): Likewise.
13287 (fetch_inferior_registers): Only fetch integer registers
13288 if requested to do so.
13289 (store_inferior_registers): Only store integer registers
13290 if requested to do so.
13291
7708fa01
AC
132922002-01-17 Andrew Cagney <ac131313@redhat.com>
13293
13294 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13295 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13296 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13297 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13298 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13299 * config/arm/linux.mh (XDEPFILES): Delete.
13300 * config/arm/nbsd.mh (XDEPFILES): Delete.
13301 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13302 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13303 * config/i386/i386m3.mh (XDEPFILES): Delete.
13304 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13305 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13306 * config/i386/fbsd.mh (XDEPFILES): Delete.
13307 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13308 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13309 * config/i386/i386v4.mh (XDEPFILES): Delete.
13310 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13311 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13312 * config/i386/i386aix.mh (XDEPFILES): Delete.
13313 * config/i386/go32.mh (XDEPFILES): Delete.
13314 * config/i386/cygwin.mh (XDEPFILES): Delete.
13315 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13316 * config/i386/i386mach.mh (XDEPFILES): Delete.
13317 * config/i386/i386v32.mh (XDEPFILES): Delete.
13318 * config/i386/linux.mh (XDEPFILES): Delete.
13319 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13320 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13321 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13322 * config/i386/i386sco.mh (XDEPFILES): Delete.
13323 * config/i386/i386v.mh (XDEPFILES): Delete.
13324 * config/i386/nbsd.mh (XDEPFILES): Delete.
13325 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13326 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13327 * config/i386/symmetry.mh (XDEPFILES): Delete.
13328 * config/i386/obsd.mh (XDEPFILES): Delete.
13329 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13330 * config/ia64/linux.mh (XDEPFILES): Delete.
13331 * config/ia64/aix.mh (XDEPFILES): Delete.
13332 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13333 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13334 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13335 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13336 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13337 * config/m68k/linux.mh (XDEPFILES): Delete.
13338 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13339 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13340 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13341 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13342 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13343 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13344 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13345 * config/m88k/delta88.mh (XDEPFILES): Delete.
13346 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13347 * config/m88k/m88k.mh (XDEPFILES): Delete.
13348 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13349 * config/mips/linux.mh (XDEPFILES): Delete.
13350 * config/mips/irix6.mh (XDEPFILES): Delete.
13351 * config/mips/irix5.mh (XDEPFILES): Delete.
13352 * config/mips/irix4.mh (XDEPFILES): Delete.
13353 * config/mips/irix3.mh (XDEPFILES): Delete.
13354 * config/mips/decstation.mh (XDEPFILES): Delete.
13355 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13356 (NATDEPFILES): Move core-aout.o to here.
13357 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13358 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13359 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13360 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13361 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13362 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13363 * config/pa/hpux11.mh (XDEPFILES): Delete.
13364 * config/powerpc/aix.mh (XDEPFILES): Delete.
13365 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13366 * config/powerpc/linux.mh (XDEPFILES): Delete.
13367 * config/romp/rtbsd.mh: Rename XDEPFILES.
13368 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13369 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13370 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13371 * config/s390/s390.mh (XDEPFILES): Delete.
13372 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13373 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13374 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13375 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13376 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13377 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13378 * config/sparc/linux.mh (XDEPFILES): Delete.
13379 * config/vax/vaxult.mh (XDEPFILES): Delete.
13380 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13381 * Makefile.in (DEPFILES): Remove XDEPFILES.
13382
375fc983
AC
133832002-01-17 Andrew Cagney <ac131313@redhat.com>
13384
13385 * utils.c (internal_verror): Fix comments, default is yes not no.
13386 Update queries to match. Default to quit and dump core.
13387
8926118c
AC
133882002-01-17 Andrew Cagney <ac131313@redhat.com>
13389
13390 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13391 copyright.
13392 * defs.h, event-top.c, gdbcmd.h: Ditto.
13393 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13394 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13395 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13396 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13397 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13398 * mi/mi-main.c:Ditto.
13399
13400 * stack.c, symfile.c: Update copyright.
13401
45b7b345
DJ
134022002-01-17 Daniel Jacobowitz <drow@mvista.com>
13403
db728ff7
DJ
13404 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13405 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13406 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13407 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 13408
db728ff7
DJ
134092002-01-17 Daniel Jacobowitz <drow@mvista.com>
13410
13411 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13412 * gdbserver/low-lynx.c (myattach): Likewise.
13413 * gdbserver/low-nbsd.c (myattach): Likewise.
13414 * gdbserver/low-sim.c (myattach): Likewise.
13415 * gdbserver/low-sparc.c (myattach): Likewise.
13416 * gdbserver/low-sun3.c (myattach): Likewise.
13417
13418 * gdbserver/low-linux.c (myattach): New function.
45b7b345 13419
db728ff7 13420 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
13421 (main): Handle "--attach".
13422
8de3c354
AC
134232002-01-16 Andrew Cagney <ac131313@redhat.com>
13424
13425 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13426 maintainer.
13427
b0129042
DJ
134282002-01-15 Daniel Jacobowitz <drow@mvista.com>
13429
13430 * c-typeprint.c (is_type_conversion_operator): Add additional
13431 check for non-conversion operators.
13432
ba8679fb 134332002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
13434
13435 * linux-proc.c: Add "info proc" command, a la procfs.c.
13436 (read_mapping): New function, abstract and re-use code.
13437 (linux_find_memory_regions): Use new func read_mapping.
13438 (linux_info_proc_cmd): New function, implement "info proc".
13439 (_initialize_linux_proc): Add new command "info proc".
13440
e4f9b4d5
MS
134412002-01-15 Michael Snyder <msnyder@redhat.com>
13442
13443 * symfile.c (generic_load): Use bfd_map_over_sections method
13444 instead of manipulating bfd structure members directly.
13445 (add_section_size_callback): New function, bfd sections callback
13446 used by generic_load.
13447 (load_sections_callback): New function, bfd sections callback
13448 used by generic_load.
13449
08cf96df
EZ
134502002-01-15 Elena Zannoni <ezannoni@redhat.com>
13451
abf22e64 13452 [Based on work by Jim Blandy]
08cf96df
EZ
13453 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13454 (builtin_type_vec128): Export.
13455 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13456 types.
13457 (builtin_type_vec128): New builtin type for 128 bit vector
13458 registers.
13459 (build_gdbtypes): Initialize builtin_type_v16qi and
13460 builtin_type_v8hi. Create the vec128 register builtin type
13461 structure.
13462 (build_builtin_type_vec128): New function.
abf22e64 13463 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13464 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13465 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13466 AltiVec register to new builtin type.
13467
d7242108
DJ
134682001-01-15 Daniel Jacobowitz <drow@mvista.com>
13469
13470 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13471 to make_cv_type.
13472
4ee3352d
AC
134732002-01-14 Andrew Cagney <ac131313@redhat.com>
13474
13475 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13476 CLEAN_UP_REGISTER_VALUE.
13477 * regcache.c (supply_register): Update only call.
13478
f015b2e7
AC
134792002-01-14 Andrew Cagney <ac131313@redhat.com>
13480
13481 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13482 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13483 a29k-*-vxworks* targets as obsolete.
13484
356ae49d
MS
134852002-01-14 Michael Snyder <msnyder@redhat.com>
13486
13487 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13488 until we can resolve portability issues.
13489 * gregset.h: Remove references to fpxregs.
13490 * gcore.c (gcore_command): Initialize note_sec to NULL.
13491
ade8f45e
AC
134922002-01-13 Andrew Cagney <ac131313@redhat.com>
13493
13494 * signals.c (target_signal_to_name): Rewrite. Only use
13495 signals[].name when in bounds and non-NULL.
abf22e64 13496
89c49e7a
AC
134972002-01-13 Andrew Cagney <ac131313@redhat.com>
13498
13499 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13500 * signals.c (target_signal_to_name): Verify that SIG is within the
13501 bounds of the signals array.
13502
4daa9f9f
AC
135032002-01-13 Andrew Cagney <ac131313@redhat.com>
13504
13505 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13506
ba4bbdcb
KS
135072002-01-13 Keith Seitz <keiths@redhat.com>
13508
13509 * stack.c (print_frame_info_base): Print the frame's pc
13510 only if when print_frame_info_listing_hook is not defined.
13511
575bbeb6
KS
135122002-01-13 Keith Seitz <keiths@redhat.com>
13513
13514 * varobj.c (varobj_set_value): Make sure that there were no
13515 errors evaluating the object before attempting to set its
13516 value.
13517 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13518 so this offset adjustment is no longer necessary.
13519 (create_child): Don't set the error flag if the child is
13520 a CPLUS_FAKE_CHILD.
13521 (value_of_child): If value_fetch_lazy fails, return NULL
13522 so that callers will be notified that an error occurred.
13523 (c_value_of_variable): Delay check of variable's validity
13524 until later. We actually want all structs and unions to have
13525 the value "{...}".
13526 Do not return "???" for variables which could not be evaluated.
13527 This error condition must be returned to the caller so that it
13528 can get the error condition from gdb.
13529 (cplus_name_of_child): Adjust index for vptr before figuring
13530 out the name of the child.
13531 (cplus_value_of_child): If a child's (real) parent is not valid,
13532 don't even bother trying to give a value for it. Just return
13533 an error. Change all instances in this function.
13534 (cplus_type_of_child): If our parent is one of the "fake"
13535 parents, we need to get at the type of the real parent, and
13536 derive the child's true type using this information.
13537
b76898ab
AC
135382002-01-13 Andrew Cagney <ac131313@redhat.com>
13539
13540 From 2002-01-09 John Marshall <johnm@falch.net>:
13541 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13542 sources.redhat.com, and tweak some related URLs which had
13543 suffered from linkrot.
13544
b6649e88
AC
135452002-01-13 Andrew Cagney <ac131313@redhat.com>
13546
13547 From Jeff law:
13548 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13549 structures passed in registers.
13550
82cc5033
EZ
135512002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13552
13553 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13554 white space which prevented compilation. Reported by DSK
13555 <dsk@student.unsw.edu.au>.
13556
ba5f2f8a
MS
135572002-01-11 Michael Snyder <msnyder@redhat.com>
13558
fbd35540
MS
13559 * symfile.c (build_section_addr_info_from_section_tab):
13560 Use bfd access method instead of manipulating bfd directly.
13561 (syms_from_objfile): Ditto.
13562 (simple_overlay_update_1): Ditto.
13563 (simple_overlay_update): Ditto.
13564 (generic_load): Ditto.
13565 (overlay_unmapped_address): FIXME comment, bfd access methods.
13566 (sections_overlap): FIXME comment, bfd access methods.
13567 (pc_in_mapped_range): FIXME comment, bfd access methods.
13568 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13569 (section_is_mapped): FIXME comment, bfd access methods.
13570 (section_is_overlay): FIXME comment, bfd access methods.
13571
ba5f2f8a
MS
13572 * symfile.c (generic_load): Whitespace and long line cleanups.
13573 Remove duplicate variable, change several local variables to
13574 more appropriate data types.
13575 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13576
17df2af6
AC
135772002-01-12 Andrew Cagney <ac131313@redhat.com>
13578
13579 From Peter Schauer:
13580 * language.c (longest_local_hex_string_custom): Use phex_nz to
13581 convert NUM to a hex string.
13582
ec920329
EZ
135832002-01-12 Elena Zannoni <ezannoni@redhat.com>
13584
13585 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13586 the function.
538a76d6 13587 Update Copyright year.
ec920329 13588
3abd2e01
AC
135892002-01-12 Andrew Cagney <ac131313@redhat.com>
13590
13591 * language.c (longest_raw_hex_string): Delete unused function.
13592
b21b22e0
PS
135932002-01-11 Petr Sorfa <petrs@caldera.com>
13594
13595 * MAINTAINERS (write-after-approval): Add myself.
13596 * dwarf2read.c (read_tag_string_type): Handling of
13597 DW_AT_byte_size.
13598 (read_tag_string_type): FORTRAN fix to prevent propagation of
13599 first string size.
13600 (set_cu_language): Handling of DW_LANG_Fortran95
13601
747fe712
RE
136022002-01-11 Richard Earnshaw <rearnsha@arm.com>
13603
13604 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13605 GETPID(inferior_ptid).
13606 (store_inferior_registers): Likewise.
13607
f1bea926
JM
136082002-01-10 Jason Merrill <jason@redhat.com>
13609
13610 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13611 Fix DW_OP_minus.
13612
ae940673
AC
136132002-01-10 Andrew Cagney <ac131313@redhat.com>
13614
13615 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13616 and bfd/elf32-sh-nbsd.c.
13617
00546b04
MS
136182002-01-10 Michael Snyder <msnyder@redhat.com>
13619
352ed7b4
MS
13620 * NEWS: Mention --pid and corefile/proc-id behavior change.
13621
c18be923
MS
13622 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13623 * gcore.c: Include cli/cli-decode.h instead of command.h.
13624
00546b04
MS
13625 * main.c (captured_main): Add new command line option "--pid".
13626 If the second command line argument (following the symbol-file)
13627 begins with a digit, try to attach to it before trying to open
13628 it as a corefile.
13629 (print_gdb_help): Document the "--pid" argument.
13630
db60ec62
EZ
136312002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13632
13633 * completer.c (command_completer): New function.
13634
13635 * completer.h <command_completer>: Add prototype.
13636
13637 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13638 completer for the "help" command.
13639
39c22d1a
JM
136402002-01-09 Jason Merrill <jason@redhat.com>
13641
13642 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13643
c564377f
MS
136442002-01-09 Michael Snyder <msnyder@redhat.com>
13645
975aec09
MS
13646 * i386-linux-nat.c (fill_fpxregset): Make global.
13647 (store_fpxregset): Ditto.
13648
db4a10fa
MS
13649 * gregset.h (gdb_fpxregset_t): Define.
13650 (supply_fpxregset): Prototype.
13651 (fill_fpxregset): Prototype.
13652
c564377f
MS
13653 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13654
c3d45d70
RE
136552002-01-09 Richard Earnshaw <rearnsha@arm.com>
13656
13657 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13658 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13659 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13660
fcc87af1
AC
136612002-01-09 Andrew Cagney <ac131313@redhat.com>
13662
13663 * MAINTAINERS: Update target maintainer rules so that any
13664 Maintainer can approve a tested patch for a maintenance-only
13665 target.
13666
dd96c05b
RE
136672002-01-09 Richard Earnshaw <rearnsha@arm.com>
13668
d4297db9 13669 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13670
d4297db9 13671 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13672 IN_SIGTRAMP.
13673
145fdc6e
MS
136742002-01-08 Michael Snyder <msnyder@redhat.com>
13675
13676 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13677 real name of the executable, rather than the /proc name.
13678
be4d1333
MS
136792002-01-03 Michael Snyder <msnyder@redhat.com>
13680
13681 Implement a "generate-core-file" command in gdb, save target state.
13682 * gcore.c: New file. Implement new command 'generate-core-file'.
13683 Save a corefile image of the current state of the inferior.
13684 * linux-proc.c: Add linux-specific code for saving corefiles.
13685 * target.h (struct target_ops): Add new target vectors for saving
13686 corefiles; to_find_memory_regions and to_make_corefile_notes.
13687 (target_find_memory_regions): New macro.
13688 (target_make_corefile_notes): New macro.
13689 * target.c (update_current_target): Inherit new target methods.
13690 (dummy_find_memory_regions): New place-holder method.
13691 (dummy_make_corefile_notes): New place-holder method.
13692 (init_dummy_target): Initialize new dummy target vectors.
13693 * exec.c (exec_set_find_memory_regions): New function.
13694 Allow the exec_ops vector for memory regions to be taken over.
13695 (exec_make_note_section): New function, target vector method.
13696 * defs.h (exec_set_find_memory_regions): Export prototype.
13697 * procfs.c (proc_find_memory_regions): New function, corefile method.
13698 (procfs_make_note_section): New function, corefile method.
13699 (init_procfs_ops): Set new target vector pointers.
13700 (find_memory_regions_callback): New function.
13701 (procfs_do_thread_registers): New function.
13702 (procfs_corefile_thread_callback): New function.
13703 * sol-thread.c (sol_find_memory_regions): New function.
13704 (sol_make_note_section): New function.
13705 (init_sol_thread_ops): Initialize new target vectors.
13706 * inftarg.c (inftarg_set_find_memory_regions): New function.
13707 Allow to_find_memory_regions vector to be taken over.
13708 (inftarg_set_make_corefile_notes): New function.
13709 Allow to_make_corefile_notes vector to be taken over.
13710 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13711 interface layer if not target_has_execution (may be a corefile).
13712 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13713 * config/sparc/sun4sol2.mh: Ditto.
13714 * config/alpha/alpha-linux.mh: Ditto.
13715 * config/arm/linux.mh: Ditto.
13716 * config/i386/x86-64linux.mh: Ditto.
13717 * config/ia64/linux.mh: Ditto.
13718 * config/m68k/linux.mh: Ditto.
13719 * config/mips/linux.mh: Ditto.
13720 * config/powerpc/linux.mh: Ditto.
13721 * config/sparc/linux.mh: Ditto.
13722
c6b92abd
MS
137232002-01-07 Michael Snyder <msnyder@redhat.com>
13724
13725 * arm-linux-nat.c: Remove references to regcache.c internal data
13726 (registers[] and register_valid[]).
13727
4b09dc8c
MS
137282002-01-07 Michael Snyder <msnyder@redhat.com>
13729
abf22e64
AJ
13730 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13731 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
13732 symbol file and shlibs.
13733 * Makefile.in: Add rule for linux-proc.o.
13734 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13735 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13736 * config/arm/linux.mh: Ditto.
13737 * config/i386/linux.mh: Ditto.
13738 * config/i386/x86-64linux.mh: Ditto.
13739 * config/ia64/linux.mh: Ditto.
13740 * config/m68k/linux.mh: Ditto.
13741 * config/mips/linux.mh: Ditto.
13742 * config/powerpc/linux.mh: Ditto.
13743 * config/sparc/linux.mh: Ditto.
13744
c25b74ac
PM
137452002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13746
13747 * win32-nat.c: Add i386-tdep.h dependency.
13748
94cd915f
MS
137492002-01-07 Michael Snyder <msnyder@redhat.com>
13750
c7cccb76
MS
13751 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13752 instead of bfd_get_arch_size. Don't bail out just because
13753 there's no exec_bfd.
abf22e64 13754
34c0bd93
MS
13755 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13756 * p-valprint.c (pascal_object_print_value): Ditto.
13757 * somread.c (som_symtab_read): Ditto.
13758 * symfile.c (simple_free_overlay_region_table): Ditto.
13759 * valops.c (value_assign): Ditto.
13760
21c1c920
MS
13761 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13762 use tilde_expand and strerror for opening save-tracepoints file.
13763
5bbd998e
MS
13764 * thread-db.c (thread_db_new_objfile): Indendation fix.
13765
94cd915f
MS
13766 * infptrace.c (GDB_MAX_ALLOCA): New define.
13767 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 13768 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
13769 can be overridden with whatever value is appropriate to the host).
13770 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13771 alloca to allocate potentially large buffer.
13772 * rs6000-nat.c (child_xfer_memory): Ditto.
13773 * symm-nat.c (child_xfer_memory): Ditto.
13774 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13775
494e8a93
JSC
137762002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13777
13778 From Nick Clifton <nickc@redhat.com>
13779 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13780
d0e1d48e
MS
137812002-01-07 Michael Snyder <msnyder@redhat.com>
13782
abf22e64 13783 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
13784 Don't use exec_bfd if it's NULL.
13785
290b2c7a
MK
137862002-01-06 Mark Kettenis <kettenis@gnu.org>
13787
abf22e64 13788 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 13789
aef21287
AC
137902002-01-06 Andrew Cagney <ac131313@redhat.com>
13791
13792 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13793 * gnu-nat.c: Ditto.
13794
30efa627
AC
137952002-01-06 Andrew Cagney <ac131313@redhat.com>
13796
13797 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13798 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13799 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13800 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13801 z8k-coff have not been multi-arched. Update z8k-coff build
13802 status.
13803
9b4ff276
AC
138042002-01-06 Andrew Cagney <ac131313@redhat.com>
13805
13806 * MAINTAINERS: Mark a29k target as obsolete.
13807 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13808 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13809 comments.
13810 * NEWS: Note that a29k targets are obsolete.
13811 * a29k-tdep.c: Mark as obsolete.
13812 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13813 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13814 a29k-*-vxworks* targets as obsolete.
13815 * remote-adapt.c: Obsolete.
13816 * remote-eb.c: Obsolete.
13817 * remote-mm.c: Obsolete.
13818 * remote-udi.c: Obsolete.
13819 * config/a29k/a29k-udi.mt: Obsolete.
13820 * config/a29k/a29k.mt: Obsolete.
13821 * config/a29k/tm-a29k.h: Obsolete.
13822 * config/a29k/tm-vx29k.h: Obsolete.
13823 * config/a29k/vx29k.mt: Obsolete.
13824
a9011d31
AC
138252002-01-05 Andrew Cagney <ac131313@redhat.com>
13826
13827 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13828 with BFD_ENDIAN_BIG.
13829
9299404e
AC
138302002-01-05 Andrew Cagney <ac131313@redhat.com>
13831
13832 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13833 * configure, config.in: Re-generate.
13834 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13835 * defs.h: Do not include <endian.h>.
13836
7e89e357
JT
138372002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13838
13839 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13840 * config.in: Regenerate.
13841 * configure.in: Update copyright years.
13842 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13843 * configure: Regenerate.
13844 * i386bsd-nat.c: Update copyright years.
13845 (fill_gregset): Use regcache_collect.
13846 (fetch_inferior_registers): Only fetch integer registers
13847 if requested to do so. Add support for XMM registers
13848 using PT_GETXMMREGS.
13849 (store_inferior_registers): Only store integer registers
13850 if requested to do so. Add support for XMM registers
13851 using PT_SETXMMREGS.
13852 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13853 (store_inferior_registers): Remove.
13854 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13855 (fetch_elfcore_registers): New function.
13856 (i386nbsd_elfcore_fns): New.
13857 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13858 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13859 i386bsd-nat.o.
13860 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13861 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13862 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13863 * config/i386/tm-nbsd.h: Update copyright years.
13864 (HAVE_SSE_REGS): Define.
13865 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13866 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13867 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13868 (SIGCONTEXT_PC_OFFSET): Remove.
13869 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13870
a752853e
AC
138712002-01-05 Andrew Cagney <ac131313@redhat.com>
13872
13873 * configure.tgt: Remove powerpc-*-macos* target.
13874 * config/m68k/xm-mpw.h: Delete file.
13875 * config/xm-mpw.h: Delete file.
13876 * ser-mac.c: Delete file.
13877 * mpw-make.sed: Delete file.
13878 * mpw-config.in: Delete file.
13879 * mac-xdep.c: Delete file.
13880 * mac-gdb.r: Delete file.
13881 * mac-defs.h: Delete file.
13882 * mac-nat.c: Delete file.
13883 * config/powerpc/macos.mh: Delete file.
13884 * config/powerpc/macos.mt: Delete file.
13885 * config/powerpc/nm-macos.h: Delete file.
13886 * config/powerpc/tm-macos.h: Delete file.
13887 * source.c (openp, open_source_file): Remove obsolete code.
13888 * top.c (gdb_readline): Ditto.
13889 * utils.c (query): Ditto.
13890 * event-top.c (display_gdb_prompt): Ditto.
13891 * Makefile.in (ser-mac.o): Delete obsolete target.
13892 * NEWS: Update.
13893
d7449b42
AC
138942002-01-04 Andrew Cagney <ac131313@redhat.com>
13895
13896 * defs.h (BIG_ENDIAN): Delete macro definition.
13897 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13898 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13899 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13900 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13901 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13902 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13903 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13904 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13905 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13906 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13907 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13908 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13909 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13910 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13911 * gdbarch.c: Re-generate.
13912
356374e8
DJ
139132002-01-04 Daniel Jacobowitz <drow@mvista.com>
13914
13915 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13916 for core files.
13917
a2b8f8f8
JT
139182002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13919
13920 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13921
12466af9
AC
139222002-01-04 Andrew Cagney <ac131313@redhat.com>
13923
13924 * value.h (value_ptr): Delete typedef.
13925
3549ab40
JT
139262002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13927
13928 * i386nbsd-nat.c: Update copyright years.
13929 Include i386-tdep.h.
13930
fedbd091
EZ
139312002-01-04 Elena Zannoni <ezannoni@redhat.com>
13932
13933 * stabsread.c: Update copyright years.
13934
13935 From Debashis Mahata <debashis.mahata@wipro.com>:
13936 (read_struct_fields): Deal with Sun C compiler erroneous stab
13937 output for structs and unions.
fec8b34f 13938 Fix PR gdb/269.
fedbd091 13939
eb43544b
DJ
139402002-01-04 Daniel Jacobowitz <drow@mvista.com>
13941
13942 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13943 prototype.
13944
1514d34e
DJ
139452002-01-04 Daniel Jacobowitz <drow@mvista.com>
13946
13947 * cp-abi.c: Fix whitespace.
13948 (baseclass_offset): New wrapper function.
13949 * cp-abi.h (baseclass_offset): Add prototype.
13950 (struct cp_abi_ops): Add baseclass_offset pointer.
13951
13952 * valops.c (vb_match): Move to...
13953 * gnu-v2-abi.c (vb_match): here.
13954 * valops.c (baseclass_offset): Move to...
13955 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13956
13957 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13958
13959 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13960 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13961 * hpacc-abi.c (init_hpacc_ops): Likewise.
13962
7f8c9282
DJ
139632002-01-04 Daniel Jacobowitz <drow@mvista.com>
13964
13965 * valops.c (find_overload_match): Accept obj as a
13966 reference parameter. Update it before returning.
13967 * value.h (find_overload_match): Update prototype.
13968 * eval.c (evaluate_subexp_standard): Pass object to
13969 find_overload_match by reference.
13970
f23631e4
AC
139712002-01-03 Andrew Cagney <ac131313@redhat.com>
13972
13973 * valarith.c: Replace value_ptr with struct value pointer. Remove
13974 register attribute from value declarations.
13975 * valops.c: Ditto.
13976 * value.h: Ditto.
13977 * scm-lang.c (scm_lookup_name): Ditto.
13978
79e10fab 139792002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 13980
79e10fab
AC
13981 Abstract the functionality of iterating over mapped memory
13982 regions into a general purpose iterator function.
abf22e64 13983 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
13984 iterator for memory sections.
13985 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13986 (solib_mappings_callback): New function, callback for above.
13987 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13988 (info_mappings_callback): New function, callback for above.
13989
13990 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13991
c5ad026a
MK
139922002-01-01 Mark Kettenis <kettenis@gnu.org>
13993
d2a7c97a
MK
13994 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13995 * i386-tdep.c: Include "elf-bfd.h".
13996 (process_note_abi_tag_sections): New function.
13997 (i386_gdbarch_init): Add code to recognize various OS/ABI
13998 combinations.
13999
c5ad026a
MK
14000 * maint.c (_initialize_maint_cmds): Add missing \ in
14001 string-literal.
14002
a1a5b71e 14003For older changes see ChangeLog-2001
c906108c
SS
14004\f
14005Local Variables:
14006mode: change-log
14007left-margin: 8
14008fill-column: 74
14009version-control: never
14010End:
This page took 1.244611 seconds and 4 git commands to generate.