Import of readline 4.3.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9255ee31
EZ
12002-12-08 Elena Zannoni <ezannoni@redhat.com>
2
3 Import of readline 4.3:
4 * cli/cli-cmds.c: Include readline/tilde.h.
5 * cli/cli-setshow.c: Ditto.
6 * defs.h: Don't declare tilde_expand anymore, since readline
7 exports it.
8
3442dad6 92002-12-08 Elena Zannoni <ezannoni@redhat.com>
57725d84
EZ
10
11 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
12 -Werror on this file.
13
52f87c51
AC
142002-12-07 Andrew Cagney <ac131313@redhat.com>
15
16 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
17 the format name.
18 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
19 * gdbarch.c: Regenerate.
20
2ca6c561
AC
212002-12-06 Andrew Cagney <ac131313@redhat.com>
22
23 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
24 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
25 provide a default value.
26 * gdbarch.h, gdbarch.c: Regenerate.
27 * frame.c (get_prev_frame): Update. Check
28 DEPRECATED_INIT_FRAME_PC_FIRST_P.
29 * s390-tdep.c (s390_gdbarch_init): Update.
30 * mips-tdep.c (mips_gdbarch_init): Update.
31 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
32 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
33 * alpha-tdep.c (alpha_gdbarch_init): Update.
34
e162d11b
EZ
352002-12-06 Elena Zannoni <ezannoni@redhat.com>
36
37 * ia64-linux-nat.c: Include gdb_string.h.
38 * alpha-nat.c: Ditto.
2b298b5d
EZ
39 * ppc-linux-nat.c: Ditto.
40 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
41 Update dependencies.
e162d11b 42
aa0cd9c1
AC
432002-12-05 Andrew Cagney <ac131313@redhat.com>
44
45 * gdbthread.h: Include "frame.h".
46 (struct thread_info): Replace step_frame_address with
47 step_frame_id.
48 * inferior.h: Include "frame.h".
49 (step_frame_id): Replace external variable step_frame_address.
50 * gdbthread.h (save_infrun_state): Replace step_frame_address
51 parameter with step_frame_id parameter.
52 (load_infrun_state): Ditto.
53 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
54 * infcmd.c (step_frame_id, step_1, step_once): Update.
55 * thread.c (load_infrun_state, save_infrun_state): Update.
56 * infrun.c (clear_proceed_status, save_inferior_status): Update.
57 (handle_inferior_event, step_over_function): Update.
58 (normal_stop, context_switch, restore_inferior_status): Update.
59 (struct inferior_status): Replace step_frame_address with
60 step_frame_id.
61
a9a9bd0f
DC
622002-12-05 David Carlton <carlton@math.stanford.edu>
63
64 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
65 DW_TAG_member as well as a declaration as being a C++ static data
66 member.
67 (read_structure_scope): Combine tests for DW_TAG_member and
68 DW_TAG_variable.
69
614b3b14
DC
702002-12-05 David Carlton <carlton@math.stanford.edu>
71
72 * linespec.c (decode_compound): New function.
73 (decode_line_1): Move code into decode_compound.
74
e4051eeb
DC
752002-12-05 David Carlton <carlton@math.stanford.edu>
76
77 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
78 argument.
79 (lookup_symbol_aux): Do the 'field_of_this' check before checking
80 the static block. See PR gdb/804.
81
f61e8913
DC
822002-12-05 David Carlton <carlton@math.stanford.edu>
83
84 * symtab.c (lookup_symbol_aux_block): New function.
85 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
86
1e9f55d0
AC
872002-12-05 Andrew Cagney <ac131313@redhat.com>
88
89 * gdbarch.sh: Dump the predicate function and macro values.
90 (read): Print error on standard error.
91 * gdbarch.c: Regenerate.
92
d1973055
KB
932002-12-04 Kevin Buettner <kevinb@redhat.com>
94
95 * Makefile.in (mips_tdep_h): Define.
96 (mips-tdep.o): Add mips_tdep_h to dependency list.
97 * mips-tdep.h: New file.
98 * mips-tdep.c (mips-tdep.h): Include.
99 (enum mips_abi): Move to mips-tdep.h.
100 (mips_abi): New function.
101
f1253c7b
DC
1022002-12-04 David Carlton <carlton@math.stanford.edu>
103
104 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
105
406bc4de
DC
1062002-12-04 David Carlton <carlton@math.stanford.edu>
107
108 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
109 function.
110 (lookup_symbol_aux_minsyms): New function.
111
2a3750c5
JB
1122002-12-04 J. Brobecker <brobecker@gnat.com>
113
114 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
115
961d8652
JB
1162002-12-04 J. Brobecker <brobecker@gnat.com>
117
118 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
119 which is an obsolete macro name.
120
38c52d5a
DJ
1212002-12-04 Daniel Jacobowitz <drow@mvista.com>
122
123 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
124 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
125
d8ef46f5
DJ
1262002-12-03 H.J. Lu (hjl@gnu.org)
127
128 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
129 (create_breakpoints): Make sure the addr_string field is not
130 NULL.
131
02ae7771
AC
1322002-12-03 Andrew Cagney <ac131313@redhat.com>
133
134 * sparc-nat.c (fetch_inferior_registers)
135 (store_inferior_registers): Add comment on problem of LWP vs
136 threads.
137
138 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
139 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
140 (lin_lwp_store_registers): Remove.
141 (init_lin_lwp_ops): Use fetch_inferior_registers
142 and store_inferior_registers directly.
143 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
144 (store_inferior_registers): Likewise.
145 Fix PR gdb/725.
146
7a424e99
AC
1472002-12-03 Andrew Cagney <ac131313@redhat.com>
148
149 * frame.h (get_frame_id): Convert to a function.
150 (null_frame_id, frame_id_p): Declare.
151 (frame_id_eq, frame_id_inner): Declare.
152 (frame_id_build): New function.
153 * frame.c (get_frame_id): Update. Use null_frame_id.
154 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
155 frame_id_inner.
156 (null_frame_id, frame_id_p): Define.
157 (frame_id_eq, frame_id_inner): Define.
158 (frame_id_build): New function.
159 * varobj.c (varobj_create): Update.
160 (varobj_update): Update.
161 * valops.c (value_assign): Update.
162 (new_root_variable): Update.
163 * infrun.c (save_inferior_status): Update.
164 * breakpoint.c (watch_command_1): Update.
165
891c7f5f
JB
1662002-12-03 J. Brobecker <brobecker@gnat.com>
167
168 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
169 (SNAP2): Likewise.
170
144da3c1
AC
1712002-12-03 Andrew Cagney <cagney@redhat.com>
172
46248966
AC
173 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
174 patch.
175
144da3c1
AC
176 * PROBLEMS: Mention PR gdb/725.
177
03c6228e
AS
1782002-12-03 Andreas Schwab <schwab@suse.de>
179
180 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
181
36e53c63
AF
1822002-12-02 Adam Fedor <fedor@gnu.org>
183 Klee Dienes <kdienes@apple.com>
184
185 * objc-lang.c (objc_printstr): Add width arg to match
186 printstr prototype.
187 (compare_selectors): Add 'const' to arg types.
188 (compare_classes): Likewise.
189 (find_imps): Cast msym pointer to avoid compiler warning.
190 (print_object_command): Validate the address before
191 passing it to the print routine.
192 (find_objc_msgcall_submethod): Change function argument to
193 return an int.
194 * objc-lang.h: Add 'extern' to all function declarations.
195 (value_nsstring): Add declaration.
196
504d5c7e
JB
1972002-12-02 J. Brobecker <brobecker@gnat.com>
198
199 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
200 Fixes a build failure on HP/UX.
201
202 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
203 failure on HP/UX.
204 (hpread_has_name): Advance declaration to avoid a compilation warning.
205 (pst_syms_count): Add missing variable type. By change, the compiler
206 was defaulting to int, which seems a good choice. Fixes a compilation
207 warning.
208 (pst_syms_size): Likewise.
209
59623e27
JB
2102002-12-02 J. Brobecker <brobecker@gnat.com>
211
212 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
213 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
214 later to set the proper gdbarch methods depending on the osabi.
215 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
216
a09a320d
JB
2172002-12-02 J. Brobecker <brobecker@gnat.com>
218
219 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
220 * osabi.c (gdb_osabi_name): Add strings images for the two new
221 enum values.
222 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
223
8a81a99e
AC
2242002-12-02 Andrew Cagney <ac131313@redhat.com>
225
226 * MAINTAINERS (Java): Global maintainers are responible for Java.
227 (Past Maintainers): Mention both Anthony Green and Per Bothner as
228 part Java maintainers.
229
7af35dad
JB
2302002-12-02 J. Brobecker <brobecker@gnat.com>
231
232 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
233 Fixes a compilation failure on AiX.
234
f4ede9bc
JB
2352002-12-02 J. Brobecker <brobecker@gnat.com>
236
237 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
238 why aix-thread.o is not listed.
239
ae45cd16
AC
2402002-12-01 Andrew Cagney <ac131313@redhat.com>
241
242 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
243 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
244 * gdbarch.h, gdbarch.c: Re-generate.
245 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
246 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
247 * config/pa/tm-hppa.h, frame.h: Update.
248 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
249 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
250 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
251 * cris-tdep.c, alpha-tdep.c: Update.
252 * frame.c (set_unwind_by_pc, create_new_frame): Use either
253 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
254 (get_prev_frame): Ditto.
255
020cc13c
AC
2562002-11-30 Andrew Cagney <cagney@redhat.com>
257
258 * exec.c (xfer_memory): Replace boolean with int.
259 * p-exp.y: Use 0 instead of false.
260 * corelow.c (gdb_check_format): Change return type to int from
261 boolean.
262 * utils.c: Don't include <curses.h> or <term.h> first.
263
1d9b2aa8
SC
2642002-11-29 Stephane Carrez <stcarrez@nerim.fr>
265
266 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
267 (m68hc11_register_byte): Remove.
268 (m68hc11_gdbarch_init): Don't set the above.
269
a193e397
AC
2702002-11-29 Andrew Cagney <cagney@redhat.com>
271
272 * remote-mips.c (mips_initialize): Force a selected frame rebuild
273 by calling get_selected_frame.
274 * ocd.c (ocd_start_remote): Use get_selected frame instead of
275 set_current_frame, create_new_frame, select_frame and
276 get_current_frame.
277 * remote-e7000.c (e7000_start_remote): Ditto.
278 * remote-mips.c (common_open): Ditto
279 * remote-rdp.c (remote_rdp_open): Ditto.
280
b5fc49aa
AS
2812002-11-29 Andreas Schwab <schwab@suse.de>
282
283 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
284 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
285 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
286 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
287 read_memory_unsigned_integer instead of read_memory_integer when
288 dealing with addresses and instruction opcodes.
289 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
290 (m68k_linux_frame_saved_pc): Likewise.
291
6e7f8b9c
AC
2922002-11-29 Andrew Cagney <ac131313@redhat.com>
293
294 * stack.c (selected_frame, select_frame): Move from here ...
295 * frame.c (selected_frame, select_frame): ... to here. Include
296 "language.h".
297 * Makefile.in (frame.o): Update dependencies.
298 * frame.c (get_selected_frame): New function.
299 * frame.h (get_selected_frame): Declare.
300 (deprecated_selected_frame): Rename selected_frame.
301 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
302 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
303 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
304 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
305 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
306 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
307 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
308 * z8k-tdep.c, cli/cli-cmds.c: Update.
309
805e2818
AC
3102002-11-29 Andrew Cagney <ac131313@redhat.com>
311
312 * frame.h (get_selected_block): Add comments.
313
1058bca7
AC
3142002-11-28 Andrew Cagney <ac131313@redhat.com>
315
316 * frame.c (pc_notcurrent): New function.
317 (find_frame_sal): New function.
318 * frame.h (find_frame_sal): Declare.
319 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
320 * stack.c (print_frame_info_base): Use find_frame_sal instead of
321 find_pc_line.
1058bca7
AC
322 (frame_info): Ditto.
323 * ada-lang.c (find_printable_frame): Ditto.
324
d92419e5
JB
3252002-11-28 J. Brobecker <brobecker@gnat.com>
326
327 * configure.in: Check that the pthdebug library is recent enough
328 before enabling thread support on native AiX.
329 * configure: Regenerate.
330
331 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
332 from the list of object files as it is now appended by configure
333 if thread support is enabled.
334 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
335 if thread support is enabled.
336
8c69fc49
AC
3372002-11-28 Andrew Cagney <cagney@redhat.com>
338
339 * stack.c (get_selected_block): In-line get_current_block.
340 * frame.h (get_current_block): Delete declaration.
341 * blockframe.c (get_current_block): Delete function.
342
07555a72
AC
3432002-11-28 Andrew Cagney <ac131313@redhat.com>
344
345 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
346 USE_GENERIC_DUMMY_FRAMES.
347 * gdbarch.h, gdbarch.c: Regenerate.
348 * valops.c, frame.c: Update.
349 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
350 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
351 * config/pa/tm-hppa.h, blockframe.c: Update.
352 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
353 * m68k-tdep.c, alpha-tdep.c: Ditto.
354
355 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
356 * mips-tdep.c: Ditto.
357
b99fa2d2
AC
3582002-11-27 Andrew Cagney <ac131313@redhat.com>
359
360 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
361 (USE_GENERIC_DUMMY_FRAMES): Default to true.
362 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
363 * gdbarch.c, gdbarch.h: Re-generate.
364 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
365 (CALL_DUMMY_LOCATION): Delete macro definition.
366 (PC_IN_CALL_DUMMY): Delete macro definitions.
367
368 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
369 default is already generic_pc_in_call_dummy.
370 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
371 * v850-tdep.c (v850_gdbarch_init): Ditto.
372 * sh-tdep.c (sh_gdbarch_init): Ditto.
373 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
374 * mips-tdep.c (mips_gdbarch_init): Ditto.
375 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
376 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
377 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
378 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
379 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
380 * avr-tdep.c (avr_gdbarch_init): Ditto.
381
382 * arm-tdep.c (arm_gdbarch_init): Do not set
383 use_generic_dummy_frames, default is already 1.
384 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
385 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
386 * v850-tdep.c (v850_gdbarch_init): Ditto.
387 * sh-tdep.c (sh_gdbarch_init): Ditto.
388 * s390-tdep.c (s390_gdbarch_init): Ditto.
389 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
390 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
391 * mips-tdep.c (mips_gdbarch_init): Ditto.
392 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
393 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
394 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
395 * i386-tdep.c (i386_gdbarch_init): Ditto.
396 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
397 * frv-tdep.c (frv_gdbarch_init): Ditto.
398 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
399 * cris-tdep.c (cris_gdbarch_init): Ditto.
400 * avr-tdep.c (avr_gdbarch_init): Ditto.
401
402 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
403 call_dummy_location, default is already AT_ENTRY_POINT.
404 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
405 * v850-tdep.c (v850_gdbarch_init): Ditto.
406 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
407 * sh-tdep.c (sh_gdbarch_init): Ditto.
408 * s390-tdep.c (s390_gdbarch_init): Ditto.
409 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
410 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
411 * mips-tdep.c (mips_gdbarch_init): Ditto.
412 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
413 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
414 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
415 * i386-tdep.c (i386_gdbarch_init): Ditto.
416 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
417 * frv-tdep.c (frv_gdbarch_init): Ditto.
418 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
419 * cris-tdep.c (cris_gdbarch_init): Ditto.
420 * avr-tdep.c (avr_gdbarch_init): Ditto.
421 * arm-tdep.c (arm_gdbarch_init): Ditto.
422 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
423
abc0af47
AC
4242002-11-28 Andrew Cagney <cagney@redhat.com>
425
426 * frame.h: Update comments on set_current_frame, create_new_frame,
427 flush_cached_frames, reinit_frame_cache, select_frame and
428 selected_frame.
429
ed5cedc5
AC
4302002-11-27 Andrew Cagney <cagney@redhat.com>
431
432 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
433 deprecated pc_in_call_dummy function.
434 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
435 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
436 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
437 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
438 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
439
b2a1bd4f
MH
4402002-11-26 Martin M. Hunt <hunt@redhat.com>
441
442 * Makefile.in: Remove Tix dependencies.
443 * acinclude.m4: Ditto.
444 * aclocal.m4: Ditto.
445 * configure.in: Ditto.
446 * configure: Regenerated.
447
f09cffaa
AC
4482002-11-26 Andrew Cagney <ac131313@redhat.com>
449
450 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
451 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
452 * gdbarch.c: Re-generate.
453
e92b0cc9
AC
4542002-11-26 Andrew Cagney <ac131313@redhat.com>
455
456 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
457 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
458 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
459 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
460 pc_in_call_dummy_at_entry_point.
461 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
462 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
463 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
464 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
465 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
466 pc_in_call_dummy_on_stack.
467 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
468 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
469 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
470 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
471 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
472
b4b88177
AC
4732002-11-26 Andrew Cagney <ac131313@redhat.com>
474
475 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
476 pc_in_call_dummy_before_text_end
477 (deprecated_pc_in_call_dummy_after_text_end): Rename
478 pc_in_call_dummy_after_text_end.
479 (deprecated_pc_in_call_dummy_on_stack): Rename
480 pc_in_call_dummy_on_stack.
481 (deprecated_pc_in_call_dummy_at_entry_point): Rename
482 pc_in_call_dummy_at_entry_point.
483 * m68k-tdep.c (m68k_gdbarch_init): Update.
484 * s390-tdep.c (s390_gdbarch_init): Update.
485 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
486 * vax-tdep.c (vax_gdbarch_init): Update.
487 * sparc-tdep.c (sparc_gdbarch_init): Update.
488 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
489 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
490 * i386-tdep.c (i386_gdbarch_init): Update.
491 * frv-tdep.c (frv_gdbarch_init): Update.
492 * cris-tdep.c (cris_gdbarch_init): Update.
493 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
494 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
495 (deprecated_pc_in_call_dummy_after_text_end)
496 (deprecated_pc_in_call_dummy_on_stack)
497 (deprecated_pc_in_call_dummy_at_entry_point): Update.
498 * alpha-tdep.c (alpha_gdbarch_init): Update.
499
eb784848
DJ
5002002-11-25 Daniel Jacobowitz <drow@mvista.com>
501
502 * acconfig.h (HAVE_PREAD64): Add.
503 * configure.in: Check for pread64.
504 * config.in: Regenerated.
505 * configure: Regenerated.
506 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
507 * linux-proc.c (linux_proc_xfer_memory): New function.
508 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
509
933c6fe4
DC
5102002-11-25 David Carlton <carlton@math.stanford.edu>
511
512 * dwarf2read.c (scan_partial_symbols): Descend into namespace
513 pdi's with no name.
514
158a8022
AC
5152002-11-25 Andrew Cagney <ac131313@redhat.com>
516
517 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
518 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
519
481d0f41
JB
5202002-11-25 Jim Blandy <jimb@redhat.com>
521
e8289572
JB
522 * symfile.c (init_objfile_sect_indices): New function.
523 (default_symfile_offsets): Move the section-index-initializing
524 stuff into init_objfile_sect_indices, and call that.
525
b29c9944
JB
526 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
527 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
528
13de58df
JB
529 * symfile.c (syms_from_objfile): Adjust indentation.
530
481d0f41
JB
531 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
532 || info_verbose isn't true.
533
7d6a26a7
AC
5342002-11-24 Andrew Cagney <ac131313@redhat.com>
535
536 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
537 default to get_frame_base.
538 * gdbarch.h, gdbarch.c: Regenerate.
539 * arch-utils.c (default_frame_address): Delete function.
540 * arch-utils.h (default_frame_address): Delete declaration
541
6abe1021
PM
5422002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
543
544 * varobj.c (find_frame_addr_in_frame_chain):
545 Use get_frame_base instead of FRAME_FP,
546 obvious fix.
547
c193f6ac
AC
5482002-11-19 Andrew Cagney <ac131313@redhat.com>
549
550 * frame.h (FRAME_FP): Delete macro.
551 (get_frame_base): New function declaration.
552 * frame.c (get_frame_base): New function.
553 (get_frame_id): Use ->frame.
554 (frame_find_by_id): Rewrite to use get_frame_id.
555 * blockframe.c: Use get_frame_base instead of FRAME_FP.
556 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
557 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
558 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
559 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
560 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
561 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
562
e5d2af14
AC
5632002-11-24 Andrew Cagney <ac131313@redhat.com>
564
565 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
566
931d12c6
AC
5672002-11-24 Andrew Cagney <ac131313@redhat.com>
568
569 * frame.c (set_unwind_by_pc): Revert change below, use
570 PC_IN_CALL_DUMMY.
571 (get_prev_frame): Ditto.
572
5e0f933e
AC
5732002-11-24 Andrew Cagney <ac131313@redhat.com>
574
575 * dummy-frame.c (pc_in_dummy_frame): New function.
576 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
577 (find_dummy_frame): Update comment.
578 (generic_pop_current_frame): Use get_frame_type.
579 * dummy-frame.h (pc_in_dummy_frame): Declare.
580 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
581 (create_new_frame): Use pc_in_dummy_frame.
582 (get_prev_frame): Use pc_in_dummy_frame.
583 (frame_saved_regs_register_unwind): Use get_prev_frame.
584 (deprecated_generic_get_saved_register): Use get_prev_frame.
585
7d8547c9
AC
5862002-11-23 Andrew Cagney <ac131313@redhat.com>
587
588 * blockframe.c (find_frame_addr_in_frame_chain): Move function
589 from here ...
590 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
591 (varobj_create): Note that frame ID should be used.
592 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
593
0225421b
AC
5942002-11-23 Andrew Cagney <ac131313@redhat.com>
595
596 * breakpoint.c: Include "gdb_assert.h".
597 (deprecated_frame_in_dummy): Assert that generic dummy frames are
598 not being used.
599 * Makefile.in (breakpoint.o): Update dependencies.
600 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
601 deprecated_frame_in_dummy.
602 * stack.c (print_frame_info_base): Ditto.
603 (frame_info): Ditto.
604 (print_frame_info_base): Ditto. Delete dead code.
605
32eeb91a
AS
6062002-11-23 Andreas Schwab <schwab@suse.de>
607
608 * Makefile.in (m68k_tdep_h): Define.
609 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
610 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
611 * m68k-tdep.c: Move register number enum ...
612 * m68k-tdep.h: ... to this new file and rename the constants from
613 E_* to M68K_*. All uses changed.
614 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
615 * abug-rom.c: Include "m68k-tdep.h". Use
616 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
617 * cpu32bug-rom.c: Likewise.
618 * dbug-rom.c: Likewise.
619 * m68k-tdep.c: Likewise.
620 * m68klinux-nat.c: Likewise.
621 * remote-est.c: Likewise.
622 * rom68k-rom.c: Likewise.
623 * config/m68k/tm-linux.h: Likewise.
624
9648bac8
AC
6252002-11-23 Andrew Cagney <ac131313@redhat.com>
626
627 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
628 dummy frame initialization code.
629 * mips-tdep.c (mips_gdbarch_init): Ditto.
630
91a175b3
CF
6312002-11-22 Christopher Faylor <cgf@redhat.com>
632
633 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
634 attach will hang.
635
f4ded5b1
AC
6362002-11-22 Andrew Cagney <ac131313@redhat.com>
637
638 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
639 to default_frame_address.
640 * gdbarch.h, gdbarch.c: Re-generate.
641
642 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
643 or frame_locals_address to default_frame_address.
644 * m68k-tdep.c (m68k_gdbarch_init): Update.
645 * i386-tdep.c (i386_gdbarch_init): Update.
646 * frv-tdep.c (frv_gdbarch_init): Update.
647 * sh-tdep.c (sh_gdbarch_init): Update.
648 * v850-tdep.c (v850_gdbarch_init): Update.
649 * sparc-tdep.c (sparc_gdbarch_init): Update.
650 * mips-tdep.c (mips_gdbarch_init): Update.
651 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
652 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
653 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
654
655 * cris-tdep.c (cris_frame_args_address): Delete function.
656 (cris_frame_locals_address): Delete function.
657 (cris_gdbarch_init): Do not set frame_args_address or
658 frame_locals_address.
659
f7c1e0f3
MS
6602002-11-22 Michael Snyder <msnyder@redhat.com>
661
662 * thread-db.c (thread_db_load): Tell the user what's going on
663 if dlopen fails on libthread_db.
664
03dac896
AS
6652002-11-23 Andreas Schwab <schwab@suse.de>
666
667 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
668 invariant return values.
669
7a67d0fe
AS
6702002-11-22 Andreas Schwab <schwab@suse.de>
671
672 * valops.c (value_slice): Move declaration of `offset' to avoid
673 warning.
674
5633f842
CF
6752002-11-22 Christopher Faylor <cgf@redhat.com>
676
677 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
678 (struct so_stuff): Add end_addr field.
679 (register_loaded_dll): Calculate and store end address of loaded dll.
680 (solib_address): New function.
681 (child_solib_loaded_library_pathname): Pass carefully constructed
682 section info to safe_symbol_file_add rather than ignoring it.
683 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
684 DLL is loaded.
685 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
686 (child_create_inferior): Fix a compiler warning.
687 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
688 (solib_address): Declare new function.
689
d85fe7f7
AS
6902002-11-22 Andreas Schwab <schwab@suse.de>
691
692 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
693 and FPS registers.
694
8308e54c
DJ
6952002-11-21 Daniel Jacobowitz <drow@mvista.com>
696
697 * maint.c (_initialize_maint_cmds): Fix typo. From
698 Francesco Potorti` <pot@gnu.org>.
699
8997bd5e
AC
7002002-11-21 Andrew Cagney <cagney@redhat.com>
701
702 * mips-tdep.c (mips_dump_tdep): Delete references to
703 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
704 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
705 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
706 * printcmd.c (build_address_symbolic): Delete calls to
707 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
708 (address_info): Ditto.
709 Fix PR gdb/773.
710
4e87b832
KD
7112002-11-19 Klee Dienes <kdienes@apple.com>
712 Adam Fedor <fedor@gnu.org>
713
714 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
715 the ability to explicitly specify the quote characters and word
716 break characters; if NULL is specified for either, use the old
717 behavior of using the characters used by the completer.
718 (skip_chars): New function. Convenience wrapper around
719 skip_quoted_chars to provide the original skip_chars behavior.
720 * completer.h (skip_quoted_chars): Add prototype.
721
9ba8d803
AC
7222002-11-19 Andrew Cagney <ac131313@redhat.com>
723
724 Problems reported by Paul Eggert.
725 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
726
0a595803
AS
7272002-11-19 Andreas Schwab <schwab@suse.de>
728
729 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
730 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
731 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
732 (m68k_linux_frame_saved_pc): Move to ...
733 * m68klinux-tdep.c: ... here. New file.
734 * Makefile.in (m68klinux-tdep.o): Add dependencies.
735 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
736
e8afa4d7
AF
7372002-11-19 Adam Fedor <fedor@gnu.org>
738
739 * objc-exp.y: Revert to old skip_quoted usage.
740
a76c9d72
AF
7412002-11-19 Adam Fedor <fedor@gnu.org>
742
743 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
744 (objc_lang_h): Define.
745 (YYFILES): Add objc-exp.tab.c.
746 (local-maintainer-clean): Remove objc-exp.tab.c.
747 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
748
fd0e9d45
PM
7492002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
750
751 * p-exp.y (typecast rule): Add automatic dereference of
752 pascal classes if needed.
753 (THIS): Set current_type.
754 Automatically dereference pascal classes.
755 (typebase rule): Add ^typebase recognition.
756
82eeeb94
AF
7572002-11-18 Adam Fedor <fedor@gnu.org>
758
759 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
760 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
761 (op_name): Handle OP_OBJC_SELF.
762 * Makefile.in (expprint.o): Add additional depends.
763
646df18d
AF
7642002-11-18 Adam Fedor <fedor@gnu.org>
765
766 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
767 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
768 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
769 * objc-exp.y: Likewise.
770
379b85df
AF
7712002-11-18 Adam Fedor <fedor@gnu.org>
772
773 * gdb/parser-defs.h: (struct objc_class_str): New structure
774 for parsing ObjC classes.
775
85cf597a
AC
7762002-11-18 Andrew Cagney <ac131313@redhat.com>
777
778 * stack.c (frame_relative_level): Copy function from here ...
779 * frame.c (frame_relative_level): ...to here.
780
5a203e44
AC
7812002-11-18 Andrew Cagney <ac131313@redhat.com>
782
783 * frame.h (enum frame_type): Define.
784 (get_frame_type): Declare.
785 (struct frame_info): Add field `type'. Delete field
786 signal_handler_caller.
787 (deprecated_set_frame_signal_handler_caller): Declare.
788 * frame.c (get_frame_type): New function.
789 (deprecated_set_frame_type): New function.
790 (create_new_frame): Set the frame's type.
791 (get_prev_frame): Similar.
792 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
793 * s390-tdep.c: Ditto.
794 * m68klinux-nat.c: Ditto.
795 * ns32k-tdep.c: Ditto.
796 * x86-64-linux-tdep.c: Ditto.
797 * vax-tdep.c: Ditto.
798 * rs6000-tdep.c: Ditto.
799 * ppc-linux-tdep.c: Ditto.
800 * i386-interix-tdep.c: Ditto.
801 * mips-tdep.c: Ditto.
802 * m68k-tdep.c: Ditto.
803 * hppa-tdep.c: Ditto.
804 * ia64-tdep.c: Ditto.
805 * cris-tdep.c: Ditto.
806 * arm-tdep.c: Ditto.
807 * alpha-tdep.c: Ditto.
808 * i386-tdep.c: Ditto.
809 * stack.c: Ditto.
810 * ada-lang.c: Ditto.
811 * blockframe.c: Update.
812 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
813 deprecated_set_frame_type instead of signal_handler_caller.
814 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
815 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
816 * breakpoint.h: Delete FIXME suggesting get_frame_type.
817
bf4ae8b2
KD
8182002-11-18 Klee Dienes <kdienes@apple.com>
819
820 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
821
a672ef13
KD
8222002-11-18 Klee Dienes <kdienes@apple.com>
823
824 * buildsym.c (pop_context): Add comment.
825
0c5e171a
KD
8262002-11-18 Klee Dienes <kdienes@apple.com>
827
828 * buildsym.h (pop_context): Convert to function, defined in
829 buildsym.c.
830 * buildsym.c: Include gdb_assert.h.
831 (pop_context): Implement as C function. Add check for stack
832 underflow.
833 * dbxread.c (process_one_symbol): Complain and stop processing
834 that symbol if we are already at the top of the context stack for
835 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
836 when processing N_RBRAC.
837
8a1f4c4c
DJ
8382002-11-16 Daniel Jacobowitz <drow@mvista.com>
839
840 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
841 define.
842 (struct target_waitstatus): Add opaque definition.
843 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
844 * exec.c (init_exec_ops): Likewise.
845 * fork-child.c (clone_and_follow_inferior): Remove.
846 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
847 * inferior.h (clone_and_follow_inferior): Remove prototype.
848 * infrun.c (follow_fork_mode_both): Remove.
849 (follow_fork_mode_kind_names): Remove commented out "both".
850 (follow_inferior_fork): Remove follow_fork_mode_both support.
851 * inftarg.c (child_clone_and_follow_inferior): Remove.
852 (child_post_follow_inferior_by_clone): Remove.
853 (init_child_ops): Don't set to_clone_and_follow_inferior
854 or to_post_follow_inferior_by_clone.
855 * target.c (default_clone_and_follow_inferior): Remove.
856 (cleanup_target): Don't set to_clone_and_follow_inferior
857 or to_post_follow_inferior_by_clone.
858 (find_default_clone_and_follow_inferior): Remove.
859 (init_dummy_target): Don't set to_clone_and_follow_inferior.
860 (debug_to_clone_and_follow_inferior): Remove.
861 (debug_to_post_follow_inferior_by_clone): Remove.
862 (setup_target_debug): Don't set to_clone_and_follow_inferior
863 or to_post_follow_inferior_by_clone.
864 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
865 and to_post_follow_inferior_by_clone.
866 (child_clone_and_follow_inferior): Remove prototype.
867 (child_post_follow_inferior_by_clone): Remove prototype.
868 (target_clone_and_follow_inferior): Remove macro.
869 (target_post_follow_inferior_by_clone): Remove macro.
870 (find_default_clone_and_follow_inferior): Remove prototype.
871
47932f85
DJ
8722002-11-16 Daniel Jacobowitz <drow@mvista.com>
873
874 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
875 inferior_has_vforked, and inferior_has_execd instead of
876 target_has_forked, target_has_vforked, and target_has_execd.
877 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
878 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
879 (CHILD_WAIT): Define.
880 (child_wait): Add prototype.
881 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
882 Add prototype.
883 (hpux_has_vforked): Likewise, from child_has_vforked.
884 (hpux_has_execd): Likewise, from child_has_execd.
885 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
886 (not_same_real_pid, child_wait): New, copied from inftarg.c.
887 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
888 and hpux_has_syscall_event instead of the target hooks.
889 * infrun.c (inferior_has_forked, inferior_has_vforked)
890 (inferior_has_execd): New functions.
891 * inftarg.c (not_same_real_pid): Remove.
892 (child_wait): Remove references to not_same_real_pid,
893 target_has_forked, target_has_vforked, target_has_execd,
894 and target_has_syscall_event.
895 (child_has_forked, child_has_vforked, child_has_execd)
896 (child_has_syscall_event): Remove.
897 (init_child_ops): Remove references to child_has_forked,
898 child_has_vforked, child_has_execd, and child_has_syscall_event.
899 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
900 (hpux_has_vforked): Likewise, from child_has_vforked.
901 (hpux_has_execd): Likewise, from child_has_execd.
902 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
903 * target.c (cleanup_target): Remove references to
904 to_has_forked, to_has_vforked, to_has_execd, and
905 to_has_syscall_event.
906 (update_current_target): Likewise.
907 (setup_target_debug): Likewise.
908 (debug_to_has_forked): Remove.
909 (debug_to_has_vforked): Remove.
910 (debug_to_has_execd): Remove.
911 (debug_to_has_syscall_event): Remove.
912 * target.h (struct target_ops): Remove to_has_forked.
913 to_has_vforked, to_has_execd, and to_has_syscall_event.
914 (child_has_forked, child_has_vforked, child_has_execd)
915 (child_has_syscall_event): Remove prototypes.
916 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
917 prototypes.
918 (target_has_forked, target_has_vforked, target_has_execd)
919 (target_has_syscall_event): Remove macros.
920
4088142a
DJ
9212002-11-16 Daniel Jacobowitz <drow@mvista.com>
922
923 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
924 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
925 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
926 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
927 * target.c (cleanup_target): Remove reference to
928 to_can_follow_vfork_prior_to_exec.
929 (update_current_target): Likewise.
930 (debug_to_can_follow_vfork_prior_to_exec): Remove.
931 (setup_target_debug): Remove reference to
932 to_can_follow_vfork_prior_to_exec.
933 * target.h (struct target_ops): Remove
934 to_can_follow_vfork_prior_to_exec.
935 (child_can_follow_vfork_prior_to_exec): Remove prototype.
936 (target_can_follow_vfork_prior_to_exec): Remove definition.
937 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
938 define.
939 * infrun.c (follow_vfork_when_exec): Remove.
940 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
941 (follow_exec): Likewise.
942 (handle_inferior_event): Likewise.
943 (keep_going): Likewise.
944
18cde8d5
AC
9452002-11-15 Andrew Cagney <cagney@redhat.com>
946
947 * frame.c (generic_unwind_get_saved_register): Make static.
948 * frame.h (generic_unwind_get_saved_register): Delete declaration.
949 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
950 defaults to generic_unwind_get_saved_register.
951 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
952 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
953 * frv-tdep.c (frv_gdbarch_init): Ditto.
954 * i386-tdep.c (i386_gdbarch_init): Ditto.
955 * s390-tdep.c (s390_gdbarch_init): Ditto.
956 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
957 * v850-tdep.c (v850_gdbarch_init): Ditto.
958 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
959 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
960 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
961
a6b063af
AC
9622002-11-15 Andrew Cagney <cagney@redhat.com>
963
964 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
965 i386-tdep.c.
966
f407986f
AC
9672002-11-15 Andrew Cagney <cagney@redhat.com>
968
969 * frame.h (sigtramp_saved_pc): Delete declaration.
970 * blockframe.c (sigtramp_saved_pc): Delete function.
971 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
972 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
973 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
974 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
975
f18c5a73
AC
9762002-11-15 Andrew Cagney <ac131313@redhat.com>
977
978 * frame.c (frame_pc_unwind): New function.
979 (frame_saved_regs_pc_unwind): New function.
980 (frame_register_unwind): Pass unwind_cache instead of
981 register_unwind_cache.
982 (set_unwind_by_pc): Add unwind_pc parameter, set.
983 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
984 (get_prev_frame): Ditto.
985 * frame.h (frame_pc_unwind_ftype): Declare.
986 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
987 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
988 (frame_pc_unwind): Declare.
989 * dummy-frame.c (dummy_frame_pc_unwind): New function.
990 (struct dummy_frame): Add comment mentioning that values are for
991 previous frame.
992 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
993 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
994 (generic_file_frame_chain_valid): Ditto.
995 * stack.c (frame_info): Ditto.
996
d9285969 9972002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
998
999 * linespec.c (locate_first_half): New function.
1000 (decode_line_1): Move code into locate_first_half.
1001
d741b867
AC
10022002-11-15 Andrew Cagney <ac131313@redhat.com>
1003
1004 * complaints.h: Add comment explaining how to eliminate a
1005 deprecated_complain call.
24382c5c 1006 * complaints.h: Fix spelling errors.
d741b867 1007
82d03c99
DC
10082002-11-15 David Carlton <carlton@math.stanford.edu>
1009
1010 * printcmd.c: Remove #include "disasm.h".
1011
c97eb5d9
AC
10122002-11-14 Andrew Cagney <ac131313@redhat.com>
1013
1014 * frame.h: Move the most relevant interface functions to the start
1015 of the file.
1016
524d7c18
AC
10172002-11-14 Andrew Cagney <ac131313@redhat.com>
1018
1019 * regcache.h (deprecated_registers): Rename registers.
1020 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1021 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1022 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1023 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1024 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1025 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1026 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1027 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1028 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1029 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1030 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1031 * v850ice.c: Update.
1032
6411e720
AC
1033Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1034
1035 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1036 NULL buffer.
1037
73937e03
AC
10382002-11-13 Andrew Cagney <cagney@redhat.com>
1039
1040 * regcache.h (deprecated_read_register_bytes): Rename
1041 read_register_bytes.
1042 (deprecated_write_register_bytes): Rename write_register_bytes.
1043 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1044 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1045 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1046 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1047 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1048 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1049 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1050 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1051 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1052 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1053 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1054 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1055 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1056 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1057
fb0cd46e
JB
10582002-11-13 Jim Blandy <jimb@redhat.com>
1059
1060 * findvar.c (read_var_value): Doc fix.
1061
2d28509a
AC
10622002-11-13 Andrew Cagney <cagney@redhat.com>
1063
1064 * regcache.c (struct regcache): Replace passthough_p with
1065 readonly_p.
1066 (regcache_xmalloc): Initialize readonly_p.
1067 (build_regcache): Initialize readonly_p.
1068 (regcache_save): New function.
1069 (regcache_restore): New function.
1070 (regcache_cpy): Re-implement using regcache_save and
1071 regcache_restore.
1072 (regcache_raw_read): Update.
1073 (regcache_cooked_read): When a read-only cache, checked for cached
1074 pseudo register values.
1075 (regcache_raw_write): Assert that the cache is not read-only.
1076 Remove code handling a non-passthrough cache.
1077 * regcache.h (regcache_save): Declare.
1078 (regcache_restore): Declare.
1079
067df2e5
AC
10802002-11-13 Andrew Cagney <cagney@redhat.com>
1081
1082 * regcache.c (struct regcache_descr): Add fields
1083 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1084 (init_legacy_regcache_descr): Compute the size of a cooked
1085 register cache and then assign that to sizeof_raw_registers. Set
1086 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1087 (init_legacy_regcache_descr): Ditto.
1088
51b1fe4e
AC
10892002-11-13 Andrew Cagney <cagney@redhat.com>
1090
1091 * regcache.c (register_buffer): Move to near start of file, update
1092 description.
1093 (regcache_raw_read): Use.
1094 (regcache_raw_write): Use.
1095 (struct regcache): Rename raw_registers to registers and
1096 raw_register_valid_p to register_valid_p.
1097 (regcache_xmalloc): Update.
1098 (regcache_xfree): Update.
1099 (register_buffer): Update.
1100 (regcache_cpy): Update.
1101 (regcache_cpy_no_passthrough): Update.
1102 (regcache_valid_p): Update.
1103 (deprecated_grub_regcache_for_registers): Update.
1104 (deprecated_grub_regcache_for_register_valid): Update.
1105 (set_register_cached): Update.
1106 (regcache_raw_write): Update.
1107
80b4c677
PM
11082002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1109
1110 * p-exp.y (name_not_typename): Use copy_name to
1111 set current_type variable for fields of THIS.
1112
0f3fafde
DJ
11132002-11-12 Daniel Jacobowitz <drow@mvista.com>
1114
1115 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1116 * monitor.c (init_base_monitor_ops): Likewise.
1117 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1118 * remote-array.c (init_array_ops): Likewise.
1119 * remote-e7000.c (init_e7000_ops): Likewise.
1120 * remote-es.c (init_es1800_ops): Likewise.
1121 (init_es1800_child_ops): Likewise.
1122 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1123 * remote-sim.c (init_gdbsim_ops): Likewise.
1124 * remote-st.c (init_st2000_ops): Likewise.
1125 * sol-thread.c (init_sol_core_ops): Likewise.
1126 (init_sol_thread_ops): Likewise.
1127 * v850ice.c (init_850ice_ops): Likewise.
1128 * win32-nat.c (init_child_ops): Likewise.
1129 * wince.c (init_child_ops): Likewise.
1130
82c0260e
AC
11312002-11-12 Andrew Cagney <ac131313@redhat.com>
1132
1133 * utils.c (gdb_realpath): Make rp a constant pointer.
1134
70d35819
AC
11352002-11-12 Andrew Cagney <ac131313@redhat.com>
1136
1137 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1138 a constant buffer; cannonicalize_file_name(); realpath() with a
1139 pathconf() defined buffer, xstrdup().
1140
9835a8b0
AC
11412002-11-12 Andrew Cagney <ac131313@redhat.com>
1142
1143 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1144 to hang2.C; hang3.c to hang3.C.
1145
3f47be5c
EZ
11462002-11-11 Elena Zannoni <ezannoni@redhat.com>
1147
1148 * findvar.c (read_var_value): Reenable TLS code.
1149
11502002-11-11 Elena Zannoni <ezannoni@redhat.com>
1151 Jim Blandy <jimb@redhat.com>
1152
1153 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1154 * target.c (update_current_target): Add
1155 to_get_thread_local_address.
1156 * target.h (to_get_thread_local_address): Export.
1157 (target_get_thread_local_address): Define.
1158 (target_get_thread_local_address_p): Define.
1159 * thread-db.c: Include solib-svr4.h.
1160 (td_thr_tls_get_addr_p): Define.
1161 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1162 (thread_db_get_thread_local_address): New function.
1163 (init_thread_db_ops): Initialize to_get_thread_local_address.
1164 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1165 * configure: Regenerate.
1166 * config.in: Regenerate.
1167
636b1a6d
DC
11682002-11-11 David Carlton <carlton@math.stanford.edu>
1169
1170 * linespec.c (set_flags): New function.
1171 (decode_line_1): Move code into set_flags.
1172
44fe14ab
DC
11732002-11-11 David Carlton <carlton@math.stanford.edu>
1174
1175 * linespec.c (decode_line_1): Move chunks of code to separate
1176 functions.
1177 (initialize_defaults): New function.
1178 (decode_indirect): New function.
1179
e6f181f5
AC
11802002-11-11 Andrew Cagney <ac131313@redhat.com>
1181
8971b011
AC
1182 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1183 instead of void_code_ptr.
1184 (sigtramp_saved_pc): Ditto.
1185
e6f181f5
AC
1186 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1187 i386_fp_regnum_p.
1188
01ad7f36
DJ
11892002-11-10 Daniel Jacobowitz <drow@mvista.com>
1190
1191 * gdbtypes.h (struct main_type): Move artificial flag out of
1192 loc. New member of ``struct field'' named static_kind. Reduce
1193 overloaded meaning of bitsize.
1194 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1195 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1196 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1197
1198 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1199 new fields.
1200 (template_to_fixed_record_type, template_to_static_fixed_type)
1201 (to_record_with_fixed_variant_part): Likewise.
1202 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1203 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1204 * dwarfread.c (struct_type, enum_type): Likewise.
1205 * hpread.c (hpread_read_enum_type)
1206 (hpread_read_function_type, hpread_read_doc_function_type)
1207 (hpread_read_struct_type): Likewise.
1208 * mdebugread.c (parse_symbol): Likewise.
1209
bf1e52be
AC
12102002-11-10 Andrew Cagney <ac131313@redhat.com>
1211
1212 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1213 * stack.c (print_frame_info_base): Update.
1214 (print_frame_info_base, frame_info): Update.
1215 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1216 (sparc_frame_saved_pc): Update.
1217 * ada-lang.c (find_printable_frame): Update.
1218 * breakpoint.c (deprecated_frame_in_dummy): Update.
1219
ce556f85
MK
12202002-11-09 Mark Kettenis <kettenis@gnu.org>
1221
1222 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1223 defined.
1224 (regmap): Extend to cover all registers.
1225 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1226 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1227 definitions.
1228 (fetch_register, sore_register): Simplify.
1229 (old_fetch_inferior_registers, old_store_inferior_registers):
1230 Remove functions.
1231 (cannot_fetch_register, cannot_store_register): Change
1232 implementation to use regmap array to decide which registers
1233 cannot be fetched/stored. This removes $orig_eax from the
1234 registers that cannot be fetched/stored.
1235 (fetch_inferior_registers): Call fetch_register directly instead
1236 of calling old_fetch_inferior_registers.
1237 (store_inferior_registers): Call store_register directly instead
1238 of calling old_store_inferior_registers.
1239 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1240 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1241 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1242
932bb524
KD
12432002-11-09 Klee Dienes <kdienes@apple.com>
1244
1245 * i387-tdep.c (i387_supply_register): When called with NULL as a
1246 buffer, mark the register as not provided (to mirror the behavior
1247 of supply_register).
1248 (i387_supply_fxsave): Ditto.
1249 (i387_supply_fsave): Ditto (inherits the behavior from
1250 i387_supply_register).
1251
ebe68b27
KD
12522002-11-09 Klee Dienes <kdienes@apple.com>
1253
1254 * blockframe.c (sigtramp_saved_pc): Use
1255 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1256 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1257 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1258
15220c65
AC
12592002-11-09 Andrew Cagney <ac131313@redhat.com>
1260
1261 * frame.c (get_prev_frame): Test prev_p to identify a previously
1262 unwound frame. Initialize prev_p.
1263 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1264 comment.
1265
95adb866
AC
12662002-11-09 Andrew Cagney <ac131313@redhat.com>
1267
1268 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1269 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1270 more comments. Zap dead code.
1271
e71ecd70
MK
12722002-11-09 Mark Kettenis <kettenis@gnu.org>
1273
1274 * infcmd.c (print_vector_info, print_float_info): Move code that
1275 checks whether the target has any registers and whether there is a
1276 selected frame up, such that it is also used if a target provides
1277 multi-arch definitions of these functions.
1278
c525330d
AC
12792002-11-08 Andrew Cagney <ac131313@redhat.com>
1280
72bdd927
AC
1281 * Makefile.in (DESTDIR): Define.
1282 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1283 prefix.
1284
c525330d
AC
1285 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1286 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1287
38c968cf
AC
12882002-11-08 Andrew Cagney <ac131313@redhat.com>
1289
1290 * i386-linux-tdep.c: Include "reggroups.h".
1291 (i386_linux_register_reggroup_p): New function.
1292 (i386_linux_init_abi): Set register_reggroup_p to
1293 i386_linux_register_reggroup_p.
1294 * i386-tdep.h (i386_register_reggroup_p): Declare.
1295 * i386-tdep.c: Include "reggroups.h".
1296 (i386_init_reggroups): New function.
1297 (i386_add_reggroups): New function.
1298 (i386_register_reggroup_p): New function.
1299 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1300 (_initialize_i386_tdep): Call i386_init_reggroups.
1301 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1302 specific reggroups.
1303
19e33363
MK
13042002-11-09 Mark Kettenis <kettenis@gnu.org>
1305
371a6e84
MK
1306 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1307 request that's available in *BSD.
1308
94ba925a
MK
1309 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1310
19e33363
MK
1311 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1312 FDOFF_REGNUM.
1313
8779790c
AC
13142002-11-08 Andrew Cagney <ac131313@redhat.com>
1315
1316 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1317 * dummy-frame.c (find_dummy_frame): Rename
1318 generic_find_dummy_frame, make static. Return the dummy frame
1319 instead of the regcache.
1320 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1321 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1322 (dummy_frame_register_unwind): Rename
1323 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1324 * dummy-frame.h (dummy_frame_register_unwind): Rename
1325 generic_call_dummy_register_unwind.
1326
8674b74f
MK
13272002-11-08 Mark Kettenis <kettenis@gnu.org>
1328
1329 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1330 except the inclusion of "i386/tm-i386.h", to...
1331 * config/i386/nm-i386v42mp.h: ...here.
1332 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1333
4c1e7e9d
AC
13342002-11-08 Andrew Cagney <ac131313@redhat.com>
1335
1336 * Makefile.in (frame.o): Update dependencies.
1337 * blockframe.c (current_frame, frame_obstack_alloc)
1338 (frame_saved_regs_zalloc, get_current_frame)
1339 (set_current_frame, create_new_frame)
1340 (set_unwind_by_pc, get_next_frame)
1341 (flush_cached_frames, reinit_frame_cache)
1342 (frame_saved_regs_register_unwind)
1343 (deprecated_generic_get_saved_register)
1344 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1345 (_initialize_blockframe): Move frame code from here...
1346 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1347 "annotate.h" and "dummy-frame.h".
1348 (_initialize_frame): New function.
1349
921e78cf
JB
13502002-11-08 Jim Blandy <jimb@redhat.com>
1351
1352 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1353 when we finish a function a context.
1354 * buildsym.h (outermost_context_p): New macro.
1355 (Bug analyzed by David Edelsohn.)
1356
9c1412c1
AC
13572002-11-08 Andrew Cagney <ac131313@redhat.com>
1358
1359 * blockframe.c: Include "dummy-frame.h".
1360 (struct dummy_frame, dummy_frame_stack)
1361 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1362 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1363 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1364 (generic_save_call_dummy_addr, generic_pop_current_frame)
1365 (generic_pop_dummy_frame, generic_fix_call_dummy)
1366 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1367 dummy frame code from here...
1368 * dummy-frame.c: ...to here. New file.
1369 * dummy-frame.h: New file.
1370 (generic_call_dummy_register_unwind): Declare.
1371 (generic_find_dummy_frame): Declare.
1372 * Makefile.in (SFILES): Add dummy-frame.c.
1373 (dummy-frame.o): Specify dependencies.
1374 (dummy_frame_h): Define.
1375 (COMMON_OBS): Add dummy-frame.o.
1376 (blockframe.o): Update dependencies.
1377
208d8187
JB
13782002-11-08 Jim Blandy <jimb@redhat.com>
1379
1380 * dwarf2read.c (read_func_scope): Restore local_symbols and
1381 param_symbols after we finish the function context. (Based on a
1382 patch from David Edelsohn.)
1383
413dad4d
DC
13842002-11-08 David Carlton <carlton@math.stanford.edu>
1385
1386 * linespec.c (symbol_found): New function.
1387 (minsym_found): New function.
1388 (decode_line_1): Separate out some code into separate functions.
1389
5512c44a
JB
13902002-11-08 Joel Brobecker <brobecker@gnat.com>
1391
1392 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1393 the benefit of the interix target.
1394 * i386-tdep.h (i386_frameless_signal_p): Declare.
1395
1b33ef47
AC
13962002-11-08 Andrew Cagney <ac131313@redhat.com>
1397
1398 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1399 declaration that snuck in from change below.
1400
23a34459
AC
14012002-11-06 Andrew Cagney <cagney@redhat.com>
1402
1403 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1404 all callers.
1405 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1406 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1407 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1408 (i386_mxcsr_regnum_p): new function. Use instead of
1409 MXCSR_REGNUM_P.
1410 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1411 (i386_sse_regnum_p): Declare.
1412 (i386_mxcsr_regnum_p): Declare.
1413 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1414 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1415 (IS_FP_REGNUM): Update definition.
1416 (IS_FPU_CTRL_REGNUM): Update definition..
1417 (IS_SSE_REGNUM): Update definition..
1418 * i386v-nat.c (register_u_addr): Update.
1419 * go32-nat.c (fetch_register): Update.
1420 (store_register): Update.
1421
d709c020
JB
14222002-11-07 Joel Brobecker <brobecker@gnat.com>
1423
1424 Preparation work to convert the hppa targets to multiarch partial.
1425
1426 * hppa-tdep.c: Add new functions replacing macro bodies from
1427 config/pa/tm-hppa.h. These function will be used to initialize
1428 the gdbarch structure. Import some comments from tm-hppa.h,
1429 and place them where appropriate, to avoid loosing them when
1430 we cleanup this file.
1431 (hppa_reg_struct_has_addr): New function.
1432 (hppa_inner_than): New function.
1433 (hppa_stack_align): New function.
1434 (hppa_pc_requires_run_before_use): New function.
1435 (hppa_instruction_nullified): New function.
1436 (hppa_register_byte): New function.
1437 (hppa_register_virtual_type): New function.
1438 (hppa_store_struct_return): New function.
1439 (hppa_cannot_store_register): New function.
1440 (hppa_frame_args_address): New function.
1441 (hppa_frame_locals_address): New function.
1442 (hppa_smash_text_address): New function.
1443 (hppa_coerce_float_to_double): New function. Requires the inclusion
1444 of "language.h".
1445
1446 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1447
1448 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1449 gdbarch-eligible macro to a call to the new associated function
1450 created in hppa-tdep.c.
1451 (INNER_THAN): Likewise.
1452 (STACK_ALIGN): Likewise.
1453 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1454 (INSTRUCTION_NULLIFIED): Likewise.
1455 (REGISTER_BYTE): Likewise.
1456 (REGISTER_VIRTUAL_TYPE): Likewise.
1457 (STORE_STRUCT_RETURN): Likewise.
1458 (CANNOT_STORE_REGISTER): Likewise.
1459 (FRAME_ARGS_ADDRESS): Likewise.
1460 (FRAME_LOCALS_ADDRESS): Likewise.
1461 (SMASH_TEXT_ADDRESS): Likewise.
1462 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1463 (ABOUT_TO_RETURN): Delete, as no longer used.
1464
83c31e7d
FN
14652002-11-07 Fernando Nasser <fnasser@redhat.com>
1466
1467 * printcmd.c (disassemble_command): Remove obsolete function.
1468 (_initialize_printcmd): Do not create disassemble command here.
1469 * cli/cli-cmds.c (disassemble_command): New function. Implements
1470 disassemble command.
1471 (init_cli_cmds): Create disassemble command here instead.
1472
0ec30a36
AC
14732002-11-07 Andrew Cagney <ac131313@redhat.com>
1474
1475 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1476
e600bd34
AC
14772002-11-07 Andrew Cagney <ac131313@redhat.com>
1478
1479 * regcache.h (regcache_cooked_read_using_offset_hack)
1480 (regcache_cooked_write_using_offset_hack): Delete declarations.
1481 (register_changed): Delete declaration.
1482 * regcache.c (regcache_cooked_read_using_offset_hack)
1483 (regcache_cooked_write_using_offset_hack): Delete functions.
1484 (cooked_xfer_using_offset_hack): Delete function.
1485 (register_changed): Delete function.
1486
568f8739
JB
14872002-11-07 Jim Blandy <jimb@redhat.com>
1488
1489 * macroscope.c: #include "complaints.h".
1490 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1491 but not in the macro table.
1492 * Makefile.in (macroscope.o): Record dependency.
1493
b0718b7b
JB
14942002-11-07 Joel Brobecker <brobecker@gnat.com>
1495
1496 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1497
2b9e5f3f
AC
14982002-11-07 Andrew Cagney <ac131313@redhat.com>
1499
1500 * regcache.c (deprecated_registers_fetched): Update.
1501 * regcache.h (deprecated_registers_fetched): Rename
1502 registers_fetched.
1503 * remote-vxsparc.c (vx_read_register): Update.
1504 * remote-vxmips.c (vx_read_register): Update.
1505 * remote-vx68.c (vx_read_register): Update.
1506 * irix5-nat.c (fetch_core_registers): Update.
1507 * mipsm3-nat.c (fetch_inferior_registers): Update.
1508 * sun3-nat.c (fetch_inferior_registers): Update.
1509 * symm-nat.c (fetch_inferior_registers): Update.
1510 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1511 (fetch_core_registers): Update.
1512 (fetch_kcore_registers): Update.
1513 * mips-nat.c (fetch_inferior_registers): Update.
1514 * corelow.c (get_core_registers): Update.
1515 * a68v-nat.c (fetch_inferior_registers): Update.
1516
e6e68f1f
JB
15172002-11-06 Joel Brobecker <brobecker@gnat.com>
1518
1519 Put in place the framework necessary for multiarching the hppa targets.
1520 * hppa-tdep.c (hppa_gdbarch_init): New function.
1521 (hppa_dump_tdep): New function.
1522 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1523 tdep structure dumper.
1524 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1525 until the multi-arching conversion has partially been completed.
1526
492254e9
AC
15272002-11-06 Andrew Cagney <ac131313@redhat.com>
1528
1529 * valops.c (value_assign): Merge lval_register case into
1530 lval_reg_frame_relative. Use frame_register and
1531 regcache_cooked_write instead of get_saved_register and
1532 write_register_bytes. After flushing the register cache, try to
1533 re-select the selected frame.
1534
8262ee23
AC
15352002-11-06 Andrew Cagney <ac131313@redhat.com>
1536
1537 * regcache.h (deprecated_register_valid): Rename register_valid.
1538 * regcache.c: Update.
1539 * ia64-aix-nat.c: Update.
1540 * i386gnu-nat.c: Update.
1541 * alpha-nat.c: Update.
1542 * sparc-nat.c: Update.
1543 * lynx-nat.c: Update.
1544 * remote-mips.c: Update.
1545
4facf7e8
JB
15462002-11-06 Joel Brobecker <brobecker@gnat.com>
1547
1548 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1549 to end of file, to be more consistent with the pratice followed
1550 by other targets.
1551
f9418c0f
AC
15522002-11-06 Andrew Cagney <ac131313@redhat.com>
1553
1554 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1555 (print_float_info): Print registers in float_reggroup.
1556 (print_vector_info): Print registers in vector_reggroup.
1557 (default_print_registers_info): When all, print registers in
1558 all_reggroup. Otherwize, print registers in general_reggroup.
1559 (registers_info): Rewrite. Add support for register groups.
1560 Eliminate a goto.
1561
3fe235a7
EZ
15622002-11-06 Elena Zannoni <ezannoni@redhat.com>
1563
1564 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1565 ages.
1566 (symtab_symbol_info): Remove eons old ifdeffed out code.
1567 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1568 command.
1569
ef944135
TR
15702002-11-06 Theodore A. Roth <troth@openavr.org>
1571
1572 * c-exp.y: Add missing semi-colons.
1573 * f-exp.y: Add missing semi-colons.
1574 * m2-exp.y: Add missing semi-colons.
1575 * p-exp.y: Add missing semi-colons.
1576 Add empty action to start rule to avoid a type clash error when
1577 building with bison >= 1.50.
1578
f8302a57
JB
15792002-11-06 Jim Blandy <jimb@redhat.com>
1580
1581 * macrotab.h (struct macro_source_file): Doc fix.
1582
6e382aa3
JJ
15832002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1584
1585 * varobj.c (child_exists, cplus_number_of_children): Change
1586 STREQ macro references to strcmp.
1587 (cplus_name_of_child): Change code to handle the fact that
1588 fields are not necessarily contiguous with regards to their
1589 access control. This is a fix for PR gdb/792.
1590
a216a322
AC
15912002-11-05 Andrew Cagney <ac131313@redhat.com>
1592
1593 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1594 * gdbarch.h, gdbarch.c: Regnerate.
1595 * frame.h (frame_register): Declare.
1596 * frame.c (frame_register): New function.
1597 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1598 GET_SAVED_REGISTER, otherwize call
1599 generic_unwind_get_saved_register.
1600 (frame_register_read): Use frame_register instead of
1601 get_saved_register.
1602
7d5b6fdd
EZ
16032002-11-05 Elena Zannoni <ezannoni@redhat.com>
1604
1605 From Jim Ingham <jingham@apple.com>:
1606 * event-top.c (gdb_disable_readline): New function.
1607 (_initialize_event_loop): Move comment.
1608
b7c64260
EZ
16092002-11-05 Elena Zannoni <ezannoni@redhat.com>
1610
1611 * event-loop.c (start_event_loop): Add comment.
1612 Update copyright.
1613
c2e1b8f2
AC
16142002-11-05 Andrew Cagney <ac131313@redhat.com>
1615
1616 * infcmd.c (default_print_registers_info): Do not call
1617 PRINT_REGISTER_HOOK.
1618
87647bb0
AC
16192002-11-05 Andrew Cagney <ac131313@redhat.com>
1620
1621 * sparc-tdep.c (sparc_print_register_hook): Make static.
1622 (sparc_print_registers_info): New function.
1623 (sparc_do_registers_info): New function.
1624 (sparclet_print_registers_info): New function.
1625 (sparclet_do_registers_info): New function.
1626 (do_sparc_print_registers_info): New function.
1627 (sparc_print_registers): New static function, clone of infcmd.c's
1628 default_print_registers_info.
1629 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1630 (sparclet_do_registers_info): Declare.
1631 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1632 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1633 Re-define.
1634 (sparc_do_registers_info): Declare.
1635 (PRINT_REGISTER_HOOK): Delete macro.
1636 (sparc_print_register_hook): Delete declaration.
1637
8155455b
DC
16382002-11-05 David Carlton <carlton@math.stanford.edu>
1639
1640 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1641 functions.
1642 (lookup_symbol_aux_local): New function.
1643 (lookup_symbol_aux_symtabs): New function.
1644 (lookup_symbol_aux_psymtabs): New function.
1645
29924310
DC
16462002-11-05 David Carlton <carlton@math.stanford.edu>
1647
1648 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1649 previous values of 'objfile' and 'block'.
1650
cc303028
PM
16512002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1652
1653 * values.c (value_change_enclosing_type): Set
1654 enclosing_type field correctly also for the case where
1655 more memory needs to be allocated.
1656
1d70089a
MK
16572002-11-03 Mark Kettenis <kettenis@gnu.org>
1658
f16a25ae
MK
1659 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1660 of puts_filtered.
1661
1d70089a
MK
1662 * i387-tdep.c (i387_print_float_info): Replace calls to
1663 register_read and deprecated_read_register_gen with calls to
1664 frame_register_read, and make the necessary adjustments to the
1665 surrounding code.
1666
7e20f3fb
AC
16672002-11-02 Andrew Cagney <ac131313@redhat.com>
1668
1669 * gdbarch.sh (register_reggroup_p): Allow default value.
1670 * gdbarch.h, gdbarch.c: Regenerate.
1671
192dbe33
AC
16722002-11-02 Andrew Cagney <ac131313@redhat.com>
1673
1674 * regcache.h: Add coment indicating replacements for deprecated
1675 functions.
1676
b59ff9d5
AC
16772002-11-02 Andrew Cagney <cagney@redhat.com>
1678
1679 * reggroups.h, reggroups.c: New files.
1680 * regcache.c: Include "reggroups.h".
1681 (enum regcache_dump_what): Add `regcache_dump_groups'.
1682 (regcache_dump): Contract size of the "Type" column. When
1683 specified, dump the register's groups.
1684 (maintenance_print_register_groups): New function.
1685 (_initialize_regcache): Add command `maint print register-groups'.
1686 * Makefile.in (COMMON_OBS): Add reggroups.o
1687 (SFILES): Add reggroups.c.
1688 (reggroups_h): Define.
1689 (regcache.o, gdbarch.o): Update dependencies.
1690 (reggroups.o): Specify dependencies.
1691 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1692 Add opaque declaration for `struct reggroup' in generated .h file.
1693 Include "reggroups.h" in generated .c file.
1694 gdbarch.h, gdbarch.c: Re-generate.
1695
4caf0990
AC
16962002-11-02 Andrew Cagney <cagney@redhat.com>
1697
1698 * regcache.h (deprecated_read_register_gen): Rename
1699 read_register_gen.
1700 (deprecated_write_register_gen): Rename write_register_gen.
1701 * i387-tdep.c: Update.
1702 * x86-64-linux-nat.c: Update
1703 * wince.c: Update.
1704 * thread-db.c: Update.
1705 * win32-nat.c: Update.
1706 * mips-tdep.c: Update.
1707 * d10v-tdep.c: Update.
1708 * cris-tdep.c: Update.
1709 * remote-sim.c: Update.
1710 * remote-rdi.c: Update.
1711 * remote-rdp.c: Update.
1712 * frame.c: Update.
1713 * target.c: Update.
1714 * blockframe.c: Update.
1715 * x86-64-tdep.c: Update.
1716 * xstormy16-tdep.c: Update.
1717 * sh-tdep.c: Update.
1718 * s390-tdep.c: Update.
1719 * rs6000-tdep.c: Update.
1720 * sparc-tdep.c: Update.
1721 * i386-tdep.c: Update.
1722 * dwarf2cfi.c: Update.
1723 * regcache.c: Update.
1724
7a7adcdf
JB
17252002-11-01 Joel Brobecker <brobecker@gnat.com>
1726
1727 New interix-specific files:
1728 * config/i386/nm-interix.h: New file.
1729 * config/i386/interix.mh: New file.
1730 * config/i386/interix.mt: New file.
1731 * i386-interix-nat.c: New file.
1732 * i386-interix-tdep.c: New file.
1733
bdcdd535
AC
17342002-11-01 Andrew Cagney <cagney@redhat.com>
1735
1736 * frame.h (deprecated_generic_get_saved_register): Rename
1737 generic_get_saved_register.
1738 * blockframe.c (deprecated_generic_get_saved_register): Update.
1739 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1740 (xstormy16_frame_saved_register): Update.
1741 * sh-tdep.c (sh_gdbarch_init): Update.
1742 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1743 * ia64-tdep.c (ia64_get_saved_register): Update.
1744 * cris-tdep.c (cris_gdbarch_init): Update.
1745 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1746 * arm-tdep.c (arm_gdbarch_init): Update.
1747
2a4b7c45
DJ
17482002-10-31 Daniel Jacobowitz <drow@mvista.com>
1749
1750 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1751
ef17e74b
DJ
17522002-10-31 Daniel Jacobowitz <drow@mvista.com>
1753
1754 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1755 trampolines in sigaction.
1756
4904ba5b
AC
17572002-10-31 Andrew Cagney <cagney@redhat.com>
1758
1759 * h8300-tdep.c: Include "gdb_assert.h".
1760 (h8300_print_register): Add gdbarch, file and frame parameters.
1761 Use frame_read_unsigned_register to read the register's value.
1762 Use fprintf_filtered to display output.
1763 (h8300_print_registers_info): Replace h8300_do_registers_info.
1764 (h8300_gdbarch_init): Set print_registers_info.
1765
f908a0eb
AC
17662002-10-31 Andrew Cagney <cagney@redhat.com>
1767
1768 * frame.c (frame_read_unsigned_register): New function.
1769 (frame_read_signed_register): New function.
1770 * frame.h (frame_read_unsigned_register): Declare.
1771 (frame_read_signed_register): Declare.
1772
c5646e11
AC
17732002-10-31 Andrew Cagney <cagney@redhat.com>
1774
1775 * h8500-tdep.c (h8500_print_registers_info): New static function,
1776 clone of infcmd.c's default_print_registers_info.
1777 (h8500_do_registers_info): New funtion.
1778 (h8500_print_register_hook): Rename print_register_hook, make
1779 static.
1780
1781 * config/h8500/tm-h8500.h: Update copyright.
1782 (DEPRECATED_DO_REGISTERS_INFO): Define.
1783 (h8500_do_registers_info: Declare.
1784 (PRINT_REGISTER_HOOK): Delete macro.
1785 (print_register_hook): Delete function.
1786
0bdd672b
AC
17872002-10-31 Andrew Cagney <cagney@redhat.com>
1788
1789 * z8k-tdep.c (z8k_print_register_hook): Make static.
1790 (z8k_print_registers_info): New static function, clone of
1791 infcmd.c's default_print_registers_info.
1792 (z8k_do_registers_info): New function. Wrap
1793 z8k_print_registers_info.
1794 * config/z8k/tm-z8k.h: Update copyright.
1795 (PRINT_REGISTER_HOOK): Delete macro.
1796 (z8k_print_register_hook): Delete declaration.
1797 (DEPRECATED_DO_REGISTERS_INFO): Define.
1798 (z8k_do_registers_info): Declare.
1799
bf9c25dc
JB
18002002-10-30 Joel Brobecker <brobecker@gnat.com>
1801
1802 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1803 as this is already provided by value.h, and was actually causing
1804 a compilation error because of a conflict in parameter type
1805 declaration due to a missing const keyword.
1806 (low_text_segment_addres): Fix a compilation warning.
1807
2c665b51
DJ
18082002-10-29 Daniel Jacobowitz <drow@mvista.com>
1809
1810 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1811 registers without a name.
1812 (mips_linux_cannot_store_register): Don't store registers without
1813 a name.
1814
e70ea697
DC
18152002-10-28 David Carlton <carlton@math.stanford.edu>
1816
1817 * symtab.c (find_addr_symbol): Delete. (It was already commented
1818 out.)
1819 * symtab.h: Delete prototype for find_addr_symbol.
1820
903ad3a6
AC
18212002-10-26 Andrew Cagney <cagney@redhat.com>
1822
1823 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1824 DO_REGISTERS_INFO.
1825 gdbarch.h, gdbarch.c: Re-generate.
1826 * infcmd.c (default_print_registers_info): Update reference.
1827 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1828 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1829 * sh-tdep.c (sh_gdbarch_init): Ditto.
1830 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1831 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1832
ab91194c
MK
18332002-10-26 Mark Kettenis <kettenis@gnu.org>
1834
e3033f15
MK
1835 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1836 cfi_init_extra_frame_info.
1837 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1838 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1839
b83b026c
MK
1840 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1841 target where necessary. Add more comments and remove the ones
1842 that don't provide any useful information.
1843
267bf4bb
MK
1844 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1845 deprecated_read_register_dummy with
1846 frame_unwind_unsigned_register.
1847
751f1375
MK
1848 * i386-tdep.c (i386_extract_struct_value_address): Use
1849 regcache_raw_read_unsigned instead of
1850 regcache_cooked_read_unsigned since we know that the register
1851 we're reading isn't a pseudo register. Rename variable 'val' into
1852 the more descriptive 'addr'.
1853
26abbdc4
MK
1854 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1855 (x86_64_push_return_address): Add comment.
1856 (x86_64_pop_frame): Make static.
1857 (examine_argument): Clarify comment.
1858 (x86_64_skip_prologue): Make prolog_expact variable static.
1859
9f1549cc
MK
1860 * dwarf2cfi.c: Fix some formatting problems.
1861 (context_cpy, read_encoded_pointer): Clarify comments.
1862
ab91194c
MK
1863 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1864 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1865 i386 target back into x86_64_gdbarch_init. Add some comments and
1866 remove meaningless ones.
1867
72367fb4
AC
18682002-10-25 Andrew Cagney <cagney@redhat.com>
1869
1870 * complaints.h (struct deprecated_complaint): Rename `struct
1871 complaint'.
1872 * complaints.c (complain): Update.
1873 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1874 incorrect comment indicating that "symfile.h" was being included
1875 for the `struct complaint' definition.
1876 * remote-vx.c: Update.
1877 * objc-lang.c: Update.
1878 * xcoffread.c: Update.
1879 * hpread.c: Update.
1880 * mdebugread.c: Update.
1881 * stabsread.c: Update.
1882 * dwarf2read.c: Update.
1883 * dwarfread.c: Update.
1884 * elfread.c: Update.
1885 * coffread.c: Update.
1886 * stabsread.h: Update.
1887 * dbxread.c: Update.
1888 * buildsym.c: Update.
1889 * gdbtypes.c: Update.
1890 * macrotab.c: Update.
1891
1f2baacc
MK
18922002-10-25 Mark Kettenis <kettenis@gnu.org>
1893
0c1a73d6
MK
1894 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1895 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1896 (x86_64_init_abi): ...new function.
1897
6aee4d54 1898 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
1899 * i386v-nat.c: Include "i386-tdep.h".
1900
8f9cbe01
AC
19012002-10-25 Andrew Cagney <cagney@redhat.com>
1902
5f11f355
AC
1903 * gdbtypes.c (address_space_name_to_int): Update.
1904 (address_space_int_to_name): Update.
1905 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1906 multi-arch predicate.
1907 (address_class_name_to_type_flags): Ditto.
1908 * gdbarch.h, gdbarch.c: Re-generate.
1909
8f9cbe01
AC
1910 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1911
e8d96a5d
MH
19122002-10-24 Martin M. Hunt <hunt@redhat.com>
1913
1914 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1915
fe39c653
EZ
19162002-10-24 Elena Zannoni <ezannoni@redhat.com>
1917
1918 * symtab.h (INIT_SAL): Delete macro.
1919 (init_sal): Export.
1920 * symtab.c (init_sal): New function.
1921
1922 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1923 to init_sal function call.
1924 (find_sal_from_funcs_and_line): Ditto.
1925 (all_sals_for_line): Ditto.
1926 * breakpoint.c (create_internal_breakpoint): Ditto.
1927 (create_fork_vfork_event_catchpoint): Ditto.
1928 (create_exec_event_catchpoint): Ditto.
1929 (parse_breakpoint_sals): Ditto.
1930 (watch_command_1): Ditto.
1931 (handle_gnu_4_16_catch_command): Ditto.
1932 (clear_command): Ditto.
1933 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1934 * infcmd.c (run_stack_dummy): Ditto.
1935 * infrun.c (process_event_stop_test): Ditto.
1936 (check_sigtramp2): Ditto.
1937 (step_over_function): Ditto.
1938 * linespec.c (decode_line_2): Ditto.
1939 (decode_line_1): Ditto.
1940 * source.c (line_info): Ditto.
1941 * symtab.c (find_pc_sect_line): Ditto.
1942
baed091b
ML
19432002-10-24 Michal Ludvig <mludvig@suse.cz>
1944
1945 * dwarf2cfi.c (struct context)
1946 (struct context_reg): Moved to dwarf2cfi.h
1947 (context_alloc, frame_state_alloc, context_cpy):
1948 Made extern instead of static, removed prototypes.
1949 * dwarf2cfi.h (struct context)
1950 (struct context_reg): New, moved from dwarf2cfi.c
1951 (context_alloc, frame_state_alloc, context_cpy):
1952 New prototypes.
1953 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1954 Changed from static to extern.
1955 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1956 (LINUX_SIGCONTEXT_FP_OFFSET)
1957 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1958 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1959 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1960 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1961 set_gdbarch_*() calls now use x86-64 specific functions
1962 instead of DWARF2 CFI ones.
1963 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1964 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1965 (x86_64_init_extra_frame_info): New prototypes.
1966
c38da1af
DC
19672002-10-23 David Carlton <carlton@math.stanford.edu>
1968
1969 * linespec.c: #include "parser-defs.h".
1970 Delete prototype for find_template_name_end.
1971 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1972
fb9b6b35
JJ
19732002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1974
1975 * NEWS: add recent mi fixes.
1976 * varobj.c (struct varobj): Add new "updated" flag.
1977 (new_variable): Default "updated" flag to 0.
1978 (varobj_set_value): Set "updated" flag to 1 if value
1979 changes.
1980 (varobj_update): Check varobj "updated" flag before
1981 comparing old and refreshed values. Fix for
1982 PR gdb/702.
1983
8da065d5
DC
19842002-10-23 David Carlton <carlton@math.stanford.edu>
1985
1986 * parse.c (parse_exp_1): Use BLOCK_START.
1987 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1988 SYMBOL_BLOCK_VALUE.
1989 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1990
87f2f08c
DC
19912002-10-23 David Carlton <carlton@math.stanford.edu>
1992
1993 * symtab.c: Delete cplusplus_hint.
1994 Delete prototype for find_template_name_end.
1995
88cda038
EZ
19962002-10-23 Elena Zannoni <ezannoni@redhat.com>
1997
1998 * symtab.h: Update comment.
1999
2625d86c
MS
20002002-10-23 Michael Snyder <msnyder@redhat.com>
2001
2002 * printcmd.c (address_info): Restore quotes in output.
2003 * valops.c (value_of_local): Restore quotes in error message.
2004
9cc0d196
EZ
20052002-10-23 Elena Zannoni <ezannoni@redhat.com>
2006
2007 * symtab.c (symbol_demangled_name): New function.
2008 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2009 turning most of it into a function.
2010 (symbol_demangled_name): Export.
2011
19de93d0
MS
20122002-10-23 Michael Snyder <msnyder@redhat.com>
2013
2014 * valops.c (value_of_local): Restore quotes in error message.
2015
89aad1f9
EZ
20162002-10-23 Elena Zannoni <ezannoni@redhat.com>
2017
2018 * symtab.c (symbol_init_language_specific): New function.
2019 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2020 turning most of it into a function.
2021 (symbol_init_language_specific): Export.
2022
d9fa45fe
DC
20232002-10-23 David Carlton <carlton@math.stanford.edu>
2024
2025 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2026 (dwarf_attr_name): Ditto.
2027 (dwarf_type_encoding_name): Ditto.
2028 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2029 (process_die): Handle DW_TAG_namespace,
2030 DW_TAG_imported_declaration, DW_TAG_imported_module.
2031 (read_namespace): New function.
2032
1045b512
JB
20332002-10-22 Joel Brobecker <brobecker@gnat.com>
2034
2035 * configure.in: Define NEW_PROC_API on Interix too.
2036 * configure: Regenerate.
2037
20382002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
2039
2040 * configure: Regenerate using the proper version of autoconf.
2041
3987b9d4
EZ
20422002-10-21 Elena Zannoni <ezannoni@redhat.com>
2043
2044 * findvar.c (read_var_value): Temporarily disable TLS code, until
2045 complete TLS support is added.
2046
9d774e44
EZ
20472002-10-21 Jim Blandy <jimb@redhat.com>
2048 Elena Zannoni <ezannoni@redhat.com>
2049
2050 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2051 for thread local storage locations.
2052 (struct symbol): Add objfile field.
2053 (SYMBOL_OBJFILE): Define.
2054 * dwarf2read.c (is_thread_local): New static variable.
2055 (new_symbol): If variable is in thread local fill in address class
2056 and objfile appropriately.
2057 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2058 stack operation.
2059 * printcmd.c (address_info): Print the information for thread
2060 local storage variable.
2061 * findvar.c (read_var_value): In case of thread local variable,
2062 defer to the target vector code to compute address.
2063
bc4a16ae
EZ
20642002-10-21 Elena Zannoni <ezannoni@redhat.com>
2065
2066 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2067 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2068
407caf07
EZ
20692002-10-21 Elena Zannoni <ezannoni@redhat.com>
2070
2071 * symtab.h (address_class): Rename
2072 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2073 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2074 * printcmd.c (address_info): Ditto.
2075 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2076
005328e3
MK
20772002-10-20 Mark Kettenis <kettenis@gnu.org>
2078
afdb036a
MK
2079 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2080 DBREG_DRX macro to acces debug registers.
2081
ca02e098
MK
2082 * Makefile.in (i386obsd-tdep.o): New target.
2083
03cc47f7
MK
2084 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2085 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2086
005328e3
MK
2087 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2088 * config/i386/obsd.mt: New file.
2089 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2090 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2091 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2092 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2093 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2094 * i386obsd-tdep.c: New file.
2095
9c96f9f2
AF
20962002-10-19 Adam Fedor <fedor@gnu.org>
2097
2098 * objc-exp.y (name_not_typename): Fix invalid comment.
2099
ce1ed485
MK
21002002-10-20 Mark Kettenis <kettenis@gnu.org>
2101
2102 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2103 to allocate partial syms and macro byte caches.
2104
1efc7aaa
DC
21052002-10-18 David Carlton <carlton@math.stanford.edu>
2106
2107 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2108
7e1d63ec
AF
21092002-10-18 Adam Fedor <fedor@gnu.org>
2110
2111 * stabsread.c (find_name_end): New function.
2112 (define_symbol): Use it.
2113
6e8d29a9
DJ
21142002-10-18 Daniel Jacobowitz <drow@mvista.com>
2115
2116 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2117 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2118 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2119 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2120
1efc7aaa 21212002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
2122
2123 * symfile.h: Add opaque declaration for struct obstack.
2124 Declare obsavestring to take a const char *.
2125 * symfile.c (obsavestring): Make first argument a const char *.
2126
1aeae86e
AF
21272002-10-16 Adam Fedor <fedor@gnu.org>
2128
2129 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2130 names when matching breakpoints in current file.
2131
8b2dbe47
KB
21322002-10-16 Kevin Buettner <kevinb@redhat.com>
2133
2134 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2135 (read_tag_pointer_type): Add address class support.
2136 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2137 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2138 New methods.
2139 * gdbarch.h, gdbarch.c: Regenerate.
2140 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2141 (make_type_with_address_space, recursive_type_dump): Add address
2142 class support.
2143 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2144 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2145 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2146
74451869
KD
21472002-10-16 Klee Dienes <kdienes@apple.com>
2148
2149 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2150 to get the last character of a char[] buffer, not
2151 name[sizeof(vptr_name)-1].
2152
ff4cb3e8
AF
21532002-10-14 Adam Fedor <fedor@gnu.org>
2154
2155 * symtab.h: New objc_specific struct.
2156 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2157 (SYMBOL_DEMANGLED_NAME): Likewise.
2158
da2cf7e0
AF
21592002-10-14 Adam Fedor <fedor@gnu.org>
2160
2161 * symfile.c (init_filename_language_table): Add ObjC file extension.
2162
4a351cef
AF
21632002-10-14 Adam Fedor <fedor@gnu.org>
2164
2165 * utils.c (puts_filtered_tabular): New function.
2166 (fprintf_symbol_filtered): Get ObjC demangled name.
2167 * defs.h (puts_filtered_tabular): Declared.
2168
9750e763
KB
21692002-10-14 Kevin Buettner <kevinb@redhat.com>
2170
2171 * c-lang.h (c_type_print_varspec_prefix): Delete.
2172 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2173 ``need_post_space'' parameter. Adjust all callers.
2174
eee771c1
DJ
21752002-10-14 Daniel Jacobowitz <drow@mvista.com>
2176
2177 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2178 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2179 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2180 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2181
46c82446
AF
21822002-10-13 Adam Fedor <fedor@gnu.org>
2183
2184 * source.c (print_source_lines): Update comments.
2185
d069f99d
AF
21862002-10-13 Adam Fedor <fedor@gnu.org>
2187
2188 * valops.c (value_of_local): New function.
2189 (value_of_this): Use it.
2190 * value.h (value_of_local): Declared.
2191
53c551b7
AF
21922002-10-13 Adam Fedor <fedor@gnu.org>
2193
2194 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2195 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2196
eb392fbf
AF
21972002-10-12 Adam Fedor <fedor@gnu.org>
2198
2199 * language.c (binop_result_type): Add language_objc to case.
2200 (integral_type): Likewise.
2201 (character_type): Likewise.
2202 (string_type): Likewise.
2203 (boolean_type): Likewise.
2204 (structured_type): Likewise.
2205 (binop_type_check): Likewise.
2206
e2b23ee9
AF
22072002-10-11 Adam Fedor <fedor@gnu.org>
2208
2209 * printcmd.c (address_info): Print 'self' for ObjC.
2210
b01ab485
AF
22112002-10-11 Adam Fedor <fedor@gnu.org>
2212
2213 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2214 OP_SELF.
2215
806e6073
AF
22162002-10-11 Adam Fedor <fedor@gnu.org>
2217
2218 * language.h (CAST_IS_CONVERSION): Add language_objc.
2219
50f85cdf
AF
22202002-10-11 Adam Fedor <fedor@gnu.org>
2221
2222 * defs.h (enum language): Add language_objc.
2223
0d540cdf
KD
22242002-10-11 Klee Dienes <kdienes@apple.com>
2225
69266111 2226 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
2227 * gdbcore.h (read_memory_typed_address): Add prototype.
2228 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2229 to read a value destined for a CORE_ADDR, not read_memory_integer.
2230 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2231 (f77_get_dynamic_lowerbound): Ditto.
2232
d5dc7960
MH
22332002-10-11 Martin M. Hunt <hunt@redhat.com>
2234
2235 * utils.c (string_to_core_addr): After turning string into
2236 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2237 which will do necessary sign-extension, etc.
2238
8343f86c
DJ
22392002-10-11 Daniel Jacobowitz <drow@mvista.com>
2240
2241 * c-exp.y (THIS): Delete token and grammar rule.
2242 (yylex): Don't return THIS.
2243 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2244 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2245 * demangle.c (cplus_markers): Update comment. Put '$'
2246 first. Remove CPLUS_MARKER.
2247 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2248 * jv-exp.y (THIS): Delete token and grammar rule.
2249 (yylex): Don't return THIS.
2250 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2251 * objc-exp.y (THIS): Delete token and grammar rule.
2252 (yylex): Don't return THIS.
2253 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2254 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2255 (read_member_functions): Likewise for opname.
2256 (read_tilde_fields): Use is_cplus_marker.
2257
2258 * defs.h (CPLUS_MARKER): Don't define.
2259 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2260 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2261 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2262 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2263 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2264
2265 * config/i386/tm-i386v4.h: Delete file.
2266 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2267 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2268 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2269 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2270 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2271 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2272 * config/i386/i386v4.mt (TM_FILE): Likewise.
2273 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2274
967c0d83
MM
22752002-10-10 Marko Mlinar <markom@opencores.org>
2276
2277 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2278 accidentially not commited 2002-10-09
2279 * gdbarch.h, gdbarch.c: Re-generate.
2280
f74fa174
MM
22812002-10-09 Marko Mlinar <markom@opencores.org>
2282
2283 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2284 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2285 * gdbarch.h, gdbarch.c: Re-generate.
2286
57349743
JB
22872002-10-08 Petr Sorfa <petrs@caldera.com>
2288
2289 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2290
2291 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2292 so we can work on more than one compilation unit at a time. This
2293 helps prepare GDB to handle inter-CU die references.
2294 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2295 the code to be defined before struct comp_unit_head.
2296 (comp_unit_head): Added new members - offset, cu_head,
2297 begin_die, next and dwarf2_abbrevs.
2298 (dwarf2_abbrevs): Removed single static var; now member of
2299 struct comp_unit_head.
2300 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2301 members.
2302 (psymtab_to_symtab_1): Changed to work with the new
2303 struct comp_unit_head.
2304 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2305 constructs the dwarf2_abbrevs[] inside the cu_header.
2306 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2307 dwarf2_abbrev table to clean up.
2308 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2309 handling of dwarf2_abbrevs inside the cu_header.
2310 (read_partial_die): Now supports the call to the new
2311 dwarf2_lookup_abbrev.
2312 (read_full_die): Now supports the call to the new
2313 dwarf2_lookup_abbrev.
2314
4092aadb
CF
23152002-10-06 Christopher Faylor <cgf@redhat.com>
2316
2317 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2318 insure that shell variables, such as "transformed_name" are propagated
2319 to later shell statements in rule.
2320
af0b2512
MK
23212002-10-06 Mark Kettenis <kettenis@gnu.org>
2322
2323 * config/i386/nm-i386sco.h: Add protection against
2324 multiple-inclusion. Include "i386/nm-i386v.h".
2325 (REGISTER_U_ADDR): Remove define.
2326 (i386_register_u_addr): Remove prototype.
2327
d6020d45
MS
23282002-10-04 Michael Snyder <msnyder@redhat.com>
2329
2330 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2331 before treating it as a single-step event.
2332
7248f48e
AF
23332002-10-03 Adam Fedor <fedor@gnu.org>
2334
2335 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2336 (objc_demangle): Remove assignment in if statements, Replace
2337 free with xfree.
2338 (add_msglist): Likewise.
2339 (end_msglist): Likewise.
2340 (complare_selectors): Likewise.
2341 (selectors_info): Likewise.
2342 (compare_classes): Likewise.
2343 (classes_info): Likewise.
2344 (print_object_command): Likewise.
2345 (find_objc_msgcall_submethod): Replace PTR with void *.
2346 * objc-lang.h: Remove check for __STDC__.
2347
52c6a6ac
JJ
23482002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2349
2350 * ui-out.h (ui_out_field_fmt_int): New prototype.
2351 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2352 of field width and alignment.
2353 * stack.c (print_frame_info_base): When printing frame level, use
2354 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2355 PR gdb/192
2356
7e3cec17
JJ
23572002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2358
2359 * MAINTAINERS: Add self to Write After Approval list.
2360
a58dd373
EZ
23612002-10-02 Elena Zannoni <ezannoni@redhat.com>
2362
2363 * infcmd.c (interrupt_target_command_wrapper): Delete.
2364 (interrupt_target_command): Make non static.
2365 (nofp_registers_info): Make static.
2366 * stack.c (return_command_wrapper): Delete.
2367 (return_command): Make non static.
2368
cee6ddeb
EZ
23692002-10-02 Elena Zannoni <ezannoni@redhat.com>
2370
2371 * event-top.c (gdb_setup_readline): New function. Code moved from
2372 _initialize_event_loop().
2373 (_initialize_event_loop): Call gdb_setup_readline().
2374
c4ed33b9
AC
23752002-10-02 Andrew Cagney <ac131313@redhat.com>
2376
2377 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2378 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2379 * gdbarch.h, gdbarch.c: Re-generate.
2380
cef4f5dd
DJ
23812002-10-02 Daniel Jacobowitz <drow@mvista.com>
2382
2383 Fix PR gdb/778
2384 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2385 before recursing.
2386 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2387 of fill_in_vptr_fieldno.
2388
36dc181b 23892002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 2390
36dc181b
EZ
2391 * inferior.h (registers_info, stepi_command, nexti_command,
2392 continue_command, interrupt_target_command): Export from infcmd.c.
2393 * frame.h (args_info, selected_frame_level_changed_hook,
2394 return_command): Export from stack.c.
2395 * v850ice.c (stepi_command, nexti_command, continue_command): use
2396 prototypes from inferior.h.
2397 * tracepoint.c (registers_info, args_info, locals_info): Use
2398 prototypes from frame.h and inferior.h.
2399 * Makefile.in (mi-main.o): Add dependency on frame.h.
2400
6f99cb26
AC
24012002-10-02 Andrew Cagney <ac131313@redhat.com>
2402
da3eff49
AC
2403 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2404 value in register 3 adjusted by ppc_gp0_regnum.
2405
6f99cb26
AC
2406 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2407
da615bee
MM
24082002-10-02 Marko Mlinar <markom@opencores.org>
2409
2410 * MAINTAINERS: Add myself to the Write After Approval list.
2411
d154bee2
AO
24122002-10-01 Alexandre Oliva <aoliva@redhat.com>
2413
62a49b2c
AO
2414 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2415 of the section for the N64 ABI, fixed.
2416
d154bee2
AO
2417 * config/mips/tm-irix6.h: Include solib.h.
2418
ed348acc
EZ
24192002-10-01 Elena Zannoni <ezannoni@redhat.com>
2420
2421 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2422 GNU operators.
2423
da0f9dcd
AC
24242002-10-01 Andrew Cagney <ac131313@redhat.com>
2425
2426 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2427 and that "mi0" syntax has been removed.
2428
bdf64bac
DC
24292002-09-30 David Carlton <carlton@math.stanford.edu>
2430
2431 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2432 * ppc-sysv-tdep.c: #include "gdb_string.h".
2433 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2434 pacify GCC.
2435
54c2a1e6
AC
24362002-10-01 Andrew Cagney <ac131313@redhat.com>
2437
2438 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2439 "vrsave"'s register number.
2440
cedea778
AC
24412002-09-30 Andrew Cagney <ac131313@redhat.com>
2442
2443 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2444 use frame_unwind_signed_register to obtain the PC.
2445 (mips_frame_chain): Handle a generic dummy frame.
2446 (mips_init_extra_frame_info): When a generic dummy frame, don't
2447 re-compute the frame base.
2448 (mips_pop_frame): Handle generic dummy frames.
2449 (mips_gdbarch_init): When generic dummy frames, set
2450 use_generic_dummy_frames, push_dummy_frame to
2451 generic_push_dummy_frame, pc_in_call_dummy to
2452 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2453 generic_save_dummy_frame_tos.
2454
68315eb8
AC
24552002-09-30 Andrew Cagney <ac131313@redhat.com>
2456
2457 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2458 against TOP when TOP was explictly set.
2459 (generic_push_dummy_frame): Set TOP to zero.
2460
3b8630c3
EZ
24612002-09-30 Elena Zannoni <ezannoni@redhat.com>
2462
2463 * event-loop.c (start_event_loop): Rename variable 'result' to
2464 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2465
28ee05e9
KS
24662002-09-30 Keith Seitz <keiths@redhat.com>
2467
2468 * gdb-events.sh (selected_thread_changed): New event.
2469 * gdb-events.c: Regenerated.
2470 * gdb-events.h: Regenerated.
2471
6eecb1c8
HPN
24722002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2473
2474 * MAINTAINERS: Add self to Write After Approval list.
2475
92df71f0
FN
24762002-09-30 Fernando Nasser <fnasser@redhat.com>
2477
3b8630c3
EZ
2478 * disasm.c: New file.
2479 * disasm.h: New file.
92df71f0
FN
2480 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2481 (compare_lines): Ditto.
2482 (dump_insns): Ditto.
3b8630c3
EZ
2483 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2484 argument.
92df71f0 2485 (do_assembly_only): Ditto.
3b8630c3
EZ
2486 (do_disassembly): Renamed to gdb_disassembly and moved to
2487 disasm.c. Sdded uiout argument.
2488 * Makefile.in: Add new files. Reorder SFILES list. Update
2489 dependencies. Include libgdb.a later in the insight executable.
92df71f0 2490
0c22854d
AC
24912002-09-29 Andrew Cagney <ac131313@redhat.com>
2492
2493 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2494 bfd/elf64-alpha-fbsd.c.
2495
e67f2023
AC
24962002-09-29 Andrew Cagney <ac131313@redhat.com>
2497
2498 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2499 i386gnu-tdep.c.
2500
89396210
AC
25012002-09-29 Andrew Cagney <ac131313@redhat.com>
2502
2503 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2504 __FUNCTION__.
2505 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2506 function name.
2507 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2508 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2509 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2510 (S_msg_sig_post_reply): Ditto.
2511
7079c36c
CV
25122002-09-28 Corinna Vinschen <vinschen@redhat.com>
2513
89396210
AC
2514 * sh-tdep.c (sh_use_struct_convention): Use definition according
2515 to ABI.
7079c36c
CV
2516 (sh_push_arguments): Store in register with correct endianess.
2517 (sh_default_store_return_value): Ditto.
2518 (sh_gdbarch_init): Set sizeof long double to 8.
2519
975ac915
MK
25202002-09-27 Mark Kettenis <kettenis@gnu.org>
2521
2522 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2523 Fix some whitespace problems.
2524
9bbe19fb
DC
25252002-09-27 David Carlton <carlton@math.stanford.edu>
2526
2527 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2528 (mcore-tdep.o): Ditto.
2529 (ns32k-tdep.o): Ditto.
2530 (ns32knbsd-tdep.o): Ditto.
2531 (sh3-rom.o): Ditto.
2532 (vax-tdep.o): Ditto.
2533 * cris-tdep.c: #include "gdb_string.h"
2534 * mcore-tdep.c: Ditto.
2535 * ns32k-tdep.c: Ditto.
2536 * ns32knbsd-tdep.c: Ditto.
2537 * sh3-rom.c: Ditto.
2538 * vax-tdep.c: Ditto.
2539
43b2fdc7
DC
25402002-09-27 David Carlton <carlton@math.stanford.edu>
2541
2542 * config/djgpp/fnchange.lst: Add entries for
2543 gdb/testsuite/gdb.c++/m-static files.
2544
e8cfbbd9
JW
25452002-09-27 Jim Wilson <wilson@redhat.com>
2546
2547 * MAINTAINERS: Add myself to the Write After Approval list.
2548
43b2fdc7 25492002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2550
2551 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2552
2553
9f3b7f07
AC
25542002-09-26 Andrew Cagney <ac131313@redhat.com>
2555
2556 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2557 frame.
2558
11269d7e
AC
25592002-09-26 Andrew Cagney <ac131313@redhat.com>
2560
2561 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2562 (rs6000_struct_return_address): Delete variable.
2563 (rs6000_store_struct_return): Update.
2564 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2565 deprecated_extract_struct_value_address.
2566 (rs6000_frame_align): New function.
2567 (rs6000_gdbarch_init): Set frame_align.
2568
f15ab4a7
AC
25692002-09-26 Andrew Cagney <ac131313@redhat.com>
2570
2571 From Grace Sainsbury <graces@redhat.com>:
2572 * Makefile.in (gdbtk-main.o): New target.
2573 (gdb.o): New target.
2574 (main_h): Define.
2575 (main.o): Update dependencies.
2576 (gdb$(EXEEXT)): Add gdb.o.
2577 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2578 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2579 (SUBDIR_GDBTK_CLEAN): Set.
2580 (install-gdbtk): Install the insight binary.
2581 (uninstall-gdbtk): New target.
2582 (all-gdbtk, clean-gdbtk): New rule.
2583 * top.c (use_windows): Default to zero.
2584 * main.c: Include "main.h".
2585 (main): Delete.
2586 (struct captured_main_args): Delete.
2587 (gdb_main): New function.
2588 * main.h: New file.
2589 * gdb.c: New File.
2590
e36180d7
AC
25912002-09-25 Andrew Cagney <cagney@redhat.com>
2592
2593 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2594 (frame_map_regnum_to_name): New function.
2595 (frame_map_name_to_regnum): New function.
2596 * frame.h (frame_map_name_to_regnum): Declare.
2597 (frame_map_regnum_to_name): Declare.
2598 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2599 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2600 * parse.c: Do not include "builtin-regs.h".
2601 (target_map_name_to_register): Delete function.
2602 (write_dollar_variable): Use frame_map_name_to_regnum.
2603 * parser-defs.h (target_map_name_to_register): Delete declaration.
2604 * expprint.c: Include "frame.h".
2605 (print_subexp): Use frame_map_regnum_to_name.
2606 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2607 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2608
8b69000d
AC
26092002-09-25 Andrew Cagney <ac131313@redhat.com>
2610
2611 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2612 wasn't saved, and the next innermost frame is a dummy, return the
2613 dummy frame's link register.
2614
046ca86a
JB
26152002-09-24 Jim Blandy <jimb@redhat.com>
2616
2617 Fix from Paul Breed:
2618 * main.c (captured_main): Add a `break' after the case for 'b'.
2619
94b66fa7
KS
26202002-09-24 Keith Seitz <keiths@redhat.com>
2621
2622 * varobj.c (c_type_of_child): Use get_target_type instead
2623 of TYPE_TARGET_TYPE.
2624
c214a6fd
FN
26252002-09-22 Fernando Nasser <fnasser@redhat.com>
2626
53cb0458
FN
2627 * source.c (get_current_or_default_source_symtab_and_line): Remove
2628 function.
2629 (set_default_source_symtab_and_line): New function. Attempts to
2630 determine a source file to list lines from if one is not currently
2631 defined.
2632 (get_current_source_symtab_and_line): Initialize sal.pc and
2633 sal.end fields.
2634 (set_current_source_symtab_and_line): Mark argument as const.
2635 * source.h: Update declarations and comments.
2636 * linespec.c (decode_line_1): Replace call to removed routine above.
2637 * stack.c (print_frame_info_base): Ditto.
2638 * cli/cli-cmds.c (edit_command): Ditto.
2639 (list_command): Ditto.
2640
26412002-09-22 Fernando Nasser <fnasser@redhat.com>
2642
d6020d45 2643 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2644 sal.pc and sal.end fields.
c214a6fd
FN
2645 (get_current_or_default_source_symtab_and_line): Ditto.
2646 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2647 so we do not cause a new source symtab to be searched for (reverting an
2648 unintentional change from the 2002-09-20 patch).
2649 * scm-lang.c (scm_unpac): Ditto.
2650
cc3b68a5
AC
26512002-09-21 Andrew Cagney <cagney@redhat.com>
2652
2653 * complaints.c (symfile_explanations): Remove new-line from
2654 ``isolated_message''.
2655 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2656 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2657
5835abe7
NC
26582002-09-20 Nick Clifton <nickc@redhat.com>
2659
2660 * NEWS: Announce that V850EA ISA is no longer supported.
2661 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2662
a15ef5f5
DC
26632002-09-20 David Carlton <carlton@math.stanford.edu>
2664
06ba1b39
DC
2665 * Makefile.in (c-lang.o): Correct dependencies.
2666 (utils.o): Gather dependencies.
2667 (charset.o): Move.
a15ef5f5
DC
2668 * c-lang.c: #include "gdb_string.h"
2669
87885426
FN
26702002-09-20 Fernando Nasser <fnasser@redhat.com>
2671
2672 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2673 * cli/cli-cmds.c (list_command): New function. Implements the new
2674 cli edit command.
2675 (_init_cli_cmds): Add new command definition.
2676 * gdb.1: Document edit command.
2677 * doc/gdb.texinfo: Document edit command.
2678
26792002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2680
2681 * source.c: Make global variables current_source_symtab and
2682 current_source_line static.
2683 (list_command): Moved to cli/cli-cmds.c.
2684 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2685 (get_first_line_listed): New accessor function.
2686 (get_lines_to_list): New accessor function.
2687 (get_current_source_symtab_and_line): New function. Retrieves the
2688 position in the source code that we consider current.
2689 (get_current_or_default_source_symtab_and_line): New function.
2690 Like the above but attempts to determine a default position if one
2691 is not currently defined.
2692 (set_current_source_symtab_and_line): New function. Sets the source
2693 code position considered current and returns the previously set one.
2694 (clear_current_source_symtab_and_line): Reset stored information about
2695 a current source line.
2696 (_initialize_source): Remove registration for the "list" command and
2697 its alias.
2698 * source.h: Add declarations for the new functions above.
2699 * symtab.h: Remove declarations for the global variables mentioned
2700 above.
2701 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2702 obtain current source line.
2703 * linespec.c (decode_line_1): Ditto.
2704 * macroscope.c (default_macro_scope): Ditto.
2705 * scm-lang.c (scm_unpac): Ditto.
2706 * stack.c (print_frame_info_base): Ditto.
2707 * symfile.c (clear_symtab_users): Ditto.
2708 * symtab.c (decode_line_spec): Ditto.
2709 * cli/cli-cmds.c (list_command): Moved here from source.c.
2710 (ambiguous_line_spec): Moved here from source.c.
2711 (_init_cli_cmds): Add definition for "list" and its alias.
2712 * Makefile.in: Update dependencies.
2713
ddd216ea
CV
27142002-09-20 Corinna Vinschen <vinschen@redhat.com>
2715
2716 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2717 with what gcc thinks is correct.
2718
6d305052
CV
27192002-09-20 Corinna Vinschen <vinschen@redhat.com>
2720
2721 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2722 multiple register push instruction.
2723
234b45d4
KB
27242002-09-19 Jim Blandy <jimb@redhat.com>
2725
2726 Add support for distinct host and target character sets.
2727 * charset.c, charset.h: New files.
2728 * c-exp.y: #include "charset.h".
2729 (yylex): Convert character and string literals to the target
2730 character set, before returning them as the semantic value of the
2731 token.
2732 * c-lang.c: #include "charset.h".
2733 (c_emit_char): Use charset-specific methods to recognize
2734 characters with backslash escape forms, to decide which characters
2735 to print literally and which to print using numeric escape
2736 sequences, and to convert target characters to host characters
2737 before printing.
2738 * utils.c: #include "charset.h".
2739 (no_control_char_error): New function.
2740 (parse_escape): Use charset-specific methods to recognize
2741 backslash escapes, parse `control character' notation, and convert
2742 characters from the host character set to the target character set.
2743 * configure.in: Set the default host character set.
2744 Check where to find iconv, and what its argument types might be.
2745 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2746 * Makefile.in (SFILES): List charset.c.
2747 (COMMON_OBS): List charset.o.
2748 (charset.o): New rule.
2749 (charset_h): New header dependency variable.
2750 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2751 (LIBICONV): New variable, set by configure.
2752 (CLIBS): Include $(LIBICONV) here.
2753 * aclocal.m4, config.in, configure: Regenerated.
2754
525d6a61
JB
27552002-09-19 Joel Brobecker <brobecker@gnat.com>
2756
2757 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2758 bison 1.35 warning.
2759
3ed93867
RE
27602002-09-19 Richard Earnshaw <rearnsha@arm.com>
2761
2762 * gdb_mbuild.sh: New file.
2763
437666f8
AC
27642002-09-19 Andrew Cagney <ac131313@redhat.com>
2765
2766 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2767
389e51db
AC
27682002-09-18 Andrew Cagney <ac131313@redhat.com>
2769
2770 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2771 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2772 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2773 valops.c, value.h: Revert previous change.
2774
3b4efeaa
MS
27752002-09-18 Michael Snyder <msnyder@redhat.com>
2776
2777 Preliminary support for Objective-C:
2778 * defs.h (language_objc): New enum value.
2779 (puts_filtered_tabular): Declaration only, exported from utils.c.
2780 (skip_quoted): Delete, declared in completer.h.
2781 * c-exp.y: Include completer.h.
2782 * p-exp.y: Ditto.
2783 * jv-exp.y: Ditto.
2784 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2785 New operator enum values.
2786 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2787 * language.c (binop_result_type): Handle language_objc case.
2788 (integral_type, character_type, string_type, boolean_type,
2789 structured_type, binop_type_check): Ditto.
2790 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2791 (struct objc_specific): Add to general_symbol_info.
2792 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2793 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2794 * parser-defs.h (struct objc_class_str): New struct type.
2795 (start_msglist, end_msglist, add_msglist): Declaration only,
2796 exported from objc-lang.c.
2797 * value.h (value_of_local, value_nsstring,
2798 call_function_by_hand_expecting_type): Exported from valops.c.
2799 * valops.c (find_function_addr): Export.
2800 (call_function_by_hand_expecting_type): New function.
2801 (value_of_local): New function.
2802 * symfile.c (init_filename_language_table): Add ".m" extension
2803 for Objective-C.
2804 * utils.c (puts_filtered_tabular): New function.
2805 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2806 (set/show demangle): Extend help-string to refer to ObjC.
2807 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2808 * stabsread.c (symbol_reference_defined): Objective-C symbols
2809 may contain colons: make allowances when scanning stabs strings
2810 for colons.
2811 (objc_find_colon): New function.
2812 * printcmd.c (address_info): If language == objc then print
2813 "self" instead of "this".
2814 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2815 OP_NSSTRING, and OP_SELF.
2816 (prefixify_subexp): Ditto.
2817 * source.c (print_source_lines): Mention objc in comment.
2818 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2819 method names.
2820
b9caf505
AC
28212002-09-18 Andrew Cagney <ac131313@redhat.com>
2822
2823 * complaints.h: Update copyright.
2824 (struct complaints): Declare.
2825 (struct complaint): Make `message' constant.
2826 (internal_complaint): Declare.
2827 (complaint): Declare.
2828 (complaint_root): Delete declaration.
2829 (symfile_complaints): Delete declaration.
2830 (struct complaints): Add opaque declaration.
2831 (clear_complaints): Add a complaints parameter.
2832 * complaints.c: Update copyright.
2833 (enum complaint_series): Define.
2834 (complaint_root): Delete.
2835 (struct complaints): Define.
2836 (complaint_sentinel, symfile_complaint_book): New variables.
2837 (symfile_explanations, symfile_complaints): New variables.
2838 New variables.
2839 (get_complaints): New function.
2840 (vcomplaint): New function.
2841 (complaint): New function.
2842 (internal_complaint): New function.
2843 (complain): Call vcomplain with symfile_complaint.
2844 (clear_complaints): Rewrite.
2845 (_initialize_complaints): Use add_setshow_command.
2846 * Makefile.in (complaints.o): Update dependencies.
2847 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2848 to call to clear_complaints.
2849 (new_symfile_objfile, reread_symbols): Ditto.
2850 (oldsyms_complaint): Delete.
2851 (empty_symtab_complaint, unknown_option_complaint): Delete.
2852 (free_named_symtabs): Use complaint instead of complain.
2853
d2e6263c
MS
28542002-09-18 Michael Snyder <msnyder@redhat.com>
2855
5fb2031a
AC
2856 Contributed by Apple Computer, Inc. Merged with current sources
2857 by Adam Fedor <fedor@doc.com> [cagney].
2858
d2e6263c
MS
2859 * objc-lang.c: First clean-up round: comments, indentation.
2860 * objc-lang.h: Ditto.
2861 * objc-lang.y: Ditto.
2862
dec43320
AC
28632002-09-18 Andrew Cagney <ac131313@redhat.com>
2864
2865 * maint.c (maintenance_internal_error): Print the parameter as the
2866 error message.
2867 (maintenance_internal_warning): New function.
2868 (_initialize_maint_cmds): Add command `maint internal-warning'.
2869
2870 * defs.h (internal_warning, internal_vwarning): Declare.
2871 * utils.c (struct internal_problem): Define.
2872 (internal_vproblem): New function.
2873 (internal_warning): New function.
2874 (internal_vwarning): New function.
2875 (internal_warning_problem, internal_error_problem): New variables.
2876 (internal_verror): Just call internal_vproblem.
2877
b81654f1
MS
28782002-09-18 Michael Snyder <msnyder@redhat.com>
2879
2880 * objc-lang.c: New file, support for Objective-C.
2881 Preliminary check-in, not yet integrated into gdb.
2882 * objc-lang.h: New file.
2883 * objc-exp.y: New file.
2884
0542c381
AC
28852002-09-18 Andrew Cagney <ac131313@redhat.com>
2886
7bda5e4a
AC
2887 * infrun.c (signal_stop_update): Convert definition to ISO C.
2888 (signal_print_update): Ditto.
2889 (signal_pass_update): Ditto.
2890 * inflow.c (terminal_save_ours): Ditto.
2891
5247b418
AC
2892 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2893 comments.
2894
fc60962c
AC
2895 * config/djgpp/fnchange.lst: Handle name clashes between
2896 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2897 bfd/coff-tic80.c.
2898
0542c381
AC
2899 * i386-linux-tdep.h: Fix tipo.
2900
5b924b9b
AF
29012002-09-18 Adam Fedor <fedor@gnu.org>
2902
2903 * MAINTAINERS: Add myself to the Write After Approval list.
2904
5afc051b
JB
29052002-09-18 Jim Blandy <jimb@redhat.com>
2906
2907 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2908 texthigh and textlow to reader-specific structs caused
2909 objfile_relocate to miss them. This is fixable, but the work that
2910 the change was supposed to prepare GDB for never got done anyway.
2911
eb944380
DC
29122002-09-18 David Carlton <carlton@math.stanford.edu>
2913
2914 * MAINTAINERS: Alphabetize Write After Approval list.
2915
948e66d9
DJ
29162002-09-18 Daniel Jacobowitz <drow@mvista.com>
2917
2918 Fix PR gdb/709
2919 * values.c (value_static_field): Call read_var_value.
2920
dc604539
AC
29212002-09-18 Andrew Cagney <ac131313@redhat.com>
2922
2923 * valops.c (hand_function_call): Align the initial stack pointer
2924 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2925 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2926 return value.
2927 * mips-tdep.c (mips_frame_align): New function.
2928 (mips_gdbarch_init): Set frame_align.
2929 * gdbarch.sh (FRAME_ALIGN): New method.
2930 * gdbarch.h, gdbarch.c: Re-generate.
2931
cb7e422f
ML
29322002-09-18 Michal Ludvig <mludvig@suse.cz>
2933
2934 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2935 registers.
2936
a094c6fb
AC
29372002-09-17 Andrew Cagney <ac131313@redhat.com>
2938
2939 * NEWS: Mention that MIPS $fp behavior changed.
2940 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2941 reference to FP_REGNUM.
2942 (mipsnbsd_cannot_store_register): Ditto.
2943 * mips-linux-nat.c: Update copyright.
2944 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2945 (mips_linux_cannot_store_register): Ditto.
2946 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2947 * config/mips/tm-mips.h: Update copyright.
2948 (FP_REGNUM): Delete macro.
2949 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2950 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2951 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2952 (mips_r3041_reg_names, mips_r3051_reg_names)
2953 (mips_r3081_reg_names): Replace "fp" with "".
2954 Fix PR gdb/480.
2955
45cf40d1
TR
29562002-09-17 Theodore A. Roth <troth@verinet.com>
2957
2958 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2959 generic_read_register_dummy() (PR gdb/703).
2960 (avr_push_return_address): #if 0 out unused vars.
2961 (avr_gdbarch_init): Enable use of avr_push_return_address().
2962
c7e701b5
MS
29632002-09-17 Michael Snyder <msnyder@redhat.com>
2964
d76ba2a5 2965 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
2966 RTE will take care of it.
2967
20bcf01c
AC
29682002-09-17 Andrew Cagney <ac131313@redhat.com>
2969
2970 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2971 invalid, return SP_REGNUM.
2972
009a9971 29732002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
2974
2975 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2976 point registers without sign extension.
2977
135c175f
AC
29782002-09-17 Andrew Cagney <cagney@redhat.com>
2979
2980 * blockframe.c (deprecated_read_register_dummy): Rename
2981 generic_read_register_dummy.
2982 * frame.c (frame_unwind_signed_register): New function.
2983 (frame_unwind_unsigned_register): New function.
2984 * frame.h (frame_unwind_signed_register): Declare.
2985 (frame_unwind_unsigned_register): Declare.
2986 (deprecated_read_register_dummy): Rename
2987 generic_read_register_dummy.
2988
2989 * h8300-tdep.c (h8300_frame_chain): Update.
2990 (h8300_frame_saved_pc): Update.
2991 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2992 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2993 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2994 (s390_frame_chain): Update.
2995 * v850-tdep.c (v850_find_callers_reg): Update.
2996 (v850_frame_saved_pc): Update.
2997 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2998 (m32r_find_callers_reg): Update.
2999 (m32r_frame_saved_pc): Update.
3000 * sh-tdep.c (sh_find_callers_reg): Update.
3001 (sh64_get_saved_pr): Update.
3002 (sh_init_extra_frame_info): Update.
3003 (sh_init_extra_frame_info): Update.
3004 (sh64_init_extra_frame_info): Update.
3005 (sh64_init_extra_frame_info): Update.
3006 * mcore-tdep.c (mcore_find_callers_reg): Update.
3007 (mcore_frame_saved_pc): Update.
3008 (mcore_init_extra_frame_info): Update.
3009 * i386-tdep.c (i386_frame_saved_pc): Update.
3010 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3011 (ia64_init_extra_frame_info): Update.
3012 (ia64_init_extra_frame_info): Update.
3013 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3014 * cris-tdep.c (cris_init_extra_frame_info): Update.
3015 * avr-tdep.c (avr_frame_chain): Update.
3016 (avr_init_extra_frame_info): Update.
3017 (avr_frame_saved_pc): Update.
3018 * arm-tdep.c (arm_find_callers_reg): Update.
3019 (arm_init_extra_frame_info): Update.
3020 (arm_frame_saved_pc): Update.
3021
a741e514
TT
30222002-09-17 Tom Tromey <tromey@redhat.com>
3023
3024 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3025 is "'".
3026
d1a8e808
CV
30272002-09-17 Corinna Vinschen <vinschen@redhat.com>
3028
3029 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3030 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3031 NEXT_PROLOGUE_INSN.
3032 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3033 NEXT_PROLOGUE_INSN.
3034
d9025a18
JB
30352002-09-16 Joel Brobecker <brobecker@gnat.com>
3036
3037 * osfsolib.c: Remove file, replaced by solib-osf.c.
3038 * Makefile.in: Remove compilation rules for osfsolib.c.
3039
1b2ef1b6
DC
30402002-09-16 David Carlton <carlton@math.stanford.edu>
3041
3042 * cp-valprint.c (cp_print_class_method): Correct args to
3043 check_stub_method_group.
3044
928e48af
CV
30452002-09-16 Corinna Vinschen <vinschen@redhat.com>
3046
3047 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3048 `set architecture'. Unify naming convention of functions.
3049 (h8300_skip_prologue): Improve prologue analysis.
3050 (h8300_push_arguments): Rewritten to more closely match GCC's
3051 bizarre argument-passing behavior, along with the comment describing
3052 said behavior.
3053 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3054 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3055 sim, remote-e7000.c, remote-hms.c and remote.c
3056
5e3397bb
MK
30572002-09-15 Mark Kettenis <kettenis@gnu.org>
3058
3059 * i386-tdep.c (gdb_print_insn_i386): Removed.
3060 (i386_print_insn): New function.
3061 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3062 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3063 tm_print_insn_info.
3064
f710f4fc
MK
30652002-09-14 Mark Kettenis <kettenis@gnu.org>
3066
3067 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3068 zero.
3069
db54fef4
CV
30702002-09-14 Corinna Vinschen <vinschen@redhat.com>
3071
3072 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3073 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3074 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3075
2becadee
CF
30762002-09-13 Christopher Faylor <cgf@redhat.com>
3077
3078 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3079
de17c821
DJ
30802002-09-13 Daniel Jacobowitz <drow@mvista.com>
3081
3082 * gdbtypes.c (check_stub_method): Make static.
3083 (check_stub_method_group): New function.
3084 * gdbtypes.h: Update prototypes.
3085 * cp-support.c: New file.
3086 * cp-support.h: New file.
3087
3088 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3089 (update_method_name_from_physname): New function.
3090 (read_member_functions): Correct method names for operators
3091 and v3 constructors/destructors. Separate v2 constructors and
3092 destructors.
3093 * Makefile.in (stabsread.o): Update dependencies.
3094 (SFILES): Add cp-support.c.
3095 (COMMON_OBS): Add cp-support.o.
3096 (cp_support_h, cp-support.o): Add.
3097
3098 * cp-valprint.c (cp_print_class_method): Call
3099 check_stub_method_group instead of check_stub_method. Remove
3100 extraneous QUITs.
3101 * p-valprint.c (pascal_object_print_class_method): Likewise.
3102 * valops.c (search_struct_method): Likewise.
3103 (find_method_list, value_struct_elt_for_reference): Likewise.
3104
e76cff22
AC
31052002-09-13 Andrew Cagney <cagney@redhat.com>
3106
3107 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3108 * gdbarch.h, gdbarch.c: Regenerate.
3109
905abb3f
AC
31102002-09-13 Andrew Cagney <ac131313@redhat.com>
3111
3112 * frame.c (find_saved_register): Delete function.
3113 * frame.h (find_saved_register): Delete declaration.
3114 Fix PR gdb/631.
3115
64159455
AC
3116Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3117
3118 * mips-tdep.c (read_next_frame_reg): Re-hack using
3119 frame_register_unwind.
3120
795e1e11
AC
3121Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3122
3123 * mips-tdep.c (mips_get_saved_register): Re-hack using
3124 frame_register_unwind.
3125
5720643c
JB
31262002-09-12 Joel Brobecker <brobecker@gnat.com>
3127
3128 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3129 vector. Will be useful for Interix.
3130 * gdbarch.h, gdbarch.c: Regenerate.
3131
3132 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3133 name of the malloc function by NAME_OF_MALLOC.
3134
3bada2a2
JB
31352002-09-12 Joel Brobecker <brobecker@gnat.com>
3136
3137 * value.h (find_function_in_inferior): Add const keyword to
3138 one of the parameters. Allows us to invoke this function with
3139 a const char *.
3140 * valops.c (find_function_in_inferior): Likewise.
3141
3db26b01
JB
31422002-09-12 Joel Brobecker <brobecker@gnat.com>
3143
3144 * exec.c (xfer_memory): Fix compilation warning with old versions
3145 of GCC.
3146 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3147
17c5ed2c
DC
31482002-09-12 David Carlton <carlton@math.stanford.edu>
3149
3150 * symtab.h: Run through gdb_indent.h.
3151 Add 2002 to Copyright year list.
3152
ecd1107e
AM
31532002-09-12 Alan Modra <amodra@bigpond.net.au>
3154
3155 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3156 mach constants.
3157 * MAINTAINERS: Add myself to write after approval list.
3158
e64f66d1
JB
31592002-09-11 J. Brobecker <brobecker@gnat.com>
3160
3161 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3162
f9395794
JB
31632002-09-11 J. Brobecker <brobecker@gnat.com>
3164
3165 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3166 Interix.
3167
1a303dec
MS
31682002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3169
3170 * procfs.c (do_detach): Clear current signal, not just fault.
3171 Corrects problem with breakpoint trap signal leaking to detached
3172 process on Tru64.
3173
c0219d42
MS
31742002-09-10 Michael Snyder <msnyder@redhat.com>
3175
3176 * buildsym.c (finish_block): Protect against null pointer.
3177
9d84ac84
AC
31782002-09-10 Andrew Cagney <cagney@redhat.com>
3179
3180 * infcmd.c (default_print_registers_info): Send all output to
3181 ``file'' instead of ``gdb_stdout''.
3182
77d8f2b4
MS
31832002-09-10 Michael Snyder <msnyder@redhat.com>
3184
3185 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3186 LONGEST, and use signed register read (addresses are sign-
3187 extended for mips).
3188
99656a61
SC
31892002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3190
3191 * event-loop.c (gdb_do_one_event): Make public.
3192 * event-loop.h (gdb_do_one_event): Declare.
3193
da12f4d8
JL
31942002-09-10 Jeff Law <law@redhat.com>
3195
3196 * infttrace.c (child_resume): Simplify and rework to avoid
3197 TT_PROC_CONTINUE.
3198
d0aee0c4
FF
31992002-09-09 Fred Fish <fnf@intrinsity.com>
3200
3201 * printcmd.c (print_scalar_formatted): "len" is the number of
3202 target bytes, NOT the number of target bits.
3203
7cb3ec5e
EZ
32042002-09-09 Elena Zannoni <ezannoni@redhat.com>
3205
3206 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3207 * top.c (init_main): Set rl_terminal_name.
3208
4dc81987
AS
32092002-09-08 Aidan Skinner <aidan@velvet.net>
3210
3211 * ada-lang.c (ada_array_bound, ada_type_match,
3212 _initialize_ada_language): Fix K&R definitions.
3213 * ada-tasks.c (get_current_task): Fix K&R definitions.
3214 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3215
842330b4
CF
32162002-09-07 Christopher Faylor <cgf@redhat.com>
3217
3218 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3219 Add XP.
3220
43156d82
MK
32212002-09-06 Mark Kettenis <kettenis@gnu.org>
3222
66da5fd8
MK
3223 * i386-tdep.c (i386_register_virtual_type,
3224 i386_register_convertible, i386_register_convert_to_virtual,
3225 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3226 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3227 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3228 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3229 Don't set push_arguments twice.
3230
4b218c18
MK
3231 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3232 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3233 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3234 sigtramp_end to NULL.
3235 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3236 defines.
3237 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3238
4cc314d5
MK
3239 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3240 whitespace.
3241
43156d82
MK
3242 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3243 * gdbarch.h, gdbarch.c: Re-generate.
3244 * blockframe.c (find_pc_sect_partial_function): Convert to use
3245 SIGTRAMP_START_P predicate.
3246
6672060b
MS
32472002-09-05 Michael Snyder <msnyder@redhat.com>
3248
a90c3637
MS
3249 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3250 generic_dummy_frame method and old method. Also distinguish
3251 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 3252 (arm_extract_return_value): Use new regcache method.
a90c3637 3253
6672060b
MS
3254 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3255 adjustment that doesn't conform to the ABI.
3256 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3257 saved regcache, not from current regcache.
3258
299ffc64
AC
32592002-09-05 Andrew Cagney <ac131313@redhat.com>
3260
3261 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3262 * README: Update.
3263
a3a2ee65
JT
32642002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3265
3266 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3267 if arm_apcs_32 is false.
3268
2bc7eea9
AC
32692002-09-04 Andrew Cagney <ac131313@redhat.com>
3270
3271 GDB 5.3 branch created.
3272
8a55a7c5
TR
32732002-09-03 Theodore A. Roth <troth@verinet.com>
3274
3275 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3276 generic_unwind_get_saved_register.
3277
e26fb1d7
DC
32782002-09-03 David Carlton <carlton@math.stanford.edu>
3279
3280 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3281 argument (PR gdb/653). Update call to smash_to_method_type.
3282 (read_structure_scope): Update call to dwarf2_add_member_fn.
3283
30d52491
ML
32842002-09-03 Michal Ludvig <mludvig@suse.cz>
3285
3286 * x86-64-linux-tdep.c: Include gdb_string.h
3287 * x86-64-linux-nat.c: Ditto.
3288
06891d83
JT
32892002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3290
3291 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3292 when YYDEBUG is set to 1.
3293 * c-exp.y: Likewise.
3294 * f-exp.y: Likewise.
3295 * jv-exp.y: Likewise.
3296 * m2-exp.y: Likewise.
3297 * p-exp.y: Likewise.
3298
7d400e77
JT
32992002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3300
3301 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3302 dependency list.
3303 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3304 solib_svr4_fetch_link_map_offsets to
3305 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3306 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3307 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3308 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3309 solib-svr4.o, and solib-legacy.o.
3310 * config/i386/tm-nbsd.h: Include solib.h.
3311
704a27c4
JT
33122002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3313
3314 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3315 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3316 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3317 comment noting that this needs its own target configuration.
3318 * config/i386/nbsd.mt: New file.
3319 * config/i386/nbsdaout.mt: Remove.
3320 * config/i386/nbsdelf.mt: Ditto.
3321 * config/i386/tm-nbsdaout.h: Ditto.
3322
d66198e1
JT
33232002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3324
3325 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3326 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3327 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3328 tdep->sigtramp_end.
3329 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3330 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3331 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3332
3cac699e
JT
33332002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3334
3335 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3336 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3337 * i386-tdep.h (i386bsd_init_abi): New prototype.
3338 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3339 function declaration.
3340 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3341 for NetBSD-a.out or NetBSD-ELF.
3342 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3343 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3344 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3345 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3346 and nbsd-tdep.h.
3347 (i386nbsd_pc_in_sigtramp): New function.
3348 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3349 i386nbsd_pc_in_sigtramp.
3350 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3351 and i386nbsdelf_init_abi OS ABI handlers.
3352 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3353 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3354
7010ca0a
MK
33552002-09-02 Mark Kettenis <kettenis@gnu.org>
3356
3357 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3358 registers if the target really has them.
3359
6dd93b72
JT
33602002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3361
3362 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3363 than nbsd-tdep.h.
3364
2ca8ae21
JT
33652002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3366
3367 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3368 list.
3369 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3370 (alphanbsd_skip_sigtramp_frame): New functions.
3371 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3372 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3373 to alphanbsd_sigcontext_addr.
3374
3d9b49b0
JT
33752002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3376
3377 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3378 list.
3379 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3380 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3381 nbsd_pc_in_sigtramp.
3382 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3383 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3384 * nbsd-tdep.c: Include gdb_string.h.
3385 (nbsd_pc_in_sigtramp): New function.
3386 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3387 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3388 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3389 ppcnbsd_pc_in_sigtramp.
3390 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3391 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3392 shnbsd_pc_in_sigtramp.
3393 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3394 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3395 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3396
c860120c
PM
33972002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3398
3399 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3400 watchpoints to NULL.
3401 (insert_breakpoints): set val field of watchpoints if NULL.
3402
3403
c7612d53
JB
34042002-08-29 Jim Blandy <jimb@redhat.com>
3405
3406 * symtab.c (lookup_symbol_aux): In the cases where we find a
3407 minimal symbol of an appropriate name and use its address to
3408 select a symtab to read and search, use `name' (as passed to us)
3409 as the demangled name when searching the symtab's global and
3410 static blocks, not the minsym's name.
3411
66609862
KS
34122002-08-29 Keith Seitz <keiths@redhat.com>
3413
3414 * stack.c (print_frame_info_base): Always set current_source_symtab
3415 and current_source_line.
3416
151fefe2
JB
34172002-08-29 Donn Terry <donnte@microsoft.com>
3418
3419 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3420
bfb3754e
KS
34212002-08-28 Keith Seitz <keiths@redhat.com>
3422
3423 * stack.c (select_frame): Add FIXME concerning selected-frame
3424 events.
3425 (select_frame_command): Send selected-frame-level-changed
3426 event notification, but only if the level actually changed.
3427 (up_silently_base): Add selected-frame-level-changed event
3428 notification.
3429 (down_silently_base): Likewise.
3430
e822a2a0
AC
34312002-08-28 Andrew Cagney <ac131313@redhat.com>
3432
3433 * Makefile.in: Update dependencies for all gdb/*.c files.
3434
309367d4
TT
34352002-08-27 Tom Tromey <tromey@redhat.com>
3436
3437 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3438 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3439 Update dependencies.
3440 * i387-tdep.c: Include gdb_string.h.
3441 * osabi.c: Likewise.
3442 * i386-linux-nat.c: Likewise.
3443 * lin-lwp.c: Likewise.
3444 * ax-gdb.c: Likewise.
3445 * signals/signals.c: Likewise.
3446 * jv-valprint.c: Likewise.
3447 * p-lang.c: Likewise.
3448 * c-valprint.c: Likewise.
3449 * cp-abi.c: Likewise.
3450
e1507482
EZ
34512002-08-27 Elena Zannoni <ezannoni@redhat.com>
3452
3453 * cli/cli-script.h (copy_command_lines): Export.
3454 * breakpoint.c: Include cli/cli-script.h.
3455 * Makefile.in (breakpoint.o): Update dependencies.
3456
c6510018
MS
34572002-08-26 Michael Snyder <msnyder@redhat.com>
3458
3459 * breakpoint.c (insert_breakpoints): Protect all references
3460 to 'process_warning'. Shorten long lines.
3461
c2b8ed2c
MS
34622002-08-26 Joel Brobecker <brobecker@gnat.com>
3463
3464 * cli/cli-script.c (copy_command_lines): New function.
3465 * defs.h (copy_command_lines): Export.
3466 * testsuite/gdb.base/commands.exp: New tests for commands
3467 attached to a temporary breakpoint, and for commands that
3468 delete the breakpoint they are attached to.
3469
34702002-08-26 Michael Snyder <msnyder@redhat.com>
3471
3472 * breakpoint.c (bpstat_stop_status): Instead of copying the
3473 pointer to the breakpoint commands struct, make a new copy
3474 of the struct and point to that.
3475 (bpstat_clear): Free the commands struct.
3476 (bpstat_clear_actions): Free the commands struct.
3477 (bpstat_do_actions): Free the command actions. Also execute
3478 the local cleanups, instead of deleting them.
3479 (delete_breakpoint): Leave the commands field of the bpstat
3480 chain alone -- it will be freed later.
3481
64b84175
KB
34822002-08-26 Kevin Buettner <kevinb@redhat.com>
3483
3484 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3485 deleted in 2002-08-20 commit. This function is still used by
3486 ppc-linux-nat.c.
3487
55970da6
KS
34882002-08-26 Keith Seitz <keiths@redhat.com>
3489
3490 * gdb-events.sh: Add selected-frame-level-changed event.
3491 * gdb-events.c: Regenerated.
3492 * gdb-events.h: Regenerated.
3493
a790ad35
SC
34942002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3495
3496 Fix PR gdb/393:
3497 * inflow.c (terminal_save_ours): New function to save terminal
3498 settings.
3499 * inferior.h (terminal_save_ours): Declare.
3500 * target.c (debug_to_terminal_save_ours): New function.
3501 (cleanup_target): Defaults to_terminal_save_ours.
3502 (update_current_target): Inherit to_terminal_save_ours.
3503 (setup_target_debug): Set to_terminal_save_ours.
3504 * target.h (target_terminal_save_ours): New to save terminal settings.
3505 (target_ops): New member to_terminal_save_ours.
3506 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3507 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3508 * inftarg.c (init_child_ops): Likewise.
3509 * m3-nat.c (init_m3_ops): Likewise.
3510 * procfs.c (init_procfs_ops): Likewise.
3511 * wince.c (init_child_ops): Likewise.
3512 * win32-nat.c (init_child_ops): Likewise.
3513 * sol-thread.c (init_sol_thread_ops): Likewise.
3514
c00dcbe9
MK
35152002-08-26 Mark Kettenis <kettenis@gnu.org>
3516
3d7f4f49
MK
3517 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3518 use regcache_* functions.
3519 (i386_gdbarch_init): Set store_return_value instead of
3520 deprecated_store_return_value.
3521
c00dcbe9
MK
3522 * regcache.c (regcache_raw_write_signed,
3523 regcache_raw_write_unsigned): New functions.
3524 * regcache.h (regcache_raw_write_signed,
3525 regcache_raw_write_unsigned): New prototypes.
3526
0e0d15ca
AC
35272002-08-25 Andrew Cagney <ac131313@redhat.com>
3528
3529 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3530 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3531 source file dependencies. Cleanup corresponding generator rules.
3532
d3b22ed5
AC
35332002-08-25 Andrew Cagney <ac131313@redhat.com>
3534
3535 * regcache.h (register_offset_hack): Declare.
3536 (regcache_cooked_read_using_offset_hack): Declare.
3537 (regcache_cooked_write_using_offset_hack): Declare.
3538
3539 * regcache.c (register_offset_hack): New function.
3540 (regcache_cooked_read_using_offset_hack): New function.
3541 (regcache_cooked_write_using_offset_hack): New function.
3542 (regcache_dump): Check that the registers, according to their
3543 offset, are packed hard against each other.
3544 (cooked_xfer_using_offset_hack): New function.
3545
bb425013
AC
35462002-08-25 Andrew Cagney <ac131313@redhat.com>
3547
3548 * regcache.c (struct regcache_descr): Add field register_type.
3549 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3550 in as a parameter
3551 (init_regcache_descr): Initialize register_type. Pass the descr
3552 to init_legacy_regcache_descr. Use register_type instead of
3553 REGISTER_VIRTUAL_TYPE.
3554 (register_type): New function.
3555 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3556 * regcache.h (register_type): Declare.
3557
d0403e00
AC
35582002-08-25 Andrew Cagney <ac131313@redhat.com>
3559
3560 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3561 instead of deprecated_store_return_value. Fix fallout from
3562 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3563
0ed04cce
AC
35642002-08-25 Andrew Cagney <ac131313@redhat.com>
3565
3566 * regcache.c (max_register_size): New function.
3567 (init_legacy_regcache_descr): Ensure that max_register_size is
3568 large enough for REGISTER_VIRTUAL_SIZE.
3569 * regcache.h (max_register_size): Declare.
3570
46d79c04
AC
35712002-08-24 Andrew Cagney <ac131313@redhat.com>
3572
3573 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3574 store_return_value.
3575 (e500_extract_return_value): Change type of valbuf pointer to
3576 void.
3577
853c7bd0
MK
35782002-08-24 Mark Kettenis <kettenis@gnu.org>
3579
cd87e769
MK
3580 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3581 workaround.
3582
853c7bd0
MK
3583 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3584 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3585 long long) to prevent compiler warning on 64-bit systems.
3586
ebba8386
AC
35872002-08-23 Andrew Cagney <cagney@redhat.com>
3588
3589 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3590 (DEPRECATED_STORE_RETURN_VALUE): New method.
3591 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3592 * gdbarch.h, gdbarch.c: Re-generate.
3593
3594 * values.c (set_return_value): Pass current_regcache to
3595 STORE_RETURN_VALUE.
3596 * arch-utils.h (legacy_store_return_value): Declare.
3597 * arch-utils.c (legacy_store_return_value): New function.
3598 (legacy_extract_return_value): Update parameters.
3599
3600 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3601 STORE_RETURN_VALUE.
3602 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3603 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3604 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3605 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3606 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3607 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3608 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3609 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3610 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3611 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3612
3613 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3614 * i386-tdep.c (i386_extract_return_value): Update.
3615 * arch-utils.c (legacy_extract_return_value): Update.
3616 * frv-tdep.c (frv_gdbarch_init): Update.
3617 * cris-tdep.c (cris_gdbarch_init): Update.
3618 * d10v-tdep.c (d10v_gdbarch_init): Update.
3619 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3620 * m68k-tdep.c (m68k_gdbarch_init): Update.
3621 * mcore-tdep.c (mcore_gdbarch_init): Update.
3622 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3623 * s390-tdep.c (s390_gdbarch_init): Update.
3624 * sparc-tdep.c (sparc_gdbarch_init): Update.
3625 * sh-tdep.c (sh_gdbarch_init): Update.
3626 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3627 * v850-tdep.c (v850_gdbarch_init): Update.
3628 * avr-tdep.c (avr_gdbarch_init): Update.
3629 * ia64-tdep.c (ia64_gdbarch_init): Update.
3630 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3631 * vax-tdep.c (vax_gdbarch_init): Update.
3632 * alpha-tdep.c (alpha_gdbarch_init): Update.
3633 * arm-tdep.c (arm_gdbarch_init): Update.
3634 * mips-tdep.c (mips_gdbarch_init): Update.
3635 * i386-tdep.c (i386_gdbarch_init): Update.
3636
5bd8c6d0
AC
36372002-08-23 Andrew Cagney <ac131313@redhat.com>
3638
3639 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3640 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3641
e73e1724
MK
36422002-08-24 Mark Kettenis <kettenis@gnu.org>
3643
3644 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3645 problems.
3646
3e6564e1
JB
36472002-08-23 Joel Brobecker <brobecker@gnat.com>
3648
3649 * infrun.c (handle_inferior_event): Move a comment outside of a
3650 function call, in order to avoid indent reformatting this part
3651 of the code in an unreadable way.
3652
81d0cc19
GS
36532002-08-23 Grace Sainsbury <graces@redhat.com>
3654
3655 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3656 when breakpoints fail. Move general breakpoint error messages to
3657 insert_breakpoints.
3658 * breakpoint.c (insert_breakpoints): Change warnings when
3659 breakpoints are nto inserted to specify the type. Remove call to
3660 memory_error when hardware breakpoints can't be inserted. Remove
3661 multiple calls to warning so all messages are sent to the user at
3662 once.
3663 (delete_breakpoints): Make insert error messsages more explicit.
3664
17574093
DJ
36652002-08-23 Daniel Jacobowitz <drow@mvista.com>
3666
3667 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3668 gdbserver/ChangeLog.
3669
8acc2935
MK
36702002-08-23 Mark Kettenis <kettenis@gnu.org>
3671
dfe01d39
MK
3672 * i386-tdep.c: Include "objfiles.h".
3673 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3674 skip_trampoline_code.
3675 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3676 (CPLUS_MARKER): Define to '.'.
3677
8acc2935
MK
3678 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3679 member.
3680 (linux_corefile_thread_callback): Increase args->num_notes.
3681 (linux_make_note_section): Initialize thread_args.num_notes, and
3682 use it to determine whether notes for any threads were created.
3683
151fefe2 36842002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3685
3686 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3687 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3688 and PCUNKILL.
3689 (write_with_trace): Conditionalize out the switch branch handling
3690 PCSHOLD if the corresponding macro is not defined. Likewise for
3691 PRSABORT and PRSTOP.
3692 This change will be needed by the Interix port.
3693
e1507482
EZ
36942002-08-22 Elena Zannoni <ezannoni@redhat.com>
3695
3696 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3697 write_register wherever possible instead of manipulating the
3698 register bytes directly.
3699 Assign VALUE_CONTENTS to a variable and use that.
3700 The GPR numbers are now dependent on the architecture.
3701
96ff0de4
EZ
37022002-08-22 Elena Zannoni <ezannoni@redhat.com>
3703
3704 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3705 ev_offset fields.
3706 (skip_prologue): Add support for BookE/e500 instructions.
3707 (e500_extract_return_value): New function.
3708 (frame_get_saved_regs): Add support for saving ev registers and
3709 pseudo gpr's.
3710 (e500_store_return_value): New function.
3711 (rs6000_gdbarch_init): Move up default intializations of
3712 deprecated_extract_return_value and store_return_value. Overwrite
3713 init of store_return_value with e500 specific version.
3714 Set extract_return_value for e500.
3715
fbefca5b
EZ
37162002-08-22 Elena Zannoni <ezannoni@redhat.com>
3717
3718 * blockframe.c (generic_call_dummy_register_unwind): Use
3719 regcache_cooked_read to catch cases in which the variable is
3720 stored in a pseudo register.
3721
4d210288
AC
37222002-08-22 Andrew Cagney <cagney@redhat.com>
3723
3724 * NEWS: Mention that the i960 has been made obsolete.
3725 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3726 i960-tdep.c
3727 (remote-nrom.o): Obsolete target.
3728 (remote-nindy.o, i960-tdep.o): Ditto.
3729 * remote-nrom.c: Make file obsolete.
3730 * remote-nindy.c, remote-vx960.c: Ditto.
3731 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3732 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3733 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3734 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3735 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3736 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3737 i960-*-vxworks* obsolete.
3738 * MAINTAINERS: Note that the i960 is obsolete.
3739
6c0c456d
CV
37402002-08-21 Corinna Vinschen <vinschen@redhat.com
3741
3742 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3743 detach to allow reinitialization.
3744
9f9d12b3
AC
37452002-08-22 Andrew Cagney <ac131313@redhat.com>
3746
3747 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3748 attempt).
3749
ebeb39fe
JB
37502002-08-22 Jim Blandy <jimb@redhat.com>
3751
3752 * coffread.c (coff_symfile_read): Don't try to read the line
3753 number table from disk if the image file doesn't have a symbol
3754 table; we'll never actually look at the info anyway, and Windows
3755 ships DLL's with bogus file offsets for the line number data.
3756
5bf1c677
EZ
37572002-08-21 Elena Zannoni <ezannoni@redhat.com>
3758
3759 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3760 an e500 executable.
3761
71b8ef93
MS
37622002-08-21 Michael Snyder <msnyder@redhat.com>
3763
3764 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3765 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
3766 (DEFAULT_MIPS_TYPE): Delete unused macro.
3767 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3768 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 3769
d174216d
JB
37702002-08-21 Jim Blandy <jimb@redhat.com>
3771
3772 * valops.c (value_cast): Simplify and correct logic for doing a
3773 static cast from a pointer to a base class to a pointer to a
3774 derived class.
3775
0ab7a791
AC
37762002-08-21 Andrew Cagney <ac131313@redhat.com>
3777
3778 * infcmd.c (default_print_registers_info): Replace
3779 do_registers_info.
3780 (registers_info): Use gdbarch_print_registers_info instead of
3781 DO_REGISTERS_INFO.
3782 * inferior.h (default_print_registers_info): Replace
3783 do_registers_info.
3784 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3785 (DO_REGISTERS_INFO): Change to a predicate function.
3786 * gdbarch.h, gdbarch.c: Regenerate.
3787
e23792cc
KS
37882002-08-21 Keith Seitz <keiths@redhat.com>
3789
3790 * gdb-events.sh: Add target-changed event.
3791 * gdb-events.c: Regenerated.
3792 * gdb-events.c: Regenerated.
3793 * valops.c (value_assign): Add target-changed event notification
3794 to inlval_register, lval_memory, and lval_reg_frame_relative.
3795
9fb14e79
JB
37962002-08-21 Joel Brobecker <brobecker@gnat.com>
3797
3798 * NEWS: Add an entry regarding the improvement of the next/step
3799 operation on Alpha Tru64 multi-processor machines.
3800
6d39a69f
AC
38012002-08-21 Andrew Cagney <ac131313@redhat.com>
3802
72acd513
AC
3803 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3804 directores.
342af04b 3805 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
3806 * Makefile.in (install-gdbtk): Move to install section.
3807 (rdi-share/libangsd.a): Move to end of file.
3808
fa5f27c7
AC
38092002-08-19 Andrew Cagney <ac131313@redhat.com>
3810
3811 * frame.c (frame_register_unwind): When a register, set addrp to
3812 the register's byte.
3813
5a89d8aa
MS
38142002-08-20 Michael Snyder <msnyder@redhat.com>
3815
3816 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3817 used locally, so move them from the target machine header to here.
3818 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3819 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3820 Make static.
3821 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3822
822e978b
AC
38232002-08-20 Andrew Cagney <cagney@redhat.com>
3824
3825 * NEWS: Mention that the Apollo line was made obsolete.
3826 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3827 m68*-hp-hpux* obsolete.
3828 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3829 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3830 * buildsym.c (make_blockvector): Make static.
3831 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3832 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3833 (ALLDEPFILES): Remove dstread.c.
3834 (dstread.o): Obsolete make rule.
3835 * dstread.c: Makefile obsolete.
3836 * dst.h: Ditto.
3837 * config/m68k/hp300hpux.mt: Ditto.
3838 * config/m68k/hp300hpux.mh: Ditto.
3839 * config/m68k/hp300bsd.mt: Ditto.
3840 * config/m68k/hp300bsd.mh: Ditto.
3841 * config/m68k/apollo68b.mt: Ditto.
3842 * config/m68k/apollo68v.mh: Ditto.
3843 * config/m68k/apollo68b.mh: Ditto.
3844
e41b17f0
MS
38452002-08-20 Michael Snyder <msnyder@redhat.com>
3846
3847 * mips-tdep.c (mips_in_return_stub): Make static.
3848 (mips_gdbarch_init): Set in_solib_return_trampoline.
3849 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3850
d50355b6
MS
38512002-08-20 Michael Snyder <msnyder@redhat.com>
3852
3853 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3854 * gdbarch.c, gdbarch.h: Regenerate.
3855 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3856 Add.
3857 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3858
757a7cc6
MS
38592002-08-20 Michael Snyder <msnyder@redhat.com>
3860
3861 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3862 (mips_gdbarch_init): Set skip_trampoline_code,
3863 in_solib_call_trampoline.
3864 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3865 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3866
c8001721
EZ
38672002-08-20 Elena Zannoni <ezannoni@redhat.com>
3868
3869 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3870
3871 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3872 vector type for ev registers.
3873 (e500_pseudo_register_read): New function.
3874 (e500_pseudo_register_write): New function.
3875 (e500_dwarf2_reg_to_regnum): New function.
3876 (PPC_UISA_NOFP_SPRS): New macro.
3877 (PPC_EV_REGS): New macro.
3878 (PPC_GPRS_PSEUDO_REGS): New macro.
3879 (registers_e500): New register set for e500.
3880 (variants): Add e500 variant.
3881 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3882 before setting architectural dependent variations. Initialize ev
3883 registers numbers. Add case for e500 architecture. Set the
3884 number of pseudo registers.
3885
64366f1c
EZ
38862002-08-20 Elena Zannoni <ezannoni@redhat.com>
3887
3888 * rs6000-tdep.c: Clean up comments.
3889
7e78f0ca
AC
38902002-08-20 Andrew Cagney <cagney@redhat.com>
3891
3892 * h8300-tdep.c: Re-indent file.
3893
697f7479
JB
38942002-08-20 Jim Blandy <jimb@redhat.com>
3895
3896 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3897 default for this.
697f7479 3898
e86ae29f
KS
38992002-08-20 Keith Seitz <keiths@redhat.com>
3900
3901 * breakpoints.c (watch_command_1): Use internal breakpoint
3902 when setting a watchpoint_scope breakpoint.
3903
216b504f
EZ
39042002-08-20 Elena Zannoni <ezannoni@redhat.com>
3905
3906 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3907 (build_builtin_type_vec64i): Ditto.
3908 (build_builtin_type_vec128): Ditto.
3909 (build_builtin_type_vec128i): Ditto.
3910
f7ab6ec6
MS
39112002-08-19 Michael Snyder <msnyder@redhat.com>
3912
3913 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3914 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3915 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3916 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3917 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3918 CALL_DUMMY_ADDRESS): Delete.
3919 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3920 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3921 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3922 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3923 push_return_address.
3924 (mips_register_raw_size, mips_eabi_use_struct_convention,
3925 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3926 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3927 mips_init_extra_frame_info, mips_eabi_push_arguments,
3928 mips_n32n64_push_arguments, mips_push_return_address,
3929 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3930 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3931
b5d1566e
MS
39322002-08-19 Michael Snyder <msnyder@redhat.com>
3933
3934 * mips-tdep.c (mips_frame_num_args): New function.
3935 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3936 frame_saved_pc, frame_args_address, frame_locals_address,
3937 frame_num_args, and frame_args_skip.
3938 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3939 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3940 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3941 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3942
2f1488ce
MS
39432002-08-20 Michael Snyder <msnyder@redhat.com>
3944
3945 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3946 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3947 * mips-tdep.c (mips_store_struct_return): New function.
3948 (mips_extract_struct_value_address): New function.
3949 (mips_gdbarch_init): Set store_struct_return and
3950 extract_struct_value_address.
3951
41ff2da1
DC
39522002-08-20 David Carlton <carlton@math.stanford.edu>
3953
3954 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3955 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3956 (read_file_scope): Check that line_header is nonzero before
3957 decoding macro information.
3958
e5451d58
MK
39592002-08-20 Mark Kettenis <kettenis@gnu.org>
3960
3961 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3962 flag the general-purpose registers as floating-point on targets
3963 that don't support the floating-point registers.
3964
4a6daafa
EZ
39652002-08-20 Elena Zannoni <ezannoni@redhat.com>
3966
3967 * rs6000-tdep.c (altivec_register_p): Delete.
3968 (rs6000_do_altivec_registers): Delete.
3969 (rs6000_altivec_registers_info): Delete.
3970 (rs6000_do_registers_info): Delete.
3971 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3972 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3973
ab4327e0
EZ
39742002-08-20 Elena Zannoni <ezannoni@redhat.com>
3975
3976 * infcmd.c (do_registers_info): Print vector registers in hex
3977 format only.
3978 (print_vector_info): Check that printing registers
3979 makes sense.
3980 (print_float_info): Ditto.
3981
cb1d2653
AC
39822002-08-20 Andrew Cagney <ac131313@redhat.com>
3983
3984 * mips-tdep.c (mips_gdbarch_init): Update.
3985 (mips_o32_extract_return_value): Rewrite.
3986 (mips_o32_store_return_value): Rewrite.
3987 (mips_o32_xfer_return_value): New function.
3988 (mips_xfer_register): Tweak debug print message. Allow for
3989 buf_offset when dumping the value transfered.
3990
dfc3d9b2
AC
39912002-08-20 Andrew Cagney <ac131313@redhat.com>
3992
3993 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3994 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3995 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3996 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3997 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3998
7807aa61
MS
39992002-08-14 Michael Snyder <msnyder@redhat.com>
4000
4001 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4002
489461e2
EZ
40032002-08-19 Elena Zannoni <ezannoni@redhat.com>
4004
4005 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4006 register.
4007 (P): New macro to define a register as a pseudo register.
4008 (R, R4, R8, R16, FR32, R64, R0): Updated.
4009 (struct variant): Add new fields for number of pseudo registers
4010 and number of total registers.
4011 (tot_num_registers): New macro replacing....
4012 (num_registers): ...deleted macro.
4013 (num_registers): New function.
4014 (num_pseudo_registers): New function.
4015 (variants): Update all variants to intialize new fields correctly.
4016 Postpone initialization of number of pseudo regs and real regs.
4017 (init_variants): New function.
4018 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4019 registers offsets.
4020
fcaffe4c
DC
40212002-08-19 David Carlton <carlton@math.stanford.edu>
4022
2c2738a0
DC
4023 * valops.c (search_struct_field): Change error message to treat
4024 return value of 0 from value_static_field as meaning that field is
4025 optimized out.
4026 (value_struct_elt_for_reference): Ditto.
4027 * values.c (value_static_field): Treat an unresolved location the
4028 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
4029 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4030 enclosed. Fix PR gdb/574.
fcaffe4c
DC
4031 * MAINTAINERS: Add self to Write After Approval list.
4032
88658117
AC
40332002-08-19 Andrew Cagney <ac131313@redhat.com>
4034
4035 * mips-tdep.c (mips_xfer_register): New function.
4036 (mips_n32n64_extract_return_value): Rewrite.
4037 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4038 instead of deprecated_extract_return_value.
4039
21283beb
EZ
40402002-08-19 Elena Zannoni <ezannoni@redhat.com>
4041
4042 * rs6000-tdep.c (TDEP): Delete macro.
4043 (branch_dest): Replace use of TDEP macro with its body.
4044 (rs6000_pop_frame): Ditto.
4045 (rs6000_push_arguments): Ditto.
4046 (rs6000_skip_trampoline_code): Ditto.
4047 (rs6000_frame_saved_pc): Ditto.
4048 (rs6000_frame_chain): Ditto.
4049 (rs6000_register_name): Ditto.
4050 (rs6000_register_byte): Ditto.
4051 (rs6000_register_raw_size): Ditto.
4052 (rs6000_register_virtual_type): Ditto.
4053 (rs6000_register_convertible): Ditto.
4054 (rs6000_convert_from_func_ptr_addr): Ditto.
4055
bf072999
DJ
40562002-08-19 Daniel Jacobowitz <drow@mvista.com>
4057
4058 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4059 conditionally.
4060 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4061 MIPS_LINUX_JB_ELEMENT_SIZE.
4062 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4063 for MAX_REGISTER_RAW_SIZE arrays.
4064 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4065 MIPS_LINUX_JB_ELEMENT_SIZE.
4066
9b949a49
PM
40672002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4068
4069 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4070
6d3e79c6
AS
40712002-08-19 Aidan Skinner <aidan@velvet.net>
4072
4073 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4074 ada-valprint.c ada-tasks.c.
4075 (YYFILES): Add ada-exp.y.
4076 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4077 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4078 (ada-exp.tab.o): New target.
4079
06c0b04e
AC
40802002-08-18 Andrew Cagney <ac131313@redhat.com>
4081
4082 * regcache.c (regcache_xfer_part): New function.
4083 (regcache_raw_read_part): New function.
4084 (regcache_raw_write_part): New function.
4085 (regcache_cooked_read_part): New function.
4086 (regcache_cooked_write_part): New function.
4087 * regcache.h (regcache_raw_read_part): Declare.
4088 (regcache_raw_write_part): Declare.
4089 (regcache_cooked_read_part): Declare.
4090 (regcache_cooked_write_part): Declare.
4091
92d1e331
DJ
40922002-08-18 Daniel Jacobowitz <drow@mvista.com>
4093
4094 * remote.c (remote_open_1): Add async_p.
4095 (remote_async_open_1): Delete.
4096 (open_remote_target): Delete.
4097 (remote_open, extended_remote_open): Update calls to remote_open_1.
4098 (remote_async_open, extended_remote_async_open): Call
4099 remote_open_1 instead of remote_async_open_1.
4100
247055de
MK
41012002-08-19 Mark Kettenis <kettenis@gnu.org>
4102
4103 * blockframe.c: Fix a few coding standard violations.
4104
641eda39
MK
41052002-08-19 Mark Kettenis <kettenis@gnu.org>
4106
0b717710
MK
4107 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4108 here from ...
4109 * config/i386/tm-i386sco5.h: ... here. File removed.
4110 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4111
26d28e12 4112 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
4113 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4114 (TM_FILE): Set to tm-i386.h.
4115 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4116 * config/i386/tm-i386v.h: Remove file.
4117 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4118 instead of "i386/tm-i386v.h".
4119 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4120 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4121 "i386/tm-i386v.h".
4122 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4123 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4124 "i386/tm-i386.h".
4125
d4e0bab4
MK
41262002-08-18 Mark Kettenis <kettenis@gnu.org>
4127
4128 * config/i386/nm-i386v.h: Add protection against
4129 multiple-inclusion.
4130 (i386_register_u_addr): Remove prototype.
4131 (register_u_addr): New prototype.
4132 (REGISTER_U_ADDR): Redefine accordingly.
4133 * i386v-nat.c: Improve several comments.
4134 (i386_register_u_addr): Change signature and rename to
4135 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4136 ubase variable.
4137
46cac009
AC
41382002-08-18 Andrew Cagney <ac131313@redhat.com>
4139
4140 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4141 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4142 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4143 deprecated_extract_return_value.
4144 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4145 rename mips_o32o64_push_arguments.
4146 (mips_gdbarch_init): Update.
4147 (mips_extract_return_value): Delete.
4148 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4149 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4150 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4151 (mips_n32n64_extract_return_value): Clone
4152 mips_extract_return_value.
4153 (mips_store_return_value): Delete.
4154 (mips_o32_store_return_value): Clone mips_store_return_value.
4155 (mips_o64_store_return_value): Clone mips_store_return_value.
4156 (mips_eabi_store_return_value): Clone mips_store_return_value.
4157 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4158
d2e4a39e
AS
41592002-08-18 Aidan Skinner <aidan@velvet.net>
4160
0c30c098
AS
4161 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4162 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4163
41642002-08-18 Aidan Skinner <aidan@velvet.net>
4165
4166 * ada-lang.c: Run through gdb_indent.sh.
4167 * ada-lang.h: Run through gdb_indent.sh.
4168 * ada-tasks.c: Run through gdb_indent.sh.
4169 * ada-typeprint.c: Run through gdb_indent.sh.
4170 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 4171
01fc4e33
AC
41722002-08-18 Andrew Cagney <ac131313@redhat.com>
4173
4174 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4175 ABI.
4176
d8ee244c
MK
41772002-08-18 Mark Kettenis <kettenis@gnu.org>
4178
c38d8261
MK
4179 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4180
222db64c
MK
4181 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4182 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4183
c2848c82
MK
4184 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4185 write_register_gen instead of write_register_bytes.
4186
d8ee244c
MK
4187 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4188 i[3456]-*-osf1mk* configurations have been made obsolete.
4189 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4190 i[3456]86-*-osf1mk* hosts obsolete.
4191 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4192 targets obsolete.
4193 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4194 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4195 config/i386/i386m3.mt, config/i386/nm-m3.h,
4196 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4197 config/i386/i386mk.mh, config/i386/i386mk.mt,
4198 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4199 obsolete.
4200 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4201 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4202 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4203
61d8d407
AC
42042002-08-18 Andrew Cagney <ac131313@redhat.com>
4205
4206 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4207 (hppa_value_returned_from_stack): Declare.
4208 (hppa_extract_return_value): Declare.
4209 * config/pa/hppa.mt: New file.
4210 * configure.tgt: Recognize hppa*-*-*.
4211 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4212
0c52bd59
MK
42132002-08-18 Mark Kettenis <kettenis@gnu.org>
4214
4215 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4216 comment.
4217
b5686e99
MK
42182002-08-17 Mark Kettenis <kettenis@gnu.org>
4219
4220 * top.c (gdb_rl_operate_and_get_next): Make sure
4221 operate-and-get-next functions correctly even when the history
4222 list is completely filled.
4223
c1bab85b
AC
42242002-08-18 Andrew Cagney <ac131313@redhat.com>
4225
4226 * MAINTAINERS (Target Instruction Set Architectures): Rename
4227 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4228 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4229 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4230 already listed under Host/Native.
4231
4232 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4233 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4234 mips*-*-*.
4235
32089c7c
AC
42362002-08-17 Andrew Cagney <ac131313@redhat.com>
4237
4238 * config/ia64/ia64.mt: New file.
4239 * config/alpha/alpha.mt: New file.
4240 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4241 ia64-linux-gnu. Mention that ia64-elf is broken.
4242 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4243
b4671f85
MK
42442002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4245
4246 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4247 generic_func_frame_valid instead of func_frame_valid.
4248
c8edd8b4
JB
42492002-08-16 Joel Brobecker <brobecker@gnat.com>
4250
4251 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4252 procfs appears to be broken when debugging on multi-processor
4253 machines. So enable software single stepping in order to avoid
4254 using the procfs interface to do next/step operations, using
4255 internal breakpoints instead.
4256
4257 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4258 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4259 make this pc address equal to the value it would have if the
4260 system stepping capability was used. Also set a new flag used
4261 to ensure that we don't readjust the PC one more time later.
4262
4263 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4264 address by DECR_PC_AFTER_BREAK when software single step is
4265 in use for this architecture, as this has already been taken
4266 care of in handle_inferior_event().
4267
238617f6
JB
42682002-08-16 Joel Brobecker <brobecker@gnat.com>
4269
4270 * infrun.c (handle_inferior_event): Minor reformatting, to make
4271 a rather long condition expression easier to read.
4272
541a7aac
AC
42732002-08-16 Andrew Cagney <ac131313@redhat.com>
4274
4275 * Makefile.in (gdbtk.o): Move to end of file.
4276 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4277 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4278 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4279 (gdbtk-wrapper.o, gdbres.o): Ditto.
4280
f92d4a7b
AC
42812002-08-16 Andrew Cagney <ac131313@redhat.com>
4282
4283 * Makefile.in (copying.o): Separate out compile rule.
4284 (hpux-thread.o, procfs.o, signals.o): Ditto.
4285 (v850ice.o, z8k-tdep.o): Ditto.
4286 (tui-file.o): Move to TUI section.
4287 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4288 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4289
1cce71eb
JB
42902002-08-16 Joel Brobecker <brobecker@gnat.com>
4291
4292 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4293 skip_trampoline_code, for better namespace-proofing.
4294
4295 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4296
0851f23d
JB
42972002-08-16 Joel Brobecker <brobecker@gnat.com>
4298
4299 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4300
f8d40ec8
JB
43012002-08-16 Joel Brobecker <brobecker@gnat.com>
4302
4303 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4304 signal, check whether we hit a breakpoint before checking for a
4305 single step breakpoint. Otherwise, GDB fails to notice that a
4306 breakpoint has been hit when stepping onto a breakpoint.
4307
63d022e0
KS
43082002-08-16 Keith Seitz <keiths@redhat.com>
4309
4310 * gdb-events.sh (clear_gdb_event_hooks): New function.
4311 * gdb-events.c: Regenerate.
4312 * gdb-events.h: Regenerate.
4313
6e31adb3
AC
43142002-08-16 Andrew Cagney <ac131313@redhat.com>
4315
4316 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4317 not_a_sw_breakpoint.
4318 * breakpoint.h (bpstat_stop_status): Add parameter names.
4319
c8189ed1
GS
43202002-08-16 Grace Sainsbury <graces@redhat.com>
4321
4322 * remote.c (remote_insert_hw_breakpoint)
4323 (remote_remove_hw_breakpoint): Fix calculation of length field
4324 for Z-packet.
4325
d05285fa
MS
43262002-08-15 Michael Snyder <msnyder@redhat.com>
4327
466d7106
MS
4328 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4329 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4330 (supply_fpregset): Ditto.
4331
d05285fa
MS
4332 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4333 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4334 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 4335 (TARGET_READ_SP): Delete.
bf1f5b4c 4336 (DO_REGISTERS_INFO): Delete.
102182a9
MS
4337 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4338 Delete.
4339 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4340 from macros to functions.
bf1f5b4c 4341
d05285fa
MS
4342 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4343 (mips_register_convertible, mips_register_convert_to_virtual,
4344 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
4345 (mips_read_sp): New function.
4346 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
4347 (mips_do_registers_info): Make static.
4348 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
4349 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4350 (mips_register_convert_from_type, mips_register_convert_to_type):
4351 New functions.
4352 (mips_gdbarch_init): Set up function_start_offset,
4353 register_virtual_size, pc_in_sigtramp.
d05285fa 4354
e76f1f2e
AC
43552002-08-15 Andrew Cagney <ac131313@redhat.com>
4356
4357 * infcmd.c (vector_info): New function.
4358 (_initialize_infcmd): Add command "info vector".
4359 (print_vector_info): New function.
4360
4361 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4362 * gdbarch.h, gdbarch.c: Regenerate.
4363
4782dc19
AC
43642002-08-15 Andrew Cagney <ac131313@redhat.com>
4365
4366 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4367 ``print_all''. Only print vector registers when ``print_all''.
4368
23e3a7ac
AC
43692002-08-15 Andrew Cagney <ac131313@redhat.com>
4370
8e186fd6
AC
4371 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4372 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4373
23e3a7ac
AC
4374 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4375 Add `args' parameter.
4376 * gdbarch.h, gdbarch.c: Regenerate.
4377
4378 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4379
4380 * infcmd.c (float_info): Call print_float_info.
4381 (print_float_info): New function. By default, print the
4382 floating-point registers.
4383
4384 * arch-utils.h (default_print_float_info): Delete declaration.
4385 * arch-utils.c (default_print_float_info): Delete function.
4386
e0ca2bb9
MK
43872002-08-16 Mark Kettenis <kettenis@gnu.org>
4388
3f733acc
MK
4389 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4390 out define.
4391
7d8d2918
MK
4392 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4393 FRAME.
4394
1c7cc583
MK
4395 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4396 * configure.host: Make i[3456]86-*-aix host obsolete.
4397 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4398 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4399 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4400 config/i386/xm-i386aix.h: Make files obsolete.
4401 * i386aix-nat.c: Make file obsolete.
4402 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4403 (i386aix-nat.o): Make target obsolete.
4404
e0ca2bb9
MK
4405 * config/i386/nm-gnu.h: Removed.
4406 * config/i386/nm-i386gnu.h: New file.
4407 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4408 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4409 Moved here from ...
4410 * config/i386/tm-i386gnu.h: ... here. Removed.
4411 * config/i386/xm-i386gnu.h: Removed.
4412 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4413 (NAT_FILE): Set to nm-i386gnu.h.
4414 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4415 * i386-tdep.c: New file.
4416 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4417 (i386gnu-tdep.o): Specify dependencies.
4418
16057ec7 44192002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 4420
6b99ee2e
MK
4421 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4422 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4423 Adjust a few comments to reflect reality a bit closer.
4424 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4425 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4426 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4427 target_insert_watchpoint, target_remove_watchpoint):
4428 Move defines to ...
4429 * config/i386/nm-i386sco5.h: ... here.
4430 (kernel_u_size): Add prototype. Improve a few comments and add
4431 protection against multiple inclusion.
4432
d9a6f65c
MK
4433 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4434 out define.
4435
047eff6a
MK
4436 * uw-thread.c (SP_ARG0): Define if not already defined.
4437 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4438
dcdb1290
MK
4439 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4440
5d2d0b2a
MK
4441 * config/i386/tm-i386.h: Don't include "regcache.h".
4442
61113f8b
MK
4443 * i387-tdep.h (i387_print_float_info): New prototype.
4444 * i387-tdep.c (print_i387_value, print_i387_ext,
4445 print_i387_status_word, print_i387_control_word): Add `struct
4446 ui_file *' argument and use it for output.
4447 (i387_print_float_info): Renamed from i387_float_info. Add
4448 `struct gdbarch *' and `struct ui_file *' arguments and use the
4449 latter for output.
4450 * i386-tdep.c: Include "i387-tdep.h".
4451 (i386_gdbarch_init): Set print_float_info.
4452 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4453 (FLOAT_INFO): Remove define.
4454
46e0f506
MS
44552002-08-13 Michael Snyder <msnyder@redhat.com>
4456
4457 * mips-tdep.c (mips_push_arguments): Rename to
4458 mips_eabi_push_arguments, and tune for EABI.
4459 (MIPS_REGS_HAVE_HOME_P): Delete.
4460 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4461 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4462 Delete references to mips_regs_have_home_p.
4463
409268de
KS
44642002-08-14 Keith Seitz <keiths@redhat.com>
4465
4466 * Makefile.in (install-gdbtk): Create insight plugin directory.
4467 Install plugins.tcl file.
4468
ffc6a242
KS
44692002-08-14 Keith Seitz <keiths@redhat.com>
4470
4471 * configure.in: Move SUBDIRS to near top of the file so that
4472 --enable options may add things to it.
4473 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4474 * configure: Regenerate.
4475
ebafbe83
MS
44762002-08-13 Michael Snyder <msnyder@redhat.com>
4477
4478 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4479 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4480 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4481
32f6f25d
AC
44822002-08-13 Andrew Cagney <ac131313@redhat.com>
4483
4484 * vax-tdep.c (vax_get_saved_register): Delete function.
4485 (vax_gdbarch_init): Update.
4486 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4487 (ns32k_gdbarch_init): Update.
4488 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4489 (alpha_gdbarch_init): Update.
4490
53826de9
AC
44912002-08-13 Andrew Cagney <cagney@redhat.com>
4492
4493 * regcache.c (init_regcache_descr): Overallocate the
4494 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4495 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4496 nr_raw_registers.
4497 (set_register_cached): Add range checking assertions. Use
4498 current_regcache.
4499
16057ec7 45002002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
4501
4502 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4503 numbers for MMX registers.
4504
7b4c2dce
AC
45052002-08-13 Andrew Cagney <cagney@redhat.com>
4506
4507 * i386-tdep.c (i386_gdbarch_init): Use
4508 generic_unwind_get_saved_register.
4509
1e03ad20
KB
45102002-08-13 Kevin Buettner <kevinb@redhat.com>
4511
4512 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4513 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4514 target vector.
4515 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4516 Delete. Add comment regarding this now-deleted target method.
4517
548bcbec
SC
45182002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4519
4520 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4521 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4522 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4523 real PC and the page number (if it's within the memory bank window).
4524 (m68hc11_pseudo_register_write): Likewise when saving.
4525 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4526 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4527 (m68hc11_register_raw_size): And use 32-bit for it.
4528 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4529 16K memory bank is used by the prog; also use the virtual pc.
4530
7df11f59
SC
45312002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4532
4533 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4534 (m68hc11_gdbarch_init): Install it in gdbarch.
4535 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4536 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4537 (MSYMBOL_SIZE): New for documentation.
4538 (insn_return_kind): Enum to specify how a function returns.
4539 (frame_extra_info): Cleanup and record the return mode.
4540 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4541 register in address computation.
4542 (m68hc11_get_return_insn): New to obtain the return instruction used
4543 by the function.
4544 (m68hc11_frame_init_saved_regs): Take into account the return
4545 instruction used by the function for far and interrupt functions.
4546 (m68hc11_init_extra_frame_info): Take into account page register.
4547 (m68hc11_frame_args_address): Adjust according to the return mode.
4548 (show_regs): Print page register only when it's used.
4549
5706502a
SC
45502002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4551
4552 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4553 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4554 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4555 registers.
4556 (m68hc11_register_raw_size): Likewise.
4557
28fc6740
AC
45582002-08-13 Andrew Cagney <cagney@redhat.com>
4559
4560 * i386-tdep.c (i386_register_name): Handle mmx registers.
4561 (mmx_regnum_p): New function.
4562 (i386_mmx_names): New array.
4563 (mmx_num_regs): New variable.
4564 (i386_pseudo_register_read): New function.
4565 (i386_pseudo_register_write): New function.
4566 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4567
4568 * regcache.c (regcache_raw_read_unsigned): New function.
4569 (regcache_raw_read_signed): New function.
4570 * regcache.h (regcache_raw_read_unsigned): Declare.
4571 (regcache_raw_read_signed): Declare.
4572
a378f419
AC
45732002-08-13 Andrew Cagney <cagney@redhat.com>
4574
4575 * regcache.c (regcache_raw_read_as_address): Delete function.
4576 (regcache_cooked_read_signed): New function.
4577 (regcache_cooked_read_unsigned): New function.
4578 * regcache.h (regcache_cooked_read_signed): Declare.
4579 (regcache_cooked_read_unsigned): Declare.
4580 (regcache_raw_read_as_address): Delete declaration.
4581
4582 * blockframe.c (generic_read_register_dummy): Use
4583 regcache_cooked_read_unsigned.
4584 * i386-tdep.c (i386_extract_struct_value_address): Use
4585 regcache_cooked_read_unsigned.
4586
81967506
SC
45872002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4588
4589 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4590 double sizes according to ELF ABI flags.
4591 (gdbarch_tdep): Record elf_flags.
4592
ffe1f3ee
SC
45932002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4594
4595 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4596 (m6812_prolog): They can appear in 68HC12 function prologue.
4597 (m68hc11_frame_chain): Cleanup.
4598
98216c5d
AC
45992002-08-12 Andrew Cagney <cagney@redhat.com>
4600
4601 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4602 declarations.
4603 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4604 (i386_linux_register_raw_size): Delete function.
4605 (i386_linux_init_abi): Update.
4606 * i386-tdep.c (i386_register_raw_size): Delete function.
4607 (i386_register_byte): Delete function.
4608 (i386_gdbarch_init): Update.
4609 (i386_register_size): Delete array.
4610 (i386_register_offset): Delete array.
4611
4612 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4613 (REGISTER_RAW_SIZE): Delete macro.
4614 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4615 (REGISTER_BYTE): Delete macro.
4616
3b19021e
AS
46172002-08-11 Aidan Skinner <aidan@velvet.net>
4618
4619 * ada-lang.c (ada_lookup_partial_symbol)
4620 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4621 prototype names so that grep ^func works properly.
4622
4623 * ada-lang.c (ada_array_element_type)
4624 (ada_lookup_partial_symbol): Fix typos in parameter list.
4625
4626 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4627 Fix prototype names so that grep ^func works properly.
4628
b063e7a2
AC
46292002-08-10 Andrew Cagney <cagney@redhat.com>
4630 Elena Zannoni <ezannoni@redhat.com>
4631 Martin M. Hunt <hunt@redhat.com>
4632
4633 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4634 (build_builtin_type_vec128i): Set the vector bit.
4635 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4636 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4637 (build_builtin_type_vec64): New function.
4638 (build_builtin_type_vec64i): New function.
4639 (build_gdbtypes): Initialize builtin_type_vec64 and
4640 builtin_type_vec64i.
4641
a7e3c2ad
AC
46422002-08-09 Andrew Cagney <cagney@redhat.com>
4643
4644 * regcache.c (regcache_dump): Compare the register offset
4645 with REGISTER_BYTE.
4646 * arch-utils.c (generic_register_byte): New function.
4647 * arch-utils.h (generic_register_byte): Declare.
4648 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4649 * gdbarch.h, gdbarch.c: Regenerate.
4650
af030b9a
AC
46512002-08-09 Andrew Cagney <cagney@redhat.com>
4652
4653 * regcache.c: Include "gdbcmd.h"
4654 (_initialize_regcache): Add commands "maintenance print
4655 registers", "maintenance print raw-registers" and "maintenance
4656 print cooked-registers".
4657 (enum regcache_dump_what): Define.
4658 (dump_endian_bytes): New function.
4659 (regcache_dump): New function.
4660 (regcache_print): New function.
4661 (maintenance_print_registers): New function.
4662 (maintenance_print_raw_registers): New function.
4663 (maintenance_print_cooked_registers): New function.
4664 * Makefile.in (regcache.o): Update dependencies.
4665
cb3d25d1
MS
46662002-08-09 Michael Snyder <msnyder@redhat.com>
4667
4668 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4669 (mips_push_arguments): Correct some comments. Use paddr_nz
4670 for printing addresses in debug output. Replace static
4671 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4672 (mips_n32n64_push_arguments): New function, cloned from
4673 mips_push_arguments and tuned for the n32/n64 ABI.
4674 (mips_push_register): Buffer needs dynamic allocation.
4675 (mips_print_register): Ditto.
4676 (do_gp_register_row): Ditto.
4677 (mips_store_return_value): Ditto.
4678 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4679
2163ab9d
DH
46802002-08-09 Don Howard <dhoward@redhat.com>
4681
4682 * memattr.c (mem_info_command): Print special case of upper bound
4683 as max CORE_ADDR + 1.
4684
b78bcb18
MS
46852002-08-08 Michael Snyder <msnyder@redhat.com>
4686
4687 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4688 returns structs by ref if they're too big to fit in two registers.
4689
ffabd70d
KB
46902002-08-09 Kevin Buettner <kevinb@redhat.com>
4691
4692 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4693 saved regs value.
4694 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4695 mips_find_saved_regs().
4696 (mips_pop_frame): Likewise.
4697
fbcdb4a3
KB
46982002-08-09 Kevin Buettner <kevinb@redhat.com>
4699
4700 * blockframe.c (frame_saved_regs_register_unwind): Revise
4701 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4702 frames are in use.
4703
3c3bea1c
GS
47042002-08-09 Grace Sainsbury <graces@redhat.com>
4705
4706 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4707 T-packets; the 'a' is not taken as a register number.
4708 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4709 (remote_stopped_data_address): New functions; add to target
4710 vector.
4711 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4712 prototypes to match other implementations of this
4713 function. replace integer argument with pointer -- the length
4714 field in the Z-packet is the length of what is pointed to or 1 if
4715 pointer is null. Add to target vector.
4716 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4717 target vector.
4718
4719 From Mark Salter:
4720 * remote.c (remote_wait): Add support to extract optional
4721 watchpoint information from T-packet. Ignore unrecognized
4722 optional info in T-packet.
4723 (remote_async_wait): Ditto.
4724
5d1d95de
CV
47252002-08-09 Corinna Vinschen <vinschen@redhat.com>
4726
4727 * cli/cli-dump.c: Change fopen modes to use binary open modes
4728 as defined in include/fopen-bin.h throughout.
4729
c86b5b38
MS
47302002-08-08 Michael Snyder <msnyder@redhat.com>
4731
4732 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4733
b30590dc
KB
47342002-08-08 Kevin Buettner <kevinb@redhat.com>
4735
4736 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4737 assertion failure by returning early after a warning.
4738
498868ed
KB
47392002-08-08 Kevin Buettner <kevinb@redhat.com>
4740
4741 * mips-tdep.c (mips_find_saved_regs): Make static.
4742 (mips_frame_init_saved_regs): New function.
4743 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4744 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4745 (mips_find_saved_regs): Delete declaration.
4746
b2dd6311
GS
47472002-08-08 Grace Sainsbury <graces@redhat.com>
4748
3c3bea1c
GS
4749 * remote.c (remote_wait, remote_async_wait): Change
4750 thread_num from int to ULONGEST.
4751 (unpack_varlen_hex): Change result parameter from
4752 int * to ULONGEST *.
b2dd6311 4753
ea47855f
AC
47542002-08-08 Andrew Cagney <ac131313@redhat.com>
4755
4756 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4757 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4758 powerpc*-*-*.
4759 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4760
69db8bae
AC
47612002-08-08 Andrew Cagney <cagney@redhat.com>
4762
4763 * gcore.c (override_derive_stack_segment): Delete variable.
4764 (preempt_derive_stack_segment): Delete function.
4765 (derive_stack_segment): Delete function.
4766 (default_derive_stack_segment): Renamed to derive_stack_segment.
4767 (override_derive_heap_segment): Delete variable.
4768 (preempt_derive_heap_segment): Delete function.
4769 (derive_heap_segment): Delete function.
4770 (default_derive_heap_segment): Rename to derive_heap_segment.
4771
cb811fe7
MS
47722002-08-06 Michael Snyder <msnyder@redhat.com>
4773
4774 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4775 * mips-tdep.c (mips_EABI_use_struct_convention,
4776 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4777 New functions. (mips_use_struct_convention): Delete.
4778 (mips_gdbarch_init): set use_gdbarch_convention.
4779
8b389c40
MS
47802002-08-06 Michael Snyder <msnyder@redhat.com>
4781
4782 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4783 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4784 mips_o32_reg_struct_has_addr): New functions.
4785 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4786
5c27f28a
AC
47872002-08-07 Andrew Cagney <ac131313@redhat.com>
4788
4789 * regcache.c (pseudo_register): Delete function.
4790 (fetch_register): Delete function.
4791 (store_register): Delete function.
4792 (regcache_raw_read, legacy_read_register_gen): Use
4793 target_fetch_registers instead of fetch_register.
4794 (legacy_write_register_gen, regcache_raw_write): Use
4795 target_store_register instead of store_register.
4796 (write_register_bytes): Ditto.
4797
4798 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4799 (STORE_PSEUDO_REGISTER): Delete.
4800 * gdbarch.h, gdbarch.c: Regenerate.
4801
5b331675
CV
48022002-08-06 Corinna Vinschen <vinschen@redhat.com>
4803
4804 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4805 write dump file binary.
4806
6acdf5c7
MS
48072002-08-05 Michael Snyder <msnyder@redhat.com>
4808
4809 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4810 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4811 (mips_gdbarch_init): Set N32 target to be mips64.
4812
b2f01c35
KB
48132002-08-06 Kevin Buettner <kevinb@redhat.com>
4814
4815 * frame.c (find_saved_register): Break out of loop once saved
4816 register address is found. Don't mention sparc in loop comment
4817 anymore.
4818
63db5580
KB
48192002-08-06 Kevin Buettner <kevinb@redhat.com>
4820
4821 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4822 mips_default_saved_regsize to 8.
4823
5e34e75e
AC
48242002-08-06 Andrew Cagney <ac131313@redhat.com>
4825
4826 * gcore.c: Do not include <sys/procfs.h>.
4827 * Makefile.in (gcore.o): Update dependencies.
4828
eb4c54a2
AC
48292002-08-06 Andrew Cagney <cagney@redhat.com>
4830
4831 * configure.tgt: Make arc-*-* obsolete.
4832 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4833 * MAINTAINERS: Make arc-elf obsolete.
4834 * arc-tdep.c: Make file obsolete.
4835 * config/arc/arc.mt: Ditto.
4836 * config/arc/tm-arc.h: Ditto.
4837
ced15480
TR
48382002-08-05 Theodore A. Roth <troth@verinet.com>
4839
c1bab85b 4840 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 4841
b4743822
AC
48422002-08-05 Andrew Cagney <ac131313@redhat.com>
4843
4844 * mcore-tdep.c (mcore_gdbarch_init): Use
4845 generic_unwind_get_saved_register instead of
4846 generic_get_saved_register.
4847 * v850-tdep.c (v850_gdbarch_init): Ditto.
4848 * frv-tdep.c (frv_gdbarch_init): Ditto.
4849 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4850 * s390-tdep.c (s390_gdbarch_init): Ditto.
4851 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4852 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4853 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4854
3956d554
JB
48552002-08-05 Joel Brobecker <brobecker@gnat.com>
4856
4857 * objfiles.h: Add missing #include "symfile.h"
4858
4859 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4860
8249c0d6
AC
48612002-08-04 Andrew Cagney <ac131313@redhat.com>
4862
4863 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4864 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4865 of FIELD_BITSIZE.
4866
b9d14705
DJ
48672002-08-04 Daniel Jacobowitz <drow@mvista.com>
4868
4869 * NEWS: Cleanup and nitpick.
4870
dd73b9bb
AC
48712002-08-03 Andrew Cagney <ac131313@redhat.com>
4872
4873 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4874
043a27f8
AC
48752002-08-03 Andrew Cagney <ac131313@redhat.com>
4876
4877 * Makefile.in (gdbtk-bp.o): Update dependencies.
4878 (gdbtk-register.o): Ditto.
4879 (gdbtk-varobj.o): Ditto.
4880
46ce284d
AC
48812002-08-03 Andrew Cagney <cagney@redhat.com>
4882
4883 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4884 m68hc11_fetch_pseudo_register.
4885 (m68hc11_pseudo_register_write): Replace
4886 m68hc11_store_pseudo_register.
4887 (m68hc11_gdbarch_init): Update.
4888
b66d6d2e
AC
4889Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4890
4891 * gdbarch.sh: Include "gdb_string.h".
4892 * gdbarch.c: Regenerate.
4893
4894 * regcache.c: Include "gdb_string.h".
4895 * ax-general.c: Ditto.
4896 * varobj.c: Ditto.
4897 * std-regs.c: Ditto.
4898 * fbsd-proc.c: Ditto.
4899 * thread.c: Ditto.
4900
4901 * Makefile.in (regcache.o): Update dependencies.
4902 (thread.o, gdbarch.o): Ditto.
4903 (ax-general.o, gdbarch.o): Ditto.
4904 (varobj.o, std-regs.o): Ditto.
4905 (fbsd-proc.o): Specify dependencies.
4906
29e1842b
AC
49072002-08-02 Andrew Cagney <cagney@redhat.com>
4908
4909 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4910 regnum.
4911 (regcache_cooked_write): Ditto.
4912
68365089
AC
49132002-08-02 Andrew Cagney <ac131313@redhat.com>
4914
4915 * regcache.c (regcache_cooked_read): New function.
4916 (regcache_cooked_write): New function.
4917 (read_register_gen): Rewrite using regcache_cooked_read.
4918 (write_register_gen): Rewrite using regcache_cooked_write.
4919
4920 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4921 Declare.
4922
d8124050
AC
49232002-08-02 Andrew Cagney <cagney@redhat.com>
4924
4925 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4926 Replace the architecture methods register_read and register_write.
4927 * gdbarch.h, gdbarch.c: Regenerate.
4928 * regcache.c (init_regcache_descr): Update.
4929 (read_register_gen): Update.
4930 (write_register_gen): Update.
4931 (supply_register): Update comment.
4932
4933 * sh-tdep.c (sh_gdbarch_init): Update.
4934 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4935 `regcache' and `gdbarch' parameters. Make `buffer' a void
4936 pointer. Update code.
4937 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4938 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4939 void pointer. Update code.
4940 (sh64_register_write): Delete.
4941 (sh4_register_read): Delete.
4942 (sh64_register_read): Delete.
4943 (sh4_register_write): Delete.
4944 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4945 void pointer, `to' parameter a void pointer.
4946 (sh_sh64_register_convert_to_raw): Ditto.
4947
a6425924
KB
49482002-08-01 Kevin Buettner <kevinb@redhat.com>
4949
4950 * mips-tdep.c (mips_register_virtual_type): Use architecture
4951 invariant return values.
4952
ff5922b5
AC
49532002-08-01 Andrew Cagney <cagney@redhat.com>
4954
4955 * linux-proc.c: Include "gdb_string.h".
4956 * Makefile.in (linux-proc.o): Update dependency list.
4957
32a6503c
KB
49582002-08-01 Kevin Buettner <kevinb@redhat.com>
4959
4960 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4961 comment.
4962
ccaa32c7
GS
49632002-08-01 Grace Sainsbury <graces@redhat.com>
4964
4965 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4966 to_insert_watchpoint, to_remove_watchpoint,
4967 to_stopped_by_watchpoint, to_stopped_data_address,
4968 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4969 target vecctor. Define their corresponding macros so they call
4970 them.
4971
4972 * target.c: Add default and debug versions of for
4973 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4974 to_insert_watchpoint, to_remove_watchpoint,
4975 to_stopped_by_watchpoint, to_stopped_data_address,
4976 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4977
78fde5f8
KB
49782002-08-01 Kevin Buettner <kevinb@redhat.com>
4979
4980 * mips-tdep.c (mips_register_virtual_type): New function.
4981 (mips_gdbarch_init): Register mips_register_virtual_type()
4982 with gdbarch machinery.
4983 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4984 this file instead of tm-bigmips.h.
4985 (MIPS_REGSIZE): Delete this macro.
4986 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4987 multiarch version in mips-tdep.c will be found.
4988
db034ac5
AC
49892002-08-01 Andrew Cagney <cagney@redhat.com>
4990
4991 * NEWS: Menion that CHILL has been made obsolete.
4992
4993 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
4994 * stabsread.c (read_range_type): Ditto.
4995 * gdbtypes.h: Ditto.
4996 * language.c (binop_type_check): Ditto.
4997 (binop_result_type): Ditto.
4998 (integral_type): Ditto.
4999 (character_type): Ditto.
5000 (string_type): Ditto.
5001 (boolean_type): Ditto.
5002 (structured_type): Ditto.
5003 (lang_bool_type): Ditto.
5004 (binop_type_check): Ditto.
5005 * language.h (_LANG_chill): Ditto.
5006 * dwarfread.c (set_cu_language): Ditto.
5007 * dwarfread.c (CHILL_PRODUCER): Ditto.
5008 * dwarfread.c (handle_producer): Ditto.
5009 * expression.h (enum exp_opcode): Ditto.
5010 * eval.c: Ditto for comments.
5011 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5012 * expprint.c (print_subexp): Ditto.
5013 (print_subexp): Ditto.
5014 * valops.c (value_cast): Ditto.
5015 (search_struct_field): Ditto.
5016 * value.h (COERCE_VARYING_ARRAY): Ditto.
5017 * symfile.c (init_filename_language_table): Ditto.
5018 (add_psymbol_with_dem_name_to_list): Ditto.
5019 * valarith.c (value_binop): Ditto.
5020 (value_neg): Ditto.
5021 * valops.c (value_slice): Ditto.
5022 * symtab.h (union language_specific): Ditto.
5023 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5024 (SYMBOL_DEMANGLED_NAME): Ditto.
5025 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5026 * defs.h (enum language): Ditto.
5027 * symtab.c (got_symtab): Ditto.
5028 * utils.c (fprintf_symbol_filtered): Ditto.
5029
5030 * ch-typeprint.c: Make file obsolete.
5031 * ch-valprint.c: Make file obsolete.
5032 * ch-lang.h: Make file obsolete.
5033 * ch-exp.c: Make file obsolete.
5034 * ch-lang.c: Make file obsolete.
5035
5036 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5037 CHILL_LIB.
5038 (TARGET_FLAGS_TO_PASS): Ditto.
5039 (CHILLFLAGS): Obsolete.
5040 (CHILL): Obsolete.
5041 (CHILL_FOR_TARGET): Obsolete.
5042 (CHILL_LIB): Obsolete.
5043 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5044 ch-valprint.c.
5045 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5046 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5047 ch-lang.o.
5048 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5049 targets.
5050
8aaf0b47
JB
50512002-07-31 Joel Brobecker <brobecker@gnat.com>
5052
5053 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5054 This does not change anything at the moment, but will be helpful
5055 later when full Ada support is integrated.
5056
f3a7b3a5
KB
50572002-07-31 Kevin Buettner <kevinb@redhat.com>
5058
5059 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5060 help message.
5061
fb850278
KB
50622002-07-31 Kevin Buettner <kevinb@redhat.com>
5063
5064 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5065 and save it in a local variable. Use variable in later test.
5066
e3bddbfa
KB
50672002-07-31 Kevin Buettner <kevinb@redhat.com>
5068
5069 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5070 test. (Thanks to Daniel Jacobowitz.)
5071
28d169de
KB
50722002-07-31 Kevin Buettner <kevinb@redhat.com>
5073
5074 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5075 (mips_abi_strings): Add "n64".
5076 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5077
7fe7e44e
KB
50782002-07-31 Kevin Buettner <kevinb@redhat.com>
5079
5080 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5081 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5082
c6caf090
KB
50832002-07-31 Kevin Buettner <kevinb@redhat.com>
5084
5085 * utils.c (host_pointer_to_address, address_to_host_pointer):
5086 Use gdb_assert() instead of explicit call to internal_error().
5087
c41669e0
KB
50882002-07-30 Kevin Buettner <kevinb@redhat.com>
5089
5090 * Makefile.in (rs6000-nat.o): Update dependencies.
5091
5092 From Nicholas Duffek:
5093 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5094 (aix-thread.o): New rule.
5095 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5096 * config/powerpc/aix432.mh: New file.
5097
2fda4977
DJ
50982002-07-30 Daniel Jacobowitz <drow@mvista.com>
5099
5100 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5101 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5102 (fetch_core_registers, ppc_linux_supply_gregset)
5103 (ppc_linux_supply_fpregset): New functions.
5104 (ppc_linux_regset_core_fns): New.
5105 (_initialize_ppc_linux_tdep): Call add_core_fns.
5106 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5107 and ppc_linux_supply_gregset.
5108 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5109 (supply_fpregset): Call ppc_linux_supply_fpregset.
5110 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5111 corelow.o.
5112 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5113
729051e6
DJ
51142002-07-30 Daniel Jacobowitz <drow@mvista.com>
5115
5116 * symtab.c (lookup_symbol): Demangle before lowercasing.
5117
5f8a3188
AC
51182002-07-30 Andrew Cagney <ac131313@redhat.com>
5119
5120 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5121 declaration.
5122 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5123 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5124 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5125 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5126 "gdb_string.h".
5127 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5128 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5129 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5130 (avr-tdep.o, mon960-rom.o): Ditto.
5131 (aout_stabs_gnu_h): Define.
5132 (symtab_h): Remove $(gdb_obstack_h).
5133
67f07146
JB
51342002-07-30 Jim Blandy <jimb@redhat.com>
5135
5136 Patch from David Carlton <carlton@math.stanford.edu>:
5137 * gdbinit.in: Move the `dir' commands that add GDB's own source
5138 directory to the search path to the end, so that the `gdb' source
5139 directory will be searched first.
5140
04ea0df1
AC
51412002-07-29 Andrew Cagney <ac131313@redhat.com>
5142
5143 * gdb_obstack.h: New file.
5144 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5145 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5146 * objfiles.h: Include "gdb_obstack.h".
5147 * Makefile.in (gdb_obstack_h): Define.
5148 (symtab_h): Add $(gdb_obstack_h).
5149 (objfiles_h): Add $(gdb_obstack_h).
5150
5151 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5152 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5153 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5154 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5155 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5156 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5157 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5158 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5159
5160 * Makefile.in (bcache.o): Update dependencies.
5161 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5162 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5163 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5164 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5165 (stabsread.o, symfile.o, symmisc.o): Ditto.
5166 (symtab.o, typeprint.o, macroexp.o): Ditto.
5167 (macrotab.o, mdebugread.o): Ditto.
5168 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5169 (coff_ecoff_h, aout_aout64_h): Define.
5170 (aout_stabs_gnu_h, libaout_h): Define.
5171
d138e37a
AC
51722002-07-29 Andrew Cagney <cagney@redhat.com>
5173
5174 * regcache.c (struct regcache_descr): Rename nr_registers to
5175 nr_cooked_registers. Revise comments describing the structure
5176 member fields.
5177 (init_regcache_descr): Update.
5178 (init_legacy_regcache_descr): Update.
5179 (read_register_gen, write_register_gen): When a cooked register in
5180 the raw register range, directly access the value from the raw
5181 register cache.
5182
460e6ec3
AC
51832002-07-29 Andrew Cagney <ac131313@redhat.com>
5184
5185 * z8k-tdep.c: Do not include "obstack.h".
5186 * h8300-tdep.c, h8500-tdep.c: Ditto.
5187 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5188 * valprint.c, v850-tdep.c: Ditto.
5189 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5190 * mn10200-tdep.c: Ditto.
5191
5192 * Makefile.in (z8k-tdep.o): Update dependencies.
5193 (m68hc11-tdep.o, valprint.o): Ditto.
5194 (v850-tdep.o, d10v-tdep.o): Ditto.
5195 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5196 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5197 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5198 (sh_opc_h, gdb_sim_sh_h): Define.
5199 (elf_sh_h, elf_bfd_h): Define.
5200 (opcode_m68hc11_h): Define.
5201 (OPCODES_SRC, OPCODES_DIR): define.
5202 (OPCODES): Use $(OPCODES_DIR).
5203 (gdb_sim_d10v_h): Rename sim_d10v_h.
5204 (gdb_sim_arm_h): Rename sim_arm_h.
5205
790c9cf0
KB
52062002-07-26 Kevin Buettner <kevinb@redhat.com>
5207
5208 * utils.c (host_pointer_to_address, address_to_host_pointer):
5209 Change internal_error() message to indicate function responsible
5210 for the error.
5211
9647fa49
KB
52122002-07-26 Kevin Buettner <kevinb@redhat.com>
5213
5214 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5215 calls to local_hex_string_custom().
5216
dabbe2c0
KB
52172002-07-26 Kevin Buettner <kevinb@redhat.com>
5218
5219 * irix5-nat.c: Move IRIX shared library support from here...
5220 * solib-irix.c: ...to here. Revised substantially to work with
5221 generic solib framework.
5222
b96d0a4e
KB
5223 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5224 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5225 * mips-irix-tdep.c: New file.
5226
313fb2f6
KB
5227 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5228 (mips-irix-tdep.o, solib-irix.o): New rules.
5229 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5230 solib-irix.o.
5231 * config/mips/irix6.mt (TDEPFILES): Likewise.
5232 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5233
ab2eaf26
KB
52342002-07-26 Kevin Buettner <kevinb@redhat.com>
5235
177e4768 5236 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
5237 disabled (via ``#if 0'') includes.
5238
7244546a
KB
52392002-07-26 Kevin Buettner <kevinb@redhat.com>
5240
5241 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5242 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5243 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5244 Add support for the fpscr register.
5245 * rs6000-nat.c (regmap, fetch_inferior_registers)
5246 (store_inferior_registers, fetch_core_registers): Likewise.
5247
dd7be90a
KB
52482002-07-26 Kevin Buettner <kevinb@redhat.com>
5249
5250 * rs6000-nat.c (language.h): Include.
5251 (special_regs): Delete this array.
5252 (regmap): New function.
5253 (fetch_register, store_register): Use regmap() to map gdb
5254 register numbers to ptrace register numbers. Also, use
5255 outputs from regmap() to make decisions regarding type of
5256 ptrace() call to make. In particular, don't compare against
5257 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5258 (fetch_inferior_registers, store_inferior_registers): Where
5259 possible, obtain register numbers from tdep struct. Don't
5260 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5261 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5262 (LAST_UISA_SP_REGNUM): Delete.
5263
11bf77db
KB
52642002-07-25 Kevin Buettner <kevinb@redhat.com>
5265
5266 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
5267 (fetch_registers, store_register, fetch_core_registers): Don't
5268 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
5269 regcache_collect() as appropriate.
5270 (find_toc_address): Format hex address with local_hex_string().
5271
06afebeb
AC
52722002-07-25 Andrew Cagney <ac131313@redhat.com>
5273
5274 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5275 bfd/elf32-frv.c.
5276
8c554d79
TT
52772002-07-24 Tom Tromey <tromey@redhat.com>
5278
5279 * jv-exp.y: Marked all strings with _().
5280 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5281 internal_error.
5282 (MethodInvocation, CastExpression, parse_number, yyerror,
5283 java_type_from_name, push_expression_name, yylex): Typo fixes.
5284
e4c242d9
DJ
52852002-07-24 Daniel Jacobowitz <drow@mvista.com>
5286
5287 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5288 (tee_file_flush, tee_file_write, tee_file_fputs)
5289 (tee_file_isatty): New.
5290 * ui-file.h (tee_file_new): Add prototype.
5291
ebf56fd3
AS
52922002-07-24 Aidan Skinner <aidan@velvet.net>
5293
5294 * ada-lang.c: Change k&r style function definitions to prototyped
5295 form.
5296 * ada-typeprint.c: Change k&r style function definitions to prototyped
5297 form.
5298 * ada-valprint.c: Change k&r style function definitions to prototyped
5299 form.
5300
7fb623f7
AC
53012002-07-24 Andrew Cagney <cagney@redhat.com>
5302
5303 * README: Remove reference to remote-bug.
5304 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5305 remote-bug.c.
5306 (m88k-nat.o): Delete rule.
5307 (m88k-tdep.o): Delete rule.
5308 (remote-bug.o): Delete rule.
5309 * MAINTAINERS: Mark as obsolete.
5310 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5311 * m88k-tdep.c: Make file obsolete.
5312 * config/m88k/m88k.mh: Ditto.
5313 * config/m88k/delta88v4.mh: Ditto.
5314 * config/m88k/delta88v4.mt: Ditto.
5315 * config/m88k/delta88.mt: Ditto.
5316 * config/m88k/delta88.mh: Ditto.
5317 * remote-bug.c: Ditto.
5318 * config/m88k/tm-delta88.h: Ditto.
5319 * config/m88k/nm-delta88v4.h: Ditto.
5320 * config/m88k/xm-delta88.h: Ditto.
5321 * config/m88k/xm-dgux.h: Ditto.
5322 * config/m88k/tm-m88k.h: Ditto.
5323 * config/m88k/nm-m88k.h: Ditto.
5324 * config/m88k/tm-delta88v4.h: Ditto.
5325 * m88k-nat.c: Ditto.
5326 * cxux-nat.c: Ditto.
5327 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5328 and m88*-*-* obsolete.
5329 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5330 m88*-*-* obsolete.
5331
37611a2b
AC
53322002-07-24 Andrew Cagney <cagney@redhat.com>
5333
5334 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5335 constant. Same for local pointer variables.
5336 (extract_signed_integer): Ditto.
5337 * defs.h (extract_unsigned_integer): Update.
5338 (extract_signed_integer): Update.
5339
1aaa5f99
AC
53402002-07-24 Andrew Cagney <cagney@redhat.com>
5341
5342 * regcache.c (regcache_raw_write): Change buf parameter to a
5343 constant void pointer.
5344 (regcache_raw_read): Change buf parameter to a void pointer.
5345 (legacy_write_register_gen): Change myaddr parameter a constant
5346 void pointer.
5347 (supply_register): Change val parameter to a const void pointer.
5348 * regcache.h (regcache_raw_write): Update declaration.
5349 (regcache_raw_read): Update declaration.
5350 (supply_register): Update declaration.
5351
b4f5539f
TT
53522002-07-24 Tom Tromey <tromey@redhat.com>
5353
5354 * defs.h (gdb_readline_wrapper): Declare.
5355 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5356 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5357 * top.c (gdb_readline_wrapper): New function.
5358 (command_line_input): Use it.
5359
0818c12a
AC
53602002-07-24 Andrew Cagney <cagney@redhat.com>
5361
5362 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5363 regcache_read and regcache_write.
5364 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5365 * regcache.c: Update.
5366 * sh-tdep.c (sh64_push_arguments): Update comment.
5367 (sh_pseudo_register_read): Update.
5368 (sh_pseudo_register_write): Update.
5369 (sh4_register_read): Update.
5370 (sh4_register_write): Update.
5371 (sh64_pseudo_register_read): Update.
5372 (sh64_pseudo_register_write): Update.
5373 (sh64_register_read): Update.
5374 (sh64_register_write): Update.
5375 * i386-tdep.c (i386_extract_return_value): Update.
5376 (i386_extract_struct_value_address): Update.
5377 (i386_extract_return_value): Update.
5378 * blockframe.c (generic_read_register_dummy): Update.
5379 (generic_call_dummy_register_unwind): Update
5380 * infrun.c (write_inferior_status_register): Update.
5381
f7321c06
JB
53822002-07-23 Jim Blandy <jimb@redhat.com>
5383
5384 * parser-defs.h (expression_context_pc): Make this extern.
5385 (Thanks to Michael Snyder.)
5386
2037aebb
AC
53872002-07-23 Andrew Cagney <ac131313@redhat.com>
5388
5389 GDB 5.2.1 released from 5.2 branch.
5390 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5391 * README: Update to mention 5.2.1.
5392
66504d44
MS
53932002-07-23 Mark Salter <msalter@redhat.com>
5394
5395 * remote.c (remote_read_bytes): Fix check for error.
5396
27bae383
KB
53972002-07-22 Kevin Buettner <kevinb@redhat.com>
5398
5399 * aix-thread.c (language.h): Include.
5400 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5401 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5402 Print newlines at end of debug messages.
5403 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5404 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5405
54062002-07-22 Kevin Buettner <kevinb@redhat.com>
5407
5408 * aix-thread.c (ppc-tdep.h): Include.
5409 (special_register_p): New function.
5410 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5411 (store_regs_user_thread): Use register number information from
5412 gdbarch_tdep struct instead of hardcoded offsets relative to
5413 FIRST_UISA_SP_REGNUM.
5414 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5415 special_register_p() instead of using FPLAST_REGNUM and
5416 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5417 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5418 will be MQ's register number.
5419
54202002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
5421
5422 * aix-thread.c (ops): Rename to aix_thread_ops.
5423 (base_ops): Rename to base_target.
5424 (ops_attach): Rename to aix_thread_attach.
5425 (ops_detach): Rename to aix_thread_detach.
5426 (ops_resume): Rename to aix_thread_detach.
5427 (ops_wait): Rename to aix_thread_wait.
5428 (ops_kill): Rename to aix_thread_kill.
5429 (init_ops): Rename to init_aix_thread_ops.
5430 (ops_fetch_register): Rename to aix_thread_fetch_register.
5431 (ops_store_register): Rename to aix_thread_store_register.
5432 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5433 (ops_thread_alive): Rename to aix_thread_thread_alive.
5434 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5435 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5436 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5437 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5438 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5439 (store_regs_lib): Rename to store_regs_user_thread.
5440 (store_regs_kern): Rename to store_regs_kernel_thread.
5441
27bae383 54422002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
5443
5444 * aix-thread.c (ops_prepare_to_store): Eliminate.
5445 (init_ops): Don't initialize ops.prepare_to_store.
5446 (store_regs_kern): Pre-fetch register buffers from child,
5447 because some registers may not be in the cache. Copy
5448 regs from register cache only if they are cached.
5449 (store_regs_lib): Copy regs from register cache only
5450 if they are cached.
5451 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5452 fill_gprs64): Ditto.
5453
61c5da0b
KB
54542002-07-22 Kevin Buettner <kevinb@redhat.com>
5455
5456 * aix-thread.c (gdb_assert.h): Include.
5457 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5458 register sizes (from register cache) match size of buffer holding
5459 register data.
5460 (fill_sprs32): Change parameter types to match those in the ptrace()
5461 buffer.
5462 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5463 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5464
54652002-07-22 Michael Snyder <msnyder@redhat.com>
5466
5467 * aix-thread.c (supply_sprs64): Cosmetic change.
5468 (supply_sprs32): Cosmetic change.
5469 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5470 (fill_sprs64): Use regcache_collect instead of read_register.
5471 (store_regs_lib): Use regcache_collect instead of
5472 read_register. Use fill_sprs32 instead of fill_sprs64,
5473 if debugging a 32-bit architecture.
5474 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5475 out of the register cache, instead of passing a pointer into
5476 the register cache directly to ptrace. Use regcache_collect
5477 insteaad of read_register.
5478 (ops_prepare_to_store): Use target_read_registers instead
5479 of read_register_bytes.
5480
36479eb1
AS
54812002-07-20 Aidan Skinner <aidan@velvet.net>
5482
5483 * MAINTAINERS: Add self under write after approval.
5484
80ae6ee2
AS
54852002-07-20 Aidan Skinner <aidan@velvet.net>
5486
5487 * ada-tasks.c: Change k&r style function definitions to prototyped
5488 form.
5489
8a8ab2b9
AC
54902002-07-19 Andrew Cagney <ac131313@redhat.com>
5491
5492 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5493 * x86-64-tdep.c: Include "objfiles.h".
5494 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5495 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5496
fb16b900
ML
54972002-07-17 Michal Ludvig <michal@suse.cz>
5498
5499 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5500 (update_context): Initialise cfa variable.
5501
0fe7bf7b
MS
55022002-07-17 Michael Snyder <msnyder@redhat.com>
5503
5504 * aix-thread.c: Shorten some long lines.
5505 Bring comments into line with code spec.
5506
488f131b
JB
55072002-07-18 Joel Brobecker <brobecker@gnat.com>
5508
5509 * infrun.c: Re-indent using gdb_indent.sh.
5510
46c415d2
JB
55112002-07-18 Joel Brobecker <brobecker@gnat.com>
5512
5513 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5514 Leave the indentation temporarily untouched, to minimize the diffs.
5515
cdecafbe
EZ
55162002-07-18 Elena Zannoni <ezannoni@redhat.com>
5517
5518 * stabsread.c: Make os9k sections of the code obsolete,
5519 for real this time.
5520 * stabsread.h: Make os9k sections of the code obsolete.
5521
7b6aa020
ML
55222002-07-18 Michal Ludvig <mludvig@suse.cz>
5523
09ec9b38
ML
5524 * linux-low.c (regsets_store_inferior_registers): Add free()
5525 at the end of a loop to prevent memory leak.
5526 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5527 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5528 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5529 line a comment.
4894ac5d 5530 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5531
233282cd
JB
55322002-07-17 Jim Blandy <jimb@redhat.com>
5533
5534 * macrocmd.c (info_macro_command): Remove newline from error
5535 message.
5536
7b6aa020 55372002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5538
5539 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5540 (sh_gdbarch_init): Use it for sh-dsp.
5541
f7ef9339
KB
55422002-07-16 Kevin Buettner <kevinb@redhat.com>
5543
5544 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5545 64-bit DWARF2 format.
5546
8dd72958
JB
55472002-07-16 Joel Brobecker <brobecker@gnat.com>
5548
5549 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5550 <sys/proc.h> when not available.
5551
a99a9e1b
AC
55522002-07-16 Andrew Cagney <ac131313@redhat.com>
5553
5554 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5555 * stabsread.c: Make os9k sections of the code obsolete.
5556 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5557 * config/i386/i386os9k.mt: Make file obsolete.
5558 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5559 (COMMON_OBS): Remove os9kread.o
5560 (SFILES): Remove os9kread.c.
5561 (os9kread.o, remote-os9k.o): Make target obsolete.
5562 * remote-os9k.c: Make file obsolete.
5563 * os9kread.c: Make file obsolete.
5564 * Makefile.in
5565
7a3085c1
AC
55662002-07-16 Andrew Cagney <ac131313@redhat.com>
5567
5568 * NEWS: Mention that the FR30 has been made obsolete.
5569 * fr30-tdep.c: Make file obsolete.
5570 * config/fr30/tm-fr30.h: Ditto.
5571 * config/fr30/fr30.mt: Ditto.
5572 * configure.tgt: Make fr30-*-elf obsolete.
5573 * MAINTAINERS: Make fr30-elf obsolete.
5574
28a93f5a
PM
55752002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5576
5577 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5578 found is not inside a section.
5579
be006b8b
KB
55802002-07-15 Kevin Buettner <kevinb@redhat.com>
5581
5582 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5583 strerror().
5584 (pdc_realloc): Use xrealloc() instead of realloc().
5585
14fa3751
KB
55862002-07-15 Kevin Buettner <kevinb@redhat.com>
5587
5588 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5589 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5590 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5591 macros.
5592
42cc437f
KB
55932002-07-15 Kevin Buettner <kevinb@redhat.com>
5594
5595 * aix-thread.c (ptrace_check): Eliminate goto.
5596 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5597 problem.
5598
8e2c28d4
KB
55992002-07-15 Kevin Buettner <kevinb@redhat.com>
5600
5601 * aix-thread.c (gdbcmd.h): Include.
5602 (DEBUG, DBG, DBG2, dbg): Eliminate.
5603 (debug_aix_thread): New static global.
5604 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5605 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5606 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5607 invocations to DBG and DBG2 macros to test against
5608 ``debug_aix_thread'' and call fprintf_unfiltered().
5609 (_initialize_aix_thread): Add new command "set debug aix-thread".
5610
30413464
AC
56112002-07-15 Andrew Cagney <ac131313@redhat.com>
5612
5613 From Gerhard Tonn <TON@de.ibm.com>:
5614 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5615 instead of supply_register.
5616
7c43edc1
AC
56172002-07-15 Andrew Cagney <ac131313@redhat.com>
5618
5619 * dwarf2cfi.c: Include "gdb_assert.h".
5620 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5621 non-NULL.
5622 (update_context): Do not use __func__. Add missing ``break''.
5623 (update_context): Do not use __func__.
5624
9364a0ef
EZ
56252002-07-15 Elena Zannoni <ezannoni@redhat.com>
5626
5627 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5628 and its setting. Set gdbarch instruction printing functions
5629 directly. For non-rs6000 case use new function
5630 gdb_print_insn_powerpc.
5631 (gdb_print_insn_powerpc): New function.
5632
3fbeef0b
AC
56332002-07-13 Andrew Cagney <ac131313@redhat.com>
5634
92eb23c5 5635 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5636 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5637 * configure.tgt: Mark d30v-*-* as obsolete.
5638 * d30v-tdep.c: Mark file as obsolete.
5639 * config/d30v/d30v.mt: Ditto.
5640 * config/d30v/tm-d30v.h: Ditto.
5641
aacb1f0a
AS
56422002-07-13 Aidan Skinner <aidan@velvet.net>
5643
5644 * ada-tasks.c (add_task_entry): replace calls to
5645 malloc() with xmalloc
5646 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5647
5648 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5649 ada_finish_decode_line_1, all_sals_for_line
5650 ada_breakpoint_rewrite): replace calls to free() with xfree()
5651
c11d79f2
KB
56522002-07-12 Kevin Buettner <kevinb@redhat.com>
5653
5654 From Nicholas Duffek (with minor changes by Martin Hunt,
5655 Louis Hamilton, and Kevin Buettner):
5656 * aix-thread.c: New file.
5657
8e19ed76
PS
56582002-07-12 Petr Sorfa <petrs@caldera.com>
5659
5660 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5661 complaint for invalid attribute class or form.
5662 (read_func_scope): DW_AT_frame_base
5663 better handling of DW_AT_block*.
5664 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5665 better handling of DW_AT_block*.
5666 (read_common_block): DW_AT_location
5667 better handling of DW_AT_block*.
5668 (read_partial_die): DW_AT_location better handling
5669 of DW_AT_block*.
5670 (new_symbol): DW_AT_external better handling of
5671 DW_AT_block*. Proper initialization of variable
5672 "addr".
5673 (attr_form_is_block): New function that returns true
5674 if the attribute's form is of DW_FORM_block*.
5675
295401f7
DJ
56762002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5677
5678 * valops.c (find_method_list): Remove comment about
5679 removed STATIC_MEMFUNCP argument.
5680 (value_find_oload_method_list): Likewise.
5681
e42dc924
KB
56822002-07-12 Kevin Buettner <kevinb@redhat.com>
5683
5684 From Nicholas Duffek:
5685 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5686 target_new_objfile_hook.
5687
6904b546
KB
56882002-07-12 Kevin Buettner <kevinb@redhat.com>
5689
5690 From Nicholas Duffek:
5691 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5692 csect.
5693
53fe9346
AC
56942002-07-12 Andrew Cagney <cagney@redhat.com>
5695
5696 * MAINTAINERS: Mention --enable-sim-build-warnings.
5697 (m68hc11-elf): Disable sim build warnings.
5698 (m32r-elf): Mark as broken obsolete candidate.
5699 (x86_64-linux-gnu): Mark as buildable with -Werror.
5700 (arm-elf): Change -w to ``,'' which enables warnings but not
5701 -Werror.
5702
af5f3db6
AC
57032002-07-12 Andrew Cagney <ac131313@redhat.com>
5704
5705 * bcache.h: Update copyright.
5706 (struct bstring, struct bcache): Move definition to "bcache.c".
5707 Replaced by opaque declaration.
5708 (bcache_xfree): Replace free_bcache.
5709 (bcache_xmalloc, bcache_memory_used): Declare.
5710
5711 * bcache.c: Update copyright.
5712 (struct bstring, struct bcache): Moved to here from "bcache.h".
5713 Update comments.
5714 (bcache_xmalloc, bcache_memory_used): New functions.
5715 (bcache_xfree): Replace function free_bcache.
5716
5717 * Makefile.in (objfiles.o): Add $(bcache_h).
5718 (objfiles_h): Remove $(bcache_h).
5719 (symfile.o): Add $(bcache_h).
5720
5721 * symmisc.c: Update copyright.
5722 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5723 (print_objfile_statistics): Use bcache_memory_used.
5724
5725 * symfile.c: Include "bcache.h".
5726 (reread_symbols): Use bcache_xfree.
5727 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5728 (add_psymbol_to_list): Pass psymbol_cache by value.
5729 (add_psymbol_with_dem_name_to_list): Ditto.
5730
5731 * objfiles.h: Update copyright.
5732 (struct bcache): Declare opaque. Do not include "bcache.h".
5733 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5734 bcache'' pointers.
5735 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5736
5737 * objfiles.c: Include "bcache.h". Update copyright.
5738 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5739 macro_cache.
5740 (free_objfile): Use bcache_xfree.
5741
444199e7
GS
57422002-07-11 Grace Sainsbury <graces@redhat.com>
5743
5744 * monitor.c (monitor_fetch_register): Make name a constant.
5745 (monitor_store_register): Same.
5746
261397f8
DJ
57472002-07-11 Daniel Jacobowitz <drow@mvista.com>
5748
5749 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5750 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5751 (finish_block) For non-function blocks, hash the symbol table. For
5752 function blocks, mark the symbol table as unhashed.
5753 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5754 (msymbol_hash_iw): Likewise.
5755 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5756 value.
5757 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5758 (lookup_minimal_symbol): Likewise for both.
5759 * symtab.h (struct block): Add `hashtable' flag. Comment the
5760 hashtable.
5761 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5762 (ALL_BLOCK_SYMBOLS): Update.
5763 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5764 (struct symbol): Add `hash_next' pointer.
5765 * symtab.c (lookup_block_symbol): Search using the hash table when
5766 possible.
5767 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5768 (search_symbols, find_addr_symbol): Likewise.
5769
5770 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5771 (read_dst_symtab): Likewise.
5772 * jv-lang.c (get_java_class_symtab): Likewise.
5773 * mdebugread.c: Include "gdb_assert.h".
5774 (shrink_block): Assert that the block being modified is not hashed.
5775 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5776 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5777 symbols.
5778 (dump_symtab): Recognize hashed blocks.
5779 * printcmd.c (print_frame_args): Assert that function blocks do not
5780 have hashed symbol tables.
5781 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5782 (fill_in_ada_prototype, debug_print_block): Likewise.
5783 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5784
6f0eaa01
CV
57852002-07-11 Corinna Vinschen <vinschen@redhat.com>
5786
5787 * stack.c (print_frame): Use result of frame_address_in_block()
5788 instead of fi->pc when evaluating symbols.
5789 (backtrace_command_1): Ditto.
5790
a208b0cb
AC
57912002-07-11 Andrew Cagney <cagney@redhat.com>
5792
5793 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5794 Make static.
5795
5796 * arm-tdep.c (arm_register_name): Make return type constant.
5797
a6b6b089
AC
57982002-07-10 Andrew Cagney <ac131313@redhat.com>
5799
5ae5f592
AC
5800 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5801 prototype.
5802 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5803 * s390-tdep.c (s390_fp_regnum): Ditto.
5804 (s390_read_fp): Ditto.
5805 (s390_pop_frame): Ditto.
5806 (_initialize_s390_tdep): Ditto.
5807 * remote.c (get_remote_state): Ditto.
5808 * procfs.c (mappingflags): Ditto.
5809 * memattr.c (_initialize_mem): Ditto.
5810 * mcore-tdep.c (mcore_pop_frame): Ditto.
5811 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5812 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5813 * language.c (set_case_str): Ditto.
5814 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5815 * frv-tdep.c (new_variant): Ditto.
5816 (frv_stopped_data_address): Ditto.
5817 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5818 (context_alloc): Ditto.
5819 (frame_state_alloc): Ditto.
5820 (unwind_tmp_obstack_init): Ditto.
5821 (unwind_tmp_obstack_free): Ditto.
5822 (cfi_read_fp): Ditto.
5823 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5824 (cris_pop_frame): Ditto.
5825 * c-lang.c (scanning_macro_expansion): Ditto.
5826 (finished_macro_expansion): Ditto.
5827 (c_preprocess_and_parse): Ditto.
5828 * gdbarch.sh: Ditto.
5829 * gdbarch.h, gdbarch.c: Regenerate.
5830 * config/mn10200/tm-mn10200.h: Adjust indentation.
5831 * target.c: Adjust indentation.
5832 * symtab.h: Adjust indentation.
5833 * stabsread.h: Adjust indentation.
5834 * remote-es.c: Adjust indentation.
5835 * os9kread.c: Adjust indentation.
5836
58372002-07-10 Andrew Cagney <ac131313@redhat.com>
5838
a6b6b089
AC
5839 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5840 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5841
a1789893
GS
58422002-07-10 Grace Sainsbury <graces@redhat.com>
5843
5844 * NEWS: Mention m68k, mcore multi-arching.
5845 * MAINTAINERS: Change status of m68k, mcore to reflect
5846 multi-arching.
5847
02f0d45d
DJ
58482002-07-10 Daniel Jacobowitz <drow@mvista.com>
5849
5850 * valops.c (find_overload_match): Free oload_syms.
5851
f15f768e
JB
58522002-07-09 Joel Brobecker <brobecker@gnat.com>
5853
5854 Define HAVE_SYS_PROC_H if sys/proc.h exists
5855 * configure.in: Add check for sys/proc.h
5856 * config.in: Regenerate.
5857 * configure: Regenerate.
5858
902a7139
GS
58592002-07-09 Grace Sainsbury <graces@redhat.com>
5860
5861 * config/m68k/tm-m68k.h: Remove macros wrapped in
5862 #if !GDB_MULTI_ARCH.
5863
a534e424
AC
58642002-07-08 Andrew Cagney <ac131313@redhat.com>
5865
5866 * config.in, configure: Regenerate.
5867
9b94f7bf
MK
58682002-07-08 Mark Kettenis <kettenis@gnu.org>
5869
5870 * dwarf2cfi.c: Include "gcore.h".
5871 (execute_stack_op): Fix implementation of the
5872 DW_OP_deref and DW_OP_deref_size operators by letting do their
5873 lookup in the target.
5874
1d34db41
MK
58752002-07-07 Mark Kettenis <kettenis@gnu.org>
5876
5877 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5878 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5879 tdep->sc_sp_offset.
5880
79d5b63a
DJ
58812002-07-05 Daniel Jacobowitz <drow@mvista.com>
5882
5883 Fix PR gdb/595, gdb/602
5884 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5885 Don't call value_cast, just read the vtable pointer; update comments
5886 to match.
5887
3bb912e8
GS
58882002-07-05 Grace Sainsbury <graces@redhat.com>
5889
5890 * config/mcore/tm-mcore.h: Remove file.
5891 * config/mcore/mcore.mt: Remove definition of TM_FILE
5892 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5893
ca39387d
MK
58942002-07-05 Mark Kettenis <kettenis@gnu.org>
5895
5896 * i386bsd-tdep.c: Include "gdb_string.h".
5897
efdc1108
GS
58982002-07-04 Grace Sainsbury <graces@redhat.com>
5899
5900 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5901 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5902 mcore-tdep.
5903 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5904 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5905 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5906 (RETVAL_REGNUM): Move macros from tm-mcore.h
5907 (mcore_reg_struct_has_addr): New function.
5908 (mcore_gdbarch_init): Added initializations for the macros removed
5909 from tm-mcore.h.
5910
bb21884d
MK
59112002-07-04 Mark Kettenis <kettenis@gnu.org>
5912
5913 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5914 traditonal string branding within the ELF header.
5915
228c6d41
DJ
59162002-07-04 Daniel Jacobowitz <drow@mvista.com>
5917
5918 * symtab.c (remove_params): New function.
5919 (make_symbol_overload_list): Use it instead of cplus_demangle.
5920 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5921
2404952e
MK
59222002-07-04 Mark Kettenis <kettenis@gnu.org>
5923
e5e4acad
MK
5924 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5925
baadce09
MK
5926 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5927 New variables.
5928 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5929 and tdep->sigtramp_end.
5930 * i386obsd-nat.c: New file.
5931 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5932
2404952e
MK
5933 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5934 Don't call get_current_frame().
5935
9b4f1ba7
PM
59362002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5937
5938 * i386-nat.c (child_post_startup_inferior): New function
5939 calling i386_cleanup_dregs if
5940 I386_USE_GENERIC_WATCHPOINTS is defined.
5941 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5942 conditional to acknowledge that i386-nat.c has its
5943 own child_post_startup_inferior function.
5944
c0d1d883
MK
59452002-07-04 Mark Kettenis <kettenis@gnu.org>
5946
00f8375e
MK
5947 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5948 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5949 instead of MAX_REGISTER_RAW_SIZE.
5950 (i386_extract_return_value, i386_extract_struct_value_address):
5951 Convert to use regcache.
5952 (i386_gdbarch_init): Set max_register_raw_size and
5953 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5954 Set extract_return_value and extract_struct_value_address instead
5955 of their deprecated variants.
5956
c0d1d883
MK
5957 Convert i386 target to generic dummy frames.
5958 * i386-tdep.c: Include "symfile.h".
5959 (i386_frameless_signal_p): Consider a function to be frameless if
5960 the pc points at the first instruction of the function.
5961 (i386_frame_chain): Handle (generic) call dummies.
5962 (i386_frame_saved_pc): Likewise.
5963 (i386_frame_init_saved_regs): Remove code dealing with call
5964 dummies on the stack.
5965 (i386_push_dummy_frame): Removed.
5966 (i386_call_dummy_words): Removed.
5967 (i386_fix_call_dummy): Removed.
5968 (i386_push_return_address): New function.
5969 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5970 parameter, and don't call get_current_frame.
5971 (i386_pop_frame): New function.
5972 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5973 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5974 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5975 call_dummy_length to 0, set call_dummy_words to NULL, set
5976 sizeof_call_dummy_words to 0, set fix_call_dummy to
5977 generic_fix_call_dummy, set pc_in_call_dummy to
5978 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5979 generic_push_dummy_frame, set push_return_address to
5980 i386_push_return_address and set frame_chain_valid to
5981 generic_file_frame_chain_valid.
5982
049ee0e4
AC
59832002-07-03 Andrew Cagney <ac131313@redhat.com>
5984
5985 * gdbarch.sh (struct regcache): Add opaque declaration.
5986 (EXTRACT_RETURN_VALUE): New architecture method.
5987 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5988 * gdbarch.h, gdbarch.c: Regenerate.
5989 * arch-utils.c (legacy_extract_return_value): New function.
5990 * arch-utils.h (legacy_extract_return_value): Declare.
5991 * values.c (value_being_returned): Re-enable code handling
5992 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5993 deprecated_grub_regcache_for_registers call to block handling
5994 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5995 (EXTRACT_RETURN_VALUE): Do not define.
5996
4e0d9804
GS
59972002-07-03 Grace Sainsbury <graces@redhat.com>
5998
5999 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6000 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6001 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6002 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6003 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6004 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6005 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6006 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6007 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6008 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6009 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6010 argument so the function fits the prototype in the architecture
6011 vector.
6012 (mcore_pop_frame): Remove argument so the function fits the
6013 prototype. Use get_current_frame instead of the argument.
6014 (mcore_push_arguments): Change type of struct_return so the
6015 function can be used in the architecture vector.
6016 (mcore_store_struct_return): Add.
6017 (mcore_frame_init_saved_regs): Add.
6018 (mcore_gdbarch_init): Add function calls to replace the macros
6019 removed from tm-mcore.h
6020
36160dc4
AC
60212002-07-03 Andrew Cagney <ac131313@redhat.com>
6022
6023 * infcmd.c (print_return_value): Remove compatibility code calling
6024 deprecated_grub_regcache_for_registers.
6025
6026 * values.c: Include "regcache.h".
6027 (value_being_returned): Update. Use
6028 deprecated_grub_regcache_for_registers to extract the register
6029 buffer address.
6030 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6031 ``struct regcache''.
6032 * Makefile.in (values.o): Add dependency on $(regcache_h).
6033
6034 * inferior.h (run_stack_dummy): Change type of second parameter to
6035 a ``struct regcache''.
6036 * valops.c (hand_function_call): Change type of retbuf to ``struct
6037 regcache''. Allocate using regcache_xmalloc, clean using
6038 make_cleanup_regcache_xfree.
6039 * infcmd.c (run_stack_dummy): Update. Use
6040 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6041
6042 * regcache.c (do_regcache_xfree): New function.
6043 (make_cleanup_regcache_xfree): New function.
6044 * regcache.h (make_cleanup_regcache_xfree): Declare.
6045
e64d9b3d
MH
60462002-07-03 Martin M. Hunt <hunt@redhat.com>
6047
4dd79c29
MH
6048 * event-top.c (command_line_handler): Don't read past
6049 beginning of buffer.
e64d9b3d 6050
4dd79c29
MH
60512002-07-03 Martin M. Hunt <hunt@redhat.com>
6052
e64d9b3d
MH
6053 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6054 struct frame_id.
6055 (varobj_create): Store frame_id for root.
6056 (varobj_gen_name): Use xasprintf.
6057 (varobj_update): Save and restore frame using get_frame_id() and
6058 frame_find_by_id().
6059 (create_child): Use xasprintf.
6060 (new_root_variable): Initialize frame_id.
6061 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6062 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6063 to prevent memory leak.
6064
26e6c56a
AC
60652002-07-03 Andrew Cagney <ac131313@redhat.com>
6066
6067 * valops.c (hand_function_call): Move declaration of retbuf to
6068 start of function, allocate using malloc, add a cleanup but before
6069 the inf_status cleanup, cleanup the buffer. Rename local variable
6070 old_chain to inf_status_cleanup.
6071
f436dd25
MH
60722002-07-03 Martin M. Hunt <hunt@redhat.com>
6073
6074 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6075
6076 * cli/cli-decode.c (cmd_func_p): New function.
6077 (cmd_func): New function.
6078
6079 * command.h: Add cmd_func() and cmd_func_p().
6080
4cfe2084
GS
60812002-07-03 Grace Sainsbury <graces@redhat.com>
6082
6083 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6084 (REGISTER_SIZE): Remove.
6085 (MAX_REGISTER_RAW_SIZE): Remove.
6086 (REGISTER_VIRTUAL_TYPE): Remove.
6087 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6088 (REGISTER_NAME): Remove.
6089 (USE_GENERIC_DUMMY_FRAMES): Remove.
6090 (CALL_DUMMY): Remove.
6091 (CALL_DUMMY_START_OFFSET): Remove.
6092 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6093 (CALL_DUMMY_LOCATION): Remove.
6094 (FIX_CALL_DUMMY): Remove.
6095 (CALL_DUMMY_ADDRESS): Remove.
6096 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6097 (SAVE_DUMMY_FRAME_TOS): Remove.
6098 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6099 (mcore_register_virtual_type): New function.
6100 (mcore_register_byte): New function.
6101 (mcore_register_size): New function.
6102 (mcore_register_name): New function.
6103 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6104 macros removed from tm-mcore.h.
6105 (mcore_dump_tdep): Add.
6106 (_initialize_mcore_tdep): Add gdbarch_register call.
6107
4fd667e9
MK
61082002-07-03 Mark Kettenis <kettenis@gnu.org>
6109
6110 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6111 frameless_look_for_prologue, such that we actually call this
6112 function.
6113
42f99ac2
JB
61142002-07-02 Joel Brobecker <brobecker@gnat.com>
6115
6116 * frame.h (frame_address_in_block): New function.
6117
6118 * blockframe.c (frame_address_in_block): New function extracted
6119 from get_frame_block().
6120 (get_frame_block): Use frame_address_in_block().
6121 (block_innermost_frame): Use frame_address_in_block() to match
6122 the frame pc address against the block boundaries rather than
6123 the frame pc directly. This prevents a failure when a frame pc
6124 is actually a return-address pointing immediately after the end
6125 of the given block.
6126
103a1597 61272002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
6128
6129 * MAINTAINERS: Add self under write after approval.
6130
61312002-07-02 Grace Sainsbury <graces@redhat.com>
6132
103a1597
GS
6133 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6134 used in architecture vector. The default is
6135 m68k_local_breakpoint_from_pc.
6136 (m68k_local_breakpoint_from_pc): Add.
6137 (enum): Add register numbers from tm-m68k.h.
6138 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6139 vector.
6140 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6141 GDB_MULTI_ARCH_PARTIAL.
6142 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6143 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6144 m68k-tdep.c.
6145 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6146 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6147 to enum in m68k-tdep.c
6148
7a5a0534
JB
61492002-07-02 Joel Brobecker <brobecker@gnat.com>
6150
6151 * solib-osf.c (open_map): Compute the list of shared libraries
6152 loaded by the inferior, rather than the list of libraries loaded
6153 by GDB itself. Otherwise, GDB ends up reading the symbols from
6154 the wrong shared libraries...
6155
6f558d74
MK
61562002-07-02 Mark Kettenis <kettenis@gnu.org>
6157
b7d15bf7
MK
6158 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6159 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6160 macros.
6161 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6162 Remove functions.
6163 (FRAMELESS_SIGNAL): Remove function.
6164 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6165 i386_linux_saved_pc_after_call): Removed.
6166 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6167 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6168 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6169
6bff26de
MK
6170 * i386-tdep.c (i386_frameless_signal_p): New function.
6171 (i386_frame_chain): Deal with frameless signals.
6172 (i386_sigtramp_saved_sp): New function.
6173 (i386_frame_saved_pc): Deal with frameless signals.
6174 (i386_saved_pc_after_call): Make sure the correct value is
6175 returned just after entry into a sigtramp.
6176 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6177 i386fbsd4_sc_sp_offset): New variables.
6178 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6179 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6180 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6181 similiar to what we already did for sc_pc_offset.
6182 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6183 tdep->sc_sp_offset.
6184
6f558d74
MK
6185 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6186
145564b7
ML
61872002-07-02 Michal Ludvig <mludvig@suse.cz>
6188
6189 * config/i386/tm-x86-64linux.h: New.
6190 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6191 definitions.
6192 * config/i386/nm-x86-64.h: Rename to ...
6193 * config/i386/nm-x86-64linux.h: ... this one.
6194 * config/i386/x86-64linux.mh: Reflect the above change.
6195
3a1e71e3
MK
61962002-07-01 Mark Kettenis <kettenis@gnu.org>
6197
21d0e8a4
MK
6198 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6199 with sigcontext_addr. Add sc_sp_offset.
6200 (i386bsd_sigtramp_saved_pc): Remove prototype.
6201 (i386bsd_sicontext_addr): Add prototype.
6202 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6203 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6204 (i386_svr4_sigtramp_saved_pc): Removed.
6205 (i386_svr4_sigcontext_addr): New function.
6206 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6207 Initialize tdep->sigcontext_addr instead. Initialize
6208 tdep->sc_pc_offset and tdep->sc_sp_offset.
6209 (i386_gdbarch_init): Likewise.
6210 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6211 any more.
6212 (i386bsd_sigtramp_saved_pc): Remove function.
6213 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6214 Initialize tdep->sigcontext_addr instead. Initialize
6215 tdep->sc_pc_offset.
6216 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6217 of tdep->sigtramp_saved_pc.
6218 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6219 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6220 instead.
6221
3a1e71e3
MK
6222 * i386-tdep.c (i386_frameless_function_invocation,
6223 i386_frame_num_args, i386_frame_init_saved_regs,
6224 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6225 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6226 i386_extract_return_value, i386_store_return_value,
6227 i386_extract_struct_value_address, i386_register_virtual_type,
6228 i386_register_convertible, i386_register_convert_to_virtual,
6229 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6230 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6231 static.
6232
52e9098c
MK
62332002-07-01 Mark Kettenis <kettenis@gnu.org>
6234
77b13a25
MK
6235 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6236
52e9098c
MK
6237 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6238 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6239 this macro. Include "value.h".
6240
1b372fff
AS
62412002-06-30 Aidan Skinner <aidan@velvet.net>
6242
6243 * ada-exp.tab.c: remove as it's a generated file
6244 * ada-lex.c: remove as it's a generated file
6245
9c5045b5
MK
62462002-06-30 Mark Kettenis <kettenis@gnu.org>
6247
4a93c5bb
MK
6248 * config/i386/tm-i386.h (struct frame_info, struct
6249 frame_saved_regs, struct value, struct type): Remove forward
6250 declarations.
6251
322d4fe0
MK
6252 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6253 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6254 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6255 (FILL_FPXREGSET): Define.
6256
fdd8263d
MK
6257 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6258
482e577b
MK
6259 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6260 i[3456]86-*-netbsd* case.
6261 * config/i386/tm-obsd.h: Removed.
6262 * config/i386/obsd.mt: Removed.
6263 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6264 core-aout.o.
6265 (MH_CFLAGS): Add -DYYDEBUG=0.
6266
6916549a
MK
6267 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6268 i386nbsd_sc_pc_offset on OpenBSD too.
6269
9c5045b5
MK
6270 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6271 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6272 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6273 define.
6274 * i386bsd-tdep.c: Include "arch-utils.h".
6275 (i386bsd_aout_in_solib_call_trampoline): New function.
6276 (i386bsd_init_abi): Set in_solib_call_trampoline to
6277 i386bsd_aout_in_solib_call_trampoline.
6278 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6279 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6280
aa84d1bb
AC
62812002-06-28 Andrew Cagney <ac131313@redhat.com>
6282
6283 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6284 (struct obstack, struct bcache): Add opaque declarations.
6285 * Makefile.in (macrotab_h): Update
6286
b4d83933
AC
62872002-06-28 Andrew Cagney <ac131313@redhat.com>
6288
6289 * blockframe.c (generic_find_dummy_frame): Change return type to
6290 ``struct regcache''.
6291 (struct dummy_frame): Replace field ``registers'' with regcache, a
6292 struct regcache object.
6293 (generic_find_dummy_frame): Update.
6294 (generic_push_dummy_frame): Update. Use regcache_xfree,
6295 regcache_xmalloc and regcache_cpy.
6296 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6297 regcache_xfree.
6298 (deprecated_generic_find_dummy_frame): Update.
6299 (generic_read_register_dummy): Update. Use
6300 regcache_read_as_address.
6301 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6302 (generic_get_saved_register): Update. Use regcache_read.
6303
08c0b5bc
AC
63042002-06-28 Andrew Cagney <ac131313@redhat.com>
6305
6306 * Makefile.in (objfiles_h): Add $(bcache_h).
6307 * objfiles.h: Include "bcache.h".
6308
6309 * Makefile.in (symtab_h): Remove $(bcache_h).
6310 * symtab.h: Do not include "bcache.h".
6311
1f89801a
AC
63122002-06-28 Andrew Cagney <ac131313@redhat.com>
6313
6314 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6315 generic_func_frame_chain_valid.
6316
b9644b58
DB
63172002-06-28 David O'Brien <obrien@FreeBSD.org>
6318
6319 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6320 * config/i386/tm-fbsd.h: Likewise.
6321
dd486634
AC
63222002-06-28 Andrew Cagney <ac131313@redhat.com>
6323
6324 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6325 generic_unwind_get_saved_register.
6326
0b434a00
AC
63272002-06-27 Andrew Cagney <ac131313@redhat.com>
6328
6329 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6330 * regcache.c (supply_register): Add missing argument to
6331 register_buffer call.
6332
f30e5a77
AC
63332002-06-27 Andrew Cagney <ac131313@redhat.com>
6334
6335 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6336 Solaris /bin/grep does not not like it. From Peter Schauer.
6337
9f064c95
TT
63382002-06-26 Tom Tromey <tromey@redhat.com>
6339
6340 * command.h (add_setshow_cmd): Declare.
6341 (add_setshow_cmd_full): Declare.
6342 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6343 returns void. Use add_setshow_cmd_full.
6344 (add_setshow_cmd_full): New function.
6345 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6346 (add_setshow_boolean_cmd): Likewise.
6347
099c7589
JT
63482002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6349
6350 * config/vax/tm-vax.h: Protect from multiple inclusion.
6351 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6352 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6353 * config/vax/tm-vaxbsd.h: ...here. New file.
6354 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6355
1d049c5e
JT
63562002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6357
6358 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6359 (BELIEVE_PCC_PROMOTION): Remove.
6360 (AP_REGNUM): Move to...
6361 * config/vax/nm-vax.h: ...here.
6362 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6363 (vax_breakpoint_from_pc): New function.
6364 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6365 and gdbarch_believe_pcc_promotion.
6366
4791e091
JT
63672002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6368
6369 * Makefile.in (vax_tdep_h): Define.
6370 (vax-tdep.o): Use $(vax_tdep_h).
6371 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6372 (vax_dump_tdep): New function.
6373 (_initialize_vax_tdep): Register vax_dump_tdep.
6374 * vax-tdep.h: Include osabi.h.
6375 (struct gdbarch_tdep): New.
6376
da130f98
AC
63772002-06-26 Andrew Cagney <cagney@redhat.com>
6378
6379 * frame.h (deprecated_generic_find_dummy_frame): Rename
6380 generic_find_dummy_frame.
6381 * blockframe.c (generic_find_dummy_frame): Make static.
6382 (deprecated_generic_find_dummy_frame): New function.
6383 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6384 generic_find_dummy_frame with deprecated_find_dummy_frame.
6385 (sh64_nofp_frame_init_saved_regs): Ditto.
6386 (sh_fp_frame_init_saved_regs): Ditto.
6387 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6388 (s390_frame_chain): Ditto.
6389 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6390
6300c360
GS
63912002-06-26 Grace Sainsbury <graces@redhat.com>
6392
6393 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6394 gdbarch vector are at the top.
6395 (NUM_REGS): Remove.
6396 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6397 (FRAME_ARGS_ADDRESS): Remove.
6398 (FRAME_LOCALS_ADDRESS): Remove.
6399 (FRAME_NUM_ARGS): Remove.
6400 (FRAME_ARGS_SKIP): Remove.
6401 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6402 (m68k_gdbarch_init): Add gdbarch initializations for macros
6403 undefined in tm-m68k.h
6404
1c617db8
GS
64052002-06-26 Grace Sainsbury <graces@redhat.com>
6406
6407 * monitor.h: Add the function regname to monitor_ops
6408 structure. This way NUM_REGS does not have to be a constant.
6409 * monitor.c (monitor_fetch_register): Added support for regname
6410 function. The function is called if the array regnames is NULL.
6411 (monitor_store_register): Same.
da130f98
AC
6412 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6413 regnames array.
1c617db8
GS
6414 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6415 cpu32bug_cmds.regname to point to new function.
6416 * abug-rom.c (abug_regname): Same as above.
6417 (init_abug_cmds): Same.
6418 * dbug-rom.c (dbug_regname): Same as above.
6419 (init_dbug_cmds): Same.
6420 * remote-est.c (est_regname): Same.
6421 (init_est_cmds): Same.
6422 * rom68k-rom.c (rom68k_regname): Same.
6423 (init_rom68k_cmds): Same.
6424
ea9365bb
TT
64252002-06-25 Tom Tromey <tromey@redhat.com>
6426
6427 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6428
72cec141
AC
64292002-06-25 Andrew Cagney <cagney@redhat.com>
6430
6431 * infrun.c (stop_registers): Change variable's type to ``struct
6432 regcache'''.
6433 (xmalloc_inferior_status): Delete function.
6434 (free_inferior_status): Delete function.
6435 (normal_stop): Use regcache_cpy.
6436 (struct inferior_status): Change type of fields ``stop_registers''
6437 and ``registers'' to ``struct regcache''.
6438 (write_inferior_status_register): Use regcache_write.
6439 (save_inferior_status): Instead of calling
6440 xmalloc_inferior_status, allocate the inf_status buffer directly.
6441 Use regcache_dup_no_passthrough and regcache_dup to save the
6442 buffers.
6443 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6444 Replace the stop_registers regcache instead of overriding it. Use
6445 regcache_xfree. Instead of calling free_inferior_status, xfree
6446 the buffer directly.
6447 (discard_inferior_status): Use regcache_xfree. Instead of calling
6448 free_inferior_status, xfree the buffer directly.
6449 (build_infrun): Use regcache_xmalloc.
6450 (_initialize_infrun): Delete redundant call to build_infrun.
6451
6452 * Makefile.in (infcmd.o): Add $(regcache_h).
6453
6454 * infcmd.c: Include "regcache.h".
6455 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6456 obtain the address of `stop_registers' register buffer.
6457 (print_return_value): Ditto.
6458
6459 * inferior.h (struct regcache): Add opaque declaration.
6460 (stop_registers): Change variable's declared type to ``struct
6461 regcache''.
6462
defc6f8c
TT
64632002-06-24 Tom Tromey <tromey@redhat.com>
6464
c0e624e7
TT
6465 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6466 * target.c (initialize_targets): Fixed typo in
6467 trust-readonly-sections `show' documentation.
6468
defc6f8c
TT
6469 * main.c: Marked all strings with _().
6470
2b236d82
DH
64712002-06-24 Don Howard <dhoward@redhat.com>
6472
6473 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6474 that means max CORE_ADDR+1.
6475 (lookup_mem_region): Ditto.
6476 (mem_info_command): Ditto.
6477
942dc0e9
GS
64782002-06-24 Grace Sainsbury <graces@redhat.com>
6479
6480 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6481 (REGISTER_BYTES_OK): Remove.
6482 (REGISTER_BYTES): Remove.
6483 (STORE_STRUCT_RETURN): Remove.
6484 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6485 (STORE_RETURN_VALUE): Remove.
6486 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6487 (FRAME_CHAIN): Remove.
6488 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6489 (FRAME_SAVED_PC): Remove.
6490 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6491 (m68k_store_struct_return): Add.
6492 (m68k_deprecated_extract_return_value): Add.
6493 (m68k_deprecated_extract_struct_value_address): Add.
6494 (m68k_store_return_value): Add.
6495 (m68k_frame_chain): Add.
6496 (m68k_frameless_function_invocation): Add.
6497 (m68k_frame_saved_pc): Add.
6498 (m68k_gdbarch_init): added set_gdbarch calls for new
6499 functions and deleted macros.
6500
03c30d4d
TT
65012002-06-23 Tom Tromey <tromey@redhat.com>
6502
6503 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6504 (ALLDEPFILES): Likewise.
6505 (udiheaders): Removed.
6506 (udip2soc.o): Likewise.
6507 (udi2go32.o): Likewise.
6508 (udr.o): Likewise.
6509 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6510
37e71372
AC
65112002-06-22 Andrew Cagney <ac131313@redhat.com>
6512
06a6ac57
AC
6513 * infrun.c (_initialize_infrun): Delete unnecessary call to
6514 build_infrun.
6515
37e71372
AC
6516 * regcache.h: Update comments describing the regcache_cpy family
6517 of functions.
6518 (regcache_save, regcache_restore): Delete declaration.
6519 (regcache_save_no_passthrough): Delete declaration.
6520 (regcache_restore_no_passthrough): Delete declaration.
6521 * regcache.c (regcache_save): Delete function.
6522 (regcache_save_no_passthrough): Delete function.
6523 (regcache_restore): Delete function.
6524 (regcache_restore_no_passthrough): Delete function.
6525
78f6d055
AC
65262002-06-21 Andrew Cagney <ac131313@redhat.com>
6527
6528 * config/m68k/tm-m68k.h: Fix typo.
6529 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6530 (m68k_frame_init_saved_regs): Declare.
6531
78b119cb
JB
65322002-06-21 Jim Blandy <jimb@redhat.com>
6533
6534 Remove some vestiges of Harris 88k support.
6535 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6536 register numbering quirk.
6537 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6538 odd symbols occurring in Harris 88k ELF targets.
6539
0fbb3da7
TT
65402002-06-21 Tom Tromey <tromey@redhat.com>
6541
6542 * gdb_locale.h: New file.
6543 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6544 (defs_h): Added gdb_locale.h.
6545 * configure, config.in: Rebuilt.
6546 * configure.in (PACKAGE): Define.
6547 * defs.h: Include gdb_locale.h.
6548 * main.c (captured_main): Call setlocale, bindtextdomain,
6549 textdomain.
6550
456f8b9d
DB
65512002-06-21 Dave Brolley <brolley@redhat.com>
6552
6553 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6554 * config/frv/frv.mt: New file.
6555 * config/frv/tm-frv.h: New file.
6556 * configure.tgt: Support frv-*-*.
6557 * Makefile.in (frv-tdep.o): New target.
6558 * frv-tdep.c: New file.
6559 * NEWS: Mention frv.
6560
cdd463f9
DB
65612002-06-21 Dave Brolley <brolley@redhat.com>
6562
6563 * MAINTAINERS: Add self to "Write After Approval" list.
6564
5d3ed2e3
GS
65652002-06-21 Grace Sainsbury <graces@redhat.com>
6566
6567 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6568 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6569 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6570 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6571 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6572
6573 * m68k-tdep.c: Include arch-utils.h
6574 (m68k_register_raw_size): Add.
6575 (m68k_register_virtual_size): Add.
6576 (m68k_register_virtual_type): Add.
6577 (m68k_register_name): Add.
6578 (m68k_stack_align): Add.
6579 (m68k_register_byte): Add.
6580 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6581 tm-m68k.h.
6582
7f8e7424
GS
65832002-06-21 Grace Sainsbury <graces@redhat.com>
6584
a2c6a6d5 6585 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6586 m68k_find_saved_regs.
6587 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6588 references to it with frame->saved_regs.
7f8e7424
GS
6589 (m68k_gdbarch_init): Added function calls to initialize the
6590 gdbarch structure.
a2c6a6d5
GS
6591 (m68k_fix_call_dummy): Add.
6592 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6593 (CALL_DUMMY): Remove.
6594 (CALL_DUMMY_LENGTH): Remove.
6595 (CALL_DUMMY_START_OFFSET): Remove.
6596 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6597 (FIX_CALL_DUMMY): Remove.
6598 (PUSH_DUMMY_FRAME): Remove.
6599 (POP_FRAME): Remove.
7f8e7424 6600
f461f5cf
PM
66012002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6602
6603 * parse.c (parse_fprintf): New function used to avoid calls to
6604 fprintf in bison parser generated debug code.
6605 * parser-defs.h: Declaration of new parse_fprintf function.
6606 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6607 Set YYDEBUG to 1 by default.
6608 Set YYFPRINTF as parse_fprintf.
6609
7f0c12ed
ML
66102002-06-21 Michal Ludvig <mludvig@suse.cz>
6611
6612 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6613 encoding anymore.
6614 (pointer_encoding, enum ptr_encoding): New.
6615 (execute_cfa_program): Take care about pointer encoding.
6616 (dwarf2_build_frame_info): Only call parse_frame_info for
6617 .debug_frame and .eh_frame.
6618 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6619 fixed augmentation handling, added relative addressing,
6620 ignore duplicate FDEs. Added comments.
19d833a2 6621 * dwarf2cfi.c: Reindented.
7f0c12ed 6622
87c4a039
EZ
66232002-06-20 Elena Zannoni <ezannoni@redhat.com>
6624
6625 * event-top.c (command_handler): Don't use space_at_cmd_start
6626 unless there is sbrk() on the host. Assign time and space data
6627 to union fields of the appropriate length.
6628
1cf877ad
ML
66292002-06-20 Michal Ludvig <mludvig@suse.cz>
6630
6631 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6632 x86_64_register_name. Return type changed to 'const char *'.
6633 (x86_64_register_name2nr): Rename to x86_64_register_number.
6634 (x86_64_gdbarch_init): Update to reflect the change.
6635 * x86-64-tdep.h: Ditto.
6636 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6637 (supply_fpregset): Ditto.
6638
3fadccb3
AC
66392002-06-19 Andrew Cagney <cagney@redhat.com>
6640
6641 * regcache.h: Update copyright.
6642 (struct regcache, struct gdbarch): Add opaque declarations.
6643 (current_regcache): Declare global variable.
6644 (regcache_read, regcache_write): Add gdbarch parameter.
6645 (regcache_save, regcache_save_no_passthrough)
6646 (regcache_restore, regcache_restore_no_passthrough)
6647 (regcache_dup, regcache_dup_no_passthrough)
6648 (regcache_cpy, regcache_cpy_no_passthrough)
6649 (deprecated_grub_regcache_for_registers)
6650 (deprecated_grub_regcache_for_register_valid)
6651 (regcache_valid_p): Add function declarations.
6652
6653 * regcache.c: Update copyright.
6654 (regcache_descr_handle): New global variable.
6655 (struct regcache_descr): Define.
6656 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6657 (regcache_descr, xfree_regcache_descr): New functions.
6658 (struct regcache): Define.
6659 (regcache_xmalloc, regcache_xfree): New functions.
6660 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6661 (regcache_dup, regcache_dup_no_passthrough): New functions.
6662 (regcache_valid_p, regcache_read_as_address): New functions.
6663 (deprecated_grub_regcache_for_registers): New function.
6664 (deprecated_grub_regcache_for_register_valid): New function.
6665 (current_regcache): New global variable.
6666 (register_buffer): Add regcache parameter. Update calls.
6667 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6668 (read_register_gen, write_register_gen): Update register_buffer
6669 call. Test for legacy_p instead of gdbarch_register_read_p or
6670 gdbarch_register_write_p.
6671 (regcache_collect): Update register_buffer call.
6672 (build_regcache): Rewrite. Use deprecated grub functions.
6673 (regcache_save, regcache_save_no_passthrough): New functions.
6674 (regcache_restore, regcache_restore_no_passthrough): New
6675 functions.
6676 (_initialize_regcache): Create the regcache_data_handle. Swap
6677 current_regcache global variable.
6678
6679 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6680 parameter to regcache_read and regcache_write calls.
6681 (sh4_register_read): Ditto.
6682 (sh64_pseudo_register_read): Ditto.
6683 (sh64_register_read): Ditto.
6684 (sh_pseudo_register_write): Ditto.
6685 (sh4_register_write): Ditto.
6686 (sh64_pseudo_register_write): Ditto.
6687 (sh64_register_write): Ditto.
6688
6689 * defs.h (XCALLOC): Define.
6690
152d9db6
GS
66912002-06-19 Grace Sainsbury <graces@redhat.com>
6692
6693 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6694 * m68k-tdep.c (m68k_gdbarch_init): Added.
6695 (m68k_dump_tdep): Added.
6696
170911c7
DJ
66972002-06-19 Daniel Jacobowitz <drow@mvista.com>
6698
6699 * ada-lang.c (fill_in_ada_prototype): Update comment.
6700
2e4ebe70
DJ
67012002-06-19 Daniel Jacobowitz <drow@mvista.com>
6702
6703 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6704 MIPS_ABI_LAST.
6705 (mips_abi_string, mips_abi_strings): New.
6706 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6707 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6708 tdep->mips_abi_string. Honor mips_abi_string. Default to
6709 O32 if no ABI is found.
6710 (mips_dump_tdep): Use mips_abi_strings.
6711 (mips_abi_update): New function.
6712 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6713 ``set mips abi'' and ``show mips abi''. Check the size of
6714 mips_abi_strings.
6715
16775908
AC
67162002-06-19 Andrew Cagney <cagney@redhat.com>
6717
6718 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6719 constant.
6720
5051bfa4 67212002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6722
5051bfa4
JB
6723 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6724 current frame using only the first stack size adjustment. All
6725 subsequent size adjustments are not considered to be part of
6726 the "static" part of the current frame.
6727 Compute the address of the saved registers relative to the
6728 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6729 in use in this frame.
6730
56468235
DH
67312002-06-18 Don Howard <dhoward@redhat.com>
6732
6733 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6734 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6735 suggesting this solution.
6736
0b624158
AC
67372002-06-18 Andrew Cagney <ac131313@redhat.com>
6738
6739 * config/romp/xm-rtbsd.h: Delete file.
6740 * config/romp/rtbsd.mh: Delete file.
6741
221ea385
KS
67422002-06-18 Keith Seitz <keiths@redhat.com>
6743
6744 * breakpoint.c (condition_command): Post breakpoint_modify
6745 when a condition is added to an existing breakpoint.
6746 (commands_command): Likewise for commands.
6747 (set_ignore_count): Likewise for ignore counts.
6748 If no tty, do not simply return, still need to send event
6749 notification.
6750 (ignore_command): Only print a newline if the command came
6751 from a tty.
6752 Don't call breakpoints_changed, since this is now properly
6753 handled by set_ignore_count.
6754
5402eed1
AC
67552002-06-18 Andrew Cagney <cagney@redhat.com>
6756
6757 * MAINTAINERS: Note that cris-elf target can be compiled with
6758 -Werror.
6759 * cris-tdep.c (cris_register_name): Make return type constant.
6760 (cris_breakpoint_from_pc): Ditto.
6761
cc22880b
ML
67622002-06-18 Michal Ludvig <mludvig@suse.cz>
6763
6764 * frame.h (struct frame_info): Change type of context to
6765 'struct context'.
6766
fa88f677
AC
67672002-06-17 Andrew Cagney <cagney@redhat.com>
6768
6769 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6770 pointer.
6771 * gdbarch.h, gdbarch.c: Regenerate.
6772 * config/mips/tm-mips.h (mips_register_name): Update.
6773 * i386-tdep.h (i386_register_name): Update.
6774 * mips-tdep.c (mips_register_name): Update
6775 * alpha-tdep.c (alpha_register_name): Update.
6776 * arch-utils.c (legacy_register_name): Update.
6777 * arch-utils.h (legacy_register_name): Update.
6778 * avr-tdep.c (avr_register_name): Update.
6779 * ia64-tdep.c (ia64_register_name): Update.
6780 * i386-tdep.c (i386_register_name): Update.
6781 * sparc-tdep.c (sparc32_register_name): Update.
6782 (sparc64_register_name): Update.
6783 (sparclite_register_name): Update.
6784 (sparclet_register_name): Update.
6785 * sh-tdep.c (sh_generic_register_name): Update.
6786 (sh_sh_register_name): Update.
6787 (sh_sh3_register_name): Update.
6788 (sh_sh3e_register_name): Update.
6789 (sh_sh_dsp_register_name): Update.
6790 (sh_sh3_dsp_register_name): Update.
6791 (sh_sh4_register_name): Update.
6792 (sh_sh64_register_name): Update.
6793 * s390-tdep.c (s390_register_name): Update.
6794 * rs6000-tdep.c (rs6000_register_name): Update.
6795 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6796 (ns32k_register_name_32382): Update.
6797 * d10v-tdep.c (d10v_ts2_register_name): Update.
6798 (d10v_ts3_register_name): Update.
6799 * xstormy16-tdep.c (xstormy16_register_name): Update.
6800 * vax-tdep.c (vax_register_name): Update.
6801 * v850-tdep.c (v850_register_name): Update.
6802 * m68hc11-tdep.c (m68hc11_register_name): Update.
6803 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6804 (am33_register_name): Update.
6805
ea1e7ef6
GS
68062002-06-17 Grace Sainsbury <graces@redhat.com>
6807
6808 * m68k-tdep.c: Reindented.
6809
9b02dd1b
AC
68102002-06-17 Andrew Cagney <ac131313@redhat.com>
6811
6812 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6813 list of predefined types.
6814
8758dec1
MK
68152002-06-16 Mark Kettenis <kettenis@gnu.org>
6816
b6197528
MK
6817 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6818 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6819 REGISTER_CONVERT_TO_RAW): Remove defines.
6820 (i386_register_virtual_type, i386_register_convertible,
6821 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6822 Remove prototypes.
6823 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6824 macros mentioned above.
6825
82b47e62
MK
6826 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6827 (i386lynx_saved_pc_after_call): Remove prototype.
6828 * i386ly-tdep.c: Include "i386-tdep.h".
6829 (i386lynx_saved_pc_after_call): Make static. Use
6830 read_memory_nobpt instead of read_memory. Use
6831 read_memory_unsigned_integer instead of read_memory_integer.
6832 (i386lynx_init_abi): New function.
6833 (i386lynx_coff_osabi_sniffer): New function.
6834 (_initialize_i386bsd_tdep): New function.
6835
8758dec1
MK
6836 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6837 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6838 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6839 (i386_fix_call_dummy): Remove prototype.
6840 * i386-tdep.c (i386_call_dummy_words): New variable.
6841 (i386_gdbarch_init): Adjust for removal of the
6842 macros mentioned above.
6843
e9e68a56
AC
68442002-06-15 Andrew Cagney <ac131313@redhat.com>
6845
6846 * command.h (add_setshow_auto_boolean_cmd): Replace
6847 add_set_auto_boolean_cmd.
6848 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6849 add_set_auto_boolean_cmd.
6850 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6851 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6852 mask-address'' command.
6853 (show_mask_address): Add cmd parameter.
6854 * remote.c (add_packet_config_cmd): Update. Change type of
6855 set_func and show_func to cmd_sfunc_ftype.
6856 (_initialize_remote): Update `set remote Z-packet'
6857 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6858 (show_remote_protocol_e_packet_cmd): Ditto.
6859 (show_remote_protocol_E_packet_cmd): Ditto.
6860 (show_remote_protocol_P_packet_cmd): Ditto.
6861 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6862 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6863 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6864 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6865 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6866 (show_remote_protocol_Z_packet_cmd): Ditto.
6867 (show_remote_protocol_binary_download_cmd): Ditto.
6868 (show_remote_cmd): Pass NULL to all of above.
6869
fc08ec52
MK
68702002-06-15 Mark Kettenis <kettenis@gnu.org>
6871
6872 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6873 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6874 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6875 POP_FRAME): Remove defines.
6876 (i386_push_arguments, i386_store_struct_return,
6877 i386_extract_return_value, i386_store_return_value,
6878 i386_extract_struct_value_address, i386_push_dummy_frame,
6879 i386_pop_frame): Renove prototypes.
6880 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6881 macros mentioned above.
6882
e707bbc2
AC
68832002-06-15 Andrew Cagney <ac131313@redhat.com>
6884
6885 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6886 add_set_boolean_cmd.
6887 (add_setshow_cmd): New function.
6888 * command.h (add_setshow_boolean_cmd): Replace
6889 add_set_boolean_cmd.
6890 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6891 and ``set rdiromatzero''.
6892 * maint.c (_initialize_maint_cmds): Update commented out code.
6893 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6894 * target.c (initialize_targets): Update `set
6895 trust-readonly-sections'.
6896 * remote.c (_initialize_remote): Update `set remotebreak'.
6897
42fdc8df
MK
68982002-06-15 Mark Kettenis <kettenis@gnu.org>
6899
93924b6b
MK
6900 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6901 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6902 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6903 fit into multi-arch framework.
6904 (i386_breakpoint_from_pc): New function.
6905 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6906 above.
6907
42fdc8df
MK
6908 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6909 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6910 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6911 (i386_frameless_function_invocation, i386_frame_num_args,
6912 i386_frame_init_saved_regs): Remove prototypes.
6913 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6914 macros mentioned above.
6915
9773a94b
AC
69162002-06-15 Andrew Cagney <ac131313@redhat.com>
6917
6918 * cli/cli-decode.c (set_cmd_cfunc): Update.
6919 (set_cmd_sfunc): Update.
6920 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6921 (set_cmd_sfunc, set_cmd_cfunc): Update.
6922 * cli/cli-decode.h: Update.
6923
6e157172
MK
69242002-06-15 Mark Kettenis <kettenis@gnu.org>
6925
6926 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6927 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6928
7f19b9a2
AC
69292002-06-15 Andrew Cagney <ac131313@redhat.com>
6930
6931 * defs.h (auto_boolean): Declare enum.
6932 * command.h (cmd_auto_boolean): Delete enum.
6933 * mips-tdep.c (mask_address_var): Update.
6934 (mips_mask_address_p): Update.
6935 (show_mask_address): Update.
6936 * remote.c (struct packet_config): Update.
6937 (update_packet_config): Update.
6938 (show_packet_config_cmd): Update.
6939 (packet_ok): Update.
6940 (add_packet_config_cmd): Update.
6941 (_initialize_remote):
6942 * command.h: Update.
6943 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6944 (do_setshow_command): Update.
6945 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6946 * cli/cli-decode.h: Update.
6947
1cf88de5
MK
69482002-06-15 Mark Kettenis <kettenis@gnu.org>
6949
22ba8cf2
MK
6950 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6951 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6952 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6953 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6954 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6955 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6956
762c5349
MK
6957 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6958 list of DJGPP COFF targets.
6959
091198bb
MK
6960 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6961 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6962 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6963 (FP0_REGNUM): Remove define.
6964 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6965 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6966 (i386_register_virtual_size): Remove protoype.
6967 * i386-tdep.c (i386_register_virtual_size): Removed.
6968 (i386_extract_return_value, i386_store_return_value): Use
6969 FP0_REGNUM instead of NUM_FREGS to determine whether the
6970 floating-point registers are available.
6971 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6972 Adjust for removal of macros mentioned above.
6973
69742002-06-15 Mark Kettenis <kettenis@gnu.org>
6975
fcc9bf01
MK
6976 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6977 comments.
6978 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6979 Remove prototypes.
6980 (supply_gregset, fill_gregset): Remove use of register keyword and
6981 remove declaration for regmap. Use I386_NUM_GREGS instead of
6982 NUM_REGS and NUM_FREGS.
6983 (FPREGSET_FSAVE_OFFSET): Remove.
6984 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6985 NUM_FREGS to determine whether the floating-point registers are
6986 available.
6987
65e78234
MK
6988 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6989 gnu_store_registers): Replace usage of NUM_GREGS with
6990 I386_NUM_GREGS.
6991
98df6387
MK
6992 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6993 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6994 usage of NUM_GREGS with I386_NUM_GREGS.
6995
099a9414
MK
6996 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6997
57976e88
MK
6998 * i386bsd-nat.c: Include "i386-tdep.h".
6999 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7000 I386_NUM_GREGS.
7001
b335f4a6
MK
7002 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7003 and associated comment. They no longer make any sense, since we
7004 don't use this file anymore on Linux.
7005
1cf88de5
MK
7006 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7007 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7008 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7009 elements in these arrays.
7010 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7011 MAX_NUM_REGS.
7012
daa66587
MK
70132002-06-15 Mark Kettenis <kettenis@gnu.org>
7014
7015 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7016 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7017
26e9b323
AC
70182002-06-14 Andrew Cagney <cagney@redhat.com>
7019
7020 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7021 EXTRACT_RETURN_VALUE.
7022 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7023 EXTRACT_STRUCT_VALUE_ADDRESS.
7024 * gdbarch.h, gdbarch.c: Regenerate.
7025
7026 * values.c (value_being_returned): Handle
7027 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7028 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7029
7030 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7031 * arm-tdep.c (arm_gdbarch_init): Update.
7032 * avr-tdep.c (avr_gdbarch_init): Update.
7033 * cris-tdep.c (cris_gdbarch_init): Update.
7034 * d10v-tdep.c (d10v_gdbarch_init): Update.
7035 * ia64-tdep.c (ia64_gdbarch_init): Update.
7036 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7037 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7038 * s390-tdep.c (s390_gdbarch_init): Update.
7039 * sh-tdep.c (sh_gdbarch_init): Update.
7040 * s390-tdep.c (s390_gdbarch_init): Update.
7041 * sparc-tdep.c (sparc_gdbarch_init): Update.
7042 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7043 * v850-tdep.c (v850_gdbarch_init): Update.
7044 * vax-tdep.c (vax_gdbarch_init): Update.
7045 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7046 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7047
7048 * config/arc/tm-arc.h: Update.
7049 * config/d30v/tm-d30v.h: Update.
7050 * config/fr30/tm-fr30.h: Update.
7051 * config/h8300/tm-h8300.h: Update.
7052 * config/h8500/tm-h8500.h: Update.
7053 * config/i386/tm-i386.h: Update.
7054 * config/i386/tm-ptx.h: Update.
7055 * config/i386/tm-symmetry.h: Update.
7056 * config/i960/tm-i960.h: Update.
7057 * config/m32r/tm-m32r.h: Update.
7058 * config/m68k/tm-delta68.h: Update.
7059 * config/m68k/tm-linux.h: Update.
7060 * config/m68k/tm-m68k.h: Update.
7061 * config/m88k/tm-m88k.h: Update.
7062 * config/mcore/tm-mcore.h: Update.
7063 * config/mips/tm-mips.h: Update.
7064 * config/mn10200/tm-mn10200.h: Update.
7065 * config/pa/tm-hppa.h: Update.
7066 * config/pa/tm-hppa64.h: Update.
7067 * config/sparc/tm-sp64.h: Update.
7068 * config/sparc/tm-sparc.h: Update.
7069 * config/sparc/tm-sparclet.h: Update.
7070 * config/z8k/tm-z8k.h: Update.
7071
5179e78f
AC
70722002-06-14 Andrew Cagney <cagney@redhat.com>
7073
7074 * Makefile.in (i386_linux_tdep_h): Define.
7075 (i386_tdep_h, i387_tdep_h): Define.
7076 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7077 $(i386_tdep_h) and $(i387_tdep_h).
7078 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7079
8201327c
MK
70802002-06-14 Mark Kettenis <kettenis@gnu.org>
7081
edf393ac
MK
7082 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7083 Already covered by the default.
7084
896fb97d
MK
7085 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7086 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7087 (i386_gdbarch_init): Initialize long_double_format and long_double
7088 bit.
7089
8201327c
MK
7090 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7091 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7092 Move these to ...
7093 * config/i386/i386sol2.mh: ... here.
7094 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7095 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7096 (SIGCONTEXT_PC_OFFSET): Remove define.
7097 (IN_SIGTRAMP): Remove define.
7098 * i386-sol2-tdep.c: New file.
7099
7100 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7101 * config/i386/tm-i386nw.h: Removed.
7102
7103 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7104 USE_STRUCT_CONVENTION): Remove defines.
7105 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7106 (get_longjmp_target): Remove prototype.
7107 (IN_SIGTRAMP): Remove define.
7108 (i386bsd_in_sigtramp): Remove prototype.
7109 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7110 function. Update comment accordingly
7111 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7112 (FRAME_SAVED_PC): Remove define.
7113 (i386bsd_frame_saved_pc): Remove prototype.
7114 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7115 GET_LONGJMP_TARGET): Remove defines.
7116 (get_longjmp_target): Remove prototype.
7117 (IN_SIGTRAMP): Remove define.
7118 (i386bsd_in_sigtramp): Remove prototype.
7119 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7120 function. Update comment accordingly
7121 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7122 (FRAME_SAVED_PC): Remove define.
7123 (i386bsd_frame_saved_pc): Remove prototype.
7124 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7125 Remove prototype.
7126 (USE_STRUCT_CONVENTION): Remove prototype.
7127 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7128 declaration.
7129 (_initialize_i386bsd_nat): Revise logic to determine some
7130 constants at compile time when compiling a native GDB. Warn if
7131 things don't match up with what we expect.
7132 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7133 Remove variables.
7134 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7135 to use date stored in `struct gdbarch_tdep'.
7136 (i386bsd_sigcontext_offset): Remove varaible.
7137 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7138 stored in `struct gdbarch_tdep'.
7139 (i386bsd_frame_saved_pc): Make static.
7140 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7141 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7142 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7143 i386fbsd4_sc_pc_offset): New variables.
7144 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7145 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7146 functions.
7147 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7148 functions.
7149 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7150 Modify the value of i386fbsd_sigtramp_start and
7151 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7152 i386fbsd_sigtramp_end.
7153 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7154 function.
7155
7156 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7157 define to i386-linux-tdep.h.
7158 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7159 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7160 defines.
7161 (i386_linux_register_name, i386_linux_register_byte,
7162 i386_linux_register_raw_size): Remove prototypes.
7163 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7164 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7165 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7166 TARGET_WRITE_PC): Remove defines.
7167 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7168 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7169 i386_linux_write_pc): Remove prototypes.
7170 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7171 (get_longjmp_target): Remove prototype.
7172 * i386-linux-tdep.h: New file.
7173 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7174 * i386-linux-tdep.c: Include "i386-tdep.h" and
7175 "i386-linux-tdep.h".
7176 (i386_linux_register_name, i386_linux_register_byte,
7177 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7178 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7179 Make static.
7180 (i386_linux_init_abi): New function.
7181 (_initialize_i386_linux_tdep): New function.
7182
7183 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7184 (i386_saved_pc_after_call): Remove prototype.
7185 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7186 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7187 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7188 (i386_register_name, i386_stab_reg_to_regnum,
7189 i386_dwarf_reg_to_regnum): Remove prototypes.
7190 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7191 SIZEOF_SSE_REGS): Remove defines.
7192 (REGISTER_BYTES): Remove define.
7193 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7194 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7195 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7196 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7197 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7198 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7199 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7200 (get_longjmp_target): Remove prototype.
7201 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7202 (sigtramp_saved_pc): Remove define.
7203 (i386v4_sigtramp_saved_pc): Remove prototype.
7204 * config/i386/tm-go32.h (FRAME_CHAIN,
7205 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7206 (i386go32_frame_saved_pc): Remove prototype.
7207 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7208 (get_longjmp_target): Remove prototype.
7209 * i386-tdep.h: Include "osabi.h".
7210 (enum i386_abi): Removed.
7211 (enum struct_return): New enum.
7212 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7213 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7214 sc_pc_offset members.
7215 (i386_gdbarch_register_os_abi): Remove prototype.
7216 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7217 I386_SSE_NUM_REGS): New defines.
7218 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7219 I386_SSE_SIZEOF_REGS): New defines.
7220 (i386_register_name, i386_register_byte, i386_register_raw_size):
7221 New prototypes.
7222 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7223 (i386bsd_sigtramp_saved_pc): New prototype.
7224 * i386-tdep.c: Don't include "elf-bfd.h".
7225 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7226 i386_frame_chain, i386_saved_pc_after_call): Make static.
7227 (i386_frame_saved_pc): Rewrite to call architecture dependent
7228 function to deal with signal handlers. Make static.
7229 (i386go32_frame_saved_pc): Removed.
7230 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7231 Removed.
7232 (i386_get_longjmp_target): New function.
7233 (default_struct_convention, pcc_struct_convention,
7234 reg_struct_convention, valid_conventions, struct_convention): New
7235 variables.
7236 (i386_use_struct_convention): New function.
7237 (i386v4_sigtramp_saved_pc): Renamed to
7238 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7239 (i386_pc_in_sigtramp): New function.
7240 (i386_abi_names): Removed.
7241 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7242 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7243 Removed.
7244 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7245 i386_gdbarch_register_os_abi): Removed.
7246 (struct i386_abi_handler): Removed.
7247 (i386_abi_handler_list): Removed.
7248 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7249 functions.
7250 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7251 i386_nw_init_abi): New functions.
7252 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7253 Use set_gdbarch_xxx() calls instead of relying on macros for a
7254 number of calls.
7255 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7256 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7257 Register the various architecture variants defined in this file.
7258
ad2f7632
DJ
72592002-06-14 Daniel Jacobowitz <drow@mvista.com>
7260
7261 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7262 (struct main_type): Remove arg_types member. Update comments for
7263 struct field.
7264 (TYPE_ARG_TYPES): Remove.
7265 (TYPE_FN_FIELD_ARGS): Update.
7266 (smash_to_method_type): Update prototype.
7267
7268 * c-typeprint.c (cp_type_print_method_args): Take method type
7269 instead of argument list. Use new argument layout. Simplify.
7270 (c_type_print_args): Use new argument layout. Simplify.
7271 (c_type_print_base): Update call to cp_type_print_method_args.
7272 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7273 argument; use die->type instead. Update call to
7274 smash_to_method_type.
7275 (read_structure_scope): Update call to dwarf2_add_member_fn.
7276 * gdbtypes.c (allocate_stub_method): Update comment.
7277 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7278 Use new argument layout.
7279 (check_stub_method): Use new argument layout. Don't count
7280 void as an argument.
7281 (print_arg_types): Update comments. Use new argument layout.
7282 (recursive_dump_type): Don't print arg_types member.
7283 * hpread.c (hpread_read_struct_type): Use new argument layout.
7284 (fixup_class_method_type): Likewise.
7285 (hpread_type_lookup): Likewise.
7286 * stabsread.c (read_type): Update calls to read_args and
7287 smash_to_method_type.
7288 (read_args): Use new argument layout. Simplify.
7289 * valops.c (typecmp): Use new argument layout. Update parameters
7290 and comments. Simplify.
7291 (hand_function_call): Use new argument layout.
7292 (search_struct_method): Update call to typecmp.
7293 (find_overload_match): Use new argument layout.
7294
6da02953
DJ
72952002-06-13 Daniel Jacobowitz <drow@mvista.com>
7296
7297 * NEWS: Mention multithreaded debug support for gdbserver.
7298
519b2366
DJ
72992002-06-13 Daniel Jacobowitz <drow@mvista.com>
7300
7301 * MAINTAINERS: Mention NEWS.
7302
6c0d6680
DJ
73032002-06-13 Daniel Jacobowitz <drow@mvista.com>
7304
7305 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7306 (struct mips_objfile_private, compare_pdr_entries): New.
7307 (non_heuristic_proc_desc): Read the ".pdr" section if it
7308 is present.
7309
6529d2dd
AC
73102002-06-12 Andrew Cagney <ac131313@redhat.com>
7311
7312 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7313 (arm_debug): New static variable.
7314 (_initialize_arm_tdep): Add ``set debug arm'' command.
7315
26216b98
AC
73162002-06-12 Andrew Cagney <ac131313@redhat.com>
7317
7318 * Makefile.in (sim_arm_h): Define.
7319 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7320 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7321 (arm_register_sim_regno): New function, map an internal REGNUM
7322 onto a simulator register number.
7323 (arm_gdbarch_init): Set register_sim_regno.
7324
814b3ba0
AH
73252002-06-09 Aldy Hernandez <aldyh@redhat.com>
7326
7327 * MAINTAINERS: Add self.
7328
475b0867
JB
73292002-06-11 Jim Blandy <jimb@redhat.com>
7330
919d772c
JB
7331 * source.c (source_info): Mention whether the symtab has
7332 information about preprocessor macros.
7333
475b0867
JB
7334 Call the command `info macro', not `show macro'.
7335 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7336 Fix error message.
7337 (_initialize_macrocmd): Register `info_macro_command' in
7338 `infolist', not `showlist'.
7339
9e364162
DJ
73402002-06-11 Daniel Jacobowitz <drow@mvista.com>
7341
7342 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7343 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7344 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7345 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7346 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7347 unconditionally.
7348 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7349 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7350 (_initialize_mips_tdep): Remove dead code.
7351 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7352 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7353 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7354 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7355 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7356 MIPS_LAST_FP_ARG_REGNUM): Remove.
7357
23aa4c72
ML
73582002-06-11 Michal Ludvig <mludvig@suse.cz>
7359
7360 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7361 (unwind_tmp_obstack_free, parse_frame_info)
7362 (update_context, cfi_read_fp, cfi_write_fp)
7363 (cfi_frame_chain, cfi_init_extra_frame_info)
7364 (cfi_virtual_frame_pointer): Use the above function.
264d1763 7365 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 7366
70eb15a4
CV
73672002-06-11 Corinna Vinschen <vinschen@redhat.com>
7368
7369 * v850-tdep.c (v850_type_is_scalar): New function.
7370 (v850_use_struct_convention): Match current gcc implementation
7371 as close as possible.
7372 (v850_push_arguments): Fix stack_offset handling. Don't write
7373 struct_addr into register. This is done by v850_store_struct_return.
7374 (v850_extract_return_value): Care for structs.
7375 (v850_store_return_value): Ditto.
7376 (v850_store_struct_return): Actually write address.
7377
482a4d06
ML
73782002-06-11 Michal Ludvig <mludvig@suse.cz>
7379
7380 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7381 without debug information too.
7382
d855c300
AC
73832002-06-10 Andrew Cagney <ac131313@redhat.com>
7384
7385 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7386 Make multi-arch pure.
7387 * gdbarch.h, gdbarch.c: Re-generate.
7388 * arm-tdep.c (arm_print_float_info): Update.
7389 * arch-utils.h (default_print_float_info): Update.
7390 * arch-utils.c (default_print_float_info): Update.
7391 * infcmd.c (float_info): Update call.
7392
dd12a101
AC
73932002-06-10 Andrew Cagney <ac131313@redhat.com>
7394
7395 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7396 the front of the initialize list.
7397
101dcfbe
AC
73982002-06-10 Andrew Cagney <ac131313@redhat.com>
7399
7400 * infrun.c (struct inferior_status): Replace fields
7401 selected_frame_address and selected_level with field
7402 selected_frame_id.
7403 (save_inferior_status): Update. Use get_frame_id.
7404 (struct restore_selected_frame_args): Delete.
7405 (restore_selected_frame): Update. Use frame_find_by_id.
7406 (restore_inferior_status): Update.
7407
7408 * breakpoint.h (struct breakpoint): Change type of
7409 watchpoint_frame to frame_id.
7410 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7411 call to get_current_frame.
7412 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7413 get_current_frame.
7414 (watchpoint_check): Use frame_find_by_id.
7415
7416 * frame.h (record_selected_frame): Delete declaration.
7417 * stack.c (record_selected_frame): Delete function.
7418
7419 * frame.h (struct frame_id): Define.
7420 (get_frame_id): Declare.
7421 (frame_find_by_id): Declare.
7422 * frame.c (frame_find_by_id): New function.
7423 (get_frame_id): New function.
7424
304270b6
AV
74252002-06-10 Andrey Volkov <avolkov@transas.com>
7426
7427 * ser-e7kpc.c: Fix duplicated define and call of
7428 _initialize_ser_e7000pc
7429
2f2cf184
DJ
74302002-06-09 Daniel Jacobowitz <drow@mvista.com>
7431
7432 * signals/signals.c (target_signal_from_host): Fix #ifdef
7433 SIGRTMIN case.
7434 (do_target_signal_to_host): Likewise.
7435
caaa3122
DJ
74362002-06-09 Daniel Jacobowitz <drow@mvista.com>
7437
7438 * mips-tdep.c (mips_find_abi_section): New function.
7439 (mips_gdbarch_init): Call it.
7440
6ac5df3a
MK
74412002-06-09 Mark Kettenis <kettenis@gnu.org>
7442
7443 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7444 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7445 after Andrew's 2002-06-08 gdbarch change.
7446
82ea117a
MK
74472002-06-09 Mark Kettenis <kettenis@gnu.org>
7448
7449 * i386-linux-nat.c (suppy_gregset): Don't supply
7450 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7451 register cache.
7452 (fill_gregset): Don't fetch it under the same circumstances.
7453
3c25f8c7
AC
74542002-06-09 Andrew Cagney <cagney@redhat.com>
7455
7456 * Makefile.in (callback_h): Define.
7457 (remote_sim_h): Update path to remote-sim.h.
7458 (remote-rdp.o): Add $(callback_h).
7459 (remote-sim.o): Use $(callback_h).
7460 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7461 * remote-rdp.c: Include "gdb/callback.h".
7462
1029b7fa
MK
74632002-06-09 Mark Kettenis <kettenis@gnu.org>
7464
7465 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7466 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7467
616675d3
AC
74682002-06-08 Andrew Cagney <ac131313@redhat.com>
7469
a3efda28
AC
7470 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7471 * rdi-share/serpardr.c: Ditto.
7472 * rdi-share/unixcomm.c: Ditto.
7473 * rdi-share/serdrv.c: Ditto.
7474 * rdi-share/hostchan.h: Ditto.
7475 * rdi-share/hostchan.c: Ditto.
7476 * rdi-share/host.h: Ditto.
7477 * rdi-share/devsw.c: Ditto.
7478
c5f10366
AC
7479 * objfiles.h: Change type of obj_private to void pointer.
7480 * pa64solib.c: Update copyright. Don't include "assert.h", use
7481 strcmp instead of STREQ, use LONGEST, do not use PTR
7482 * somsolib.c: Ditto.
7483
616675d3
AC
7484 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7485 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7486 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7487
e4b415d9
AC
74882002-06-08 Andrew Cagney <ac131313@redhat.com>
7489
7490 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7491 (default_get_saved_register): Delete function.
7492 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7493 generic_unwind_get_saved_register.
7494 * gdbarch.h, gdbarch.c: Re-generate.
7495
ca0d0b52
AC
74962002-06-08 Andrew Cagney <ac131313@redhat.com>
7497
7498 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7499 generic_func_frame_chain_valid.
7500 * gdbarch.h, gdbarch.c: Re-generate.
7501 * blockframe.c (generic_func_frame_chain_valid): Only check
7502 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7503 passing FP to PC_IN_CALL_DUMMY.
7504 Fix PR gdb/360.
7505
76860b5f
AC
75062002-06-08 Andrew Cagney <ac131313@redhat.com>
7507
7508 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7509 (register_gdbarch_data): Initialize init_p.
7510 (gdbarch_data): Initialize data pointer using the init function.
7511 (init_gdbarch_data): Delete function.
7512 (gdbarch_update_p): Update.
7513 (initialize_non_multiarch): Update.
7514 (struct gdbarch): Add field initialized_p.
7515 * gdbarch.h, gdbarch.c: Re-generate.
7516
8dda9770
ML
75172002-06-07 Michal Ludvig <mludvig@suse.cz>
7518
7519 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7520 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7521 better do the things actually here.
7522 * x86-64-tdep.c (x86_64_register_name2nr): New.
7523 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7524 (x86_64_gdbarch_init): Respect the above change.
7525 * x86-64-tdep.h (x86_64_register_name2nr)
7526 (x86_64_register_nr2name): Add prototypes.
7527 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7528
3d79a47c
MS
75292002-06-06 Michael Snyder <msnyder@redhat.com>
7530
7bd91a28
MS
7531 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7532 Delete extra braces and re-indent.
7533 (d10v_store_return_value): Char return values
3d79a47c
MS
7534 must be shifted over by one byte in R0.
7535 (d10v_extract_return_value): Delete extra braces, re-indent.
7536
095a4c96
EZ
75372002-06-06 Elena Zannoni <ezannoni@redhat.com>
7538
7539 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7540 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7541 (d10v_integer_to_address): Rewrite.
7542 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7543 the d10v specific functions which take care of converting to the
7544 correct space.
7545
e8a77ca4
EZ
75462002-06-06 Elena Zannoni <ezannoni@redhat.com>
7547
7548 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7549 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7550
4f2e4a4f
AC
75512002-06-02 Andrew Cagney <ac131313@redhat.com>
7552
7553 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7554 includes.
7555 * config/tm-linux.h: Ditto.
7556 * config/alpha/tm-alphalinux.h: Ditto.
7557 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7558 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7559 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7560 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7561 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7562 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7563 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7564 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7565 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7566 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7567 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7568 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7569 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7570 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7571 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7572 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7573 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7574 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7575 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7576 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7577 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7578 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7579 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7580 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7581 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7582 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7583 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7584 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7585 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7586 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7587 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7588 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7589 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7590 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7591 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7592 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7593 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7594
ae2ab2ce
AS
75952002-05-04 Aidan Skinner <aidan@velvet.net>
7596
7597 * ada-exp.tab.c: New file
7598 * ada-exp.y: New file
7599 * ada-lang.c: New file
7600 * ada-lang.h: New file
7601 * ada-lex.c: New file
7602 * ada-lex.l: New file
7603 * ada-tasks.c: New file
7604 * ada-typeprint.c: New file
7605 * ada-valprint.c: New file
7606
0ddd0135
JT
76072002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7608
7609 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7610 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7611
750fbacc
JT
76122002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7613
7614 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7615 insetead of ppc-linux-tdep.o.
7616 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7617 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7618
df94e18a
AC
76192002-06-02 Andrew Cagney <ac131313@redhat.com>
7620
7621 2002-05-07 Christian Groessler <chris@groessler.org>
7622 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7623 bit register contents for little endian hosts.
7624
1a38ab75
AC
76252002-06-01 Andrew Cagney <ac131313@redhat.com>
7626
7627 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7628 any maintainer.
7629
8b1632ac
AC
76302002-06-01 Andrew Cagney <ac131313@redhat.com>
7631
7632 * gdbarch.h: Regenerate.
7633
627054c8
AC
76342002-06-01 Andrew Cagney <ac131313@redhat.com>
7635
7636 * MAINTAINERS: Add everyone to write-after-approval list.
7637
4f460812
AC
76382002-06-01 Andrew Cagney <ac131313@redhat.com>
7639
7640 * stack.c (frame_info): Use frame_register_unwind instead of
7641 saved_regs. Mention when the SP is on the stack or in a register.
7642
7643 * frame.h (frame_register_unwind_ftype): Define. Document.
7644 (struct frame_info): Add field register_unwind and
7645 register_unwind_cache.
7646 (frame_register_unwind): Declare.
7647 (generic_unwind_get_saved_register): Declare.
7648
7649 * frame.c (frame_register_unwind): New function.
7650 (generic_unwind_get_saved_register): New function.
7651
7652 * blockframe.c (generic_call_dummy_register_unwind): New function.
7653 (frame_saved_regs_register_unwind): New function.
7654 (set_unwind_by_pc): New function.
7655 (create_new_frame): New function.
7656 (get_prev_frame): New function.
7657
de888f76
AC
76582002-05-30 Andrew Cagney <ac131313@redhat.com>
7659
7660 * a29k-share/: Delete directory.
7661 * remote-vx29k.c: Delete file.
7662
2f2c3626
JT
76632002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7664
7665 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7666 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7667
9ce5c36a
JT
76682002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7669
7670 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7671 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7672 (sparc64nbsd-nat.o)
7673 (sparcnbsd-nat.o)
7674 (sparcnbsd-tdep.o): New dependency lists.
7675 * NEWS: Note new UltraSPARC NetBSD native configuration.
7676 * configure.host (sparc64-*-netbsd*): New host.
7677 * configure.tgt (sparc-*-netbsdelf*)
7678 (sparc-*-netbsd*): Set gdb_target to nbsd.
7679 (sparc64-*-netbsd*): New target.
7680 * sparc64nbsd-nat.c: New file.
7681 * sparcnbsd-nat.c: New file.
7682 * sparcnbsd-tdep.c: New file.
7683 * sparcnbsd-tdep.h: New file.
7684 * config/sparc/nbsd.mt: New file.
7685 * config/sparc/nbsd64.mh: New file.
7686 * config/sparc/nbsd64.mt: New file.
7687 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7688 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7689 (HOST_IPC): Remove.
7690 * config/sparc/nbsdaout.mt: Remove.
7691 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7692 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7693 (HOST_IPC): Remove.
7694 * config/sparc/nbsdelf.mt: Remove.
7695 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7696 sparc-nat.c compatiblity defines.
7697 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7698 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7699 * config/sparc/tm-nbsd64.h: New file.
7700 * config/sparc/tm-nbsdaout.h: Remove.
7701 * config/sparc/xm-nbsd.h: Remove.
7702
ef3cf062
JT
77032002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7704
7705 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7706 * sparc-tdep.c: Include osabi.h.
7707 (gdbarch_tdep): Add osabi member.
7708 (_initialize_sparc_tdep): Use gdbarch_register.
7709 (sparc_gdbarch_init): Use generic OS ABI framework.
7710 (sparc_dump_tdep): New function.
7711
ee8ff470
KB
77122002-05-30 Kevin Buettner <kevinb@redhat.com>
7713
7714 * corefile.c (do_captured_read_memory_integer): Return non-zero
7715 result.
7716 (safe_read_memory_integer): Copy result of memory read when
7717 status is non-zero. Also, add comments.
7718
7b112f9c
JT
77192002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7720
7721 * Makefile.in (ppc_tdep_h): Define.
7722 (ppc-linux-nat.o)
7723 (ppc-linux-tdep.o)
7724 (rs6000-tdep.o): Use $(ppc_tdep_h).
7725 (ppc-sysv-tdep.o)
7726 (ppcnbsd-nat.o)
7727 (ppcnbsd-tdep.o): New dependency lists.
7728 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7729 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7730 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7731 (ppc_sysv_abi_broken_use_struct_convention)
7732 (ppc_sysv_abi_use_struct_convention)
7733 (ppc_sysv_abi_push_arguments): Move to...
7734 * ppc-sysv-tdep.c: ...here.
7735 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7736 * rs6000-tdep.c (process_note_abi_tag_sections)
7737 (get_elfosabi): Remove.
7738 (rs6000_gdbarch_init): Use generic OS ABI framework.
7739 (rs6000_dump_tdep): New function.
7740 (_initialize_rs6000_tdep): Use gdbarch_register.
7741 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7742 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7743 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7744 of ppc-linux-tdep.o.
7745 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7746 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7747 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7748 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7749 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7750 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7751
480dd42a
JB
77522002-05-29 Jim Blandy <jimb@redhat.com>
7753
7754 * macroscope.c (default_macro_scope): Put `void' in empty argument
7755 list.
7756
4182591f
AC
77572002-05-29 Andrew Cagney <ac131313@redhat.com>
7758
7759 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7760 * arch-utils.c: Include "sim-regno.h".
7761 * gdbarch.sh: Don't include "sim-regno.h".
7762 * gdbarch.h, gdbarch.c: Regenerate.
7763 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7764 here.
7765 * arch-utils.h (legacy_register_sim_regno): To here.
7766 * remote-sim.c (legacy_register_sim_regno): Move function from
7767 here.
7768 * arch-utils.c (legacy_register_sim_regno): To here.
7769
8238d0bf
AC
77702002-05-28 Andrew Cagney <ac131313@redhat.com>
7771
7772 * sim-regno.h: New file.
7773 * Makefile.in (sim_regno_h): Define.
7774 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7775 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7776 (legacy_register_sim_regno): New function.
7777 (one2one_register_sim_regno): New function.
7778 (gdbsim_fetch_register): Rewrite.
7779 (gdbsim_store_register): Only store a register when
7780 REGISTER_SIM_REGNO is valid.
7781 * d10v-tdep.c: Include "sim-regno.h".
7782 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7783 (d10v_ts3_register_sim_regno): Ditto.
7784 * gdbarch.sh: Include "sim-regno.h".
7785 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7786 * gdbarch.h, gdbarch.c: Regenerate.
7787 * arch-utils.h (default_register_sim_regno): Delete declaration.
7788 * arch-utils.c (default_register_sim_regno): Delete function.
7789
485721b1
JT
77902002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7791
7792 * ppcnbsd-nat.c: Rewrite.
7793 * ppcnbsd-tdep.c: New file.
7794 * ppcnbsd-tdep.h: New file.
7795 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7796 solib.o, and solib-svr4.o.
7797 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7798 nbsd-tdep.o, and corelow.o.
7799
697f244d
AC
78002002-05-28 Andrew Cagney <ac131313@redhat.com>
7801
7802 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7803 `tr' and `sed'. Mention that `broken' targets are not expected to
7804 build.
7805
f08caad1 78062002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
7807
7808 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7809 Let PC point right after the prologue before looking up symbols.
7810
3139facc
MH
78112002-05-27 Martin M. Hunt <hunt@redhat.com>
7812
7813 * i386-tdep.c (i386_register_virtual_type): Return
7814 builtin_type_vec128i for SSE registers.
7815
7816 * gdbtypes.h (builtin_type_vec128i): Declare.
7817
7818 * gdbtypes.c (build_builtin_type_vec128i): New function.
7819 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7820 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7821 (build_gdbtypes): Initialize new builtin vector types.
7822 (_initialize_gdbtypes): Register new vector types with gdbarch.
7823
6e3ba3b8
JT
78242002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7825
7826 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7827 since it has been multi-arch'd.
7828 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7829 Move Alpha and VAX multi-arch news entries to same section
7830 as other multi-arch news.
7831
93d5585d
JT
78322002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7833
7834 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7835 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7836 static. Rename some register numbers to put them in ns32k-tdep
7837 private namespace.
7838 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7839 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7840 functions.
7841 (_initialize_ns32k_tdep): Use gdbarch_register.
7842 * ns32k-tdep.h: New file.
7843 * ns32knbsd-tdep.c: New file.
7844 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7845 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7846 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7847 REGISTER_BYTES, REGISTER_BYTE): Remove.
7848 * config/ns32k/tm-ns32k.h: New file.
7849 * config/ns32k/tm-umax.h: Remove.
7850
efb2c70e
JT
78512002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7852
7853 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7854 ns32k_store_struct_return, ns32k_extract_return_value,
7855 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7856 functions.
7857 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7858 ns32k_saved_pc_after_call.
7859 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7860 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7861 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7862 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7863 ns32k_extract_struct_value_address.
7864
7bcc927b
JT
78652002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7866
7867 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7868 ns32k_fix_call_dummy): New.
7869 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7870 ns32k_call_dummy_words.
7871 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7872 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7873 CALL_DUMMY_NARGS): Remove.
7874 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7875
78f9d765
JT
78762002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7877
7878 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7879 ns32k_frame_saved_pc, ns32k_frame_args_address,
7880 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7881 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7882 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7883 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7884 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7885 (BREAKPOINT): Remove..
7886 (FRAME_CHAIN): Define as ns32k_frame_chain.
7887 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7888 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7889 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7890 (FRAME_FIND_SAVED_REGS): Remove.
7891 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7892 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7893 (POP_FRAME): Define as ns32k_pop_frame.
7894
f2c762e0
JT
78952002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7896
7897 * ns32k-tdep.c (ns32k_register_byte_32082,
7898 ns32k_register_byte_32382, ns32k_register_raw_size,
7899 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7900 functions.
7901 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7902 ns32k_register_byte_32382.
7903 * config/ns32k/tm-umax.h: Update copyright years.
7904 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7905 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7906 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7907 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7908 (ns32k_get_enter_addr): Fix prototype.
7909
af137673
JT
79102002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7911
7912 * ns32k-tdep.c: Update copyright years.
7913 (ns32k_register_name_32082): New function.
7914 (ns32k_register_name_32382): Ditto.
7915 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7916 (REGISTER_NAME): Define as ns32k_register_name_32382.
7917 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7918 (REGISTER_NAME): Define as ns32k_register_name_32082.
7919
a8bc7b56
JB
79202002-05-24 Jim Blandy <jimb@redhat.com>
7921
7922 * dwarf2read.c (free_line_header): Use xfree, not free.
7923
83a45910
JT
79242002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7925
7926 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7927 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7928
0db71247
AC
79292002-05-23 Andrew Cagney <ac131313@redhat.com>
7930
7931 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7932
b9e5e4dd
AC
79332002-05-23 Andrew Cagney <ac131313@redhat.com>
7934
7935 From Ross Alexander at NEC Europe:
7936 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7937
de530e84
MS
79382002-05-23 Michael Snyder <msnyder@redhat.com>
7939
7940 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7941 for input, rather than parse_and_eval_address.
7942
b91b96f4
AC
79432002-05-23 Andrew Cagney <ac131313@redhat.com>
7944
7945 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7946 * Makefile.in (sim_d10v_h): Update definition.
7947
8b279e7a
AC
79482002-05-24 Andrew Cagney <cagney@redhat.com>
7949
7950 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7951 change `2002-05-22 Michael Snyder' below.
7952 (d10v_push_arguments): Ditto.
7953 (d10v_extract_return_value): Ditto.
7954
0a3d0425
JB
79552002-05-23 Jim Blandy <jimb@redhat.com>
7956
7957 * macrotab.c (check_for_redefinition): Don't complain if the new
7958 definition is the same as the previous one. Take more arguments
7959 to allow the comparison.
7960 (macro_define_object, macro_define_function): Pass more arguments
7961 to check_for_redefinition.
7962
78eac43e
MS
79632002-05-22 Michael Snyder <msnyder@redhat.com>
7964
7965 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7966 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7967 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7968 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7969 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7970 Add a temp variable to save a call (and a memory read).
7971 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7972 if possible (so that PC_IN_CALL_DUMMY will work).
7973
9bc1edb8
CV
79742002-05-22 Corinna Vinschen <vinschen@redhat.com>
7975
7976 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7977
005ef3d2
ML
79782002-05-22 Michal Ludvig <mludvig@suse.cz>
7979
7980 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7981 fde->cie_ptr.
7982 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7983 (dwarf2_build_frame_info): Add offset to fde->initial_location
7984 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
7985 (execute_stack_op): Change type of 'result' from ULONGEST to
7986 CORE_ADDR.
005ef3d2 7987
fcf4f891
JT
79882002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7989
7990 * config/alpha/tm-nbsd.h: Include solib.h.
7991
cfef91e4
JT
79922002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7993
7994 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7995 assumptions about the host's byte order.
7996
9964235a
JT
79972002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7998
7999 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8000 to dependency list.
8001 * alphanbsd-tdep.c: Include solib-svr4.h.
8002 * shnbsd-tdep.c: Ditto.
8003
9eeef8ef
JT
80042002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8005
8006 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8007 nbsd-tdep.h to dependency list.
8008 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8009 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8010 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8011 nbsdaout.mh and nbsdelf.mh consistently.
8012 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8013 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8014 nbsdaout.mt and nbsdelf.mh consistently.
8015 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8016 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8017 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8018 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8019 a.out shared library stuff from here...
8020 * config/nm-nbsdaout.h: ...to here.
8021 * config/tm-nbsd.h: Remove.
8022 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8023 * config/arm/nbsd.mh: Remove.
8024 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8025 nbsd-tdep.o.
8026 * config/arm/nbsdaout.mh: New file.
8027 * config/arm/nbsdelf.mh: New file.
8028 * config/arm/nm-nbsdaout.h: New file.
8029 * config/i386/nbsd.mh: Remove.
8030 * config/i386/nbsd.mt: Remove.
8031 * config/i386/nbsdaout.mh: New file.
8032 * config/i386/nbsdaout.mt: New file.
8033 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8034 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8035 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8036 i386_register_u_addr): Remove.
8037 * config/i386/nm-nbsdaout.h: New file.
8038 * config/i386/nm-nbsdelf.h: Remove.
8039 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8040 (USE_STRUCT_CONVENTION): Remove.
8041 * config/i386/tm-nbsdaout.h: New file.
8042 * config/i386/tm-nbsdelf.h: Remove.
8043 * config/m68k/nbsd.mh: Remove.
8044 * config/m68k/nbsd.mt: Remove.
8045 * config/m68k/nbsdaout.mh: New file.
8046 * config/m68k/nbsdaout.mt: New file.
8047 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8048 * config/m68k/nm-nbsdaout.h: New file.
8049 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8050 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8051 * config/ns32k/nbsd.mh: Remove.
8052 * config/ns32k/nbsd.mt: Remove.
8053 * config/ns32k/nbsdaout.mh: New file.
8054 * config/ns32k/nbsdaout.mt: New file.
8055 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8056 * config/ns32k/nm-nbsdaout.h: New file.
8057 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8058 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8059 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8060 (SVR4_SHARED_LIBS): Remove.
8061 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8062 * config/sparc/nbsd.mh: Remove.
8063 * config/sparc/nbsd.mt: Remove.
8064 * config/sparc/nbsdaout.mh: New file.
8065 * config/sparc/nbsdaout.mt: New file.
8066 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8067 * config/sparc/nbsdelf.mt: New file.
8068 * config/sparc/nm-nbsdaout.h: New file.
8069 * config/sparc/nm-nbsdelf.h: Remove.
8070 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8071 * config/sparc/tm-nbsdaout.h: New file.
8072
257ce470
JT
80732002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8074
8075 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8076 mipsnbsd-tdep.c
8077 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8078
76a6d5fe
JT
80792002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8080
8081 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8082 shnbsd-nat.c.
8083 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8084
45888261
JT
80852002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8086
8087 * NEWS: Note new MIPS NetBSD native configuration.
8088 * configure.host (mips*-*-netbsd*): New host.
8089 * configure.tgt (mips*-*-netbsd*): New target.
8090 * mipsnbsd-nat.c: New file.
8091 * mipsnbsd-tdep.c: New file.
8092 * mipsnbsd-tdep.h: New file.
8093 * config/mips/nbsd.mh: New file.
8094 * config/mips/nbsd.mt: New file.
8095 * config/mips/nm-nbsd.h: New file.
8096 * config/mips/tm-nbsd.h: New file.
8097
70f80edf
JT
80982002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8099
8100 * Makefile.in (SFILES): Add osabi.c.
8101 (COMMON_OBS): Add osabi.o.
8102 (osabi.o): New dependency list.
8103 * osabi.c: New file.
8104 * osabi.h: New file.
8105 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8106
8107 * Makefile.in (alpha_tdep_h): Define and use instead of
8108 alpha-tdep.h.
8109 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8110 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8111 Remove.
8112 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8113 * alpha-tdep.h: Include osabi.h.
8114 (alpha_abi): Remove.
8115 (gdbarch_tdep): Use generic OS ABI framework.
8116 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8117 gdbarch_register_osabi.
8118 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8119 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8120 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8121
8122 * Makefile.in (sh_tdep_h): Add osabi.h.
8123 * sh-tdep.h (sh_osabi): Remove.
8124 (gdbarch_tdep): Use generic OS ABI framework.
8125 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8126 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8127 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8128 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8129
8130 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8131 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8132 gdbarch_register_osabi.
8133 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8134 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8135 (get_elfosabi): Rename to...
8136 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8137 ABI framework support routines.
8138 (arm_gdbarch_init): Use generic OS ABI framework.
8139 (arm_dump_tdep): Likewise.
8140 (_initialize_arm_tdep): Likewise.
8141 * arm-tdep.h: Include osabi.h.
8142 (arm_abi): Remove.
8143 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8144 osabi member.
8145 (arm_gdbarch_register_os_abi): Remove prototype.
8146 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8147 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8148
8149 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8150 * mips-tdep.c: Include osabi.h.
8151 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8152 OS ABI framework.
8153
d194345b
KH
81542002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8155
8156 * h8300-tdep.c: Fix formatting.
8157
70c6b0d1
EZ
81582002-05-20 Elena Zannoni <ezannoni@redhat.com>
8159
8160 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8161 printing vector registers.
8162
165b8e33
AC
81632002-05-19 Andrew Cagney <ac131313@redhat.com>
8164
8165 From Fernando Nasser:
8166 * remote.c (remote_async_open_1): Re-throw the exception when the
8167 connection fails.
8168 (remote_cisco_open): Ditto.
8169 (remote_open_1): Ditto.
8170
36918e70
AC
81712002-05-19 Andrew Cagney <ac131313@redhat.com>
8172
8173 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8174 (remote_start_remote): Add uiout parameter. Pass through to
8175 remote_start_remote_dummy.
8176 (remote_open_1): Use catch_exception instead of catch_errors.
8177 (remote_async_open_1): Ditto.
8178 (remote_cisco_open): Ditto.
8179
ae44c0c4
AC
81802002-05-19 Andrew Cagney <ac131313@redhat.com>
8181
8182 * remote.c (remote_start_remote): Replace PTR with void pointer.
8183 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8184 static.
8185
8efe637d
AC
81862002-05-18 Andrew Cagney <ac131313@redhat.com>
8187
8188 * gdb_indent.sh: Allow the script to be run in the sim directory.
8189
2f1b5984
MK
81902002-05-18 Mark Kettenis <kettenis@gnu.org>
8191
f0f625e2
MK
8192 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8193 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8194
2f1b5984
MK
8195 * corelow.c (core_open): Only call set_gdbarch_from_file if
8196 exec_bfd is NULL.
8197
fc974602
AV
81982002-05-17 Andrey Volkov <avolkov@transas.com>
8199
8200 * h8300-tdep.c: Add support of EXR register
8201 * config/h8300/tm-h8300.h: Ditto.
8202
906709f4
AV
82032002-05-17 Andrey Volkov <avolkov@transas.com>
8204
8205 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8206
6e591d68
AV
82072002-05-17 Andrey Volkov <avolkov@transas.com>
8208
8209 * h8300-tdep.c: Change literal regnums to REGNO.
8210
84f0252a
JB
82112002-05-17 Jim Blandy <jimb@redhat.com>
8212
e0e9281e
JB
8213 * NEWS: Note addition of macro support.
8214
84f0252a
JB
8215 Expand preprocessor macros in C expressions.
8216 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8217 (scan_macro_expansion, scanning_macro_expansion,
8218 finished_macro_expansion): New function declarations.
8219 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8220 variable declarations.
8221 * parser-defs.h (expression_context_pc): New declaration.
8222 * parse.c (expression_context_pc): New variable.
8223 (parse_exp_1): Set expression_context_pc, as well as
8224 expression_context_block.
8225 * c-exp.y (yylex): If we're not already reading the result of a
8226 macro expansion, try to macro-expand the next token. When we're
8227 done scanning a macro expansion, switch back to the mainline text.
8228 Commas and `if's in a macro's expansion don't terminate the input.
8229 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8230 (macro_original_text, macro_expanded_text,
8231 expression_macro_lookup_func, expression_macro_lookup_baton): New
8232 variables.
8233 (scan_macro_expansion, scanning_macro_expansion,
8234 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8235 c_preprocess_and_parse): New functions.
8236 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8237 c_preprocess_and_parse, instead of c_parse.
8238 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8239 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8240
1c509ca8
JR
8241Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8242
8243 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8244 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8245 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8246
2250ee0c
CV
82472002-05-17 Corinna Vinschen <vinschen@redhat.com>
8248
8249 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8250
ab3b8126
JT
82512002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8252
8253 * Makefile.in (sh_tdep_h): Define and use.
8254 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8255 register enum): Move to...
8256 * * sh-tdep.h: ...here.
8257 * sh-tdep.c: Include sh-tdep.h.
8258 * sh3-rom.c: Likewise.
8259 * shnbsd-tdep.c: Likewise.
8260
ed9d4749
MS
82612002-05-16 Michael Snyder <msnyder@redhat.com>
8262
8263 * arm-tdep.c: Spelling fix in comment.
8264
2e276125
JB
82652002-05-16 Jim Blandy <jimb@redhat.com>
8266
6821892e
JB
8267 Add commands for manually expanding macros and showing their
8268 definitions.
8269 * macrocmd.c, macroscope.c, macroscope.h: New files.
8270 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8271 (macroscope_h): New variable.
8272 (HFILES_NO_SRCDIR): Add macroscope.h.
8273 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8274 (macroscope.o, macrocmd.o): New rules.
8275
2e276125
JB
8276 Teach the Dwarf 2 reader to read macro information.
8277 * dwarf2read.c: #include "macrotab.h".
8278 (dwarf_macinfo_buffer): New variable.
8279 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8280 dwarf_macinfo_size.
8281 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8282 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8283 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8284 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8285 dwarf2_macro_spaces_in_definition): New complaints.
8286 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8287 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8288 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8289 the partial symbol table.
8290 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8291 from what's recorded in the partial symbol table.
8292 (read_file_scope): If the compilation unit has a
8293 `DW_AT_macro_info' attribute, read its macro information.
8294 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8295
2f53fe6c
DJ
82962002-05-16 Daniel Jacobowitz <drow@mvista.com>
8297
8298 Fix PR gdb/546
8299 * ser-tcp.c: Don't include <netinet/udp.h>.
8300
2be99286
SC
83012002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8302
8303 * MAINTAINERS: Update my email address.
8304
c9af212b 83052002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
8306
8307 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8308 include file of the same name.
8309
bf5f1a52
CV
83102002-05-16 Corinna Vinschen <vinschen@redhat.com>
8311
8312 * configure.tgt: Mark v850 as multi-arched.
8313 * config/v850/tm-v850.h: Remove file.
8314 * config/v850/v850.mt: Eliminate TM_FILE.
8315
435e042a
CV
83162002-05-16 Corinna Vinschen <vinschen@redhat.com>
8317
8318 * v850-tdep.c: Full multi-arch.
8319 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8320 Define GDB_MULTI_ARCH to 2.
8321
9819c6c8
PM
83222002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8323
8324 * p-exp.y (current_type): New static variable.
8325 Carries the type of the expression at the position that is parsed.
8326 (push_current_type, pop_current_type): Two new functions. Used
8327 to store/restore current_type in expression on specific tokens.
c9af212b
RE
8328 (search_field): New static variable. Set to one after parsing a point
8329 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
8330 (FIELDNAME): New token. After a point only a token belonging to
8331 current_type type definition is allowed.
8332 (all over token rules): reset and change current_type according
8333 to rules.
8334 (exp '[' rule): insert implicit array index field if
8335 exp is a pascal string type.
8336
3a06899a
CV
83372002-05-16 Corinna Vinschen <vinschen@redhat.com>
8338
8339 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8340 frame info. Use frame_info's saved_regs instead of matching member
8341 in extra_frame_info throughout.
8342 (v850_frame_init_saved_regs): New function.
8343 (v850_init_extra_frame_info): Move most functionality into
8344 v850_frame_init_saved_regs().
8345 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8346 (v850_frame_find_saved_regs): Remove declaration.
8347 (FRAME_FIND_SAVED_REGS): Remove definition.
8348 (v850_frame_init_saved_regs): Add declaration.
8349 (FRAME_INIT_SAVED_REGS): Add definition.
8350
6ed14b0e
CV
83512002-05-16 Corinna Vinschen <vinschen@redhat.com>
8352
8353 * v850-tdep.c: Begin multi-arch'ing v850.
8354 (v850_target_architecture_hook): Remove function.
8355 (v850_gdbarch_init): New function. Add code previously in
8356 v850_target_architecture_hook().
8357 (_initialize_v850_tdep): Don't set target_architecture_hook.
8358 Call register_gdbarch_init() instead.
8359
42725910
DJ
83602002-05-16 Daniel Jacobowitz <drow@mvista.com>
8361
8362 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8363 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8364 (fixup_class_method_type): Likewise.
8365
99d9066e
JB
83662002-05-15 Jim Blandy <jimb@redhat.com>
8367
8368 Add macro structures to GDB's symbol tables. Nobody puts anything
8369 in them yet.
8370 * symtab.h (struct symtab): New member: `macro_table'.
8371 * buildsym.h (pending_macros): New global variable.
8372 * buildsym.c: #include "macrotab.h".
8373 (buildsym_init): Initialize `pending_macros'.
8374 (end_symtab): If we found macro information while reading a CU's
8375 debugging info, do build a symtab structure for it. Make the
8376 symtab point to the macro information, and clear the
8377 `pending_macros' pointer which held it while we were reading the
8378 debug info.
8379 (really_free_pendings): Free any pending macro table.
8380 * objfiles.h (struct objfile): New member: `macro_cache'.
8381 * objfiles.c (allocate_objfile): Set allocate and free functions
8382 for the macro cache's objstack.
8383 (free_objfile): Empty the macro cache's obstack.
8384 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8385 set new allocate and free functions for it.
8386 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8387 free functions for the macro cache's objstack. (Why is this
8388 function building its own objfile?)
8389 * symmisc.c (print_objfile_statistics): Print statistics on the
8390 macro bcache.
8391 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8392
c899585b
RE
83932002-05-15 Richard Earnshaw <rearnsha@arm.com>
8394
8395 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8396 (REGISTER_U_ADDR): Delete definition.
8397 (arm_register_u_addr): Delete declaration.
8398
a6cdd8c5
RE
83992002-05-15 Richard Earnshaw <rearnsha@arm.com>
8400
8401 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8402 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8403
c97dcfc7
AC
84042002-05-14 Andrew Cagney <ac131313@redhat.com>
8405
8406 * regcache.c (register_valid): Revise comments refering to "Not
8407 available" and "unavailable".
8408 * frame.c (frame_register_read): Ditto.
8409 * findvar.c (value_of_register): Ditto.
8410
93021b7d
AC
84112002-05-15 Andrew Cagney <cagney@redhat.com>
8412
8413 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8414 (remote-sim.o): Update dependencies.
8415 (d10v-tdep.o): Specify dependencies.
8416 (sim_d10v_h): Define.
8417
a86bc61c
JB
84182002-05-14 Jim Blandy <jimb@redhat.com>
8419
8420 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8421 * macrotab.c (macro_lookup_inclusion, find_definition,
8422 new_macro_table): Same.
8423
8424 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8425 not `! strcmp ()'. This is a dubious improvement.
8426 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8427
8428 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8429 although it's not necessary, to avoid a warning.
8430
2fdde8f8
DJ
84312002-05-14 Daniel Jacobowitz <drow@mvista.com>
8432
8433 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8434 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8435 TYPE_INSTANCE_FLAGS.
8436 (struct main_type): New.
8437 (struct type): Move most members to struct main_type. Change
8438 cv_type and as_type to new type_chain member. Add instance_flags.
8439 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8440 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8441 (finish_cv_type): Remove prototype.
8442 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8443 Set TYPE_CHAIN.
8444 (alloc_type_instance): New function.
8445 (smash_type): New function.
8446 (make_pointer_type, make_reference_type, make_function_type)
8447 (smash_to_member_type, smash_to_method_type): Call smash_type.
8448 (make_qualified_type): New function.
8449 (make_type_with_address_space): Call make_qualified_type.
8450 (make_cv_type): Likewise.
8451 (finish_cv_type): Remove unnecessary function.
8452 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8453 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8454 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8455 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8456 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8457 * hpread.c (hpread_read_struct_type): Likewise.
8458 * stabsread.c (read_struct_type): Likewise.
8459
843fedf4
EZ
84602002-05-14 Elena Zannoni <ezannoni@redhat.com>
8461
8462 * configure.tgt: Add a catch all sh* target, for cases like
8463 sh[2,3,4]-elf and sh-hms.
8464
05a6c72c
KS
84652002-05-14 Keith Seitz <keiths@redhat.com>
8466
8467 * event-loop.c (create_file_handler): Don't do anything but
8468 update data when we are given a fd which we are already
8469 monitoring.
8470
5d085aaf
ML
84712002-05-14 Michal Ludvig <mludvig@suse.cz>
8472
8473 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8474 (update_context): Use __func__ in warnings.
8475
9db8d71f
DJ
84762002-05-14 Daniel Jacobowitz <drow@mvista.com>
8477
8478 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8479 and tcp_close to net_open and net_close.
8480 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8481 using UDP if requested. Don't try to disable Nagle on UDP
8482 sockets.
8483 * remote.c (remote_serial_open): New function. Warn about UDP.
8484 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8485
5dbc6baa
EZ
84862002-05-13 Elena Zannoni <ezannoni@redhat.com>
8487
8488 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8489
cc3023f7
EZ
84902002-05-13 Elena Zannoni <ezannoni@redhat.com>
8491
8492 * configure.tgt: Remove sh-hms target.
8493 * MAINTAINERS: Don't list sh-hms as a separate target.
8494
ec2bcbe7
JB
84952002-05-13 Jim Blandy <jimb@redhat.com>
8496
8497 Add first preprocessor macro-expansion files.
8498 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8499 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8500 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8501 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8502 (COMMON_OBS): Add macrotab.o, macroexp.o.
8503 (macroexp.o, macrotab.o): New rules.
8504
6d531722
AC
85052002-05-13 Andrew Cagney <ac131313@redhat.com>
8506
8507 * config/m88k/tm-m88k.h: Update copyright.
8508 (m88k_target_write_pc): Declare
8509 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8510 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8511 (SHIFT_INST_REGS): Update definition.
8512 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8513 using old definition of TARGET_WRITE_PC.
8514 * regcache.c (generic_target_write_pc): Delete code handling
8515 NNPC_REGNUM.
8516 * gdbarch.sh (NNPC_REGNUM): Delete.
8517 * gdbarch.h, gdbarch.c: Regenerate.
8518
3e3f2739
RE
85192002-05-13 Richard Earnshaw <rearnsha@arm.com>
8520
8521 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8522 builtin reg number.
8523
0004e5a2
DJ
85242002-05-13 Daniel Jacobowitz <drow@mvista.com>
8525
8526 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8527 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8528 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8529 access macros.
8530 * c-typeprint.c (cp_type_print_method_args): Likewise.
8531 (c_type_print_args): Likewise.
8532 * d10v-tdep.c (d10v_push_arguments): Likewise.
8533 (d10v_extract_return_value): Likewise.
8534 * expprint.c (print_subexp): Likewise.
8535 * gdbtypes.c (lookup_primitive_typename): Likewise.
8536 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8537 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8538 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8539 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8540 (TYPE_VECTOR): Likewise.
8541 * hpread.c (hpread_read_struct_type)
8542 (fix_static_member_physnames, fixup_class_method_type)
8543 (hpread_type_lookup): Likewise.
8544 * mdebugread.c (parse_symbol, parse_type): Likewise.
8545 * p-lang.c (is_pascal_string_type): Likewise.
8546 * valops.c (hand_function_call): Likewise.
8547 * x86-64-tdep.c (classify_argument): Likewise.
8548
8549 * hpread.c (hpread_read_function_type)
8550 (hpread_read_doc_function_type): Call replace_type.
8551 * dstread.c (create_new_type): Delete.
8552 (decode_dst_structure, process_dst_function): Call alloc_type.
8553 Use type access macros.
8554
dff95cc7
MK
85552002-05-12 Mark Kettenis <kettenis@gnu.org>
8556
8557 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8558 the're not supported by the current architecture.
8559 (i387_fill_fxsave): Likewise.
8560
bbcd32ad
FF
85612002-05-12 Fred Fish <fnf@redhat.com>
8562
8563 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8564 sect_index_xxx members to index the first slot in section_offsets
8565 if all of the section_offsets are zero.
8566
89cf4787
MK
85672002-05-12 Mark Kettenis <kettenis@gnu.org>
8568
8569 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8570 checked in with last change.
8571
1f77ffc5
MK
85722002-05-12 Mark Kettenis <kettenis@gnu.org>
8573
8574 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8575 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8576 config.sub.
8577
89b8b4a9
DJ
85782002-05-12 Daniel Jacobowitz <drow@mvista.com>
8579
8580 * Makefile.in: Update dependencies.
8581
14a5e767
AC
85822002-05-11 Andrew Cagney <ac131313@redhat.com>
8583
8584 * language.c (local_hex_string_custom): Simplify. Do not depend
8585 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8586
8587 * memattr.c (mem_info_command): Replace calls to
8588 longest_local_hex_string and longest_local_hex_string_custom.
8589 * buildsym.c (make_blockvector): Ditto.
8590 * solib.c (info_sharedlibrary_command): Ditto.
8591 * tracepoint.c (tracepoints_info): Ditto.
8592 * symtab.c (print_msymbol_info): Ditto.
8593
8594 * language.c (local_hex_string): Delete.
8595 (local_hex_string_custom): Delete.
8596 (longest_local_hex_string): Rename to local_hex_string.
8597 (longest_local_hex_string_custom): Rename to
8598 local_hex_string_custom.
8599 * language.h (local_hex_string): Change parameter type to LONGEST.
8600 (local_hex_string_custom): Ditto.
8601 (longest_local_hex_string): Delete declaration.
8602 (longest_local_hex_string_custom): Ditto.
8603
8604 * solib.c: Update copyright.
8605 * memattr.c: Update copyright.
8606
13d01224
AC
86072002-05-11 Andrew Cagney <ac131313@redhat.com>
8608
8609 * arch-utils.h (legacy_register_to_value): Declare.
8610 (legacy_value_to_register): Declare.
8611 (legacy_convert_register_p): Declare.
8612 * arch-utils.c (legacy_register_to_value): New function.
8613 (legacy_value_to_register): New function.
8614 (legacy_convert_register_p): New function.
8615
8616 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8617 (VALUE_TO_REGISTER): Define.
8618 (CONVERT_REGISTER_P): Define.
8619 * gdbarch.h, gdbarch.c: Regenerate.
8620
8621 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8622 VALUE_TO_REGISTER.
8623 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8624 CONVERT_REGISTER_P.
8625
4a1970e4
DJ
86262005-05-11 Daniel Jacobowitz <drow@mvista.com>
8627 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8628
8629 * Makefile.in: Update dependencies for valops.c.
8630 * valops.c: Include "gdb_assert.h".
8631 (typecmp): Skip THIS parameter to methods.
8632 (find_method_list): Remove static_memfuncp argument,
8633 update callers. Check for stub methods.
8634 (find_value_oload_method_list): Don't set *static_memfuncp.
8635 (find_overload_match): Don't check for stub methods. Assert
8636 that methods are not stubbed. Handle static methods.
8637 (value_find_oload_method_list): Remove static_memfuncp argument.
8638 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8639 to the argument list for static stub methods.
8640 * value.h (value_find_oload_method_list): Update prototype.
8641
b2e75d78
AC
86422002-05-11 Andrew Cagney <ac131313@redhat.com>
8643
8644 * arch-utils.h (generic_register_size): Declare.
8645 (generic_register_raw_size, generic_register_virtual_size): Delete
8646 declarations.
8647 * arch-utils.c (generic_register_raw_size): Delete.
8648 (generic_register_size): New function.
8649 (generic_register_virtual_size): Delete.
8650
8651 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8652 default generic_register_size.
8653 * gdbarch.h, gdbarch.c: Re-generate.
8654
8655 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8656 register_virtual_size.
8657 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8658 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8659
451fbdda
AC
86602002-05-11 Andrew Cagney <ac131313@redhat.com>
8661
8662 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8663 * gdbarch.h, gdbarch.c: Regenerate.
8664 * gnu-v3-abi.c: Update copyright.
8665 (vtable_address_point_offset): Update.
8666 (gnuv3_rtti_type): Update.
8667 (gnuv3_baseclass_offset): Update.
8668 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8669 (init_fetch_link_map_offsets): Update.
8670 * remote.c (get_remote_state): Update.
8671
6d2f5cea
DJ
86722002-05-11 Daniel Jacobowitz <drow@mvista.com>
8673
8674 * TODO: Remove value_headof/value_from_vtable_info comment.
8675 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8676 * values.c (value_headof, value_from_vtable_info): Delete.
8677 * value.h (value_from_vtable_info): Delete prototype.
8678
d2324da4
AC
86792002-05-11 Andrew Cagney <ac131313@redhat.com>
8680
8681 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8682 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8683 $(gdb_regex_h).
8684 (gdb_assert_h): Define.
8685 (gdb_wait_h): Define.
8686 (gdb_regex_h): Define.
8687
5c717440
DJ
86882002-05-11 Daniel Jacobowitz <drow@mvista.com>
8689
8690 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8691 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8692
6c7861b3
JT
86932002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8694
8695 * nbsd-tdep.c: Fix comment.
8696
ea5bc2a6
JT
86972002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8698
8699 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8700 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8701 (nbsd-tdep.o): New dependency list.
8702 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8703 nbsd-tdep.h.
8704 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8705 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8706 * nbsd-tdep.c: New file.
8707 * nbsd-tdep.h: New file.
8708 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8709 nbsd-tdep.h.
8710 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8711 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8712 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8713 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8714
b28da865
JT
87152002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8716
8717 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8718 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8719 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8720 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8721 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8722 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8723
4b8ff1fa
JT
87242002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8725
8726 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8727 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8728 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8729 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8730 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8731 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8732 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8733
dfe6eb1f
JT
87342002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8735
8736 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8737 fetch_elfcore_registers to...
8738 * i386nbsd-tdep.c: ...here.
8739 (i386nbsd_use_struct_convention): Rename to...
8740 (i386nbsd_aout_use_struct_convention): ...this.
8741 (i386nbsd_supply_reg): New function.
8742 (i386nbsd_fill_reg): New function.
8743 (fetch_core_registers): Use i386nbsd_supply_reg.
8744 (fetch_elfcore_registers): Likewise.
8745 (_initialize_i386nbsd_tdep): New function.
8746 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8747 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8748 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8749 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8750 (i386nbsd_aout_use_struct_convention): ...this.
8751
20cb8cda
JT
87522002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8753
8754 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8755 (store_inferior_registers): Use shnbsd_fill_reg.
8756 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8757 sh_nbsd_supply_register): Collapse into...
8758 (shnbsd_supply_reg): ...this.
8759 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8760 (shnbsd_fill_reg): ...this.
8761 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8762 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8763 (fetch_core_registers): Use shnbsd_supply_reg.
8764 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8765 (sh_nbsd_core_fns): Rename to...
8766 (shnbsd_core_fns): ...this.
8767 (sh_nbsd_elfcore_fns): Rename to...
8768 (shnbsd_elfcore_fns): ...this.
8769 (sh_nbsd_init_abi): Rename to...
8770 (shnbsd_init_abi): ...this.
8771 (_initialize_sh_nbsd_tdep): Rename to...
8772 (_initialize_shnbsd_tdep): ...this.
8773 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8774 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8775 sh_nbsd_fill_register): Remove prototypes.
8776 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8777
e750d25e
JT
87782002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8779
8780 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8781 (i387-nat.o): Delete dependency list.
8782 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8783 (x86-64-linux-nat.o): Likewise.
8784 * i387-nat.c: Delete file, moving contents to...
8785 * i387-tdep.c: ...here.
8786 * i387-nat.h: Rename...
8787 * i387-tdep.h: ...to this.
8788 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8789 * i386-linux-nat.c: Likewise.
8790 * i386bsd-nat.c: Likewise.
8791 * i386gnu-nat.c: Likewise.
8792 * i386nbsd-nat.c: Likewise.
8793 * i386v4-nat.c: Likewise.
8794 * x86-64-linux-nat.c: Likewise.
8795 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8796 * config/i386/go32.mh (NATDEPFILES): Likewise.
8797 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8798 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8799 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8800 * config/i386/linux.mh (NATDEPFILES): Likewise.
8801 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8802 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8803 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8804 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8805
1aee598a
JT
88062002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8807
8808 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8809 (alphanbsd-nat.o): Remove dependency list.
8810 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8811 * alphanbsd-nat.c: Delete. Contents moved to...
8812 * alphanbsd-tdep.c: ...here.
8813 (_initialize_alphanbsd_tdep): Register core functions.
8814 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8815
12bcb0fe
JT
88162002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8817
8818 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8819 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8820 (alphanbsd-nat.o): Likewise.
8821 (alphabsd-tdep.o): New dependency list.
8822 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8823 (fill_gregset): Use alphabsd_fill_reg.
8824 (supply_fpregset): Use alphabsd_supply_fpreg.
8825 (fill_fpregset): Use alphabsd_fill_fpreg.
8826 (fetch_inferior_registers): Use struct reg and struct fpreg
8827 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8828 and alphabsd_supply_fpreg.
8829 (store_inferior_registers): Use struct reg and struct fpreg
8830 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8831 and alphabsd_fill_fpreg.
8832 * alphabsd-tdep.c: New file.
8833 * alphabsd-tdep.h: New file.
8834 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8835 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8836 alphabsd_supply_fpreg.
8837 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8838 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8839
361d1df0
EC
88402002-05-11 Eric Christopher <echristo@redhat.com>
8841
8842 * mips-tdep.c (mips_double_register_type): Fix thinko.
8843 (mips_single_register_type): Ditto.
8844 * MAINTAINERS: Add self.
8845
92dd7cee
MK
88462002-05-11 Mark Kettenis <kettenis@gnu.org>
8847
8848 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8849 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8850 right thing on architectures with different endianness and/or
8851 integer sizes.
8852
e27da16d
JT
88532002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8854
8855 From Christian Limpach <chris@Pin.LU>
8856 * configure.in: Change sed expression which comments out
8857 NATDEPFILES to also comment out continuation lines.
8858 * configure: Regenerate.
8859
ddde02bd
EZ
88602002-05-10 Elena Zannoni <ezannoni@redhat.com>
8861
8862 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8863 big patch.
8864
1c922164
EZ
88652002-05-10 Elena Zannoni <ezannoni@redhat.com>
8866
8867 * sh-tdep.c: Include correct file.
8868
283150cd
EZ
88692002-05-10 Elena Zannoni <ezannoni@redhat.com>
8870
8871 New support for sh64-elf (sh5) target.
8872
8873 * configure.tgt: For sh64-elf target, default to sh-elf.
8874
8875 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8876 (struct gdbarch_tdep): Add new fields for new registers and ABI
8877 info.
361d1df0 8878
283150cd
EZ
8879 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8880 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8881 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8882 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8883 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8884 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8885 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8886 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8887 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8888 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8889 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8890 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8891 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8892 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8893 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8894 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8895 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8896 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8897 sign_extend, sh64_nofp_frame_init_saved_regs,
8898 sh64_init_extra_frame_info, sh64_get_saved_register,
8899 sh64_extract_struct_value_address, sh64_pop_frame,
8900 sh64_push_arguments, sh64_extract_return_value,
8901 sh64_store_return_value, sh64_show_media_regs,
8902 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8903 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8904 sh_sh64_register_virtual_type,
8905 sh_sh64_register_convert_to_virtual,
8906 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8907 sh64_register_read, sh64_pseudo_register_write,
8908 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8909 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8910 sh64_do_pseudo_register, sh_compact_do_registers_info,
8911 sh64_do_registers_info, sh_gdbarch_init): New functions.
8912
3117ed25
EZ
89132002-05-10 Elena Zannoni <ezannoni@redhat.com>
8914
8915 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8916
2654e6d4
DJ
89172002-05-10 Daniel Jacobowitz <drow@mvista.com>
8918
8919 * linespec.c (decode_line_1): Check for a double quote after
8920 a filename correctly.
8921
9ab3e532
JB
89222002-05-10 Jim Blandy <jimb@redhat.com>
8923
8924 Properly track the size of the current objfile's .debug_line section.
8925 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8926 (DWARF_LINE_SIZE): New macro.
8927 (dwarf2_build_psymtabs_hard): Record the line section's size in
8928 the partial symbol table.
8929 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8930 symbol table.
8931
126fa72d
PS
89322002-05-10 Petr Sorfa <petrs@caldera.com>
8933
8934 * ia64-tdep.c: Handle breakpoints on L instruction type
8935 in MLX instruction bundle by moving the breakpoint to
8936 the third slot (X instruction type) as L holds only data.
8937
1f077a3e
KB
89382002-05-10 Kevin Buettner <kevinb@redhat.com>
8939
8940 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8941 (process_one_symbol): Complain about discarding local symbols
8942 due to a misplaced N_LBRAC entry.
8943
8120c9d5 89442002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
8945
8946 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
8947 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8948 decrease the depth we are at, in the case of templates.
361d1df0 8949
67b2c998
DJ
89502002-05-09 Daniel Jacobowitz <drow@mvista.com>
8951
8952 * mips-tdep.c (mips_float_register_type): New function.
8953 (mips_double_register_type): New function.
8954 (mips_print_register): Use them.
8955 (do_fp_register_row): Likewise.
8956
fd326606
DJ
89572002-05-09 Daniel Jacobowitz <drow@mvista.com>
8958
6609d9af 8959 * signals/signals.c (signals): Remove conditional compilation around
fd326606 8960 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 8961 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 8962
bef35864
MS
89632002-05-09 Michael Snyder <msnyder@redhat.com>
8964
8965 * remote-rdp.c (remote_rdp_can_run): Remove.
8966
c55a3f73
TT
89672002-05-09 Tom Tromey <tromey@redhat.com>
8968
8969 * jv-valprint.c (java_val_print): Handle `char' as a special case
8970 of TYPE_CODE_INT.
8971
b8d5e71d
MS
89722002-05-09 Michael Snyder <msnyder@redhat.com>
8973
8974 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8975 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 8976 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 8977 str r(0123),[sp,#nn].
361d1df0 8978 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
8979 order-independent by placing it in a loop.
8980
e2cd42dd
MS
89812002-05-06 Michael Snyder <msnyder@redhat.com>
8982
8983 * stabsread.c (read_type): Add recognition for new attribute:
8984 "@V;" means that an array type is actually a vector.
8985 This is analogous to the vector flag that's been added to dwarf2.
8986
3ce1502b
MK
89872002-05-09 Mark Kettenis <kettenis@gnu.org>
8988
8989 * i386-tdep.h (i386_abi): New enum.
8990 (struct gdbarch_tdep): Replace os_ident member with abi.
8991 (i386_gdbarch_register_os_abi): New prototype.
8992 * i386-tdep.c (i386_abi_names): New array.
8993 (process_note_abi_tag_sections): Removed.
8994 (process_note_sections): New function.
8995 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8996 (struct i386_abi_handler): New struct.
8997 (i386_abi_handler_list): New variable.
8998 (i386_gdbarch_register_os_abi): New function.
8999 (i386_gdbarch_init): Adapt for the changes given above.
9000
084c156a
DJ
90012002-05-08 Daniel Jacobowitz <drow@mvista.com>
9002
9003 * gregset.h: Say "GNU/Linux".
9004
6599f021
EZ
90052002-05-08 Elena Zannoni <ezannoni@redhat.com>
9006
9007 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9008 (build_gdbtypes): Build builtin_type_v2_float.
9009 (_initialize_gdbtypes): Register new builtin type.
9010
40af4b0c
AC
90112002-05-08 Andrew Cagney <ac131313@redhat.com>
9012
9013 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9014 (clear_gdbarch_swap): New function.
9015 (initialize_non_multiarch): Call.
9016 (gdbarch_update_p): Before calling init(), swap out and clear the
9017 existing architecture.
9018 * gdbarch.c: Regenerate.
9019
4fe84f46
JT
90202002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9021
9022 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9023 alphanbsd-tdep.c.
9024
4015edd1
JT
90252002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9026
9027 * sh-nbsd-nat.c: Rename to...
9028 * shnbsd-nat.c: ...this.
9029 * sh-nbsd-tdep.c: Rename to...
9030 * shnbsd-tdep.c: ...this.
9031 * sh-nbsd-tdep.h: Rename to...
9032 * shnbsd-tdep.h: ...this.
9033 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9034 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9035
0e2bd219
RE
90362002-05-08 Richard Earnshaw <rearnsha@arm.com>
9037
9038 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9039 concatenation for command help messages.
9040
13a38d45
JT
90412002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9042
9043 * NEWS: Note new sh*-*-netbsdelf* configuration.
9044 * configure.host: Set gdb_host_cpu to sh for all sh*.
9045 (sh*-*-netbsdelf*): New host.
9046 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9047 (sh*-*-netbsdelf*): New target.
9048 * sh-nbsd-nat.c: New file.
9049 * sh-nbsd-tdep.c: New file.
9050 * sh-nbsd-tdep.h: New file.
9051 * config/sh/nbsd.mh: New file.
9052 * config/sh/nbsd.mt: New file.
9053 * config/sh/nm-nbsd.h: New file.
9054 * config/sh/tm-nbsd.h: New file.
9055
d658f924
JT
90562002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9057
9058 * sh-tdep.c (sh_osabi_names): Declare.
9059 (process_note_abi_tag_sections): New function.
9060 (get_elfosabi): Ditto.
9061 (sh_gdbarch_register_os_abi): Ditto.
9062 (sh_dump_tdep): Ditto.
9063 _initialize_sh_tdep): Use gdbarch_register to register
9064 sh_gdbarch_init and sh_dump_tdep.
9065 * config/sh/tm-sh.h (sh_osabi): Declare.
9066 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9067
848cfffb
AC
90682002-05-07 Andrew Cagney <ac131313@redhat.com>
9069
9070 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9071 (thumb_scan_prologue): Ditto.
9072 (arm_find_callers_reg): Ditto.
9073 (arm_frame_chain): Ditto.
9074 (arm_init_extra_frame_info): Ditto.
9075 (arm_frame_saved_pc): Ditto.
9076 (arm_pop_frame): Ditto.
9077 (arm_push_return_address): New function.
9078 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9079 call_dummy_location, call_dummy_breakpoint_offset_p,
9080 call_dummy_breakpoint_offset, call_dummy_p,
9081 call_dummy_stack_adjust_p, call_dummy_words,
9082 sizeof_call_dummy_words, call_dummy_start_offset,
9083 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9084 call_dummy_address, push_return_address and push_dummy_frame for
9085 generic dummy frames.
9086
e7d717c0
JT
90872002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9088
9089 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9090 size computation for alloca.
9091 (sh_fp_frame_init_saved_regs): Likewise.
9092
7bbcf283
RE
90932002-05-07 Richard Earnshaw <rearnsha@arm.com>
9094
9095 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9096 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 9097 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
9098 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9099 * remote-rdp.c (remote_rdp_fetch_register): Use
9100 ARM_MAX_REGISTER_RAW_SIZE.
9101 (remote_rdp_store_register): Likewise.
9102
4657573b
ML
91032002-05-07 Michal Ludvig <mludvig@suse.cz>
9104
361d1df0 9105 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
9106 added default labels to switch {} statements.
9107 * x86-64-tdep.c: Ditto.
9108 * x86-64-linux-nat.c: Ditto.
9109
010f3b2f
JT
91102002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9111
9112 * solib.h: Protect against multiple inclusion.
9113
debd256d
JB
91142002-05-06 Jim Blandy <jimb@redhat.com>
9115
9ab3e532
JB
9116 Add first preprocessor macro-expansion files.
9117 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9118 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9119 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9120 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9121 (COMMON_OBS): Add macrotab.o, macroexp.o.
9122 (macroexp.o, macrotab.o): New rules.
9123
debd256d
JB
9124 Separate the job of reading the line number info statement program
9125 header (...expialidocious) out into its own function.
9126 * dwarf2read.c (struct line_head, struct filenames, struct
9127 directories): Replace with...
9128 (struct line_header): New structure, containing the full
9129 contents of the statement program header, including the
9130 include directory and file name tables.
9131 (read_file_scope): If we have line number info, instead of just
9132 calling dwarf_decode_lines to do all the work, call
9133 dwarf_decode_line_header first to get a `struct line_header'
9134 containing the data in the statement program header, and then
9135 pass that to dwarf_decode_lines, which will pick up where that
9136 left off. Be sure to clean up the `struct line_header' object.
9137 (dwarf_decode_line_header, free_line_header, add_include_dir,
9138 add_file_name): New functions.
9139 (dwarf_decode_lines): Move all the code to read the statement
9140 program header into dwarf_decode_line_header. Take the line
9141 header it built as the first argument, instead of the offset to
9142 the compilation unit's line number info. Use the new `struct
9143 line_header' type instead of the old structures. No need to do
9144 cleanups here now, since we don't allocate anything.
9145 (dwarf2_statement_list_fits_in_line_number_section,
9146 dwarf2_line_header_too_long): New complaints.
9147
ac3aafc7
EZ
91482002-05-06 Elena Zannoni <ezannoni@redhat.com>
9149
9150 * gdbtypes.c (init_vector_type): New function.
9151 (build_builtin_type_vec128): Simplify the representation of SIMD
9152 registers.
9153 (build_gdbtypes): Initialize new builtin vector types.
9154 (_initialize_gdbtypes): Register new vector types with gdbarch.
9155 (builtin_type_v4_float, builtin_type_v4_int32,
9156 builtin_type_v8_int16, builtin_type_v16_int8,
9157 builtin_type_v2_int32, builtin_type_v4_int16,
9158 builtin_type_v8_int8): New (renamed) SIMD types.
9159
13e49980
MK
91602002-05-06 Mark Kettenis <kettenis@gnu.org>
9161
9162 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9163 (i387_fill_fxsave): Likewise.
9164
997b20b8
AO
91652002-05-05 Alexandre Oliva <aoliva@redhat.com>
9166
9167 * alpha-tdep.c (alpha_extract_return_value): Don't use
9168 non-constant array size in prototype.
9169
535c96ce
AC
91702002-05-04 Andrew Cagney <ac131313@redhat.com>
9171
9172 From Brian Taylor <briant at model dot com>:
9173 * ui-out.c (ui_out_field_core_addr): Use the function
9174 longest_local_hex_string_custom'to format addresses > 32 bits
9175 wide.
9176
9177 * ui-out.c (ui_out_field_core_addr): Update comment.
9178
bedfa57b
AC
91792002-05-04 Andrew Cagney <ac131313@redhat.com>
9180
9181 * stack.c (select_and_print_frame): Make static. Delete the
9182 parameter `level'.
9183 (func_command): Update call.
9184 (select_frame_command): Delete code computing the frame level.
9185 * frame.h (select_and_print_frame): Delete declaration.
9186
f621c63e
AC
91872002-05-04 Andrew Cagney <ac131313@redhat.com>
9188
9189 * sparc-tdep.c (sparc_get_saved_register): Comment why
9190 get_prev_frame call is safe.
9191
0f7d239c
AC
91922002-05-04 Andrew Cagney <ac131313@redhat.com>
9193
9194 * frame.h (select_frame): Delete level parameter.
9195 * stack.c (select_frame): Update. Use frame_relative_level to
9196 obtain the frame's level.
9197 (select_and_print_frame): Update call.
9198 (select_frame_command): Ditto.
9199 (up_silently_base): Ditto.
9200 (down_silently_base): Ditto.
9201 * ocd.c (ocd_start_remote): Ditto.
9202 * remote-rdp.c (remote_rdp_open): Ditto.
9203 * remote-mips.c (mips_initialize): Ditto.
9204 (common_open): Ditto.
9205 * remote-e7000.c (e7000_start_remote): Ditto.
9206 * m3-nat.c (select_thread): Ditto.
9207 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9208 (child_get_current_exception_event): Ditto.
9209 * varobj.c (varobj_create): Ditto.
9210 (varobj_update): Ditto.
9211 (c_value_of_root): Ditto.
9212 * tracepoint.c (finish_tfind_command): Ditto.
9213 * corelow.c (core_open): Ditto.
9214 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9215 * thread.c (info_threads_command): Ditto.
9216 (switch_to_thread): Ditto.
9217 * infrun.c (normal_stop): Ditto.
9218 (restore_selected_frame): Ditto.
9219 (restore_inferior_status): Ditto.
9220 * breakpoint.c (insert_breakpoints): Ditto.
9221 (watchpoint_check): Ditto.
9222 (bpstat_stop_status): Ditto.
9223 (do_enable_breakpoint): Ditto.
9224 * blockframe.c (flush_cached_frames): Ditto.
9225 (reinit_frame_cache): Ditto.
9226
71d6c7b1
AC
92272002-05-04 Andrew Cagney <ac131313@redhat.com>
9228
9229 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9230 maintainer.
9231
cda6c68a
JB
92322002-05-04 Jim Blandy <jimb@redhat.com>
9233
9234 * gdbtypes.c (replace_type): Doc fix.
9235
5c1c87f0
AC
92362002-05-04 Andrew Cagney <ac131313@redhat.com>
9237
9238 * valprint.c (strcat_longest): Delete commented out function.
9239 Update copyright.
9240
cd9bfe15
AC
92412002-05-04 Andrew Cagney <ac131313@redhat.com>
9242
9243 * MAINTAINERS: Mark a29k as deleted.
9244 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9245 Move new configurations to the top.
9246 * configure.tgt: Remove a29k.
9247 * config/a29k/tm-vx29k.h: Delete.
9248 * config/a29k/vx29k.mt: Delete.
9249 * config/a29k/tm-a29k.h: Delete.
9250 * config/a29k/a29k-udi.mt: Delete.
9251 * config/a29k/a29k.mt: Delete.
9252 * a29k-tdep.c: Delete.
9253 * remote-udi.c: Delete.
9254 * remote-mm.c: Delete.
9255 * remote-eb.c: Delete.
9256 * remote-adapt.c: Delete.
9257 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
9258 * config/s390/s390x.mt: Ditto.
9259 * config/s390/s390.mt: Ditto.
9260 * config/sparc/sparclynx.mh: Ditto.
9261 * config/sparc/linux.mh: Ditto.
9262 * config/pa/hppaosf.mh: Ditto.
9263 * config/pa/hppabsd.mh: Ditto.
9264 * config/ns32k/nbsd.mt: Ditto.
9265 * config/mips/vr5000.mt: Ditto.
9266 * config/m68k/sun3os4.mh: Ditto.
9267 * config/m68k/nbsd.mt: Ditto.
9268 * config/m68k/m68klynx.mh: Ditto.
9269 * config/m32r/m32r.mt: Ditto.
9270 * config/i386/x86-64linux.mt: Ditto.
9271 * config/i386/nbsdelf.mt: Ditto.
9272 * config/i386/nbsd.mt: Ditto.
9273 * config/i386/i386lynx.mh: Ditto.
9274
bf0c5130
AC
92752002-05-04 Andrew Cagney <ac131313@redhat.com>
9276
9277 * target.c (debug_print_register): New function. Handle oversize
9278 registers.
9279 (debug_to_fetch_registers): Call.
9280 (debug_to_store_registers): Call.
9281
2ae1c2d2
JB
92822002-05-03 Jim Blandy <jimb@redhat.com>
9283
13a393b0
JB
9284 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9285 (read_type): Doc fix.
9286 * gdbtypes.c (replace_type): Doc fix.
9287
2ae1c2d2
JB
9288 * stabsread.c (multiply_defined_struct): New complaint.
9289 (read_struct_type): If the type we were passed isn't empty, or
9290 incomplete, don't read the new struct type into it; complain,
9291 and return the original type unchanged. Take a new `type_code'
9292 argument, which is the type code for the new type.
9293 (read_type): Rather than storing the type's type code here, pass
9294 it as an argument to read_struct_type, and let that take care of
9295 storing it. That way, we don't overwrite the original type code,
9296 so read_struct_type can use it to decide whether we're overwriting
9297 something we shouldn't.
9298 (complain_about_struct_wipeout): New function.
9299
8de9bdc4
AC
93002002-05-03 Andrew Cagney <ac131313@redhat.com>
9301
9302 * gdbarch.sh: Assert that gdbarch is non-NULL.
9303 * gdbarch.c: Regenerate.
9304
f773fdbb
JM
93052002-05-03 Jason Merrill <jason@redhat.com>
9306
9307 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9308 and return NULL.
9309
0e04a514
ML
93102002-05-03 Michal Ludvig <mludvig@suse.cz>
9311
9312 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9313 (x86_64_dwarf2gdb_regno_map_length),
9314 (x86_64_dwarf2_reg_to_regnum): Added.
9315 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9316 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9317 (_initialize_x86_64_tdep): Synced with the change above.
9318 (x86_64_skip_prologue): Reformulated message.
9319
065432a8
PM
93202002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9321
9322 * f-exp.y: Also use new prev_lexptr variable
9323 to improve error reporting. Based on Michael Snyder
9324 2002-04-24 dated patch to c-exp.y.
9325 * jv-exp.y: Likewise.
9326 * m2-exp.y: Likewise.
9327
a3162708
EZ
93282002-05-02 Elena Zannoni <ezannoni@redhat.com>
9329
9330 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9331 we are dealing with vectors.
9332
03620c38
PM
93332002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9334
9335 * config/m68k/tm-nbsd.h: Obvious fix,
9336 correct machine name.
9337
6604db2e
PM
93382002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9339
9340 * p-typeprint.c (pascal_type_print_base): Add support
9341 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9342
0906b739
PM
93432002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9344
9345 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9346 for fondamental pascal 'char' type.
9347
e2625b33
PM
93482002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9349
9350 * p-lang.h (is_pascal_string_type): Declaration changed,
9351 new sixth argument of type char ** added.
361d1df0 9352 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
9353 changed. Args length_pos, length_size, string_pos, char_size
9354 can now be NULL. New argument arrayname set to the field
9355 name of the char array. Return value set to char array
9356 field index plus one.
361d1df0 9357 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
9358 is_pascal_string_type function.
9359
cf17c188
AC
93602002-05-02 Andrew Cagney <cagney@redhat.com>
9361
9362 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9363 <cagney@redhat.com> change.
9364 * gdbarch.c: Regenerate.
9365
52bca491
AC
93662002-05-02 Andrew Cagney <cagney@redhat.com>
9367
9368 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9369 before probing for a new one. Detect errorenous gdbarch_init
9370 functions.
9371 * gdbarch.c: Regenerate.
9372
d5e72505
AC
93732002-05-01 Andrew Cagney <cagney@redhat.com>
9374
9375 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9376 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9377 * config/v850/tm-v850.h: Ditto. Update copyright.
9378
af566d9f
AC
93792002-04-30 Andrew Cagney <ac131313@redhat.com>
9380
9381 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9382 current_gdbarch.
9383
880d85fa
MS
93842002-04-30 Michael Snyder <msnyder@redhat.com>
9385
94c30b78
MS
9386 * arm-tdep.c: Whitespace clean-ups.
9387 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
9388 should have been removed as part of 4/24 change.
9389
6f5987a6
KB
93902002-04-30 Kevin Buettner <kevinb@redhat.com>
9391
9392 * rs6000-tdep.c: Added comment describing how fpscr register
9393 numbers were chosen.
9394
1a113c93
MS
93952002-04-30 Michael Snyder <msnyder@redhat.com>
9396
9397 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9398
9a6f53fe
EZ
93992002-04-29 Elena Zannoni <ezannoni@redhat.com>
9400
9401 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9402 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9403 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9404
11ed25ac
KB
94052002-04-29 Kevin Buettner <kevinb@redhat.com>
9406
9407 From Louis Hamilton <hamilton@redhat.com>:
9408 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9409 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9410 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9411 not bfd-private xcoff data, to determine wordsize.
9412 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9413
ae232405
AC
94142002-04-29 Andrew Cagney <ac131313@redhat.com>
9415
9416 GDB 5.2 released from 5.2 branch.
9417
91fd20f7
ML
94182002-04-29 Michal Ludvig <mludvig@suse.cz>
9419
9420 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9421 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9422 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 9423
2dc5091b
EZ
94242002-04-29 Elena Zannoni <ezannoni@redhat.com>
9425
9426 * rs6000-tdep.c (rs6000_extract_return_value,
9427 rs6000_store_return_value): Handle returning vectors.
9428 (rs6000_gdbarch_init): Use
9429 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9430 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9431 New function.
9432 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9433 vectors.
9434 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9435 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 9436
2b9848d8
PM
94372002-04-24 Pierre Muller <ics.u-strasbg.fr>
9438
9439 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 9440 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
9441 with fprintf_unfiltered (gdb_stderr,...).
9442
f8d17dc5
PM
94432002-04-24 Pierre Muller <ics.u-strasbg.fr>
9444
9445 * remote-array.c (printf_monitor, write_monitor,
361d1df0 9446 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
9447 Replace fprintf (stderr,...
9448 with fprintf_unfiltered (gdb_stderr,....
9449 * remote-es.c: Likewise.
9450 * remote-os9k.c: Likewise.
9451 * remote-st.c: Likewise.
9452
2f2f1ad1
AS
94532002-04-28 Andreas Schwab <schwab@suse.de>
9454
9455 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9456 linux-proc.o and gcore.o.
9457
b6779aa2
AC
94582002-04-26 Michal Ludvig <mludvig@suse.cz>
9459
9460 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9461 code without frame pointers.
9462
7e57f5f4
AC
94632002-04-26 Andrew Cagney <ac131313@redhat.com>
9464
9465 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9466 ON_STACK is needed.
9467
2ceb85d0
BE
94682002-04-26 Ben Elliston <bje@redhat.com>
9469
9470 * target.c (do_xfer_memory): Correct reference to the new option
9471 "trust-readonly-sections".
9472
f5f8a009
EZ
94732002-04-26 Elena Zannoni <ezannoni@redhat.com>
9474
9475 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9476 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9477 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9478 vectors.
9479 (read_array_type): Record the fact that this array type is really a
9480 vector (i.e. are passed in by value).
9481
5868c862
JT
94822002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9483
9484 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9485 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9486 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9487 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9488 * alpha-linux-tdep.c: Include frame.h.
9489 (alpha_linux_sigcontext_addr): New function.
9490 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9491 alpha_linux_sigcontext_addr.
9492 * alpha-osf1-tdep.c: Include gdbcore.h.
9493 (alpha_osf1_sigcontext_addr): New function.
9494 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9495 alpha_osf1_sigcontext_addr.
9496 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9497 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9498
bfb01f37
AC
94992002-04-26 Andrew Cagney <ac131313@redhat.com>
9500
361d1df0 9501 * stack.c (selected_frame_level):
bfb01f37
AC
9502 (select_frame): Do not set selected_frame_level.
9503 * frame.h (selected_frame_level): Delete declaration.
9504
15813d3f
AC
95052002-04-26 Andrew Cagney <ac131313@redhat.com>
9506
9507 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9508 convert_from_func_ptr-addr when AIX / PowerOpen.
9509
6096c27a
AC
95102002-04-25 Andrew Cagney <ac131313@redhat.com>
9511
9512 * valops.c (hand_function_call): Call
9513 generic_save_call_dummy_addr.
9514 * frame.h (generic_save_call_dummy_addr): Declare.
9515 * blockframe.c (struct dummy_frame): Add fields call_lo and
9516 call_hi.
9517 (generic_find_dummy_frame): Check for PC in range call_lo to
9518 call_hi instead of entry_point_address.
9519 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9520 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9521 (generic_save_call_dummy_addr): New function.
9522
f510d44e
DM
95232002-04-24 David S. Miller <davem@redhat.com>
9524
9525 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9526 sparc_skip_prologue.
9527 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9528 information to find prologue when possible.
9529 (sparc_prologue_frameless_p): Call examine_prologue directly.
9530 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9531 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9532 second argument.
9533 (SKIP_PROLOGUE): Likewise.
9534
15d72a92
JT
95352002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9536
9537 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9538 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9539 indicate that the condition it was testing is always true.
9540 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9541 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9542 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9543
accc6d1f
JT
95442002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9545
9546 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9547 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9548 tdep->jb_pc and tdep->jb_elt_size.
9549 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9550 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9551 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9552 * alpha-nat.c (get_longjmp_target): Remove.
9553 (JB_ELEMENT_SIZE): Ditto.
9554 (JB_PC): Ditto.
9555 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9556 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9557 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9558 to alpha_get_longjmp_target.
9559 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9560 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9561 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9562
1bfdc549
AC
95632002-04-25 Andrew Cagney <ac131313@redhat.com>
9564
9565 * README: Update to GDB 5.2.
9566
1bd316f0
AC
95672002-04-25 Andrew Cagney <ac131313@redhat.com>
9568
9569 * gdbarch.sh (LC_ALL): Set to `c'.
9570
2e5ff58c
TR
95712002-04-25 Theodore A. Roth <troth@verinet.com>
9572
9573 * avr-tdep.c: Ran through gdb_indent.sh.
9574
e33ce519
TR
95752002-04-25 Theodore A. Roth <troth@verinet.com>
9576
9577 * MAINTAINERS: Add myself as AVR maintainer.
9578 * NEWS: Note new target avr.
9579
8818c391
TR
95802002-04-25 Theodore A. Roth <troth@verinet.com>
9581
9582 * Makefile.in: Add support for AVR target.
9583 * configure.tgt: Add support for AVR target.
9584 * avr-tdep.c: New file
9585 * config/avr/avr.mt: New file.
9586
79509c2d
TR
95872002-04-25 Theodore A. Roth <troth@verinet.com>
9588
9589 * MAINTAINERS: Add myself to write-after-approval.
9590
dac8068e
PM
95912002-04-24 Pierre Muller <ics.u-strasbg.fr>
9592
9593 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9594 with fprintf_unfiltered (gdb_stderr,....
9595
25bf3106
PM
95962002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9597
9598 Fix PR gdb/508.
9599 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9600
24467a86
PM
96012002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9602
9603 * p-exp.y: Also use new prev_lexptr variable
9604 to improve error reporting. Based on Michael Snyder
9605 2002-04-24 dated patch to c-exp.y.
9606
95b80706
JT
96072002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9608
9609 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9610 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9611 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9612 to 0.
9613 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9614 and struct value.
9615 (FUNCTION_START_OFFSET): Remove.
9616 (BREAKPOINT): Ditto.
9617
e90cc612
JT
96182002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9619
9620 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9621 * NEWS: Ditto.
9622
6c72f9f9
JT
96232002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9624
9625 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9626 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9627 alpha_linux_pc_in_sigtramp.
9628 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9629 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9630 alpha_osf1_pc_in_sigtramp.
9631 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9632 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9633 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9634 alphafbsd_pc_in_sigtramp.
9635 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9636 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9637 alphanbsd_pc_in_sigtramp.
9638 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9639 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9640
5e4f3379
JT
96412002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9642
9643 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9644
da8ca43d
JT
96452002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9646
9647 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9648 alphanbsd-tdep.c.
9649 (alphanbsd-nat.o): New dependency list.
9650 (alphanbsd-tdep.o): Ditto.
9651 * NEWS: Note new native NetBSD/alpha configuration.
9652 * alphanbsd-nat.c: New file.
9653 * alphanbsd-tdep.c: Ditto.
9654 * configure.host (alpha*-*-netbsd*): New host.
9655 * configure.tgt (alpha*-*-netbsd*): New target.
9656 * config/alpha/nbsd.mh: New file.
9657 * config/alpha/nbsd.mt: Ditto.
9658 * config/alpha/nm-nbsd.h: Ditto.
9659 * config/alpha/tm-nbsd.h: Ditto.
9660
36a6271d
JT
96612002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9662
9663 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9664 (alpha-osf1-tdep.o): New dependency list.
9665 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9666 and skip_sigtramp_frame members.
9667 * alpha-linux-tdep.c: Include gdbcore.h.
9668 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9669 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9670 * alpha-osf1-tdep.c: New file.
9671 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9672 alpha-osf1-dep.c.
9673 (alpha_frame_past_sigtramp_frame): New function.
9674 (alpha_dynamic_sigtramp_offset): Ditto.
9675 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9676 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9677 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9678 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9679 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9680 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9681 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9682 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9683 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9684 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9685 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9686 to find_solib_trampoline_target.
9687 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9688 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9689 (SKIP_TRAMPOLINE_CODE): Remove.
9690 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9691 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9692 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9693 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9694 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9695 (PROC_SIGTRAMP_MAGIC): Ditto.
9696 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9697 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9698 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9699 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9700 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9701
2f4bc57b
JT
97022002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9703
9704 * NEWS: Note that Alpha targets are now multi-arch.
9705
665132f9
MS
97062002-04-24 Michael Snyder <msnyder@redhat.com>
9707
9708 * parser-defs.h (prev_lexptr): New external variable.
9709 * parse.c (parse_exp_1): Set prev_lexptr to null before
9710 calling the language-specific parser.
9711 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9712 (yyerror): Use prev_lexptr in error reporting.
9713
32872fa7
DJ
97142002-04-24 Daniel Jacobowitz <drow@mvista.com>
9715
9716 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9717 * gregset.h: If FILL_FPXREGSET is defined, provide
9718 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9719 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9720 is defined, call fill_fpxregset.
9721
57e76fac
MS
97222002-04-24 Roland McGrath <roland@frob.com>
9723
9724 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9725 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9726 (supply_gregset, supply_fpregset): New functions.
9727
9728 * gnu-nat.c (gnu_find_memory_regions): New function.
9729 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9730 (gnu_xfer_memory): Add a cast.
9731
f43845b3
MS
97322002-04-24 Michael Snyder <msnyder@redhat.com>
9733
361d1df0 9734 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9735 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9736 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9737 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9738 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9739 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9740
a0abec03
AC
9741Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9742
9743 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9744 NUM_PSEUDO_REGS can be used.
9745
d7bd68ca
AC
97462002-04-24 Andrew Cagney <ac131313@redhat.com>
9747
9748 * arch-utils.h: Update copyright.
9749
9750 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9751 * gdbarch.h, gdbarch.c: Re-generate.
9752
9753 * inferior.h (IN_SIGTRAMP): Delete definition.
9754 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9755 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9756
9757 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9758 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9759 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9760 (find_proc_framesize): Ditto.
9761 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9762 (alpha_init_extra_frame_info): Ditto.
9763 * infrun.c (handle_inferior_event): Ditto.
9764 (handle_inferior_event): Ditto.
9765 (check_sigtramp2): Ditto.
9766 * blockframe.c (create_new_frame): Ditto.
9767 (get_prev_frame): Ditto.
9768 * ppc-linux-tdep.c: Update comments.
9769 * i386-linux-tdep.c: Update comments.
9770 * breakpoint.c (bpstat_what): Update comment.
9771
4867e41e
DM
97722002-04-24 David S. Miller <davem@redhat.com>
9773
21d83aa5
DM
9774 * i960-tdep.c (register_in_window_p): New function.
9775 (i960_find_saved_register): Use it instead of
9776 REGISTER_IN_WINDOW_P.
9777 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9778
4867e41e
DM
9779 * symtab.h (find_stab_function_addr): Kill extern.
9780 * minsyms.c (find_stab_function_addr): Remove from here...
9781 * dbxread.c: ... to here, and mark it static.
9782
69cdf6a2
DM
97832002-04-20 David S. Miller <davem@redhat.com>
9784
9785 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9786 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9787
5a595886
DM
97882002-04-21 David S. Miller <davem@redhat.com>
9789
9790 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9791 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9792 (vx_write_register): Likewise.
9793
1da1a192
JB
97942002-04-23 J. Brobecker <brobecker@gnat.com>
9795
9796 * source.c (is_regular_file): New function.
9797 (openp): Check wether file to open is a regular file
9798 to avoid opening directories.
9799
baa6f10b
JT
98002002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9801
9802 * findvar.c (extract_signed_integer): Cast printf argument
9803 to suppress format warning.
9804 (extract_unsigned_integer): Likewise.
9805 * infcmd.c (registers_info): Likewise.
9806 * top.c (get_prompt_1): Likewise.
9807 * valops.c (value_assign): Likewise.
9808 * valprint.c (print_decimal): Likewise.
9809
b2c4da81
L
98102002-04-22 H.J. Lu (hjl@gnu.org)
9811
9812 * c-exp.y (typebase): Support
361d1df0 9813
b2c4da81
L
9814 [long|long long|short] [signed|unsigned] [int|]
9815
9816 and
9817
9818 signed [long|long long|short] int
9819
f267bd6a
JT
98202002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9821
9822 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9823 and vax-tdep.h.
9824 * vax-tdep.h: New file.
9825 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9826 Make several routines static.
9827 (vax_get_saved_register): New function.
9828 (vax_gdbarch_init): New function.
9829 (_initialize_vax_tdep): Register vax_gdbarch_init.
9830 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9831 Remove macros now under the control of gdbarch.
9832
da3c6d4a
MS
98332002-04-22 Michael Snyder <msnyder@redhat.com>
9834
11d3b27d
MS
9835 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9836 Some whitespace and coding standards tweaks.
da3c6d4a 9837
a33f7558
JT
98382002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9839
9840 * vax-tdep.c: Include regcache.h.
9841 (vax_call_dummy_words): New.
9842 (sizeof_vax_call_dummy_words): New.
9843 (vax_fix_call_dummy): New function.
9844 (vax_saved_pc_after_call): Ditto.
9845 * config/vax/tm-vax.h: Don't include regcache.h.
9846 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9847 (CALL_DUMMY): Remove.
9848 (CALL_DUMMY_WORDS): Define.
9849 (SIZEOF_CALL_DUMMY_WORDS): Define.
9850 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9851
47a73475
MS
98522002-04-18 Michael Snyder <msnyder@redhat.com>
9853
9854 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9855
52efde73
JT
98562002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9857
9858 * vax-tdep.c (vax_frame_chain): New function.
9859 (vax_push_dummy_frame): Ditto.
9860 (vax_pop_frame): Ditto.
9861 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9862 (FRAMELESS_FUNCTION_INVOCATION): Use
9863 generic_frameless_function_invocation_not.
9864 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9865 (POP_FRAME): Use vax_pop_frame.
9866
ea74468c
JT
98672002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9868
9869 * vax-tdep.c (vax_store_struct_return): New function.
9870 (vax_extract_return_value): Ditto.
9871 (vax_store_return_value): Ditto.
9872 (vax_extract_struct_value_address): Ditto.
9873 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9874 vax_store_struct_return.
9875 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9876 (STORE_RETURN_VALUE): Use vax_store_return_value.
9877 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9878
5516aa92
JT
98792002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9880
9881 * vax-tdep.c (vax_frame_saved_pc): New function.
9882 (vax_frame_args_address_correct): Ditto.
9883 (vax_frame_args_address): Ditto.
9884 (vax_frame_locals_address): Ditto.
9885 (vax_frame_num_args): Move code to be in proximity to
9886 other frame-related functions.
9887 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9888 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9889 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9890 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9891 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9892
36af0b35
L
98932002-04-22 H.J. Lu (hjl@gnu.org)
9894
9895 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9896 includedir.
9897
ab62c900
JT
98982002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9899
9900 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9901 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9902 (FRAME_INIT_SAVED_REGS): New macro.
9903
7232b100
JT
99042002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9905
9906 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9907
b70d2aee
JT
99082002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9909
9910 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9911 where needed.
9912 (fetch_osf_core_registers): Likewise.
9913 (supply_gregset): Likewise.
9914
a0e8a2d1 99152002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 9916
a0e8a2d1
JB
9917 * symfile.h (get_section_index): Define.
9918 * symfile.c (get_section_index): New function.
9919 * mdebugread.c (SC_IS_SBSS): New macro.
9920 (SC_IS_BSS): Return true for the scBss storage class only, as
9921 the scSBss storage class refers to the .sbss section.
9922 (parse_partial_symbols): Discard the symbols which associated
9923 section does not exist.
9924 Make sure to use the .sbss section index for symbols which
9925 storage class is scBss, rather than using the .bss section index.
9926
51eb8b08
JT
99272002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9928
9929 * vax-tdep.c: Update copyright years.
9930 (vax_register_name): New function.
9931 (vax_register_byte): Ditto.
9932 (vax_register_raw_size): Ditto.
9933 (vax_register_virtual_size): Ditto.
9934 (vax_register_virtual_type): Ditto.
9935 * config/vax/tm-vax.h: Update copyright years.
9936 (REGISTER_NAMES): Remove.
9937 (REGISTER_NAME): Define.
9938 (REGISTER_BYTE): Use vax_register_byte.
9939 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9940 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9941 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9942
6cc1c0a8
AC
99432002-04-21 Andrew Cagney <ac131313@redhat.com>
9944
9945 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9946 declaration
9947 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9948
9319a2fe
DM
99492002-04-21 David S. Miller <davem@redhat.com>
9950
9951 * arch-utils.c (generic_prologue_frameless_p): Kill
9952 SKIP_PROLOGUE_FRAMELESS_P code.
9953 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9954 references.
9955 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9956 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9957 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9958 references.
9959 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9960 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9961 (sparc_gdbarch_init): Pass it to
9962 set_gdbarch_prologue_frameless_p.
a0e8a2d1 9963
e9ed6d01
JT
99642002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9965
9966 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9967 (alphabsd-nat.o): New dependency list.
9968
36012033
JT
99692002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9970
9971 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9972 alphafbsd-tdep.c.
9973 (alpha-linux-tdep.o): New dependency list.
9974 (alphafbsd-tdep.o): Likewise.
9975
3379287a
JT
99762002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9977
9978 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9979 to here...
9980 * alpha-tdep.c: ...from here.
9981 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9982
4bcbd6cb
JT
99832002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9984
9985 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9986 prototype from here...
9987 * alpha-tdep.h: ...to here.
9988
b31da25e
AC
99892002-04-21 Andrew Cagney <ac131313@redhat.com>
9990
9991 * frame.h (selected_frame_level): Document as deprecated.
9992 (frame_relative_level): Declare.
9993 * stack.c (frame_relative_level): New function.
9994 (selected_frame_level): Document as deprecated.
9995 (select_frame): Do not set the selected_frame_level.
9996
9997 * stack.c (frame_info, record_selected_frame): Update.
9998 (frame_command, current_frame_command): Update.
9999 (up_silently_base, up_command, down_silently_base): Update.
10000 (down_command): Update.
10001 * inflow.c (kill_command): Update.
10002 * tracepoint.c (finish_tfind_command): Update.
10003 * corelow.c (core_open): Update.
10004 * thread.c (info_threads_command): Update.
10005 (do_captured_thread_select): Update.
10006 * infcmd.c (finish_command): Update.
10007 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10008
9c1d6fe5
JT
100092002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10010
10011 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10012
ab89facf
AC
100132002-04-21 Andrew Cagney <ac131313@redhat.com>
10014
10015 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10016 type const.
10017
82a4efa1
JT
100182002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10019
10020 * alphafbsd-tdep.c: Update copyright years. Include
10021 alpha-tdep.h.
10022 (alphafbsd_use_struct_convention): Make static.
10023 (alphafbsd_init_abi): New function.
10024 (_initialize_alphafbsd_tdep): New function.
10025 * config/alpha/tm-fbsd.h: Update copyright years.
10026 (USE_STRUCT_CONVENTION): Remove.
10027
44dffaac
JT
100282002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10029
10030 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10031 an Alpha ABI variant.
10032 (alpha_abi_handler_list): Declare.
10033 (alpha_gdbarch_register_os_abi): New function.
10034 (alpha_gdbarch_init): Give registered ABI variant handlers a
10035 chance to tweak the gdbarch once we have set up defaults.
10036 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10037
65585be4
JT
100382002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10039
10040 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10041 to standard_coerce_float_to_double.
10042 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10043
d9b023cc
JT
100442002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10045
10046 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10047 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10048 from gdbarch_tdep rather than a constant.
10049 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10050 the default text address for all Alpha Unix ABIs.
10051 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10052 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10053
dc129d82
JT
100542002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10055
10056 * alpha-tdep.h: New file. Includes several Alpha target constants
10057 taken from...
10058 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10059 let gdbarch deal with.
10060 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10061 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10062 to dependency list.
10063 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10064 Alpha target register names.
10065 * alphabsd-nat.c: Likewise.
10066 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10067 Alpha target register names. Make serveral routines static.
10068 (alpha_get_saved_register): New function.
10069 (alpha_abi_names): New.
10070 (process_note_abi_tag_sections): New function.
10071 (get_elfosabi): New function.
10072 (alpha_gdbarch_init): New function.
10073 (alpha_dump_tdep): New function.
10074 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10075
d49d1e0a
AC
100762002-04-21 Andrew Cagney <ac131313@redhat.com>
10077
10078 * frame.c (find_saved_register): Delete #ifdef
10079 HAVE_REGISTER_WINDOWS code.
10080 * config/sparc/tm-sparc.h: Update comments.
10081 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10082
92e8c9ed
AC
100832002-04-21 Andrew Cagney <ac131313@redhat.com>
10084
10085 * i960-tdep.c (i960_find_saved_register): New function.
10086 (i960_get_saved_register): New function.
10087 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10088 (i960_get_saved_register): Declare.
10089 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10090
e1925118
DM
100912002-04-20 David S. Miller <davem@redhat.com>
10092
10093 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10094
29673b29
AC
100952002-04-20 Andrew Cagney <ac131313@redhat.com>
10096
10097 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10098 instead of NUM_PSEUDO_REGS.
10099
6c86dcd5
DM
101002002-04-20 David S. Miller <davem@redhat.com>
10101
10102 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10103 GDB_MULTI_ARCH_PARTIAL
10104 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10105 define, let tm-sp64.h do it.
10106
aa40ec90
JT
101072002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10108
10109 * frame.c (find_saved_register): Avoid a NULL pointer
10110 dereference and actually walk the frame list.
10111
0f79675b
AC
101122002-04-20 Andrew Cagney <ac131313@redhat.com>
10113
10114 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10115 sorted in most most-recent-used order. Document.
10116 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10117
f91305dd 101182002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
10119
10120 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10121 instead of ->prev.
10122 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10123 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10124 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10125 instead of ->prev.
10126
73d322b1
EZ
101272002-04-19 Elena Zannoni <ezannoni@redhat.com>
10128
10129 Fix PR gdb/471.
10130 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10131 (build_builtin_type_vec128): Ditto.
10132 (append_composite_type_field): Fix calculation of type length in
10133 union case.
10134
ccd9a834
EZ
101352002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10136
10137 * config/djgpp/README: Update.
10138
10139 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10140 compiler warnings.
10141
a57f9e49
JT
101422002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10143
10144 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10145 (alpha_setup_arbitrary_frame): ...to this.
10146 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10147 for alpha_setup_arbitrary_frame.
10148
f4f9705a
AC
101492002-04-18 Andrew Cagney <cagney@redhat.com>
10150
10151 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10152 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10153
f4f9705a
AC
10154 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10155 * target.h (memory_breakpoint_from_pc): Update declaration.
10156 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10157
10158 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10159 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10160 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10161 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10162 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10163 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10164 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10165 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10166 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10167 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10168 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10169 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10170
10171 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10172 const pointer.
10173 * monitor.c (monitor_insert_breakpoint): Ditto.
10174 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10175
10176 * config/mcore/tm-mcore.h: Update copyright.
10177 * mem-break.c: Ditto.
10178 * xstormy16-tdep.c: Ditto.
10179
29f319b8
PM
101802002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10181
10182 * p-exp.y: Add precedence rule for '^' token.
10183 This removes the shift/reduce conflicts.
10184 Remove the comment concerning these shift/reduce conflicts.
10185
ebeac11a
EZ
101862002-04-18 Elena Zannoni <ezannoni@redhat.com>
10187
10188 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10189 (registers_powerpc_nofp): New register set for processors
10190 without floating point unit.
10191
27c31547
DM
101922002-04-18 David S. Miller <davem@redhat.com>
10193
10194 * MAINTAINERS: Add myself to write-after-approval.
10195
47a73475
MS
101962002-04-17 Michael Snyder <msnyder@redhat.com>
10197
10198 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10199
953836b2
AC
102002002-04-17 Andrew Cagney <ac131313@redhat.com>
10201
10202 * rs6000-tdep.c (frame_initial_stack_address): Use
10203 frame_register_read to read the alloca_reg.
10204
8b0d4340
AC
102052002-04-17 Andrew Cagney <ac131313@redhat.com>
10206
10207 * frame.c (find_saved_register): Find saved registers in the next
10208 not prev frame.
10209 Fix PR gdb/365.
10210
d8864532
AC
102112002-04-17 Andrew Cagney <ac131313@redhat.com>
10212
10213 * gdbarch.sh (LANG): Set to ``c''.
10214
36cc83a3 102152002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 10216
36cc83a3 10217 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 10218
2f4150cc 102192002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
10220
10221 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10222 Update copyright.
10223
628703c6 10224 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 10225 Also fix PR gdb/391.
361d1df0 10226
56157b4a
AC
102272002-04-14 Andrew Cagney <ac131313@redhat.com>
10228
10229 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10230 * aclocal.m4, configure: Re-generate.
10231 Fix PR gdb/391.
361d1df0 10232
6d1e3329
EZ
102332002-04-14 Elena Zannoni <ezannoni@redhat.com>
10234
10235 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10236 instead of tm_print_insn.
10237
cb06fa07
EZ
102382002-04-14 Elena Zannoni <ezannoni@redhat.com>
10239
10240 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10241
f208ba17
AC
102422002-04-14 Andrew Cagney <ac131313@redhat.com>
10243
10244 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10245 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10246 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10247
20f01a46
DH
102482002-04-12 Don Howard <dhoward@redhat.com>
10249
10250 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10251 max_user_call_depth.
10252 (init_cmd_lists): Initialize the new value;
10253 * cli/cli-script.c (execute_user_command): Limit the call depth of
10254 user defined commands. This avoids a core-dump when user commands
10255 are infinitly recursive.
10256
a88376a3
KB
102572002-04-12 Kevin Buettner <kevinb@redhat.com>
10258
10259 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10260 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10261 from tdep struct instead of DEFAULT_LR_SAVE.
10262 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10263 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10264 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10265
f2172603
MS
102662002-04-12 Michael Snyder <msnyder@redhat.com>
10267
694f61fb 10268 * Remote.c: Spelling fix.
20fe79c8
MS
10269 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10270 If no symbol found for "sbrk", try "_sbrk".
10271 (make_output_phdrs): Use bfd_section_name.
10272 (gcore_copy_callback): Use bfd_section_name.
62995fc4 10273 * eval.c: Indentation fix-ups.
169a7369
MS
10274 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10275 in case it gets applied to an address that is already
10276 in the instruction space.
de74f71f
MS
10277 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10278 * symfile.c: Fix indentation, long lines.
f2172603
MS
10279 * source.c: White space fix-up.
10280
cda5a58a
AC
102812002-04-12 Andrew Cagney <cagney@redhat.com>
10282
10283 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10284 * frame.c (frame_register_read): New function. Return non-zero on
10285 success.
10286 (read_relative_register_raw_bytes_for_frame): Delete.
10287 (read_relative_register_raw_bytes): Delete.
10288 * frame.h (frame_register_read): Declare.
10289 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10290 * sh-tdep.c: Ditto.
10291 * infcmd.c (do_registers_info): Ditto.
10292 * hppa-tdep.c: Ditto.
10293 * rs6000-tdep.c: Ditto.
10294 * h8500-tdep.c: Ditto.
10295 * mips-tdep.c: Ditto.
10296 * h8300-tdep.c: Ditto.
10297 * z8k-tdep.c: Ditto.
10298
2ea5f656
KB
102992002-04-12 Kevin Buettner <kevinb@redhat.com>
10300
10301 From Jimi X <jimix@watson.ibm.com>:
10302 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10303 64-bit SysV ABI.
10304
27b15785
KB
103052002-04-12 Kevin Buettner <kevinb@redhat.com>
10306
10307 From Jimi X <jimix@watson.ibm.com>:
10308 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10309 bfd info.
10310
5d57ee30
KB
103112002-04-12 Kevin Buettner <kevinb@redhat.com>
10312
10313 From Jimi X <jimix@watson.ibm.com>:
10314 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10315 register sets for these processor variants.
10316
bc1e36ca
DJ
103172002-04-11 Daniel Jacobowitz <drow@mvista.com>
10318
bc1e36ca
DJ
10319 * regformats/reg-ppc.dat: Support FPSCR.
10320
e3f36dbd
KB
103212002-04-11 Kevin Buettner <kevinb@redhat.com>
10322
10323 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10324 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10325 Add fpscr as an invalid/unfetchable register.
10326 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10327 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10328 (fill_fpregset): Add support for register fpscr.
10329 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10330 (fill_gregset): Account for the fact that register ``mq'' might
10331 not exist.
10332 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10333 (registers_power): Add fpscr to register set at slot 71.
10334 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10335 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10336
943c9c25
MS
103372002-04-11 Michael Snyder <msnyder@redhat.com>
10338
10339 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10340 * configure: Regenerate.
10341 * config.in: Regenerate.
10342 * acconfig.h: Add define for _SYSCALL32.
10343 * core-sol2.c: Remove #define _SYSCALL32.
10344 * solib-legacy.c: Remove #define _SYSCALL32.
10345
d8c0a2e7
AC
103462002-04-10 Andrew Cagney <ac131313@redhat.com>
10347
10348 * stack.c (select_frame): Cleanup internal error message, do not
10349 use %p.
10350
7cc19214
AC
103512002-04-10 Andrew Cagney <ac131313@redhat.com>
10352
10353 * stack.c (select_frame): Check that selected_frame and the
10354 specified level are as expected.
10355 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10356 Update copyright.
10357 * frame.h (struct frame_info): Add field `level'. Update
10358 copyright.
10359 Work-in-progress PR gdb/464.
10360
67a2b77e
AC
103612002-04-10 Andrew Cagney <ac131313@redhat.com>
10362
10363 * maint.c (maint_print_section_info): Rename print_section_info.
10364 (print_bfd_section_info, print_objfile_section_info): Update.
10365 * inferior.h (struct gdbarch): Add opaque declaration.
10366 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10367 * gdbarch.h: Regenerate.
10368
8cfda98c
ML
103692002-04-10 Michal Ludvig <mludvig@suse.cz>
10370
10371 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10372 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10373 (kernel_u_size): Added.
10374 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10375 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10376
ca439ad2 103772002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 10378
ca439ad2
JI
10379 * valarith.c (find_size_for_pointer_math): New function, either returns
10380 the size for a pointer's target, returns 1 for void *, or errors for
10381 incomplete types.
10382 (value_add, value_sub): use find_size_for_pointer_math.
10383
2f2893d9
DJ
103842002-04-09 Daniel Jacobowitz <drow@mvista.com>
10385
10386 * linux-low.c (linux_look_up_symbols): New hook.
10387 (linux_target_ops): Add linux_look_up_symbols.
10388 * remote-utils.c (decode_address): New function.
10389 (look_up_one_symbol): New function.
10390 * server.c (handle_query): Call target look_up_symbols hook.
10391 * server.h (look_up_one_symbol): Add prototype.
10392 * target.h (struct target_ops): Add look_up_symbols hook.
10393
96cb11df
AC
103942002-04-09 Andrew Cagney <ac131313@redhat.com>
10395
10396 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10397 override FP_REGNUM with frame->fp. Update copyright.
10398 * parse.c (num_std_regs, std_regs): Delete.
10399 (target_map_name_to_register): Do not search std_regs. Update
10400 function description.
10401 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10402 declarations. Update copyright.
10403 Fix PR gdb/251.
361d1df0 10404
97658e92
DJ
104052002-04-09 Daniel Jacobowitz <drow@mvista.com>
10406
10407 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10408 after the last symbol in a block.
10409
6044e3eb
PM
104102002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10411
10412 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10413 is non zero as a found symbol.
10414
0406ec40
AC
104152002-04-08 Andrew Cagney <ac131313@redhat.com>
10416
10417 * findvar.c: Include "builtin-regs.h".
10418 (value_of_register): Call value_of_builtin_reg when applicable.
10419 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10420 (target_map_name_to_register): Call
10421 builtin_reg_map_name_to_regnum.
10422 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10423 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10424 (builtin_regs_h): Define.
10425 (builtin-regs.o): New target.
10426 (findvar.o): Add $(builtin_regs_h).
10427 * builtin-regs.c, builtin-regs.h: New files.
10428 * std-regs.c: New file.
10429 Partial fix for PR gdb/251.
10430
56a6dfb9
KB
104312002-04-08 Kevin Buettner <kevinb@redhat.com>
10432
10433 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10434 it's no longer required.
10435
3a808432
AC
104362002-04-08 Andrew Cagney <ac131313@redhat.com>
10437
10438 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10439
7c40d541
KB
104402002-04-08 Kevin Buettner <kevinb@redhat.com>
10441
10442 From Jimi X <jimix@watson.ibm.com>:
10443 * rs6000-tdep.c (rs6000_software_single_step): Use
10444 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10445 and size. Use target_insert_breakpoint() and
10446 target_remove_breakpoint() to insert and remove breakpoints
10447 instead of explicit memory reads and writes.
10448
cc9836a8
KB
104492002-04-08 Kevin Buettner <kevinb@redhat.com>
10450
10451 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10452 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10453 ELF_OBJECT_FORMAT ifdef.
10454
7495d1dc
KB
104552002-04-08 Kevin Buettner <kevinb@redhat.com>
10456
10457 From Jimi X <jimix@watson.ibm.com>:
10458 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10459
4288e836
KB
104602002-04-08 Kevin Buettner <kevinb@redhat.com>
10461
10462 From Jimi X <jimix@watson.ibm.com>:
10463 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10464 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10465
a4e4e501
MK
104662002-04-07 Mark Kettenis <kettenis@gnu.org>
10467
10468 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10469 s/asprintf/xasprintf/.
10470 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10471
006defba
AC
104722002-04-07 Andrew Cagney <ac131313@redhat.com>
10473
10474 I believe Jeff Law denies responsability for this one:
10475 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10476 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10477 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10478 Work-around for PR gdb/366.
10479
7aa83cac
EZ
104802002-04-07 Elena Zannoni <ezannoni@redhat.com>
10481
10482 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10483 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10484 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10485
cf1fcca1
EZ
104862002-04-07 Elena Zannoni <ezannoni@redhat.com>
10487
10488 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10489 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10490 information.
10491
3f289e6f
AC
104922002-04-07 Andrew Cagney <ac131313@redhat.com>
10493
10494 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10495 maintainer.
10496
129188f6
AC
104972002-04-07 Andrew Cagney <ac131313@redhat.com>
10498
10499 * README (Reporting Bugs in GDB): Document the bug web page as the
10500 prefered way of submitting bugs.
10501 Fix PR gdb/402.
10502
1200cd6e
AC
105032002-04-06 Andrew Cagney <ac131313@redhat.com>
10504
10505 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10506 -1. Update comment.
10507 * gdbarch.h, gdbarch.c: Re-generate.
10508
2853c33c
AS
105092002-04-07 Andreas Schwab <schwab@suse.de>
10510
10511 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10512 buffer to regcache_collect.
10513
c2169756
AC
105142002-04-06 Andrew Cagney <ac131313@redhat.com>
10515
10516 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10517 * gdbarch.c, gdbarch.h: Re-generate.
10518
25f1b008
AC
105192002-04-06 Andrew Cagney <ac131313@redhat.com>
10520
10521 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10522 declaration. Fix -Werror.
10523
59263426
DJ
105242002-04-05 Daniel Jacobowitz <drow@mvista.com>
10525
10526 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10527 * gdbarch.c: Regenerate.
10528
f5db4da3
MS
105292002-04-05 Michael Snyder <msnyder@redhat.com>
10530
80f8a6eb
MS
10531 * breakpoint.c (clear_command): Rewrite middle section to
10532 combine two loops with identical control conditions.
10533 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10534 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10535
ad3dcc5c
L
105362002-04-05 H.J. Lu (hjl@gnu.org)
10537
10538 * solib-svr4.c (bkpt_names): Add "__start".
10539
f32e7a74
AC
105402002-04-04 Andrew Cagney <ac131313@redhat.com>
10541
10542 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10543 as test for 64 bit target.
10544
8227c0ff
AC
105452002-04-05 Andrew Cagney <ac131313@redhat.com>
10546
10547 * h8500-tdep.c (h8500_write_fp): Delete function.
10548 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10549 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10550 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10551 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10552 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10553 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10554 (s390_write_fp):
10555 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10556 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10557 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10558 (d10v_write_fp): Delete function.
10559 * inferior.h (write_fp, generic_target_write_fp): Delete
10560 declarations.
10561 * regcache.c (generic_target_write_fp): Delete function.
10562 (write_fp): Delete function.
10563 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10564 * gdbarch.h, gdbarch.c: Regenerate.
10565 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10566 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10567 (sparc64_write_fp): Delete declaration.
10568 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10569 (h8500_write_fp): Delete declaration.
10570
2757dd86
AC
105712002-04-04 Andrew Cagney <ac131313@redhat.com>
10572
10573 * sparc-tdep.c (sparc64_write_fp): Delete.
10574 (sparc_push_dummy_frame): Replace write_fp call with code to store
10575 the FP directly.
10576 (sparc_gdbarch_init): Do not initialize write_fp.
10577
c69255e1
KB
105782002-04-05 Kevin Buettner <kevinb@redhat.com>
10579
10580 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10581 clause.
10582
ae767bfb
JB
105832002-03-29 Jim Blandy <jimb@redhat.com>
10584
10585 * stack.c (get_selected_block): Add new argument `addr_in_block',
10586 used to return the exact code address we used to select the block,
10587 not just the block.
10588 * blockframe.c (get_frame_block, get_current_block): Same.
10589 * frame.h (get_frame_block, get_current_block,
10590 get_selected_block): Update declarations.
10591 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10592 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10593
84d2ac95
MS
105942002-04-05 Michael Snyder <msnyder@redhat.com>
10595
10596 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10597 warning message.
10598
596aa3bf
JB
105992002-04-05 J. Brobecker <brobecker@gnat.com>
10600
10601 * utils.c (xfullpath): New function.
10602 * defs.h (xfullpath): Add declaration.
10603 * source.c (openp): Use xfullpath in place of gdb_realpath to
10604 avoid resolving the basename part of filenames when the
10605 associated file is a symbolic link. This fixes a potential
10606 inconsistency between the filenames known to GDB and the
10607 filenames it prints in the annotations.
10608 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10609 to be able to match a filename with either the real filename, or
10610 the name of any symbolic link to this file.
10611 (lookup_partial_symtab): Ditto.
10612
c02f5703
MS
106132002-04-04 Michael Snyder <msnyder@redhat.com>
10614
10615 * breakpoint.c: Add support for hardware breakpoints in overlays.
10616 (overlay_events_enabled): New state variable.
10617 (insert_breakpoints): Use overlay_events_enabled to decide
10618 whether to attempt to set a breakpoint at the overlay load addr.
10619 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10620 (remove_breakpoint): Use overlay_events_enabled to decide
10621 whether breakpoints need to be removed from overlay load addr.
10622 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10623 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 10624 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
10625 disable_overlay_breakpoints): Update overlay_events_enabled.
10626
5fb290d7
DJ
106272002-04-04 Daniel Jacobowitz <drow@mvista.com>
10628
10629 * dwarf2read.c (struct function_range): New.
10630 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10631 (check_cu_functions): New.
10632 (read_file_scope): Initialize global function lists.
10633 Call dwarf_decode_line after processing children.
10634 (read_func_scope): Add to global function list.
10635 (dwarf_decode_lines): Call check_cu_functions everywhere
10636 record_line is called. Call record_line with a linenumber
10637 of 0 to mark sequence ends.
10638
7b3fabf0
ML
106392002-04-04 Michal Ludvig <mludvig@suse.cz>
10640
361d1df0 10641 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10642 change sync with glibc.
10643
bce58c09
JB
106442002-04-03 Jim Blandy <jimb@redhat.com>
10645
10646 * configure.in: Call AC_C_INLINE.
10647 * configure: Regenerated.
361d1df0 10648
2fccf04a
DJ
106492002-04-01 Daniel Jacobowitz <drow@mvista.com>
10650
10651 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10652 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10653
2d1bfe2e
MK
106542002-03-31 Mark Kettenis <kettenis@gnu.org>
10655
a5941fbf
MK
10656 * NEWS: Mention gcore support on FreeBSD/i386.
10657
a90cd31d
MK
10658 * fbsd-proc.c: New file.
10659 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10660 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10661
2d1bfe2e
MK
10662 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10663 while statement.
10664
9eb6e5a1
JB
106652002-03-29 Jim Blandy <jimb@redhat.com>
10666
10667 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10668 unescaped newlines in string literals, but newer ones don't. So
10669 escape them.
10670
f02df580
MS
106712002-03-26 Michael Snyder <msnyder@redhat.com>
10672 Andrew Cagney <cagney@redhat.com>
10673
361d1df0 10674 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10675 restore file to memory.
10676 * cli/cli-dump.h: New file.
10677 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10678 * NEWS: Mention new commands.
f02df580 10679
109f874e
MS
106802002-03-28 Michael Snyder <msnyder@redhat.com>
10681
10682 * symfile.c (symbol_file_add): Move test for null symbols to later.
10683
520f6ade
AC
106842002-03-27 Andrew Cagney <ac131313@redhat.com>
10685
10686 From veksler at il.ibm.com:
10687 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10688 the xstrduped original path.
10689 Fix PR gdb/417.
10690
d4654627
MS
106912002-03-27 Michael Snyder <msnyder@redhat.com>
10692
10693 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10694 * infcmd.c (_initialize_infcmd): Ditto.
10695 * language.c (_initialize_language): Ditto.
10696 * symfile.c (_initialize_symfile): Ditto.
10697 * top.c (_init_main): Ditto.
10698 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10699
6be8bc0c
EZ
107002002-03-27 Elena Zannoni <ezannoni@redhat.com>
10701
10702 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10703 vector registers handling.
10704 (skip_prologue): Handle new AltiVec instructions. Fill in new
10705 fields of frame data.
10706 (frame_get_saved_regs): Fill in information for AltiVec registers.
10707
12af6855
JB
107082002-03-27 Jim Blandy <jimb@redhat.com>
10709
10710 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10711 a function; leave this macro here to invoke that function.
10712 (symbol_init_mangled_name): Declaration for that function.
10713 * symtab.c (symbol_init_mangled_name): New function.
10714
dc672865
AC
107152002-03-27 Andrew Cagney <ac131313@redhat.com>
10716
10717 * valarith.c: Replace strerror with safe_strerror.
10718 * tracepoint.c: Ditto.
10719 * lin-lwp.c: Ditto.
10720 * go32-nat.c: Ditto.
10721 * inflow.c: Ditto.
10722 * gnu-nat.c: Ditto.
10723
d96429cd
AS
107242002-03-27 Andreas Schwab <schwab@suse.de>
10725
10726 * event-top.c (command_line_handler): Remove useless if.
10727
7e336ba1
AJ
107282002-03-27 Andreas Jaeger <aj@suse.de>
10729
10730 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10731 comment.
10732
de220d0f
ML
107332002-03-27 Michal Ludvig <mludvig@suse.cz>
10734
10735 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10736 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10737 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10738 (x86_64_linux_dr_get_status, supply_gregset),
10739 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10740 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10741 (x86_64_register_info_table): Add.
10742 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10743 (x86_64_register_raw_size, x86_64_register_virtual_type),
10744 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10745 general x86_64_register_info_table.
10746 (i386_gdbarch_init): gdbarch_register_bytes is now set
10747 dynamicaly during initialization.
10748 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10749 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10750
0e98d0a7
DJ
107512002-03-27 Daniel Jacobowitz <drow@mvista.com>
10752
10753 * gdbserver/server.c (main): Call target_signal_to_host_p
10754 and target_signal_to_host on signals received from the remote.
10755 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10756 target_signal_from_host on signals sent to the remote.
10757 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10758 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10759
3130066b
DJ
107602002-03-27 Daniel Jacobowitz <drow@mvista.com>
10761
10762 * signals/signals.c: Include "server.h" in gdbserver build.
10763 (target_signal_from_name): Don't use STREQ.
10764 (_initialize_signals): Likewise. Don't include function in
10765 gdbserver build.
10766
9aedf4f4
DJ
107672002-03-27 Daniel Jacobowitz <drow@mvista.com>
10768
10769 * signals.c: Moved to...
10770 * signals/signals.c: Here.
7e336ba1 10771 * Makefile (signals.o): Update.
9aedf4f4 10772
3fa41cdb
JL
107732002-03-26 Jeff Law (law@redhat.com)
10774
10775 * somread.c (som_symtab_read): Remove some commented out code and
10776 updated related comments. Do not set the minimal symbol table to
10777 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10778 in a dynamic executable.
10779 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10780 where we are unable to find the minimal symbol for the given
10781 PC value.
10782
ee677e8d
MS
107832002-03-25 Jeff Law (law@redhat.com)
10784
10785 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10786
e76e1718
ML
107872002-03-25 Michal Ludvig <mludvig@suse.cz>
10788
10789 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10790
18a642a1
AC
107912002-03-23 Andrew Cagney <ac131313@redhat.com>
10792
10793 * command.h: Update copyright.
10794 (struct cmd_list_element): Replace definition with opaque
10795 declaration.
10796 (enum cmd_types): Document that it will eventually be moved to
10797 cli/cli-decode.h
10798 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10799 (MALLOCED_REPLACEMENT): Delete macro.
10800 * Makefile.in (cli_decode_h): Add $(command_h).
10801 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 10802 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
10803 * completer.c: Include "cli/cli-decode.h".
10804 * maint.c: Include "cli/cli-decode.h".
10805 * cli/cli-decode.h: Include "command.h".
10806 (enum command_class): Delete.
10807 (enum cmd_types): Comment out.
10808 (enum cmd_auto_boolean): Delete.
10809 (enum var_types): Delete.
10810
b2875cc0
AC
108112002-03-23 Andrew Cagney <ac131313@redhat.com>
10812
10813 * cli/cli-decode.c: Include "gdb_assert.h".
10814 (add_set_or_show_cmd): New static function.
10815 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10816 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10817 all fields, such as func, from the set command.
10818
3b45974e
AC
108192002-03-23 Andrew Cagney <ac131313@redhat.com>
10820
10821 * MAINTAINERS (sh-elf): Change warning flag to -w.
10822
823ca731
AC
108232002-03-23 Andrew Cagney <cagney@redhat.com>
10824
10825 * defs.h (error): Add printf format attribute.
10826 * thread-db.c (thread_from_lwp): Fix error format string.
10827 * stack.c (parse_frame_specification): Ditto.
10828 * cli/cli-decode.c (undef_cmd_error): Ditto.
10829 * scm-lang.c (scm_lookup_name): Ditto.
10830 * tracepoint.c (trace_error): Ditto.
10831 * remote-utils.c (usage): Ditto.
10832 * remote.c (compare_sections_command): Ditto.
10833 Fix PR gdb/328.
10834
0e101458
AC
108352002-03-22 Andrew Cagney <ac131313@redhat.com>
10836
10837 * gdbtypes.c (append_composite_type_field): New function.
10838 (init_composite_type): New function.
10839 * gdbtypes.h (append_composite_type_field): Declare.
10840 (init_composite_type): Ditto.
10841
8e0662df
EZ
108422002-03-22 Elena Zannoni <ezannoni@redhat.com>
10843
10844 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 10845 function.
8e0662df
EZ
10846 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10847 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10848 structure returning convention for SYSV ABI case, but not
10849 for GNU/Linux, FreeBSD, or NetBSD.
10850
3121eff0
DJ
108512002-03-22 Daniel Jacobowitz <drow@mvista.com>
10852
10853 * symtab.h (lookup_block_symbol): Add mangled_name argument
10854 to prototype.
10855
10856 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10857 with new mangled_name argument.
10858 * linespec.c (decode_line_1): Likewise.
10859 * valops (value_of_this): Likewise.
10860 * symtab.c (lookup_transparent_type): Likewise.
10861 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10862 (lookup_symbol): If we are given a mangled name, pass it down
10863 to lookup_symbol_aux.
10864 (lookup_block_symbol): If we are given a mangled name to check
10865 against, only return symbols which match it.
10866
349b409f
CF
108672002-03-22 Christopher Faylor <cgf@redhat.com>
10868
10869 * win32-nat.c (child_create_inferior): Check for proper shell to use
10870 here, in case the user changes it on the fly.
10871 (_initialize_inftarg): Remove shell path considerations.
10872
2a873819
EZ
108732002-03-21 Elena Zannoni <ezannoni@redhat.com>
10874
10875 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10876 for gdbarch_max_register_raw_size and max_register_virtual_size.
10877 Adjust copyright year.
10878
a1b9830c
DJ
108792002-03-21 Daniel Jacobowitz <drow@mvista.com>
10880
10881 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10882 in a function to cover the entire beginning of the function
10883 as well if it does not already.
10884
8b5790f2
TR
108852002-03-21 Tom Rix <trix@redhat.com>
10886
10887 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10888 (rs6000_ptrace64): Renamed from ptrace64.
10889
bdbe5747
MH
108902002-03-20 Martin M. Hunt <hunt@redhat.com>
10891
10892 * gdbserver/remote-utils.c (remote_open): Don't call
10893 getprotobyname, we're all using TCP here so just use
10894 IPPROTO_TCP.
7e336ba1 10895 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
10896
108972002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 10898
bdbe5747
MH
10899 * regcache.c (_initialize_regcache): No need to call
10900 build_regcache() at this time; it gets called whenever
10901 the gdbarch changes.
10902
7781cd62
DB
109032002-03-20 David O'Brien <obrien@FreeBSD.org>
10904
10905 * sparc-nat.c: Include sys/param.h where possible.
10906
f65ca430
DJ
109072002-03-20 Daniel Jacobowitz <drow@mvista.com>
10908
10909 Fix PR gdb/422.
10910 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10911 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10912 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10913 complex types.
10914 * stabsread.c (rs6000_builtin_type): Likewise.
10915 (read_sun_floating_type): Likewise.
10916
0c867556
PS
109172002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10918
10919 * stabsread.c (read_member_functions): Remove skip code for duplicate
10920 constructor/destructor methods. Use standard parsing for these
10921 methods and just do not chain them to the list of methods after
10922 parsing.
10923
12b9c64f
AO
109242002-03-19 Alexandre Oliva <aoliva@redhat.com>
10925
10926 * coffread.c: Remove redundant static declarations. Replace
10927 occurrences of `PTR' with `void *'.
10928 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10929 * top.h (quit_cover): Likewise.
10930 * defs.h (catch_errors): Likewise.
10931
349c5d5f
AC
109322002-03-18 Andrew Cagney <ac131313@redhat.com>
10933
10934 * defs.h (XMALLOC): Define.
10935 * gdb-events.sh (XMALLOC): Delete macro.
10936 * gdb-events.c, gdb-events.h: Regenerate.
10937 * gdbarch.sh (XMALLOC): Delete macro.
10938 * gdbarch.c: Regenerate.
10939 * serial.c (XMALLOC): Delete macro.
10940 * ui-file.c (XMALLOC): Ditto.
10941 * ser-unix.h (XMALLOC): Ditto.
10942 * sh-tdep.c (XMALLOC): Ditto.
10943 * ui-out.c (XMALLOC): Ditto.
10944 * utils.c (XMALLOC): Ditto.
10945 * i386-tdep.c (XMALLOC): Ditto.
10946 * gdb-events.c (XMALLOC): Ditto.
10947 * d10v-tdep.c (XMALLOC): Ditto.
10948 * cli-out.c (XMALLOC): Ditto.
10949
10950 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10951 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10952 * ui-file.c, ui-out.c: Ditto.
10953
7d0766f3
AC
109542002-03-18 Andrew Cagney <ac131313@redhat.com>
10955
10956 * command.h (struct cmd_list_element): Add field context.
10957 (set_cmd_context, get_cmd_context): Declare.
10958 * cli/cli-decode.h: Ditto.
10959 * cli/cli-decode.c (get_cmd_context): New function.
10960 (set_cmd_context): New function.
10961 (add_cmd): Initialize context.
10962 Part of fixing PR gdb/145 and PR gdb/146.
10963
5913bcb0
AC
109642002-03-17 Andrew Cagney <ac131313@redhat.com>
10965
1868c04e
AC
10966 * cli/cli-decode.c (cmd_type): New function.
10967 * command.h (cmd_type): Declare.
10968 * infrun.c (set_schedlock_func): Call function cmd_type.
10969 * kod.c (kod_set_os): Call cmd_type.
10970 * cris-tdep.c (cris_version_update): Use function cmd_type.
10971 (cris_mode_update, cris_abi_update): Ditto.
10972
5913bcb0
AC
10973 * command.h: (execute_cmd_post_hook): Declare.
10974 (execute_cmd_pre_hook): Declare.
10975 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10976 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10977 functions. Execute pre/post hook while ensuring that afterwords
10978 hook_in is cleared.
10979 * top.c (execute_command): Use execute_cmd_post_hook, and
10980 execute_cmd_pre_hook to execute pre/post commands.
10981 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10982 hook_stop_stub.
10983 (hook_stop_stub): Call execute_cmd_pre_hook.
10984
b51450c9
AC
109852002-03-17 Andrew Cagney <ac131313@redhat.com>
10986
10987 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10988 set'' and this leads to a core dump. Move xstrdup of
10989 operating_system to after check that it is not NULL.
10990
f66c9f11
AC
109912002-03-17 Andrew Cagney <ac131313@redhat.com>
10992
8e694ecf
AC
10993 * kod.c (kod_set_os): Remove unnecessary check that
10994 ``command->type'' is set_cmd.
10995
f66c9f11
AC
10996 * valprint.c (set_input_radix): Use input_radix.
10997 (set_output_radix): Use output_radix.
10998 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10999 isn't reverted.
11000
9d01611c
AC
110012002-03-16 Andrew Cagney <ac131313@redhat.com>
11002
11003 * value.h (struct value): Delete field ``substring_addr''. Change
11004 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
11005 force_core_addr_align and force_pointer_aligh.
11006
11007 * value.h (struct value): Fix typo in above change.
9d01611c 11008
4156bb53
PS
110092002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11010
11011 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11012 to fix internal_error from ``maintenance print architecture''.
11013
0e5e3ea6
PS
110142002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11015
11016 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11017 for gcc versions after gcc-2.8.1.
11018
9b013045
PS
110192002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11020
11021 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11022 for method resolution. Restore adjustment of ``this'' pointer after
11023 calling value_struct_elt, which was accidentally removed during the
11024 HP merge.
11025
376c9600
AC
110262002-03-15 Andrew Cagney <ac131313@redhat.com>
11027
11028 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11029 value_of_register.
11030 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11031 get_saved_register.
11032 * value.h (value_of_register): Update.
11033
a4db0f07
RH
110342002-03-14 Richard Henderson <rth@redhat.com>
11035
11036 * configure.in: Detect declaration for canonicalize_file_name.
11037 * utils.c (canonicalize_file_name): Declare, if needed.
11038 (gdb_realpath): Prefer realpath if available and usable.
11039 * config.in, configure: Rebuild.
11040
96383835
RH
110412002-03-14 Richard Henderson <rth@redhat.com>
11042
11043 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11044 a constant array bound.
11045
11046 * MAINTAINERS: Add myself to write-after-approval.
11047
75245b24
MS
110482002-03-14 Michael Snyder <msnyder@redhat.com>
11049
11050 * symfile.c (syms_from_objfile): Return immediately if no syms.
11051 (symbol_file_add): Return immediately if no syms.
11052 (find_sym_fns): Return immediately if no syms.
11053
e641a1ca
ML
110542002-03-13 Michal Ludvig <mludvig@suse.cz>
11055
11056 * gdbserver/remote-util.c (remote_open): Print remote-side's
11057 IP address when remote debugging over the network.
7e336ba1 11058
df08bfec
DB
110592002-03-12 David O'Brien <obrien@FreeBSD.org>
11060
11061 * config/sparc/fbsd.mh: Fix copyright.
11062 * config/sparc/fbsd.mt: Likewise.
11063
9a57864f
RE
110642002-03-11 Richard Earnshaw <rearnsha@arm.com>
11065
11066 * MAINTAINERS: Fix typo in name of gdb warnings option.
11067 (x86-64): Fix formating so that this can be parsed by awk.
11068
dd7bf85e
DJ
110692002-03-10 Daniel Jacobowitz <drow@mvista.com>
11070
11071 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11072 * defs.h: Include "gdb/signals.h".
11073 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11074
33a0a2ac
ML
110752002-03-10 Michal Ludvig <mludvig@suse.cz>
11076
11077 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 11078 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
11079 from x86-64-tdep.h
11080
dd824b04
DJ
110812002-03-10 Daniel Jacobowitz <drow@mvista.com>
11082 Don Howard <dhoward@redhat.com>
11083
11084 * mips-tdep.c (ST0_FR): Define.
11085 (mips2_fp_compat): New function, temporarily disabled.
11086 (mips_read_fp_register_single): New function.
11087 (mips_read_fp_register_double): New function.
11088 (mips_print_register): Use them.
11089 (do_fp_register_row): Likewise.
11090
6a41ff59
AC
110912002-03-09 Andrew Cagney <ac131313@redhat.com>
11092
11093 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11094 approval''.
11095
4ea09c10
PS
110962002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11097
11098 * stabsread.c (read_member_functions): Fix is_stub test for
11099 static member functions, improve comment.
11100
6ccc741d
RE
111012002-03-07 Richard Earnshaw <rearnsha@arm.com>
11102
11103 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11104 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11105 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11106 commands that set boolean values.
11107 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11108 (arm_rdi_resume): Always initialize PC.
11109 (arm_rdi_open): Don't use rslt as a boolean.
11110 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11111 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11112 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11113 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11114
438013df
AO
111152002-03-06 Alexandre Oliva <aoliva@redhat.com>
11116
11117 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11118 * configure: Rebuilt.
11119
70ed8774
SC
111202002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11121
11122 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11123 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11124
5ba2abeb
AC
111252002-03-06 Andrew Cagney <ac131313@redhat.com>
11126
11127 * cli/cli-decode.c (set_cmd_completer): New function.
11128 * command.h (set_cmd_completer): Declare.
11129 * cli/cli-decode.h (set_cmd_completer): Ditto.
11130
11131 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11132 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11133 * win32-nat.c (_initialize_inftarg): Ditto.
11134 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11135 * proc-api.c (_initialize_proc_api): Ditto.
11136 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11137 * source.c (_initialize_source): Ditto.
11138 * exec.c (_initialize_exec): Ditto.
11139 * solib.c (_initialize_solib): Ditto.
11140 * top.c (init_main): Ditto.
11141 * tracepoint.c (_initialize_tracepoint): Ditto.
11142 * symfile.c (_initialize_symfile): Ditto.
11143 * printcmd.c (_initialize_printcmd): Ditto.
11144 * infcmd.c (_initialize_infcmd): Ditto.
11145 * corefile.c (_initialize_core): Ditto.
11146
f779ca99
AC
111472002-03-05 Andrew Cagney <ac131313@redhat.com>
11148
11149 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11150
01a3934b
AC
111512002-03-05 Andrew Cagney <ac131313@redhat.com>
11152
11153 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11154
37057839
AC
111552002-03-05 Andrew Cagney <ac131313@redhat.com>
11156
11157 * NEWS: Update headings, 5.2 has branched.
11158
c6ecbae5
DJ
111592002-03-04 Daniel Jacobowitz <drow@mvista.com>
11160
11161 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11162 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11163 (register_addr, REGISTER_RAW_SIZE): Likewise.
11164 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11165 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11166
e9f30c21
ML
111672002-03-03 Michal Ludvig <mludvig@suse.cz>
11168
11169 * MAINTAINERS (x86-64): Add myself.
11170 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11171 changed value_ptr -> struct value *
11172
54394ac3
DB
111732002-03-01 David O'Brien <obrien@FreeBSD.org>
11174
11175 * configure.host (sparc64-*-freebsd): Add.
11176 * configure.tgt: Likewise.
11177 * config/sparc/fbsd.mh: New file.
11178 * config/sparc/fbsd.mt: Likewise.
11179 * config/sparc/nm-fbsd.h: Likewise.
11180 * config/sparc/tm-fbsd.h: Likewise.
11181
bfe95955
DJ
111822002-03-01 Daniel Jacobowitz <drow@mvista.com>
11183
11184 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11185 regformats/reg-s390x.dat.
11186
f33c6cbf
AC
111872002-03-01 Andrew Cagney <ac131313@redhat.com>
11188
11189 * utils.c: Add FIXME explaining true/false problem.
11190
5ecaa7dd
AC
111912002-02-28 Andrew Cagney <ac131313@redhat.com>
11192
11193 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11194
2a251cc2
MC
111952002-02-28 Michael Chastain <mec@shout.net>
11196
11197 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11198
6a8031a3 111992002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
11200
11201 * gdbserver/linux-s390-low.c: New file.
11202 * regformats/reg-s390.dat: New file.
11203 * regformats/reg-s390x.dat: New file.
11204 * gdbserver/configure.srv: Add S/390.
11205 * gdbserver/Makefile.in: Add S/390.
11206 * configure.tgt: Enable gdbserver for S/390.
11207
ac469903
EZ
112082002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11209
11210 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11211 first line of the doc string for "info dos", except at the end of
11212 the sentence, since the short help stops at the first period.
11213
985cb1a3
JM
112142002-02-28 Jason Merrill <jason@redhat.com>
11215
11216 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11217
c570663e
FF
112182002-02-27 Fred Fish <fnf@redhat.com>
11219
11220 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11221 comment (dumy -> dummy).
11222
43630227
PS
112232002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11224
11225 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11226
b84911e8
RB
112272002-02-27 Rodney Brown <rbrown64@csc.com.au>
11228
11229 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11230
58caa3dc
DJ
112312002-02-27 Daniel Jacobowitz <drow@mvista.com>
11232
11233 * gdbserver/acconfig.h: New file.
11234 * gdbserver/i387-fp.c: New file.
11235 * gdbserver/i387-fp.h: New file.
11236 * gdbserver/linux-x86-64.c: New file.
11237 * regformats/reg-x86-64.dat: New file.
11238 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11239 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11240 * gdbserver/configure.in: Add support for regsets.
11241 * gdbserver/config.in: Regenerate.
11242 * gdbserver/configure: Regenerate.
11243 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11244 * gdbserver/linux-low.h: New file.
11245 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11246 for regsets.
11247 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11248 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11249 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11250 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11251 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11252 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11253 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11254 "i387-fp.h". Add PTRACE_GETREGS and friends.
11255 * gdbserver/regcache.c (supply_register): New function.
11256 (supply_register_by_name): New function.
11257 (collect_register): New function.
11258 (collect_register_by_name): New function.
11259
93652174
DJ
112602002-02-27 Daniel Jacobowitz <drow@mvista.com>
11261
11262 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11263 (config.status): Add configure.srv dependency.
11264 (server_h): Add config.h dependency.
11265
a02e4a61
DJ
112662002-02-27 Daniel Jacobowitz <drow@mvista.com>
11267
11268 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11269 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11270 * gdbserver/configure.srv: Change i386-*-linux* to use
11271 reg-i386-linux.o.
11272
ce0eebec
AC
112732002-02-26 Andrew Cagney <ac131313@redhat.com>
11274
11275 * x86-64-tdep.c: Re-indent. Update copyright date.
11276
82dbc5f7
AC
112772002-02-26 Andrew Cagney <ac131313@redhat.com>
11278
11279 From Michal Ludvig <mludvig@suse.cz>:
11280 * x86-64-tdep.c (value.h): Delete.
11281 (gdb_assert.h): Include.
11282 (x86_64_register_convert_to_virtual,
11283 x86_64_register_convert_to_raw ): Add check which lets only
11284 floating-point values to be converted.
11285 (value_push): Delete.
11286 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11287 (i386_gdbarch_init): Number of register_bytes fixed.
11288
e4621584
AC
112892002-02-26 Andrew Cagney <ac131313@redhat.com>
11290
11291 * MAINTAINERS: Add x86-64 target.
11292
81a9a963
AC
112932002-02-26 Andrew Cagney <ac131313@redhat.com>
11294
11295 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11296 * osfsolib.c (solib_map_sections): Ditto.
11297 * irix5-nat.c (solib_map_sections): Ditto.
11298 * corelow.c (gdb_check_format): Ditto.
11299 * symfile.c (symfile_bfd_open): Ditto.
11300 * solib.c (solib_map_sections): Ditto.
11301 Fix PR gdb/354.
7e336ba1 11302
0f017ab9
AC
113032002-02-26 Andrew Cagney <ac131313@redhat.com>
11304
11305 * remote.c (_initialize_remote): By default, disable ``e'' and
11306 ``E'' step out-of-range packets.
11307
75738c29
AS
113082002-02-26 Andreas Schwab <schwab@suse.de>
11309
11310 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11311 m68k_linux_frame_saved_pc.
11312 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11313 in_sigtramp.
11314 (SIGCONTEXT_PC_OFFSET): Remove.
11315 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11316 m68k_linux_sigtramp_saved_pc): New functions.
11317 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11318 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11319 (UCONTEXT_PC_OFFSET): Define.
11320 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11321 non-RT and RT signal trampolines.
11322
7e8ed687
RE
113232002-02-26 Richard Earnshaw <rearnsha@arm.com>
11324
11325 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11326 (TARGET_NBPG, STACK_END_ADDR): Delete
11327 (VARIABLES_INSIDE_BLOCK): Delete.
11328
6972bc8b
AC
113292002-02-25 Andrew Cagney <ac131313@redhat.com>
11330
11331 * utils.c (perror_with_name): Make string parameter constant.
11332 (print_sys_errmsg): Ditto.
11333 (query): Ditto.
11334 * defs.h (perror_with_name): Update.
11335 (print_sys_errmsg): Update.
11336 (query): Update.
11337
aa32f823
DJ
113382002-02-25 Daniel Jacobowitz <drow@mvista.com>
11339
11340 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11341 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11342
19caaa45
PS
113432002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11344
11345 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11346 if it already matches the current architecture from the exec file.
11347 Include arch-utils.h for gdbarch_info_init prototype.
11348 * Makefile.in (rs6000-nat.o): Update dependencies.
11349
d951901f
EZ
113502002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11351
11352 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11353 list of exported variables.
11354
7ea81414
DJ
113552002-02-24 Daniel Jacobowitz <drow@mvista.com>
11356
11357 * gdbserver/configure.srv: New file.
11358 * gdbserver/configure.in: Use configure.srv instead
11359 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11360 from it.
11361 * gdbserver/configure: Regenerated.
11362 * gdbserver/terminal.h: New file.
11363 * gdbserver/Makefile.in: Update for configure changes. Remove
11364 more unneeded include paths.
11365
080fe24b
AC
113662002-02-24 Andrew Cagney <ac131313@redhat.com>
11367
11368 From wiz at danbala:
11369 * config/sparc/tm-sp64.h: Fix grammar and typos.
11370 Fix PR gdb/287.
11371
8605d56e
AC
113722002-02-24 Andrew Cagney <ac131313@redhat.com>
11373
11374 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
11375 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11376 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11377 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
11378 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11379 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11380 * s390-tdep.c: Ditto.
92362027
AC
11381 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11382 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11383 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11384 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11385 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11386 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11387 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11388 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11389 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11390 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 11391 Fix PR gdb/378.
7e336ba1 11392
8ed32cc0
AC
113932002-02-23 Andrew Cagney <ac131313@redhat.com>
11394
a3007b6f
AC
11395 * lin-thread.c: Delete file.
11396 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11397 to gdb_proc_service.h.
11398 * configure: Re-generate.
11399
50a9e2f1
AC
11400 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11401 * serial.c (serial_open): Delete check for "ocd".
11402 Fix PR gdb/349.
11403
8b6e7932
AC
11404 * Makefile.in (linux-thread.o): Delete target.
11405 * linux-thread.c: Delete file.
11406
d155c46b
AC
11407 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11408 renamed SH files to be consistent.
11409
8ed32cc0
AC
11410 * symtab.c (sort_search_symbols): Use xfree.
11411
0e18d038
RE
114122002-02-23 Richard Earnshaw <rearnsha@arm.com>
11413
11414 * arm-linux-tdep.c (arm_linux_init_abi): Register
11415 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11416 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11417 definition with undef, since we don't want the sysvr4 definition.
11418 (SKIP_TRAMPOLINE_CODE): Likewise.
11419
27aac7ff
AC
114202002-02-23 Andrew Cagney <ac131313@redhat.com>
11421
11422 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11423
11424 * configure.in: (AC_CHECK_FUNCS) Added test for
11425 canonicalize_file_name Regenerated.
11426 * config.in, configure: Regenerated.
11427 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11428 defined use canonicalize_file_name.
7e336ba1 11429
65a6e0ee
MC
114302002-02-23 Michael Chastain <mec@shout.net>
11431
11432 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11433
47b95330
AC
114342002-02-23 Andrew Cagney <ac131313@redhat.com>
11435
11436 * README: Remove references to cygnus.com.
11437 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11438 dot com'' form. Remove references to cygnus.com and sourceware.
11439
696f451b
AC
114402002-02-23 Andrew Cagney <ac131313@redhat.com>
11441
11442 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11443 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11444 1003.1-2001 no longer allows "head -1".
11445 * gdb/Makefile.in (version.c): Likewise.
11446 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11447 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11448 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11449
bbaca940
AC
114502002-02-23 Andrew Cagney <ac131313@redhat.com>
11451
11452 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11453 * command.h (cmd_cfunc_eq): Declare.
11454 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11455
11456 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11457 ``struct cmd_list_element *''.
11458 * cli/cli-cmds.c (is_complete_command): Update. Use
11459 cmd_cfunc_eq.
11460 * top.c (execute_command): Pass the command to
11461 is_complete_command.
11462 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11463
b8b8b047
AC
114642002-02-23 Andrew Cagney <ac131313@redhat.com>
11465
11466 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11467 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11468 architecture defines.
11469 * s390-tdep.c (s390_gdbarch_init): Likewise.
11470
19d3fc80
RE
114712002-02-23 Richard Earnshaw <rearnsha@arm.com>
11472
11473 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11474 (arm_linux_push_arguments): Likewise.
11475 (arm_linux_init_abi): Register them. Also register linux-specific
11476 call_dummy_words.
11477 (find_minsym_and_objfile): Use strcmp, not STREQ.
11478 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11479 (arm_linux_call_dummy_words): Delete declaration.
11480 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11481 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11482 declarations.
11483 (LOWEST_PC): Delete.
11484
3ab13650
PS
114852002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11486
11487 * maint.c (print_section_info): Do not prepend `0x' to filepos
11488 output, it will be handled by local_hex_string_custom.
11489
19d3fc80 114902002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
11491
11492 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11493 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11494 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11495
d85a5daf
JB
114962002-02-22 Jim Blandy <jimb@redhat.com>
11497
11498 Indicate that the bcache functions don't change the strings
11499 they're passed.
11500 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11501 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11502
eeb25b8a
PM
115032002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11504
11505 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11506
6badb179
CF
115072002-02-21 Christopher Faylor <cgf@redhat.com>
11508
11509 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11510 find the complete path to a loaded DLL.
11511
e8717518
FF
115122002-02-21 Fred Fish <fnf@redhat.com>
11513
11514 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11515 that marks the end of the range of a function, enter a line number
11516 entry that has a line number of zero and a PC offset that matches
11517 the end of the function. This starts a range of PC's for which no
11518 line number information is known.
11519 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11520 PC's for which no line number info is found (line number is zero)
11521 then we didn't find any valid line information.
11522 * symtab.h: Document use of zero line number entry.
11523
9abe5450
EZ
115242002-02-21 Elena Zannoni <ezannoni@redhat.com>
11525
11526 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11527 (have_ptrace_getvrregs): Define for run time checks.
11528 (gdb_vrregset_t): New type for Altivec register handling.
11529 (fetch_register, store_register): Fetch/store altivec register
11530 when needed.
11531 (fetch_altivec_register, store_altivec_register): New functions.
11532 (supply_vrregset, fill_vrregset): New functions.
11533 (fetch_altivec_registers, store_altivec_registers): New functions.
11534 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11535 registers as well.
11536
aaa38bb5
AJ
115372002-02-21 Jiri Smid <smid@suse.cz>
11538
11539 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11540
b34db576
RE
115412002-02-21 Richard Earnshaw <rearnsha@arm.com>
11542
11543 * Makefile.in (armnbsd-nat.o): Update dependencies.
11544 * armnbsd-nat.c (supply_gregset): New function. Common code to
11545 supply the integer register set.
11546 (supply_fparegset): New function. Similar for FPA registers.
11547 (fetch_regs, fetch_fp_regs): Use them.
11548 (fetch_core_registers): Likewise.
11549 (fetch_elfcore_registers): New function.
11550 (arm_netbsd_elfcore_fns): New core-file type specification.
11551 (_initialize_arm_netbsd_nat): Register it.
11552
3e56fc4b
RE
115532002-02-21 Richard Earnshaw <rearnsha@arm.com>
11554
11555 * armnbsd-nat.c: Include gdbcore.h.
11556 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11557 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11558 'void' to declaration, to shut up ARI.
11559 (fetch_core_registers): Make static. Rewrite using supply_register.
11560 (arm_netbsd_core_fns): New core-file type specification.
11561 (_initialize_arm_netbsd_nat): New function.
11562
097f6b0b
CF
115632002-02-21 Christopher Faylor <cgf@redhat.com>
11564
11565 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11566 value.
11567
c914e0cc
CF
115682002-02-20 Christopher Faylor <cgf@redhat.com>
11569
11570 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11571 fails.
11572
385fa495
DJ
115732002-02-20 Daniel Jacobowitz <drow@mvista.com>
11574
11575 * jv-exp.y (parse_number): Change type of implicit longs
11576 to builtin_type_uint64.
11577
e5f1222d
DJ
115782002-02-20 Daniel Jacobowitz <drow@mvista.com>
11579
11580 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11581 to be an integer instead of a `union wait'.
11582
75c9abc6
DJ
115832002-02-20 Daniel Jacobowitz <drow@mvista.com>
11584
11585 * mips-linux-nat.c: Call the operating system GNU/Linux.
11586 * mips-linux-tdep.c: Likewise.
11587 * mips-tdep.c: Likewise.
11588
551792a5
DJ
115892002-02-20 Daniel Jacobowitz <drow@mvista.com>
11590
11591 Fix PR gdb/265.
11592 * jv-exp.y (parse_number): Handle 64-bit integers.
11593
ee6e2b82
DJ
115942002-02-20 Daniel Jacobowitz <drow@mvista.com>
11595
11596 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11597 AC_STDC_HEADERS to AC_HEADER_STDC.
11598 * gdbserver/configure: Regenerated.
11599
a48442a0
RE
116002002-02-20 Richard Earnshaw <rearnsha@arm.com>
11601
11602 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11603 is defined.
11604 * sparc-tdep.c (get_longjmp_target): Likewise.
11605
fe419ffc
RE
116062002-02-20 Richard Earnshaw <rearnsha@arm.com>
11607
11608 * News: Add news about ARM and Multi-arch. Mention the new target
11609 arm*-*-netbsd*.
11610
5832ed7e
JB
116112002-02-19 Jim Blandy <jimb@redhat.com>
11612
11613 * stabsread.c (error_type_complaint): Improve error message.
11614
84563040
DJ
116152002-02-19 Daniel Jacobowitz <drow@mvista.com>
11616
11617 * gdbserver/README: Update documentation.
11618 * gdbserver/configure.in: Update configury to match documentation.
11619 * gdbserver/Makefile.in: Likewise.
11620 * gdbserver/configure: Regenerated.
11621 * gdbserver/aclocal.m4: New file, generated by aclocal.
11622 * gdbserver/config.in: New file, generated by autoheader.
11623
375fd65b
RE
116242002-02-19 Richard Earnshaw <rearnsha@arm.com>
11625
11626 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11627 armnbsd-nat.c.
11628
08216dd7
RE
116292002-02-19 Richard Earnshaw <rearnsha@arm.com>
11630
11631 * arm-tdep.h (enum arm_float_model): New enum.
11632 (struct gdbarch_tdep): Add fp_model.
11633 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11634 up floating-point conversions until we know the floating-point model
11635 in use by the inferior. Don't complain about being unable to
11636 determine the ABI of the inferior when we don't have one.
11637 (arm_extract_return_value): Support different floating-point models.
11638 (arm_store_return_value): Likewise.
aaa38bb5 11639 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11640 ARM_FLOAT_SOFT.
11641 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11642
65d6d66a
PS
116432002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11644
11645 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11646 of ``current_gdbarch''.
11647
47221191
RE
116482002-02-19 Richard Earnshaw <rearnsha@arm.com>
11649
11650 * armnbsd-nat.c : ANSIfy all function declarations.
11651 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11652 (fetch_inferior_registers): Re-implement in terms of above.
11653 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11654 (store_inferior_registers): Re-implement in terms of above.
11655
fdf39c9a
RE
116562002-02-19 Richard Earnshaw <rearnsha@arm.com>
11657
aaa38bb5 11658 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11659 kernel.
11660 * arm-linux-tdep.c: Likewise.
11661 * config/arm/tm-linux.h: Likewise.
11662
93247f88
RE
116632002-02-19 Richard Earnshaw <rearnsha@arm.com>
11664
11665 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11666 * config/arm/nbsd.mt (TM_FILE): Delete.
11667 * config/arm/tm-nbsd.h: Delete.
11668
d7b486e7
RE
116692002-02-19 Richard Earnshaw <rearnsha@arm.com>
11670
11671 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11672 Initialize CALL_DUMMY_LENGTH.
11673
41d39a95
RE
116742002-02-19 Richard Earnshaw <rearnsha@arm.com>
11675
11676 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11677 function.
11678 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11679 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11680 defines one thing and that is incorrect for this port.
11681 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11682
e1195560
PM
116832002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11684
11685 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11686
c1748f97
PM
116872002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11688
11689 * win32-nat.c (display_selector): New function. Displays information
11690 about the information returned by GetThreadSelectorEntry API function.
11691 (display_selectors): New function. Displays the infomation of
11692 the selector given as argument, or of CS, DS ans FS selectors
11693 if no argument is given.
11694 ( _initialize_inftarg): Add "w32" as info prefix command.
11695 Add "info w32 selector" as command calling display_selectors.
11696
e41e6bbf
PM
116972002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11698
11699 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11700 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11701 if not defined.
11702
0d3a9f48
RE
117032002-02-18 Richard Earnshaw <rearnsha@arm.com>
11704
11705 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11706
3fb4b924
RE
117072002-02-18 Richard Earnshaw <rearnsha@arm.com>
11708
11709 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11710 (arm_fix_call_dummy): Call it.
11711 (arm_call_dummy_breakpoint_offset): Delete.
11712 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11713 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11714
7f55af32
AC
117152002-02-18 Andrew Cagney <ac131313@redhat.com>
11716
11717 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11718 Default to func_frame_chain_valid.
11719 * gdbarch.h, gdbarch.c: Re-generate.
11720 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11721
05f13b9c
EZ
117222002-02-18 Elena Zannoni <ezannoni@redhat.com>
11723
11724 * ppc-linux-nat.c: Update copyright.
11725 (fetch_register, store_register): Add tid parameter, don't compute
11726 tid here.
11727 (fetch_ppc_registers, store_ppc_registers): Add tid
11728 parameter. Pass it along to callees.
11729 (fetch_inferior_registers, store_inferior_registers): Compute tid
11730 here, and pass it to calleed functions.
11731 (fill_gregset, supply_fpregset): Clean up formatting.
11732
d7afb4c9
RE
117332002-02-18 Richard Earnshaw <rearnsha@arm.com>
11734
11735 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11736 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11737
9df628e0
RE
117382002-02-18 Richard Earnshaw <rearnsha@arm.com>
11739
11740 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11741 * gdbarch.c gdbarch.h: Regenerate.
11742 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11743 function.
11744 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11745 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11746 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11747
11748 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11749 * arm-tdep.c (arm_get_longjmp_target): New function.
11750 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11751 this to a positive value register arm_get_longjmp_target as the
11752 longjmp handler.
11753 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11754 (arm_linux_init_abi): Set up longjmp description in tdep.
11755 * armnbsd-nat.c (get_longjmp_target): Delete.
11756 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11757 description in tdep.
11758 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11759 (get_longjmp_target): Delete declaration.
11760 (GET_LONGJMP_TARGET): Delete.
11761 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11762 (GET_LONGJMP_TARGET): Delete.
11763
57bc8964
KB
117642002-02-17 Kevin Buettner <kevinb@redhat.com>
11765
11766 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11767 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11768 of ``current_gdbarch''.
11769
83d31a92
TT
117702002-02-17 Tom Tromey <tromey@redhat.com>
11771
11772 * cli/cli-cmds.c (compare_strings): New function.
11773 (complete_command): Only print each unique item once.
11774 * completer.h (complete_line): Declare.
11775 * completer.c (complete_line): New function.
11776 (line_completion_function): Use it.
11777
17ef5d92
AC
117782002-02-16 Andrew Cagney <ac131313@redhat.com>
11779
11780 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11781 * gdbarch.h, gdbarch.c: Re-generate.
11782
491b8946
DJ
117832002-02-16 Daniel Jacobowitz <drow@mvista.com>
11784
11785 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11786
117872002-02-16 Daniel Jacobowitz <drow@mvista.com>
11788
11789 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11790 * valops.c (value_arg_coerce): Don't take the address of a reference
11791 to convert an argument to a reference.
11792
dfe7f3ac
CF
117932002-02-15 Christopher Faylor <cgf@redhat.com>
11794
11795 * win32-nat.c (get_image_name): New function.
11796 (handle_load_dll): Use get_image_name function.
11797 (get_child_debug_event): Avoid registering debug events until possibly
11798 execed process is started.
11799 (child_create_inferior): Allow invocation via shell so that command
11800 line redirection, etc. works ok.
11801 (_initialize_inftarg): Add new command: "set shell" to control whether
11802 a shell is used to start a process.
11803
1d33e73a
DJ
118042002-02-15 Daniel Jacobowitz <drow@mvista.com>
11805
11806 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11807 instead of find_register_by_number.
11808 (cannot_store_register): Likewise.
11809
48cd0caa
PM
118102002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11811
aaa38bb5 11812 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
11813 fprintf_unfiltered (gdb_stderr, ...).
11814
8656e7d8
DJ
118152002-02-15 Daniel Jacobowitz <drow@mvista.com>
11816
11817 * gdbserver/gdbserver.1: Document --attach.
11818
66e810cd
RE
118192002-02-15 Richard Earnshaw <rearnsha@arm.com>
11820
11821 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11822 descriptions.
11823 * arm-tdep.c (arm_default_arm_le_breakpoint)
11824 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11825 (arm_default_thumb_be_breakpoint): New. Initialize them from
11826 traditional breakpoint defines.
11827 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11828 (arm_gdbarch_init): Initialize new breakpoint variables.
11829 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11830 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11831 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11832 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11833 code out to ...
11834 (arm_netbsd_init_abi_common): ... here; new function.
11835 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11836 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11837 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11838 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11839
97e03143
RE
118402002-02-15 Richard Earnshaw <rearnsha@arm.com>
11841
11842 * arm-tdep.h (enum arm_abi): New enum.
11843 (struct gdbarch_tdep): New structure.
11844 (LOWEST_PC): Provide a default.
11845 (arm_gdbarch_register_os_abi): Declare new function.
11846 * arm-tdep.c (arm_abi_names): New array.
11847 (process_note_abi_tag_sections): New function.
11848 (get_elfosabi): New function.
11849 (arm_gdbarch_register_os_abi): New function.
11850 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11851 support for that ABI has been built in, then call the appropriate
11852 configuration routine. Use gdbarch_num_regs() to get the number
11853 of registers.
11854 (arm_dump_tdep): New function.
11855 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11856 place-holder functions.
11857 (_initialize_arm_tdep): Register them.
11858 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11859
11860 * armnbsd-tdep.c: New file.
11861 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11862 * config/arm/nbsd.mt (TDEPFILES): Add it.
11863 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11864
11865 * armnbsd-nat.c: Include regcache.h.
11866 * Makefile.in (armnbsd-nat.o): Update dependency list.
11867
11868 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11869
ad68be46
DJ
118702002-02-14 Daniel Jacobowitz <drow@mvista.com>
11871
11872 * gdbserver/Makefile.in: Fix typos in target rules.
11873
003d6d1d
DJ
118742002-02-14 Daniel Jacobowitz <drow@mvista.com>
11875
aaa38bb5 11876 Fix part of PR gdb/267.
003d6d1d
DJ
11877 * linespec.c (find_methods): Handle constructors specially for now.
11878
6b230f1b
CV
118792002-02-14 Corinna Vinschen <vinschen@redhat.com>
11880
11881 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11882 handling.
11883 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11884 standard_coerce_float_to_double().
11885
1ea98d12
CF
118862002-02-14 Christopher Faylor <cgf@redhat.com>
11887
11888 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11889 GDBINIT_FILENAME.
11890
dd47e6fd
EZ
118912002-02-14 Elena Zannoni <ezannoni@redhat.com>
11892
11893 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11894 find_variant_by_name, because it confuses the multiarch
11895 framework. Return NULL if there isn't an architecture with the
11896 user supplied name, instead of forcing a different one without
11897 recording the change with the multiarch machinery.
11898 (find_variant_by_name): Delete.
11899
d7e39b9e
PS
119002002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11901
11902 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11903 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11904
76e42a4f
MH
119052002-02-13 Martin M. Hunt <hunt@redhat.com>
11906
aaa38bb5 11907 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
11908 print_frame_info_listing_hook, set current_source_symtab.
11909
0a30fbc4
DJ
119102002-02-14 Daniel Jacobowitz <drow@mvista.com>
11911
11912 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11913 and remove unused $(INCLUDE_DIR).
11914 Add regcache.c to OBS.
11915 Add generated register protocol files to clean target.
11916 Update dependencies for new objects, obsolete old target code.
11917
11918 * gdbserver/linux-low.c: Remove all platform-specific code to
11919 new files. Remove various dead code. Update to use regcache
11920 functionality.
11921 * gdbserver/remote-utils.c (fromhex): Add return statement
11922 to quiet warning.
11923 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11924 constant.
11925 (input_interrupt): Add integer parameter to match prototype
11926 of a signal handler.
11927 (outreg): Use register_data ().
11928 (prepare_resume_reply): Use gdbserver_expedite_regs.
11929 * gdbserver/server.c (main): Dynamically allocate own_buf because
11930 PBUFSIZ is no longer constant. Use registers_to_string () and
11931 registers_from_string ().
11932 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11933 for error (), fatal (), and warning (). Update definition of
11934 PBUFSIZ to use regcache functionality. Add include guard.
11935 * gdbserver/utils.c (fatal): Add missing ``const''.
11936 (warning): New function.
11937
11938 * regformats/regdat.sh: Include "regcache.h" in generated files.
11939 Provide init_registers () function.
11940 * regformats/regdef.h: Add prototype for set_register_cache ().
11941 Add include guard.
11942
11943 * gdbserver/linux-arm-low.c: New file.
11944 * gdbserver/linux-i386-low.c: New file.
11945 * gdbserver/linux-ia64-low.c: New file.
11946 * gdbserver/linux-m68k-low.c: New file.
11947 * gdbserver/linux-mips-low.c: New file.
11948 * gdbserver/linux-ppc-low.c: New file.
11949 * gdbserver/linux-sh-low.c: New file.
11950
11951 * gdbserver/regcache.c: New file.
11952 * gdbserver/regcache.h: New file.
11953
11954 * gdbserver/low-linux.c: Removed obsolete file.
11955
4cc841d0
DJ
119562002-02-14 Daniel Jacobowitz <drow@mvista.com>
11957
11958 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11959 * config/i386/linux.mt: Likewise.
11960 * config/ia64/linux.mt: Likewise.
11961 * config/m68k/linux.mh: Likewise.
11962 * config/powerpc/linux.mh: Likewise.
11963 * config/mips/linux.mt: Likewise.
11964
11965 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11966
11967 * config/i386/i386lynx.mh: Mark gdbserver variables
11968 as (currently) obsolete for this target.
11969 * config/i386/nbsd.mt: Likewise.
11970 * config/i386/nbsdelf.mt: Likewise.
11971 * config/m32r/m32r.mt: Likewise.
11972 * config/m68k/m68klynx.mh: Likewise.
11973 * config/m68k/nbsd.mt: Likewise.
11974 * config/m68k/sun3os4.mh: Likewise.
11975 * config/mips/vr5000.mt: Likewise.
11976 * config/ns32k/nbsd.mt: Likewise.
11977 * config/pa/hppabsd.mh: Likewise.
11978 * config/pa/hppaosf.mh: Likewise.
11979 * config/powerpc/nbsd.mt: Likewise.
11980 * config/rs6000/rs6000lynx.mh: Likewise.
11981 * config/s390/s390.mt: Likewise.
11982 * config/s390/s390x.mt: Likewise.
11983 * config/sparc/sparclynx.mh: Likewise.
11984 * config/sparc/sun4os4.mh: Likewise.
11985 * config/i386/x86-64linux.mt: Likewise.
11986 * config/sparc/linux.mh: Likewise.
11987
a85f51e7
DJ
119882002-02-14 Daniel Jacobowitz <drow@mvista.com>
11989
11990 * configure.tgt: Configure gdbserver only for known working
11991 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11992 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11993 SUBDIRS if it is configured. Update comment for ${nativefile}.
11994 * configure: Regenerated.
11995
65554fef
MS
119962002-02-13 Michael Snyder <msnyder@redhat.com>
11997
670a52db
MS
11998 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11999
6dbdc4a3
MS
12000 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12001 (default_gcore_mach): Just return 0, work around a problem in bfd.
12002 (default_gcore_target): OK to return NULL if exec_bfd is null.
12003 (make_mem_sec): Use a cast, avoid a warning.
12004
12005 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 12006 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
12007 sizeof (host pointer) != sizeof (target pointer)).
12008 (procfs_make_note_section): Avoid overflow in psargs string.
12009
aaa38bb5 12010 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
12011 implementation return an error.
12012
120132002-02-13 Rodney Brown <rbrown64@csc.com.au>
12014
12015 * procfs.c (procfs_make_note_section): Provide a default definition
12016 (for alpha-dec-osf4.0f). Fix typos.
12017
1e4d76e7
EZ
120182002-02-13 Elena Zannoni <ezannoni@redhat.com>
12019
12020 * linux-proc.c: Add include of regcache.h.
12021 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12022
b6d1a1d5
AC
120232002-02-13 Andrew Cagney <ac131313@redhat.com>
12024
12025 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
12026 * memattr.c (create_mem_region): Disallow useless empty region.
12027 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 12028 non-overlapping.
b6d1a1d5 12029
6c6ea35e
MC
120302002-02-13 Michael Chastain <mec@shout.net>
12031
12032 * defs.h: Kill CONST_PTR.
12033 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12034 * c-lang.c (c_builtin_types): Likewise.
12035 * ch-lang.c (ch_builtin_types): Likewise.
12036 * f-lang.c (f_builtin_types): Likewise.
12037 * language.c (unknown_builtin_types): Likewise.
12038 * m2-lang.c (m2_builtin_types): Likewise.
12039 * p-lang.c (pascal_builtin_types): Likewise.
12040 * scm-lang.c (c_builtin_types): Likewise.
12041
3e0b0f48
KS
120422002-02-13 Keith Seitz <keiths@redhat.com>
12043
12044 * arm-tdep.h (arm_get_next_pc): Add declaration.
12045
67255d04
RE
120462002-02-13 Richard Earnshaw <rearnsha@arm.com>
12047
12048 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12049 with other related struct-returning functions.
12050 (arm_extract_struct_value_address): New function.
12051 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12052 initialize float_format, double_format and long_double_format as
12053 appropriate to the endianness of the target.
12054 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12055 (arm_use_struct_convention): Delete declaration.
12056 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12057
079777f6
KS
120582002-02-13 Keith Seitz <keiths@redhat.com>
12059
12060 * defs.h (core_addr_to_string_nz): New function.
12061
34588f23
MK
120622002-02-13 Mark Kettenis <kettenis@gnu.org>
12063
12064 Apply missing bits of 2002-01-15 patch.
12065 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12066 (fill_fpregset): Use i387_fill_fsave.
12067
49b563f9
KS
120682002-02-12 Keith Seitz <keiths@redhat.com>
12069
49b563f9
KS
12070 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12071 (core_addr_to_string_nz): New function.
12072
aeb98c60
RE
120732002-02-11 Richard Earnshaw <rearnsha@arm.com>
12074
12075 * arm-linux-nat.c: Really include arm-tdep.h.
12076 * config/arm/tm-linux.h (struct type, struct value): Declare.
12077
65554fef
MS
120782002-02-11 Michael Snyder <msnyder@redhat.com>
12079
12080 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12081 (gcore section): Ifdef for Solaris and Unixware only.
12082 (procfs_do_thread_registers): Unixware needs one lwpstatus
12083 per thread (not one prstatus or pstatus).
12084 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12085 not over all gdb threads. For unixware, call elfcore_write_pstatus
12086 once before iterating over threads.
12087
34e8f22d
RE
120882002-02-11 Richard Earnshaw <rearnsha@arm.com>
12089
12090 * arm-tdep.h: New file.
12091 * arm-tdep.c: Include arm-tdep.h.
12092 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12093 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12094 (arm_print_float_info, arm_register_type, convert_to_extended)
12095 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12096 (arm_extract_return_value, arm_register_name): Make static.
12097 (arm_software_single_step): Similarly. Fix types in declaration.
12098 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12099 (arm_store_return_value, arm_store_struct_return): New functions.
12100 (arm_gdbarch_init): Register the above functions. Also register
12101 call_dummy_start_offset, sizeof_call_dummy_words,
12102 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12103 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 12104 max_register_virtual_size, register_size. Set up
34e8f22d
RE
12105 prologue_cache.saved_regs here, rather than ...
12106 (_initialize_arm_tdep): ... here.
12107 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12108 declarations.
12109 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12110 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12111 (arm_print_float_info, arm_register_type, convert_to_extended)
12112 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12113 (arm_extract_return_value, arm_register_name): Delete declarations.
12114 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12115 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12116 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12117 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12118 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12119 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12120 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12121 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12122 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12123 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12124 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12125 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12126 interface.
12127 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12128 * remote-rdi.c remote-rdp.c: Likewise.
12129 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12130 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12131 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12132 definition.
12133
12134 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12135 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12136 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12137 from non-ARM_ prefixed definitions.
12138 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12139 all uses of above.
12140 * remote-rdi.c remote-rdp.c: Likewise.
12141 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12142
148754e5
RE
121432002-02-11 Richard Earnshaw <rearnsha@arm.com>
12144
12145 * arm-tdep.c (arm_frameless_function_invocation)
12146 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12147 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12148 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12149 (arm_pop_frame, arm_get_next_pc): Make static.
12150 (arm_gdbarch_init): Register above in gdbarch structure.
12151 (arm_read_fp): Renamed from arm_target_read_fp.
12152 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12153 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12154 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12155 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12156 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12157 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12158 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
12159 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12160 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12161 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12162 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 12163
434d2d4f
DJ
121642002-02-10 Daniel Jacobowitz <drow@mvista.com>
12165
12166 * symtab.c (compare_search_syms): New function.
12167 (sort_search_symbols): New function.
12168 (search_symbols): Sort symbols after searching rather than
12169 before.
12170
55241689
AC
121712002-02-10 Andrew Cagney <ac131313@redhat.com>
12172
12173 * NEWS: Linux -> GNU/Linux.
12174
028c194b
AC
121752002-02-10 Andrew Cagney <ac131313@redhat.com>
12176
12177 * gdbarch.sh: For for level one methods, disallow a definition
12178 when partially multi-arched. Add comments explaining rationale.
12179 * gdbarch.h: Re-generate.
12180
6acf50cd
AC
121812002-02-10 Andrew Cagney <ac131313@redhat.com>
12182
12183 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12184 multi-arch partial.
aaa38bb5 12185
50248794
AC
121862002-02-10 Andrew Cagney <ac131313@redhat.com>
12187
12188 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12189 field. Use diff -u.
12190 * gdbarch.c: Re-generate.
12191
c30e0066
AC
121922002-02-10 Andrew Cagney <ac131313@redhat.com>
12193
9b56c5f3 12194 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
12195 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12196 partial.
12197
6e6d6484
AC
121982002-02-10 Andrew Cagney <ac131313@redhat.com>
12199
12200 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12201 multi-arch partial.
12202 (PUSH_ARGUMENTS): Switch to using predefault.
12203 * gdbarch.c: Regenerate.
12204
c203844d
AC
122052002-02-10 Andrew Cagney <ac131313@redhat.com>
12206
12207 * valops.c (PUSH_ARGUMENTS): Delete definition.
12208 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12209 partial. Default to default_push_arguments.
12210 * gdbarch.h, gdbarch.c: Regenerate.
12211
b5a2688f
AC
122122002-02-09 Andrew Cagney <ac131313@redhat.com>
12213
12214 * defs.h (throw_exception): Rename return_to_top_level. Update
12215 comments.
12216 * utils.c (error_stream, internal_verror, quit): Ditto.
12217 * top.c (throw_exception, catcher): Ditto.
12218 * sparclet-rom.c (sparclet_load): Ditto.
12219 * remote.c (interrupt_query, minitelnet): Ditto.
12220 * remote-sds.c (interrupt_query): Ditto.
12221 * remote-mips.c (mips_error, mips_kill): Ditto.
12222 * ocd.c (interrupt_query): Ditto.
12223 * monitor.c (monitor_interrupt_query): Ditto.
12224 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12225 * target.h: Update comment.
aaa38bb5 12226
b5a2688f 12227 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 12228
2fa5c1e0
AC
122292002-02-09 Andrew Cagney <ac131313@redhat.com>
12230
12231 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12232 default_double_format.
12233 * gdbarch.h, gdbarch.c: Re-generate.
12234 * findvar.c (floatformat_unknown): Delete variable definition.
12235 * doublest.h (floatformat_unknown): Delete variable declaration.
12236
da966255
JB
122372002-02-09 Jim Blandy <jimb@redhat.com>
12238
12239 * stabsread.c (read_type): Add code to parse Sun's syntax for
12240 prototyped function types.
12241
123a4891
AC
122422002-02-09 Andrew Cagney <ac131313@redhat.com>
12243
12244 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12245 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12246
fb39c8f3
PS
122472002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12248
12249 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12250 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12251 now _initialize_xcoffsolib gets called again and overrides the
12252 commands from solib.c in a native configuration.
12253
0b87a11d
MK
122542002-02-09 Mark Kettenis <kettenis@gnu.org>
12255
12256 * doublest.c (store_typed_floating): Don't try to return a value.
12257 Fixes PR gdb/290.
12258
bdc2fc72
JB
122592002-02-08 Jim Blandy <jimb@redhat.com>
12260
12261 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12262 is prototyped and has no arguments, print its argument list as
12263 `(void)'.
12264
da69bbcf
CD
122652002-02-08 Chris Demetriou <cgd@broadcom.com>
12266
12267 * MAINTAINERS (write-after-approval): Add myself.
12268 (paper-trail): I've escaped!
aaa38bb5 12269
b69571f5
CF
122702002-02-08 Christopher Faylor <cgf@redhat.com>
12271
12272 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12273 changes.
12274 (_initialize_check_for_gdb_ini): Ditto.
12275
f6871398
MH
122762002-02-08 Martin M. Hunt <hunt@redhat.com>
12277
12278 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12279 xaprintf -> xasprintf.
12280
4e52d31c
PM
122812002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12282
12283 * win32-nat.c: Remove use of printf and sprintf functions.
12284
39bbf761
RE
122852002-02-08 Richard Earnshaw <rearnsha@arm.com>
12286
12287 * arm-tdep.c (arm_frame_chain_valid): Make static.
12288 (arm_push_arguments): Likewise.
12289 (arm_gdbarch_init): New function.
12290 (_initialize_arm_tdep): Call it.
12291 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12292 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12293 (FRAME_CHAIN_VALID): Delete.
12294 (arm_frame_chain_valid): Delete declaration.
12295 (PUSH_ARGUMENTS): Delete.
12296 (arm_push_arguments): Delete declaration.
12297 (CALL_DUMMY_P): Delete.
12298
9c9532c9
CV
122992002-02-08 Andrew Cagney <ac131313@redhat.com>
12300 Corinna Vinschen <vinschen@redhat.com>
12301
12302 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12303 on builtin float types.
12304
4e8f7a8b
DJ
123052002-02-08 Daniel Jacobowitz <drow@mvista.com>
12306
12307 * utils.c: Include <curses.h> before "bfd.h".
12308 * tui/tui-hooks.c: Likewise.
12309 * tui/tui.c: Likewise.
12310 * tui/tuiCommand.c: Likewise.
12311 * tui/tuiData.c: Likewise.
12312 * tui/tuiDataWin.c: Likewise.
12313 * tui/tuiDisassem.c: Likewise.
12314 * tui/tuiGeneralWin.c: Likewise.
12315 * tui/tuiIO.c: Likewise.
12316 * tui/tuiLayout.c: Likewise.
12317 * tui/tuiRegs.c: Likewise.
12318 * tui/tuiSource.c: Likewise.
12319 * tui/tuiSourceWin.c: Likewise.
12320 * tui/tuiStack.c: Likewise.
12321 * tui/tuiWin.c: Likewise.
12322
cd4bffcf
EZ
123232002-02-07 Elena Zannoni <ezannoni@redhat.com>
12324
12325 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12326 to include space for pseudoregs as well. Update loops accordingly.
12327 (sh_fp_frame_init_saved_regs): Ditto.
12328 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12329
26806ce2
AC
123302002-02-07 Andrew Cagney <ac131313@redhat.com>
12331
12332 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12333 Add Richard Earnshaw to Arm maintainers.
12334
97fdab62
AC
123352002-02-07 Andrew Cagney <ac131313@redhat.com>
12336
a6b98203
AC
12337 * defs.h (warning_begin): Delete declaration.
12338
97fdab62
AC
12339 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12340 Delete macro.
12341
78b29b40
MS
123422002-02-07 Michael Snyder <msnyder@redhat.com>
12343
aaa38bb5 12344 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
12345 Logic bug, remove misplaced else.
12346
d8849953
KD
123472002-02-07 Klee Dienes <klee@apple.com>
12348
12349 * fork-inferior.c (fork_inferior): Add '!' to the list of
12350 characters that need to be quoted when building a string for the
12351 shell. Quote '!' specifically with a backslash, since CSH chokes
12352 when trying to evaluate "str!str".
aaa38bb5 12353
095778a0
NC
123542002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12355
12356 * rdi-share/host.h: Only provide a typedef for bool if it is not
12357 defined.
12358
1900040c
MS
123592002-02-04 Michael Snyder <msnyder@redhat.com>
12360
12361 * breakpoint.h (enum bptype): Add new overlay event bp type.
12362 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 12363
1900040c
MS
12364 * breakpoint.c (create_internal_breakpoint): New function.
12365 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12366 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12367 (create_thread_event_breakpoint): Ditto.
12368 (create_solib_event_breakpoint): Ditto.
12369 (create_overlay_event_breakpoint): New function.
12370 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12371 (update_breakpoints_after_exec): Delete and re-initialize
12372 overlay event breakpoints after an exec. Add FIXME comment
12373 about longjmp breakpoint.
12374 (print_it_typical): Ignore overlay event breakpoints.
12375 (print_one_breakpoint): Ditto.
12376 (mention): Ditto.
12377 (bpstat_what): Do not stop for overlay event breakpoints.
12378 (delete_breakpoint): Don't delete overlay event breakpoints.
12379 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12380 (breakpoint_re_set): Re-create overlay event breakpoint.
12381
12382 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12383 (overlay_manual_command): Disable overlay breakpoints.
12384 (overlay_off_command): Disable overlay breakpoints.
12385
082fc60d
RE
123862002-02-06 Richard Earnshaw <rearnsha@arm.com>
12387
12388 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12389 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12390 to here from config/tm-arm.h.
12391 (coff_sym_is_thumb): Make static.
12392 (arm_elf_make_msymbol_special): New function.
12393 (arm_coff_make_msymbol_special): New function.
12394 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12395 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12396 (coff_sym_is_thumb): Delete declaration.
12397 (arm_elf_make_msymbol_special): Declare.
12398 (arm_coff_make_msymbol_special): Declare.
12399 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12400 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12401
039c5766
RE
124022002-02-06 Richard Earnshaw <rearnsha@arm.com>
12403
12404 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12405
124062002-02-06 Richard Earnshaw <rearnsha@arm.com>
12407
12408 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12409 * gdbarch.c gdbarch.h: Regenerate.
12410 * arch-utils.c (default_print_float_info): New function.
12411 * arch-utils.h (default_print_float_info): Prototype it.
12412 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12413 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12414 (PRINT_FLOAT_INFO): Document it.
12415
12416 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12417 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12418 (PRINT_FLOAT_INFO): Define.
12419
58fa08f0
PM
124202002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12421
aaa38bb5 12422 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
12423 Add typecast to sprintf argument to suppress a warning.
12424
7393af7c
PM
124252002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12426
58fa08f0 12427 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
12428 to allow easier handling of pass state.
12429 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12430 that gives exception name and address.
12431 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 12432 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 12433 exceptions added.
aaa38bb5
AJ
12434 (child_continue): Correctly report continue_status.
12435 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 12436 TARGET_SIGNAL_0 (new default value).
aaa38bb5 12437 (child_resume): consider sig argument passed to decide if
7393af7c
PM
12438 the exception should be passed to debuggee or not.
12439
6af4589c
MS
124402002-02-05 Michael Snyder <msnyder@redhat.com>
12441
12442 * regcache.c (fetch_register): Call target_fetch_register
12443 only if we don't call FETCH_PSEUDO_REGISTER.
12444 (store_register): Call target_store_register only if we
12445 don't call STORE_PSEUDO_REGISTER.
12446
a2cf933a
EZ
124472002-02-05 Elena Zannoni <ezannoni@redhat.com>
12448
12449 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12450 ELF_MAKE_MSYMBOL_SPECIAL.
12451 * gdbarch.c, gdbarch.h: Regenerate.
12452 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12453 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12454 * elfread.c (elf_symtab_read): Compile use of
12455 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12456 multiarched.
12457 * coffread.c (coff_symtab_read): Ditto, for
12458 COFF_MAKE_MSYMBOL_SPECIAL.
12459
6bb7be43
JB
124602002-02-05 Jim Blandy <jimb@redhat.com>
12461
12462 * solib-svr4.c (svr4_truncate_ptr): New function.
12463 (svr4_relocate_section_addresses): Do the address arithmetic with
12464 the appropriate truncation for target addresses, even when
12465 CORE_ADDR is larger than a target address.
12466
e18651ec
DJ
124672002-02-05 Daniel Jacobowitz <drow@mvista.com>
12468
12469 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12470 to (int *).
12471
6b2725be
DJ
124722002-02-05 Daniel Jacobowitz <drow@mvista.com>
12473
12474 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12475 code.
12476
fca9e603
DJ
124772002-02-05 Daniel Jacobowitz <drow@mvista.com>
12478
12479 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12480
6c537a52
DJ
124812002-02-05 Daniel Jacobowitz <drow@mvista.com>
12482
12483 * gdbserver/linux-low.c: Remove unused include files.
12484
d844cde6
DJ
124852002-02-05 Daniel Jacobowitz <drow@mvista.com>
12486
12487 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12488 (read_inferior_memory): Use it.
12489 (write_inferior_memory): Likewise.
12490
d07c63e7
DJ
124912002-02-05 Daniel Jacobowitz <drow@mvista.com>
12492
12493 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12494 grubbing through sys_errlist.
12495
da6d8c04
DJ
124962002-02-05 Daniel Jacobowitz <drow@mvista.com>
12497
12498 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12499
5b421780
PM
125002002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12501 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12502
9f60d481
AC
125032002-02-04 Andrew Cagney <ac131313@redhat.com>
12504
12505 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12506 (do_sfunc, set_cmd_sfunc): New functions.
12507
12508 * command.h (struct cmd_list_element): Add field func.
12509 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12510 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12511 * cli/cli-decode.h: Ditto.
12512
12513 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12514 (help_all, help_cmd_list): Ditto.
12515 (find_cmd, complete_on_cmdlist): Ditto.
12516 * top.c (execute_command): Ditto.
12517
12518 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12519 function.sfunc.
12520
12521 * infcmd.c (notice_args_read): Fix function signature.
12522
12523 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12524 * cli/cli-decode.c (add_set_cmd): Ditto.
12525 * utils.c (initialize_utils): Ditto.
12526 * maint.c (_initialize_maint_cmds): Ditto.
12527 * infrun.c (_initialize_infrun): Ditto.
12528 * demangle.c (_initialize_demangler): Ditto.
12529 * remote.c (add_packet_config_cmd): Ditto.
12530 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12531 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12532 * proc-api.c (_initialize_proc_api): Ditto.
12533 * kod.c (_initialize_kod): Ditto.
12534 * valprint.c (_initialize_valprint): Ditto.
12535 * top.c (init_main): Ditto.
12536 * infcmd.c (_initialize_infcmd): Ditto.
12537 * corefile.c (_initialize_core): Ditto.
12538 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12539 * arch-utils.c (initialize_current_architecture): Ditto.
12540 (_initialize_gdbarch_utils): Ditto.
12541 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12542
12543 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12544 * wince.c (_initialize_inftarg): Ditto.
12545 * symfile.c (_initialize_symfile): Ditto.
12546 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12547 * language.c (_initialize_language): Ditto.
12548 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12549
f9ba0717
MS
125502002-02-04 Michael Snyder <msnyder@redhat.com>
12551
12552 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12553
0c74b2a7
DJ
125542002-02-04 Daniel Jacobowitz <drow@mvista.com>
12555
12556 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12557 Add rules for building the register data files.
12558
c638789f
DJ
125592002-02-04 Daniel Jacobowitz <drow@mvista.com>
12560
12561 * regformats/regdat.sh: Add braces to the definition of
12562 expedite_regs_${arch}.
12563
db253027
DJ
125642002-02-04 Daniel Jacobowitz <drow@mvista.com>
12565
12566 * regformats/regdef.h (struct reg): Add comment describing the
12567 requirements for offset and size fields.
12568
206be19c
AS
125692002-02-04 Andreas Schwab <schwab@suse.de>
12570
12571 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12572 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12573
181c1381
RE
125742002-02-04 Richard Earnshaw <rearnsha@arm.com>
12575
12576 * gdbarch.sh (copyright): Update years in generated header.
12577 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12578 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12579 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12580 * dbxread.c: Likewise.
12581 * dwarfread.c: Likewise.
12582 * elfread.c: Likewise.
12583 * somread.c: Likewise.
12584
12585 * arm-tdep.c (arm_smash_text_address): New function.
12586 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12587
fa4ba8da
PM
125882002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12589
12590 Add support for hardware watchpoints on win32 native.
aaa38bb5 12591 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12592 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12593 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12594 of debug registers.
12595 (debug_registers_changed): New variable. Reflects when debug registers
12596 are changed and need to be written to inferior.
aaa38bb5 12597 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12598 was set, used when new threads are created.
12599 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12600 i386-nat code.
12601 (thread_rec): Set dr array if id is the thread of current_event .
12602 (child_continue, child_resume): Change the debug registers for all
12603 threads if debug_registers_changed.
12604 (child_add_thread): Change the debug registers if debug_registers_used.
12605 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12606 Link nm.h to new nm-cygwin.h file.
12607 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12608 of hardware registers.
12609
a73c86fb
AC
126102002-02-03 Andrew Cagney <ac131313@redhat.com>
12611
12612 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12613 Restore behavour broken by 2002-01-20 Andrew Cagney
12614 <ac131313@redhat.com> IEEE_FLOAT removal.
12615
acf5ed49
DJ
126162002-02-03 Daniel Jacobowitz <drow@mvista.com>
12617
12618 * c-valprint.c (c_val_print): Pass a proper valaddr to
12619 cp_print_class_method.
12620 * valops.c (search_struct_method): If there is only one method
12621 and args is NULL, return that method.
12622
493d28d5
DJ
126232002-02-03 Daniel Jacobowitz <drow@mvista.com>
12624
12625 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12626 accessing tag_name directly.
12627
7495dfdb
DJ
126282002-02-03 Daniel Jacobowitz <drow@mvista.com>
12629
12630 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12631 of accessing tag_name directly.
12632
dd6bda65
DJ
126332002-02-03 Daniel Jacobowitz <drow@mvista.com>
12634
12635 PR gdb/280
12636 * gdbtypes.c (replace_type): New function.
12637 * gdbtypes.h (replace_type): Add prototype.
12638 * stabsread.c (read_type): Use replace_type.
12639
88fe217c
RE
126402002-02-03 Richard Earnshaw <rearnsha@arm.com>
12641
12642 * Makefile.in (memattr.o): Add missing dependencies rule.
12643
e5d66720
PS
126442002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12645
12646 * breakpoint.c (break_at_finish_command): Really export.
12647 (break_at_finish_at_depth_command): Ditto.
12648 (tbreak_at_finish_command): Ditto.
12649 * hppa-tdep.c: Include completer.h.
12650 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12651 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12652
fffee0be
AC
126532002-02-01 Andrew Cagney <ac131313@redhat.com>
12654
12655 * utils.c (do_write): New function.
12656 (error_stream): Rewrite combining the code from error_begin and
12657 verror.
12658 (verror): Rewrite using error_stream.
12659 (error_begin): Delete function.
12660
255e7dbf
AC
126612002-02-01 Andrew Cagney <ac131313@redhat.com>
12662
12663 * utils.c (error_begin): Make static.
12664 * defs.h (error_begin): Delete declaration.
12665
12666 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12667 (decode_line_1): Use cplusplus_error instead of error_begin,
12668 cplusplus_hint and return_to_top_level.
12669 * coffread.c (coff_symfile_read): Use error instead of error_begin
12670 and return_to_top_level.
12671 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12672
ddfe3c15
AC
126732002-02-01 Andrew Cagney <ac131313@redhat.com>
12674
12675 * language.h (type_error, range_error): Make string parameter
12676 constant.
12677 * language.c (warning_pre_print): Delete extern declaration.
12678 * dwarfread.c (warning_pre_print): Ditto.
12679 * language.c (type_error, range_error): Rewrite to use verror and
12680 vwarning instead of warning_begin.
12681
03ac34d5
MS
126822002-02-01 Michael Snyder <msnyder@redhat.com>
12683
261c4ca2
MS
12684 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12685 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12686
e00d1dc8
AC
126872002-02-01 Andrew Cagney <ac131313@redhat.com>
12688
12689 * command.h (NO_FUNCTION): Delete macro.
12690 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12691 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12692 * tracepoint.c (_initialize_tracepoint): Ditto.
12693 * cli/cli-decode.c (add_set_cmd): Ditto.
12694 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12695
76b79d6e
DJ
126962002-02-01 Daniel Jacobowitz <drow@mvista.com>
12697
12698 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12699 Update ``this'' pointer when calling virtual functions.
12700
799f9e91
MS
127012002-02-01 Michael Snyder <msnyder@redhat.com>
12702
c7bd442c 12703 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12704 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12705
3cf384d4
DJ
127062002-02-01 Daniel Jacobowitz <drow@mvista.com>
12707
12708 * regformats/reg-arm.dat: New file.
12709 * regformats/reg-i386.dat: New file.
12710 * regformats/reg-ia64.dat: New file.
12711 * regformats/reg-m68k.dat: New file.
12712 * regformats/reg-mips.dat: New file.
12713 * regformats/reg-ppc.dat: New file.
12714 * regformats/reg-sh.dat: New file.
12715 * regformats/regdef.h: New file.
12716 * regformats/regdat.sh: New file.
12717
0defa245
RE
127182002-02-01 Richard Earnshaw <reanrsha@arm.com>
12719
12720 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12721 (arm_frame_args_address, arm_frame_locals_address): New functions.
12722 (arm_frame_num_args): New function.
12723 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12724 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12725 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12726
405f26e6
MS
127272002-01-31 Michael Snyder <msnyder@redhat.com>
12728
502fd408
MS
12729 * breakpoint.c (break_at_finish_command): Export.
12730 (break_at_finish_at_depth_command): Export.
12731 (tbreak_at_finish_command): Export.
d6020d45 12732 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12733 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12734 "txbreak" commands, which are HPPA specific.
502fd408 12735
7d35e135
MS
12736 * printcmd.c (disassemble_command): Remove an ancient
12737 artifact of an old merge.
12738
aaa38bb5 12739 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12740 Define enum constant values for overlay mode.
12741 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12742 (overlay_is_mapped, overlay_auto_command,
12743 overlay_manual_command): Ditto.
d874f1e2 12744
aaa38bb5
AJ
12745 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12746 breakpoint_here_p, breakpoint_inserted_here_p,
12747 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12748 describe_other_breakpoints, check_duplicates, clear_command):
12749 Coding standard fixes.
12750
8add0441 12751 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12752 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12753 code: check bfd SEC_READONLY flag for section.
12754
e351066e
AC
127552002-01-31 Andrew Cagney <ac131313@redhat.com>
12756
7d35e135 12757 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 12758
8a48e967
DJ
127592002-01-30 Daniel Jacobowitz <drow@mvista.com>
12760
12761 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12762 data symbols, since we search based on textlow and texthigh.
12763 (find_pc_sect_symtab): Likewise.
12764
f5a96129
AC
127652002-01-30 Andrew Cagney <ac131313@redhat.com>
12766
12767 * defs.h (vwarning): Declare.
f5a96129
AC
12768 * utils.c (vwarning): New function.
12769 (warning): Call vwarning.
12770 (warning_begin): Delete function.
12771
12772 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12773 the warning message.
12774 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12775 warning_begin.
12776
cefd4ef5
MS
127772002-01-30 Michael Snyder <msnyder@redhat.com>
12778
1a703748
MS
12779 * NEWS: Mention "set trust-readonly-sections" command.
12780 Mention generate-core-file command.
cefd4ef5 12781
3a11626d
MS
127822002-01-15 Michael Snyder <msnyder@redhat.com>
12783
12784 * target.c: New command, "set trust-readonly-sections on".
12785 (do_xfer_memory): Honor the suggestion to trust readonly sections
12786 by reading them from the object file instead of from the target.
12787 (initialize_targets): Register command "set trust-readonly-sections".
12788
d1c7e53b
AC
127892002-01-29 Andrew Cagney <ac131313@redhat.com>
12790
12791 * parse.c (target_map_name_to_register): Simplify, search regs and
12792 pseudo-regs using a single loop.
12793
e2c9a72c
AC
127942002-01-30 Andrew Cagney <ac131313@redhat.com>
12795
12796 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12797
69824b4e
MK
127982002-01-15 Rodney Brown <rbrown64@csc.com.au>
12799
12800 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12801 * config/i386/i386v42mp.mh: Add i387-nat.o .
12802 * i386v4-nat.c: Include i387-nat.h.
12803 (supply_fpregset): Use i387_supply_fsave.
12804 (fill_fpregset): Use i387_fill_fsave.
12805
6eb69eab
RE
128062002-01-30 Richard Earnshaw <rearnsha@arm.com>
12807
12808 * arm-tdep.c (arm_call_dummy_words): Define.
12809 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12810 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12811 (CALL_DUMMY_WORDS): Define.
12812 (arm_call_dummy_words): Declare.
12813 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12814 (arm_linux_call_dummy_words): Declare.
12815
9852326a
AS
128162002-01-30 Andreas Schwab <schwab@suse.de>
12817
12818 * m68klinux-nat.c: Fix last change to use regcache_collect
12819 instead of referencing registers[] directly.
12820
977a3030
AC
128212002-01-29 Andrew Cagney <ac131313@redhat.com>
12822
12823 * parse.c (target_map_name_to_register): Delete code wrapped in
12824 #ifdef REGISTER_NAME_ALIAS_HOOK.
12825
2076c72b
MS
128262002-01-28 Michael Snyder <msnyder@redhat.com>
12827
12828 * regcache.c (legacy_read_register_gen): Need to be able to
12829 read pseudo-register as well as real register.
12830 (legacy_write_register_gen): Ditto.
12831
8fcc723b
AC
128322002-01-28 Andrew Cagney <ac131313@redhat.com>
12833
12834 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12835 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12836 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12837 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12838 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12839 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12840 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12841 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12842 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12843 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12844 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12845 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12846 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12847 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12848 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12849 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12850 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12851 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12852 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12853 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12854
afe64c1a
AC
128552002-01-28 Andrew Cagney <ac131313@redhat.com>
12856
12857 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12858 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12859 (initialize_current_architecture): Update target_byte_order using
12860 information from BFD.
aaa38bb5 12861 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
12862 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12863
75bc7ddf
AC
128642002-01-28 Andrew Cagney <ac131313@redhat.com>
12865
12866 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12867 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12868
12869 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12870 #ifdef INVALID_FLOAT.
12871 * infcmd.c (do_registers_info): Ditto.
12872 * values.c (unpack_double): Ditto. Add comment.
12873
12874 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12875 already commented out.
12876
0280a90a
AS
128772002-01-26 Andreas Schwab <schwab@suse.de>
12878
12879 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12880 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12881 registers and add support for PTRACE_GETREGS.
12882
7072a954
AC
128832002-01-24 Andrew Cagney <ac131313@redhat.com>
12884
12885 GDB 5.1.1 released from 5.1 branch.
12886 * NEWS: Add 5.1.1 news.
12887 * README: Sync with 5.1 branch.
12888
86f902e0
FF
128892002-01-23 Fred Fish <fnf@redhat.com>
12890
12891 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12892 stabstring on initial malloc. Reallocing will copy it for us,
12893 if necessary.
12894
8af51c36
EZ
128952002-01-23 Elena Zannoni <ezannoni@redhat.com>
12896
aaa38bb5 12897 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
12898 (HFILES_NO_SRCDIR): Remove hpread.h.
12899 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12900 (hpread.o): Update dependencies.
12901 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12902
12903 * hp-psymtab-read.c: Remove file.
12904 * hp-symtab-read.c: Remove file.
12905 * hpread.h: Remove file.
12906
12907 * hpread.c: Merge all contents of hp-psymtab-read.c,
12908 hp-symtab-read.c and hpread.h into this file, as it was prior to
12909 January 1999.
12910
12911 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 12912 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
12913 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12914 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12915
dc5cfeb6
EZ
129162002-01-23 Elena Zannoni <ezannoni@redhat.com>
12917
12918 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12919 fill_gregset): Call gdbarch_tdep() just once, assign result to
12920 variable and use that, instead of calling the function several
12921 times.
12922
ea87b71b
AO
129232002-01-24 Alexandre Oliva <aoliva@redhat.com>
12924
12925 * configure.host: Accept sparcv9 as alias for sparc64.
12926 * configure.tgt: Likewise.
12927
13fc0c2f
KB
129282002-01-22 Kevin Buettner <kevinb@redhat.com>
12929
12930 * solib-aix5.c (build_so_list_from_mapfile)
12931 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12932 arguments is not reversed.
12933 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12934 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 12935
7bd872fe
EZ
129362002-01-22 Elena Zannoni <ezannoni@redhat.com>
12937
12938 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12939 modified version of obsolete sh_fetch_pseudo_register.
12940 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12941 (sh4_register_read): New function.
12942 (sh_pseudo_register_write): New function. Renamed and modified
12943 version of obsolete sh_store_pseudo_register.
12944 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12945 (sh4_register_write): New function.
12946 (sh_gdbarch_init): Remove setting of gdbarch function
12947 fetch_pseudo_register and store_pseudo_register. Remove setting of
12948 register_convert_to_raw, register_convert_to_virtual,
12949 register_convertible.
12950 (sh_sh4_register_convertible): Delete. No longer needed. All is
12951 taken care by architecture specific functions
12952 register_read/register_write.
12953 (sh_sh4_register_convert_to_virtual): Make static.
12954 (sh_sh4_register_convert_to_raw): Ditto.
12955
069e84fd
AC
129562002-01-22 Andrew Cagney <ac131313@redhat.com>
12957
12958 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12959 (floatformat_is_nan, floatformat_mantissa): Ditto.
12960
12961 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12962 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12963 builtin_type_ieee_double_little,
12964 builtin_type_ieee_double_littlebyte_bigword,
12965 builtin_type_m68881_ext, builtin_type_i960_ext,
12966 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12967 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12968 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12969 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12970
211a4f69
CV
129712002-01-22 Corinna Vinschen <vinschen@redhat.com>
12972
12973 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12974 parameter. Set frameless flag if it exists and depended of
12975 whether the scanned function is frameless or not.
12976 (xstormy16_skip_prologue): If function is frameless, return
12977 result of xstormy16_scan_prologue().
12978 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12979 call.
12980
f81353e4
EZ
129812002-01-21 Elena Zannoni <ezannoni@redhat.com>
12982
12983 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12984 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12985 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12986 sh_sh4_register_byte, sh_sh4_register_raw_size,
12987 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12988 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12989 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12990 sh_store_pseudo_register, sh_do_pseudo_register): Call
12991 gdbarch_tdep() just once, assign result to variable and use that,
12992 instead of calling the function several times.
12993
63c73a17
MK
129942002-01-20 Mark Kettenis <kettenis@gnu.org>
12995
12996 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12997 macros instead of LAST_FPU_CTRL_REGNUM.
12998 (store_register): Likewise.
12999
39ad761d
JB
130002002-01-21 Jim Blandy <jimb@redhat.com>
13001
13002 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13003 is up-to-date before running the program, not just when a program
13004 exits.
13005
3d74b771
FF
130062002-01-21 Fred Fish <fnf@redhat.com>
13007
13008 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13009 when we have found all instructions we are looking for.
13010
966fbf70
RE
130112002-01-21 Richard Earnshaw <rearnsha@arm.com>
13012
13013 * arm-tdep.c (arm_register_name): New function.
13014 (arm_registers_names): Make static.
13015 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13016 (arm_register_name): Declare.
13017 (REGISTER_NAME): Use it.
13018
c3b4394c
RE
130192002-01-21 Richard Earnshaw <rearnsha@arm.com>
13020 Kevin Buettner <kevinb@redhat.com>
13021
13022 Convert arm targets to new FRAME interface.
13023 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13024 (arm_frame_find_save_regs): Delete.
13025 (arm_frame_init_saved_regs): New.
13026 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13027 Allocate extra_info as required. Convert all uses of fsr.regs
13028 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13029 to use extra_info.
13030 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13031 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13032 (check_prologue_cache, save_prologue_cache): Likewise.
13033 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13034 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13035 (FRAME_FIND_SAVED_REGS): Delete.
13036 (arm_frame_find_saved_regs): Delete prototype.
13037 (arm_frame_init_saved_regs): New prototype.
13038 (FRAME_INIT_SAVED_REGS): Define.
13039
61d99182
AC
130402002-01-20 Andrew Cagney <ac131313@redhat.com>
13041
13042 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13043
6aaea291
AC
130442002-01-20 Andrew Cagney <ac131313@redhat.com>
13045
13046 From Jeff Law <law@redhat.com>:
13047 * infttrace.c: Include <sys/pstat.h>.
13048 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13049 exec file if the ttrace equivalent fails.
13050
15f698d2
AC
130512002-01-20 Andrew Cagney <ac131313@redhat.com>
13052
13053 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13054 (closeLogFile): Ditto.
13055
f86ddd7c
MC
130562002-01-20 Michael Chastain <mec@shout.net>
13057
13058 * top.c (print_gdb_version): Bump copyright year to 2002.
13059
904507ce
AC
130602002-01-20 Andrew Cagney <ac131313@redhat.com>
13061
13062 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13063 Zannoni and Eli Zaretskii.
13064
d7f0b9ce
DJ
130652002-01-20 Daniel Jacobowitz <drow@mvista.com>
13066
13067 * buildsym.c: Update copyright years.
13068 * c-typeprint.c: Likewise.
13069 * dwarf2read.c: Likewise.
13070 * f-typeprint.c: Likewise.
13071 * gdbtypes.c: Likewise.
13072 * gdbtypes.h: Likewise.
13073 * hp-symtab-read.c: Likewise.
13074 * hpread.c: Likewise.
13075 * mdebugread.c: Likewise.
13076 * p-typeprint.c: Likewise.
13077
3fd3d7d2
AC
130782002-01-20 Andrew Cagney <ac131313@redhat.com>
13079
13080 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13081 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13082 byte-order selectable.
13083 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13084 * arch-utils.c: Ditto.
13085 (set_endian): Ditto.
13086 (set_endian_from_file): Ditto.
13087 * gdbserver/low-sim.c (create_inferior): Ditto.
13088 * gdbarch.sh: Ditto.
13089 * gdbarch.h: Re-generate.
aaa38bb5
AJ
13090 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13091 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13092 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13093 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13094 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13095 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13096 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
13097 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13098 macro definition.
13099 * config/mips/tm-wince.h: Remove #undef of macro
13100 TARGET_BYTE_ORDER_SELECTABLE.
13101 * config/sh/tm-wince.h: Ditto.
13102
b02dede2
DJ
131032002-01-20 Daniel Jacobowitz <drow@mvista.com>
13104
13105 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13106 member function fields. Add accessor macro
13107 TYPE_FN_FIELD_ARTIFICIAL.
13108 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13109 * c-typeprint.c (c_type_print_base): Skip artificial member
13110 functions.
13111
c3643761
DJ
131122002-01-20 Daniel Jacobowitz <drow@mvista.com>
13113
13114 * f-typeprint.c: Delete unused function f_type_print_args.
13115 * p-typeprint.c: Delete unused function pascal_type_print_args.
13116
8176bb6d
DJ
131172002-01-20 Daniel Jacobowitz <drow@mvista.com>
13118
13119 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13120 comment. Add ``artificial'' to ``union field_location''.
13121
13122 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13123
13124 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13125 * mdebugread.c (parse_symbol): Likewise.
13126 * stabsread.c (define_symbol): Likewise.
13127 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13128 initializing TYPE_FIELD_BITPOS to n (obsolete).
13129 (hpread_doc_function_type): Likewise.
13130 * hpread.c (hpread_function_type): Likewise.
13131
7fd60527
AC
131322002-01-20 Andrew Cagney <ac131313@redhat.com>
13133
13134 * configure.in (host_makefile_frag): Only require a host makefile
13135 fragment when a native build.
13136 * configure: Re-generate.
13137
c2f05ac9
AC
131382002-01-20 Andrew Cagney <ac131313@redhat.com>
13139
13140 * doublest.h (floatformat_from_type): Declare.
13141 * doublest.c (floatformat_from_type): New function.
13142 (convert_typed_floating): Use.
13143
13144 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13145 call to function floatformat_from_type.
13146
13147 * gdbarch.sh (IEEE_FLOAT): Delete.
13148 * gdbarch.h, gdbarch.c: Re-generate.
13149 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13150 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13151 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13152 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13153 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13154 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13155 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13156 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13157 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13158 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13159 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
13160 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13161
13162 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13163 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13164 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13165 * sh-tdep.c (sh_gdbarch_init): Ditto.
13166 * mips-tdep.c (mips_gdbarch_init): Ditto.
13167 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13168 * cris-tdep.c (cris_gdbarch_init): Ditto.
13169
abf22e64
AJ
131702002-01-20 Jiri Smid <smid@suse.cz>
13171
13172 * configure.host, configure.tgt: Support x86-64.
13173 * NEWS: Note new target x86-64.
13174
b7c4cbf8
AJ
13175 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13176 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13177 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13178 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13179 x86-64-linux-nat.o): Fix dependencies.
13180
82600034
AC
131812002-01-19 Andrew Cagney <ac131313@redhat.com>
13182
13183 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13184 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13185 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13186 * config/sparc/xm-sun4os4.h: Delete file.
13187 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 13188
bbe5c628
AC
131892002-01-19 Andrew Cagney <ac131313@redhat.com>
13190
13191 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13192 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13193 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13194 * config/i386/i386lynx.mh (XM_FILE): Delete.
13195 * config/rs6000/xm-rs6000ly.h: Delete file.
13196 * config/sparc/xm-sparclynx.h: Delete file.
13197 * config/m68k/xm-m68klynx.h: Delete file.
13198 * config/i386/xm-i386lynx.h: Delete file.
13199 * config/xm-lynx.h: Delete file.
13200 * config/djgpp/fnchange.lst: Update.
13201
f8453e34
JT
132022002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13203
13204 * alpha-tdep.c (alpha_register_byte): New function.
13205 (alpha_register_raw_size): Ditto.
13206 (alpha_register_virtual_size): Ditto.
13207 (alpha_skip_prologue_internal): Renamed from
13208 alpha_skip_prologue.
13209 (alpha_skip_prologue): New version that calls
13210 alpha_skip_prologue_internal.
13211 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13212 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13213 second argument from alpha_skip_prologue.
13214 (REGISTER_BYTE): Use alpha_register_byte.
13215 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13216 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13217 (FRAMELESS_FUNCTION_INVOCATION): Use
13218 generic_frameless_function_invocation_not.
13219 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13220 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13221
52d9e613
AC
132222002-01-19 Andrew Cagney <ac131313@redhat.com>
13223
13224 * config/mips/xm-news-mips.h: Delete file.
13225 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13226
13227 * config/m88k/xm-m88k.h: Delete file.
13228 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13229 * config/m88k/xm-delta88v4.h: Ditto.
13230 * config/m88k/xm-delta88.h: Ditto.
13231
13232 * config/alpha/xm-fbsd.h: Delete file.
13233 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13234
13235 * config/sparc/xm-sparc.h: Delete file.
13236 * Makefile.in (xm-sun4os4.h): Delete dependency.
13237 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13238 * config/sparc/xm-sun4os4.h: Ditto.
13239 * config/sparc/xm-linux.h: Ditto.
13240
13241 * config/i386/xm-windows.h: Delete file.
13242
2d1b2124
AC
132432002-01-19 Andrew Cagney <ac131313@redhat.com>
13244
13245 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13246 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13247
ee1f65f0
JT
132482002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13249
13250 * alpha-tdep.c (alpha_call_dummy_words): New.
13251 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13252 (CALL_DUMMY_P): Define.
13253 (CALL_DUMMY_WORDS): Define.
13254 (SIZEOF_CALL_DUMMY_WORDS): Define.
13255
98081e55
PB
132562002-01-19 Per Bothner <per@bothner.com>
13257
13258 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13259 isn't NULL, which can happen with some gcj-3.x-produced code.
13260
0d056799
JT
132612002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13262
13263 * alpha-tdep.c (alpha_register_virtual_type): New function.
13264 (alpha_init_frame_pc_first): Ditto.
13265 (alpha_fix_call_dummy): Ditto.
13266 (alpha_store_struct_return): Ditto.
13267 (alpha_extract_struct_value_address): Ditto.
13268 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13269 alpha_register_virtual_type.
13270 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13271 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13272 alpha_extract_struct_value_address.
13273 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13274 (INIT_FRAME_PC): Use init_frame_pc_noop.
13275 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13276
4604bcad
MK
132772002-01-19 Mark Kettenis <kettenis@gnu.org>
13278
13279 * i386gnu-nat.c: Include "i386-tdep.h".
13280 (fetch_fpregs): Simplify code dealing with uninitialized floating
13281 point states such that it doesn't require FP7_REGNUM.
13282
140f9984
JT
132832002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13284
abf22e64
AJ
13285 * alpha-tdep.c (frame_extra_info): New.
13286 (alpha_find_saved_regs): Make static. Use
140f9984
JT
13287 frame->extra_info.
13288 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
13289 (alpha_frame_saved_pc): Use frame->extra_info.
13290 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13291 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
13292 (init_extra_frame_info): Rename to...
13293 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 13294 (alpha_print_extra_frame_info): New function.
140f9984
JT
13295 (alpha_frame_locals_address): Ditto.
13296 (alpha_frame_args_address): Ditto.
abf22e64 13297 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
13298 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13299 alpha_frame_args_address.
abf22e64 13300 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 13301 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
13302 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13303 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
13304 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13305 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13306
d734c450
JT
133072002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13308
13309 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13310 (alpha_cannot_fetch_register): Ditto.
13311 (alpha_cannot_store_register): Ditto.
13312 (alpha_register_convertible): Ditto.
13313 (alpha_use_struct_convention): Ditto.
13314 * config/alpha/tm-alpha.h: Update copyright years.
13315 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13316 (INNER_THAN): Use core_addr_lessthan.
13317 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13318 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13319 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13320 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13321 (FRAME_CHAIN): Remove unnecessary cast.
13322
b4ceaee6
AC
133232002-01-18 Andrew Cagney <ac131313@redhat.com>
13324
13325 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13326 obsolete.
13327
0a65a603
AC
133282002-01-18 Andrew Cagney <ac131313@redhat.com>
13329
13330 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13331 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13332 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13333 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13334 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13335 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13336 * x86-64-linux-nat.c: Ditto.
13337
636a6dfc
JT
133382002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13339
abf22e64 13340 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
13341 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13342 (REGISTER_NAME): Define.
13343
acceddb6
JT
133442002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13345
13346 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13347
ec32e4be
JT
133482002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13349
13350 * alpha-tdep.c: Update copyright years.
13351 (alpha_next_pc): New function.
13352 (alpha_software_single_step): Ditto.
13353 * config/alpha/tm-alpha.h: Add prototype for
13354 alpha_software_single_step.
13355
e771a871
JT
133562002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13357
13358 * alphabsd-nat.c: Update copyright years.
13359 (fill_gregset): Use regcache_collect.
13360 (fill_fpregset): Likewise.
13361 (fetch_inferior_registers): Only fetch integer registers
13362 if requested to do so.
13363 (store_inferior_registers): Only store integer registers
13364 if requested to do so.
13365
7708fa01
AC
133662002-01-17 Andrew Cagney <ac131313@redhat.com>
13367
13368 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13369 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13370 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13371 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13372 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13373 * config/arm/linux.mh (XDEPFILES): Delete.
13374 * config/arm/nbsd.mh (XDEPFILES): Delete.
13375 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13376 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13377 * config/i386/i386m3.mh (XDEPFILES): Delete.
13378 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13379 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13380 * config/i386/fbsd.mh (XDEPFILES): Delete.
13381 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13382 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13383 * config/i386/i386v4.mh (XDEPFILES): Delete.
13384 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13385 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13386 * config/i386/i386aix.mh (XDEPFILES): Delete.
13387 * config/i386/go32.mh (XDEPFILES): Delete.
13388 * config/i386/cygwin.mh (XDEPFILES): Delete.
13389 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13390 * config/i386/i386mach.mh (XDEPFILES): Delete.
13391 * config/i386/i386v32.mh (XDEPFILES): Delete.
13392 * config/i386/linux.mh (XDEPFILES): Delete.
13393 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13394 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13395 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13396 * config/i386/i386sco.mh (XDEPFILES): Delete.
13397 * config/i386/i386v.mh (XDEPFILES): Delete.
13398 * config/i386/nbsd.mh (XDEPFILES): Delete.
13399 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13400 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13401 * config/i386/symmetry.mh (XDEPFILES): Delete.
13402 * config/i386/obsd.mh (XDEPFILES): Delete.
13403 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13404 * config/ia64/linux.mh (XDEPFILES): Delete.
13405 * config/ia64/aix.mh (XDEPFILES): Delete.
13406 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13407 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13408 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13409 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13410 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13411 * config/m68k/linux.mh (XDEPFILES): Delete.
13412 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13413 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13414 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13415 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13416 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13417 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13418 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13419 * config/m88k/delta88.mh (XDEPFILES): Delete.
13420 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13421 * config/m88k/m88k.mh (XDEPFILES): Delete.
13422 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13423 * config/mips/linux.mh (XDEPFILES): Delete.
13424 * config/mips/irix6.mh (XDEPFILES): Delete.
13425 * config/mips/irix5.mh (XDEPFILES): Delete.
13426 * config/mips/irix4.mh (XDEPFILES): Delete.
13427 * config/mips/irix3.mh (XDEPFILES): Delete.
13428 * config/mips/decstation.mh (XDEPFILES): Delete.
13429 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13430 (NATDEPFILES): Move core-aout.o to here.
13431 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13432 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13433 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13434 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13435 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13436 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13437 * config/pa/hpux11.mh (XDEPFILES): Delete.
13438 * config/powerpc/aix.mh (XDEPFILES): Delete.
13439 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13440 * config/powerpc/linux.mh (XDEPFILES): Delete.
13441 * config/romp/rtbsd.mh: Rename XDEPFILES.
13442 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13443 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13444 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13445 * config/s390/s390.mh (XDEPFILES): Delete.
13446 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13447 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13448 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13449 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13450 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13451 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13452 * config/sparc/linux.mh (XDEPFILES): Delete.
13453 * config/vax/vaxult.mh (XDEPFILES): Delete.
13454 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13455 * Makefile.in (DEPFILES): Remove XDEPFILES.
13456
375fc983
AC
134572002-01-17 Andrew Cagney <ac131313@redhat.com>
13458
13459 * utils.c (internal_verror): Fix comments, default is yes not no.
13460 Update queries to match. Default to quit and dump core.
13461
8926118c
AC
134622002-01-17 Andrew Cagney <ac131313@redhat.com>
13463
13464 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13465 copyright.
13466 * defs.h, event-top.c, gdbcmd.h: Ditto.
13467 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13468 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13469 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13470 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13471 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13472 * mi/mi-main.c:Ditto.
13473
13474 * stack.c, symfile.c: Update copyright.
13475
45b7b345
DJ
134762002-01-17 Daniel Jacobowitz <drow@mvista.com>
13477
db728ff7
DJ
13478 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13479 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13480 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13481 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 13482
db728ff7
DJ
134832002-01-17 Daniel Jacobowitz <drow@mvista.com>
13484
13485 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13486 * gdbserver/low-lynx.c (myattach): Likewise.
13487 * gdbserver/low-nbsd.c (myattach): Likewise.
13488 * gdbserver/low-sim.c (myattach): Likewise.
13489 * gdbserver/low-sparc.c (myattach): Likewise.
13490 * gdbserver/low-sun3.c (myattach): Likewise.
13491
13492 * gdbserver/low-linux.c (myattach): New function.
45b7b345 13493
db728ff7 13494 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
13495 (main): Handle "--attach".
13496
8de3c354
AC
134972002-01-16 Andrew Cagney <ac131313@redhat.com>
13498
13499 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13500 maintainer.
13501
b0129042
DJ
135022002-01-15 Daniel Jacobowitz <drow@mvista.com>
13503
13504 * c-typeprint.c (is_type_conversion_operator): Add additional
13505 check for non-conversion operators.
13506
ba8679fb 135072002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
13508
13509 * linux-proc.c: Add "info proc" command, a la procfs.c.
13510 (read_mapping): New function, abstract and re-use code.
13511 (linux_find_memory_regions): Use new func read_mapping.
13512 (linux_info_proc_cmd): New function, implement "info proc".
13513 (_initialize_linux_proc): Add new command "info proc".
13514
e4f9b4d5
MS
135152002-01-15 Michael Snyder <msnyder@redhat.com>
13516
13517 * symfile.c (generic_load): Use bfd_map_over_sections method
13518 instead of manipulating bfd structure members directly.
13519 (add_section_size_callback): New function, bfd sections callback
13520 used by generic_load.
13521 (load_sections_callback): New function, bfd sections callback
13522 used by generic_load.
13523
08cf96df
EZ
135242002-01-15 Elena Zannoni <ezannoni@redhat.com>
13525
abf22e64 13526 [Based on work by Jim Blandy]
08cf96df
EZ
13527 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13528 (builtin_type_vec128): Export.
13529 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13530 types.
13531 (builtin_type_vec128): New builtin type for 128 bit vector
13532 registers.
13533 (build_gdbtypes): Initialize builtin_type_v16qi and
13534 builtin_type_v8hi. Create the vec128 register builtin type
13535 structure.
13536 (build_builtin_type_vec128): New function.
abf22e64 13537 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13538 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13539 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13540 AltiVec register to new builtin type.
13541
d7242108
DJ
135422001-01-15 Daniel Jacobowitz <drow@mvista.com>
13543
13544 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13545 to make_cv_type.
13546
4ee3352d
AC
135472002-01-14 Andrew Cagney <ac131313@redhat.com>
13548
13549 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13550 CLEAN_UP_REGISTER_VALUE.
13551 * regcache.c (supply_register): Update only call.
13552
f015b2e7
AC
135532002-01-14 Andrew Cagney <ac131313@redhat.com>
13554
13555 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13556 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13557 a29k-*-vxworks* targets as obsolete.
13558
356ae49d
MS
135592002-01-14 Michael Snyder <msnyder@redhat.com>
13560
13561 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13562 until we can resolve portability issues.
13563 * gregset.h: Remove references to fpxregs.
13564 * gcore.c (gcore_command): Initialize note_sec to NULL.
13565
ade8f45e
AC
135662002-01-13 Andrew Cagney <ac131313@redhat.com>
13567
13568 * signals.c (target_signal_to_name): Rewrite. Only use
13569 signals[].name when in bounds and non-NULL.
abf22e64 13570
89c49e7a
AC
135712002-01-13 Andrew Cagney <ac131313@redhat.com>
13572
13573 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13574 * signals.c (target_signal_to_name): Verify that SIG is within the
13575 bounds of the signals array.
13576
4daa9f9f
AC
135772002-01-13 Andrew Cagney <ac131313@redhat.com>
13578
13579 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13580
ba4bbdcb
KS
135812002-01-13 Keith Seitz <keiths@redhat.com>
13582
13583 * stack.c (print_frame_info_base): Print the frame's pc
13584 only if when print_frame_info_listing_hook is not defined.
13585
575bbeb6
KS
135862002-01-13 Keith Seitz <keiths@redhat.com>
13587
13588 * varobj.c (varobj_set_value): Make sure that there were no
13589 errors evaluating the object before attempting to set its
13590 value.
13591 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13592 so this offset adjustment is no longer necessary.
13593 (create_child): Don't set the error flag if the child is
13594 a CPLUS_FAKE_CHILD.
13595 (value_of_child): If value_fetch_lazy fails, return NULL
13596 so that callers will be notified that an error occurred.
13597 (c_value_of_variable): Delay check of variable's validity
13598 until later. We actually want all structs and unions to have
13599 the value "{...}".
13600 Do not return "???" for variables which could not be evaluated.
13601 This error condition must be returned to the caller so that it
13602 can get the error condition from gdb.
13603 (cplus_name_of_child): Adjust index for vptr before figuring
13604 out the name of the child.
13605 (cplus_value_of_child): If a child's (real) parent is not valid,
13606 don't even bother trying to give a value for it. Just return
13607 an error. Change all instances in this function.
13608 (cplus_type_of_child): If our parent is one of the "fake"
13609 parents, we need to get at the type of the real parent, and
13610 derive the child's true type using this information.
13611
b76898ab
AC
136122002-01-13 Andrew Cagney <ac131313@redhat.com>
13613
13614 From 2002-01-09 John Marshall <johnm@falch.net>:
13615 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13616 sources.redhat.com, and tweak some related URLs which had
13617 suffered from linkrot.
13618
b6649e88
AC
136192002-01-13 Andrew Cagney <ac131313@redhat.com>
13620
13621 From Jeff law:
13622 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13623 structures passed in registers.
13624
82cc5033
EZ
136252002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13626
13627 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13628 white space which prevented compilation. Reported by DSK
13629 <dsk@student.unsw.edu.au>.
13630
ba5f2f8a
MS
136312002-01-11 Michael Snyder <msnyder@redhat.com>
13632
fbd35540
MS
13633 * symfile.c (build_section_addr_info_from_section_tab):
13634 Use bfd access method instead of manipulating bfd directly.
13635 (syms_from_objfile): Ditto.
13636 (simple_overlay_update_1): Ditto.
13637 (simple_overlay_update): Ditto.
13638 (generic_load): Ditto.
13639 (overlay_unmapped_address): FIXME comment, bfd access methods.
13640 (sections_overlap): FIXME comment, bfd access methods.
13641 (pc_in_mapped_range): FIXME comment, bfd access methods.
13642 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13643 (section_is_mapped): FIXME comment, bfd access methods.
13644 (section_is_overlay): FIXME comment, bfd access methods.
13645
ba5f2f8a
MS
13646 * symfile.c (generic_load): Whitespace and long line cleanups.
13647 Remove duplicate variable, change several local variables to
13648 more appropriate data types.
13649 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13650
17df2af6
AC
136512002-01-12 Andrew Cagney <ac131313@redhat.com>
13652
13653 From Peter Schauer:
13654 * language.c (longest_local_hex_string_custom): Use phex_nz to
13655 convert NUM to a hex string.
13656
ec920329
EZ
136572002-01-12 Elena Zannoni <ezannoni@redhat.com>
13658
13659 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13660 the function.
538a76d6 13661 Update Copyright year.
ec920329 13662
3abd2e01
AC
136632002-01-12 Andrew Cagney <ac131313@redhat.com>
13664
13665 * language.c (longest_raw_hex_string): Delete unused function.
13666
b21b22e0
PS
136672002-01-11 Petr Sorfa <petrs@caldera.com>
13668
13669 * MAINTAINERS (write-after-approval): Add myself.
13670 * dwarf2read.c (read_tag_string_type): Handling of
13671 DW_AT_byte_size.
13672 (read_tag_string_type): FORTRAN fix to prevent propagation of
13673 first string size.
13674 (set_cu_language): Handling of DW_LANG_Fortran95
13675
747fe712
RE
136762002-01-11 Richard Earnshaw <rearnsha@arm.com>
13677
13678 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13679 GETPID(inferior_ptid).
13680 (store_inferior_registers): Likewise.
13681
f1bea926
JM
136822002-01-10 Jason Merrill <jason@redhat.com>
13683
13684 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13685 Fix DW_OP_minus.
13686
ae940673
AC
136872002-01-10 Andrew Cagney <ac131313@redhat.com>
13688
13689 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13690 and bfd/elf32-sh-nbsd.c.
13691
00546b04
MS
136922002-01-10 Michael Snyder <msnyder@redhat.com>
13693
352ed7b4
MS
13694 * NEWS: Mention --pid and corefile/proc-id behavior change.
13695
c18be923
MS
13696 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13697 * gcore.c: Include cli/cli-decode.h instead of command.h.
13698
00546b04
MS
13699 * main.c (captured_main): Add new command line option "--pid".
13700 If the second command line argument (following the symbol-file)
13701 begins with a digit, try to attach to it before trying to open
13702 it as a corefile.
13703 (print_gdb_help): Document the "--pid" argument.
13704
db60ec62
EZ
137052002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13706
13707 * completer.c (command_completer): New function.
13708
13709 * completer.h <command_completer>: Add prototype.
13710
13711 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13712 completer for the "help" command.
13713
39c22d1a
JM
137142002-01-09 Jason Merrill <jason@redhat.com>
13715
13716 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13717
c564377f
MS
137182002-01-09 Michael Snyder <msnyder@redhat.com>
13719
975aec09
MS
13720 * i386-linux-nat.c (fill_fpxregset): Make global.
13721 (store_fpxregset): Ditto.
13722
db4a10fa
MS
13723 * gregset.h (gdb_fpxregset_t): Define.
13724 (supply_fpxregset): Prototype.
13725 (fill_fpxregset): Prototype.
13726
c564377f
MS
13727 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13728
c3d45d70
RE
137292002-01-09 Richard Earnshaw <rearnsha@arm.com>
13730
13731 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13732 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13733 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13734
fcc87af1
AC
137352002-01-09 Andrew Cagney <ac131313@redhat.com>
13736
13737 * MAINTAINERS: Update target maintainer rules so that any
13738 Maintainer can approve a tested patch for a maintenance-only
13739 target.
13740
dd96c05b
RE
137412002-01-09 Richard Earnshaw <rearnsha@arm.com>
13742
d4297db9 13743 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13744
d4297db9 13745 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13746 IN_SIGTRAMP.
13747
145fdc6e
MS
137482002-01-08 Michael Snyder <msnyder@redhat.com>
13749
13750 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13751 real name of the executable, rather than the /proc name.
13752
be4d1333
MS
137532002-01-03 Michael Snyder <msnyder@redhat.com>
13754
13755 Implement a "generate-core-file" command in gdb, save target state.
13756 * gcore.c: New file. Implement new command 'generate-core-file'.
13757 Save a corefile image of the current state of the inferior.
13758 * linux-proc.c: Add linux-specific code for saving corefiles.
13759 * target.h (struct target_ops): Add new target vectors for saving
13760 corefiles; to_find_memory_regions and to_make_corefile_notes.
13761 (target_find_memory_regions): New macro.
13762 (target_make_corefile_notes): New macro.
13763 * target.c (update_current_target): Inherit new target methods.
13764 (dummy_find_memory_regions): New place-holder method.
13765 (dummy_make_corefile_notes): New place-holder method.
13766 (init_dummy_target): Initialize new dummy target vectors.
13767 * exec.c (exec_set_find_memory_regions): New function.
13768 Allow the exec_ops vector for memory regions to be taken over.
13769 (exec_make_note_section): New function, target vector method.
13770 * defs.h (exec_set_find_memory_regions): Export prototype.
13771 * procfs.c (proc_find_memory_regions): New function, corefile method.
13772 (procfs_make_note_section): New function, corefile method.
13773 (init_procfs_ops): Set new target vector pointers.
13774 (find_memory_regions_callback): New function.
13775 (procfs_do_thread_registers): New function.
13776 (procfs_corefile_thread_callback): New function.
13777 * sol-thread.c (sol_find_memory_regions): New function.
13778 (sol_make_note_section): New function.
13779 (init_sol_thread_ops): Initialize new target vectors.
13780 * inftarg.c (inftarg_set_find_memory_regions): New function.
13781 Allow to_find_memory_regions vector to be taken over.
13782 (inftarg_set_make_corefile_notes): New function.
13783 Allow to_make_corefile_notes vector to be taken over.
13784 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13785 interface layer if not target_has_execution (may be a corefile).
13786 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13787 * config/sparc/sun4sol2.mh: Ditto.
13788 * config/alpha/alpha-linux.mh: Ditto.
13789 * config/arm/linux.mh: Ditto.
13790 * config/i386/x86-64linux.mh: Ditto.
13791 * config/ia64/linux.mh: Ditto.
13792 * config/m68k/linux.mh: Ditto.
13793 * config/mips/linux.mh: Ditto.
13794 * config/powerpc/linux.mh: Ditto.
13795 * config/sparc/linux.mh: Ditto.
13796
c6b92abd
MS
137972002-01-07 Michael Snyder <msnyder@redhat.com>
13798
13799 * arm-linux-nat.c: Remove references to regcache.c internal data
13800 (registers[] and register_valid[]).
13801
4b09dc8c
MS
138022002-01-07 Michael Snyder <msnyder@redhat.com>
13803
abf22e64
AJ
13804 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13805 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
13806 symbol file and shlibs.
13807 * Makefile.in: Add rule for linux-proc.o.
13808 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13809 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13810 * config/arm/linux.mh: Ditto.
13811 * config/i386/linux.mh: Ditto.
13812 * config/i386/x86-64linux.mh: Ditto.
13813 * config/ia64/linux.mh: Ditto.
13814 * config/m68k/linux.mh: Ditto.
13815 * config/mips/linux.mh: Ditto.
13816 * config/powerpc/linux.mh: Ditto.
13817 * config/sparc/linux.mh: Ditto.
13818
c25b74ac
PM
138192002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13820
13821 * win32-nat.c: Add i386-tdep.h dependency.
13822
94cd915f
MS
138232002-01-07 Michael Snyder <msnyder@redhat.com>
13824
c7cccb76
MS
13825 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13826 instead of bfd_get_arch_size. Don't bail out just because
13827 there's no exec_bfd.
abf22e64 13828
34c0bd93
MS
13829 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13830 * p-valprint.c (pascal_object_print_value): Ditto.
13831 * somread.c (som_symtab_read): Ditto.
13832 * symfile.c (simple_free_overlay_region_table): Ditto.
13833 * valops.c (value_assign): Ditto.
13834
21c1c920
MS
13835 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13836 use tilde_expand and strerror for opening save-tracepoints file.
13837
5bbd998e
MS
13838 * thread-db.c (thread_db_new_objfile): Indendation fix.
13839
94cd915f
MS
13840 * infptrace.c (GDB_MAX_ALLOCA): New define.
13841 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 13842 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
13843 can be overridden with whatever value is appropriate to the host).
13844 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13845 alloca to allocate potentially large buffer.
13846 * rs6000-nat.c (child_xfer_memory): Ditto.
13847 * symm-nat.c (child_xfer_memory): Ditto.
13848 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13849
494e8a93
JSC
138502002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13851
13852 From Nick Clifton <nickc@redhat.com>
13853 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13854
d0e1d48e
MS
138552002-01-07 Michael Snyder <msnyder@redhat.com>
13856
abf22e64 13857 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
13858 Don't use exec_bfd if it's NULL.
13859
290b2c7a
MK
138602002-01-06 Mark Kettenis <kettenis@gnu.org>
13861
abf22e64 13862 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 13863
aef21287
AC
138642002-01-06 Andrew Cagney <ac131313@redhat.com>
13865
13866 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13867 * gnu-nat.c: Ditto.
13868
30efa627
AC
138692002-01-06 Andrew Cagney <ac131313@redhat.com>
13870
13871 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13872 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13873 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13874 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13875 z8k-coff have not been multi-arched. Update z8k-coff build
13876 status.
13877
9b4ff276
AC
138782002-01-06 Andrew Cagney <ac131313@redhat.com>
13879
13880 * MAINTAINERS: Mark a29k target as obsolete.
13881 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13882 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13883 comments.
13884 * NEWS: Note that a29k targets are obsolete.
13885 * a29k-tdep.c: Mark as obsolete.
13886 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13887 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13888 a29k-*-vxworks* targets as obsolete.
13889 * remote-adapt.c: Obsolete.
13890 * remote-eb.c: Obsolete.
13891 * remote-mm.c: Obsolete.
13892 * remote-udi.c: Obsolete.
13893 * config/a29k/a29k-udi.mt: Obsolete.
13894 * config/a29k/a29k.mt: Obsolete.
13895 * config/a29k/tm-a29k.h: Obsolete.
13896 * config/a29k/tm-vx29k.h: Obsolete.
13897 * config/a29k/vx29k.mt: Obsolete.
13898
a9011d31
AC
138992002-01-05 Andrew Cagney <ac131313@redhat.com>
13900
13901 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13902 with BFD_ENDIAN_BIG.
13903
9299404e
AC
139042002-01-05 Andrew Cagney <ac131313@redhat.com>
13905
13906 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13907 * configure, config.in: Re-generate.
13908 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13909 * defs.h: Do not include <endian.h>.
13910
7e89e357
JT
139112002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13912
13913 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13914 * config.in: Regenerate.
13915 * configure.in: Update copyright years.
13916 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13917 * configure: Regenerate.
13918 * i386bsd-nat.c: Update copyright years.
13919 (fill_gregset): Use regcache_collect.
13920 (fetch_inferior_registers): Only fetch integer registers
13921 if requested to do so. Add support for XMM registers
13922 using PT_GETXMMREGS.
13923 (store_inferior_registers): Only store integer registers
13924 if requested to do so. Add support for XMM registers
13925 using PT_SETXMMREGS.
13926 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13927 (store_inferior_registers): Remove.
13928 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13929 (fetch_elfcore_registers): New function.
13930 (i386nbsd_elfcore_fns): New.
13931 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13932 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13933 i386bsd-nat.o.
13934 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13935 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13936 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13937 * config/i386/tm-nbsd.h: Update copyright years.
13938 (HAVE_SSE_REGS): Define.
13939 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13940 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13941 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13942 (SIGCONTEXT_PC_OFFSET): Remove.
13943 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13944
a752853e
AC
139452002-01-05 Andrew Cagney <ac131313@redhat.com>
13946
13947 * configure.tgt: Remove powerpc-*-macos* target.
13948 * config/m68k/xm-mpw.h: Delete file.
13949 * config/xm-mpw.h: Delete file.
13950 * ser-mac.c: Delete file.
13951 * mpw-make.sed: Delete file.
13952 * mpw-config.in: Delete file.
13953 * mac-xdep.c: Delete file.
13954 * mac-gdb.r: Delete file.
13955 * mac-defs.h: Delete file.
13956 * mac-nat.c: Delete file.
13957 * config/powerpc/macos.mh: Delete file.
13958 * config/powerpc/macos.mt: Delete file.
13959 * config/powerpc/nm-macos.h: Delete file.
13960 * config/powerpc/tm-macos.h: Delete file.
13961 * source.c (openp, open_source_file): Remove obsolete code.
13962 * top.c (gdb_readline): Ditto.
13963 * utils.c (query): Ditto.
13964 * event-top.c (display_gdb_prompt): Ditto.
13965 * Makefile.in (ser-mac.o): Delete obsolete target.
13966 * NEWS: Update.
13967
d7449b42
AC
139682002-01-04 Andrew Cagney <ac131313@redhat.com>
13969
13970 * defs.h (BIG_ENDIAN): Delete macro definition.
13971 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13972 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13973 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13974 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13975 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13976 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13977 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13978 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13979 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13980 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13981 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13982 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13983 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13984 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13985 * gdbarch.c: Re-generate.
13986
356374e8
DJ
139872002-01-04 Daniel Jacobowitz <drow@mvista.com>
13988
13989 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13990 for core files.
13991
a2b8f8f8
JT
139922002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13993
13994 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13995
12466af9
AC
139962002-01-04 Andrew Cagney <ac131313@redhat.com>
13997
13998 * value.h (value_ptr): Delete typedef.
13999
3549ab40
JT
140002002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14001
14002 * i386nbsd-nat.c: Update copyright years.
14003 Include i386-tdep.h.
14004
fedbd091
EZ
140052002-01-04 Elena Zannoni <ezannoni@redhat.com>
14006
14007 * stabsread.c: Update copyright years.
14008
14009 From Debashis Mahata <debashis.mahata@wipro.com>:
14010 (read_struct_fields): Deal with Sun C compiler erroneous stab
14011 output for structs and unions.
fec8b34f 14012 Fix PR gdb/269.
fedbd091 14013
eb43544b
DJ
140142002-01-04 Daniel Jacobowitz <drow@mvista.com>
14015
14016 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14017 prototype.
14018
1514d34e
DJ
140192002-01-04 Daniel Jacobowitz <drow@mvista.com>
14020
14021 * cp-abi.c: Fix whitespace.
14022 (baseclass_offset): New wrapper function.
14023 * cp-abi.h (baseclass_offset): Add prototype.
14024 (struct cp_abi_ops): Add baseclass_offset pointer.
14025
14026 * valops.c (vb_match): Move to...
14027 * gnu-v2-abi.c (vb_match): here.
14028 * valops.c (baseclass_offset): Move to...
14029 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14030
14031 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14032
14033 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14034 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14035 * hpacc-abi.c (init_hpacc_ops): Likewise.
14036
7f8c9282
DJ
140372002-01-04 Daniel Jacobowitz <drow@mvista.com>
14038
14039 * valops.c (find_overload_match): Accept obj as a
14040 reference parameter. Update it before returning.
14041 * value.h (find_overload_match): Update prototype.
14042 * eval.c (evaluate_subexp_standard): Pass object to
14043 find_overload_match by reference.
14044
f23631e4
AC
140452002-01-03 Andrew Cagney <ac131313@redhat.com>
14046
14047 * valarith.c: Replace value_ptr with struct value pointer. Remove
14048 register attribute from value declarations.
14049 * valops.c: Ditto.
14050 * value.h: Ditto.
14051 * scm-lang.c (scm_lookup_name): Ditto.
14052
79e10fab 140532002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 14054
79e10fab
AC
14055 Abstract the functionality of iterating over mapped memory
14056 regions into a general purpose iterator function.
abf22e64 14057 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
14058 iterator for memory sections.
14059 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14060 (solib_mappings_callback): New function, callback for above.
14061 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14062 (info_mappings_callback): New function, callback for above.
14063
14064 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14065
c5ad026a
MK
140662002-01-01 Mark Kettenis <kettenis@gnu.org>
14067
d2a7c97a
MK
14068 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14069 * i386-tdep.c: Include "elf-bfd.h".
14070 (process_note_abi_tag_sections): New function.
14071 (i386_gdbarch_init): Add code to recognize various OS/ABI
14072 combinations.
14073
c5ad026a
MK
14074 * maint.c (_initialize_maint_cmds): Add missing \ in
14075 string-literal.
14076
a1a5b71e 14077For older changes see ChangeLog-2001
c906108c
SS
14078\f
14079Local Variables:
14080mode: change-log
14081left-margin: 8
14082fill-column: 74
14083version-control: never
14084End:
This page took 0.965024 seconds and 4 git commands to generate.