* hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7d2830a3
DJ
12002-12-10 Daniel Jacobowitz <drow@mvista.com>
2
3 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
4 (child_post_follow_vfork): Cancel pending exec event if we follow
5 the parent.
6 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
7 events have been processed. Return a fake TARGET_WAITKIND_EXECD
8 event at the following wait call if necessary.
9 * infrun.c (follow_vfork): Don't follow_exec here.
10 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
11 case about HP/UX 10.20. Remove code pushed down to
12 hppah-nat.c:child_wait.
13 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
14 vfork_in_flight is set.
15
162002-12-10 Daniel Jacobowitz <drow@mvista.com>
8e7d2c16
DJ
17
18 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
19 for the parent's fork event.
20 * infrun.c (handle_inferior_event): Only expect one fork event.
21 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
22 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
23
50631d4f
AC
242002-12-10 Andrew Cagney <ac131313@redhat.com>
25
bc124bd3
AC
26 * PROBLEMS: Delete reference to PR gdb/725.
27
50631d4f
AC
28 * MAINTAINERS (gdb.c++): Add David Carlton.
29
808013d1
DC
302002-12-09 David Carlton <carlton@math.stanford.edu>
31
32 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
33 * cli/cli-cmds.c: Ditto.
34
31deffe5
AC
352002-12-09 Andrew Cagney <cagney@redhat.com>
36
6cbda714
AC
37 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
38 function address in <>.
31deffe5
AC
39 * gdbarch.c: Re-generate.
40
2692ddb3
DC
412002-12-09 David Carlton <carlton@math.stanford.edu>
42
43 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
44
f3c39e76
DC
452002-12-09 David Carlton <carlton@math.stanford.edu>
46
47 * linespec.c (symtab_from_filename): New function.
48 (decode_line_1): Move code into symtab_from_filename.
49
1b84163e
KB
502002-12-09 Kevin Buettner <kevinb@redhat.com>
51
52 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
53
bdd78e62
AC
542002-12-07 Andrew Cagney <ac131313@redhat.com>
55
56 * f-valprint.c (info_common_command): Use get_frame_pc.
57 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
58 * ax-gdb.c (agent_command): Ditto.
59 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
60 (rs6000_pop_frame): Ditto.
61 (rs6000_frameless_function_invocation): Ditto.
62 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
63 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
64 * macroscope.c (default_macro_scope): Ditto.
65 * stack.c (print_frame_info_base): Ditto.
66 (print_frame, frame_info, print_frame_label_vars): Ditto.
67 (return_command, func_command, get_frame_language): Ditto.
68 * infcmd.c (finish_command): Ditto.
69 * dummy-frame.c (cached_find_dummy_frame): Ditto.
70 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
71 (break_at_finish_at_depth_command_1): Ditto.
72 (break_at_finish_command_1): Ditto.
73 (until_break_command, get_catch_sals): Ditto.
74 * blockframe.c (func_frame_chain_valid): Ditto.
75 (frameless_look_for_prologue): Ditto.
76 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
77
408400e7
AC
782002-12-08 Andrew Cagney <ac131313@redhat.com>
79
80 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
81 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
82
97f46953
AC
832002-12-08 Andrew Cagney <ac131313@redhat.com>
84
85 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
86 to pure functions.
87 * gdbarch.h, gdbarch.c: Re-generate.
88 * frame.c (get_prev_frame): Explictly assign prev's pc with value
89 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
90
91 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
92 declaration to a function returning a CORE_ADDR.
93 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
94 * arch-utils.c (init_frame_pc_noop): Return the PC value.
95 (init_frame_pc_default): Ditto.
96 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
97 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
98 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
99 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
100 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
101 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
102
103 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
104 to init_frame_pc_noop.
105 (i386_interix_init_frame_pc): Delete function.
106 * z8k-tdep.c (init_frame_pc): Delete function.
107 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
108 (INIT_FRAME_PC_FIRST): Ditto.
109 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
110 (INIT_FRAME_PC_FIRST): Ditto.
111 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
112 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
113 init_frame_pc_noop.
114 (INIT_FRAME_PC_FIRST): Convert to an expression.
115 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
116
8b36eed8
AC
1172002-12-08 Andrew Cagney <ac131313@redhat.com>
118
119 * blockframe.c: Use get_frame_base instead of directly accessing
120 the `struct frame_info' member frame.
121 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
122 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
123
aeeccc89
EZ
1242002-12-08 Elena Zannoni <ezannoni@redhat.com>
125
126 * Makefile.in (readline_h): Define.
127 (completer.o): Depend on readline_h.
128 (corelow.o): Ditto.
129 (event-top.o): Ditto.
130 (exec.o): Ditto.
131 (solib.o): Ditto.
132 (source.o): Ditto.
133 (symfile.o): Ditto.
134 (symmisc.o): Ditto.
135 (top.o): Ditto.
136 (tracepoint.o): Ditto.
137 (utils.o): Ditto.
138 (cli-dump.o): Ditto.
139 (tui-hooks.o): Ditto.
140 (tuiWin.o): Ditto.
141
38017ce8
EZ
1422002-12-08 Elena Zannoni <ezannoni@redhat.com>
143
144 More cleanup from import of readline 4.3.
145 * completer.h (complete_line, readline_line_completion_function):
146 Update prototypes.
147 (line_completion_function): Removed, not used outside of completer.c.
148 * completer.c (readline_line_completion_function,
149 complete_function, line_completion_function): Use const for first
150 parameter.
151 (line_completion_function): Make static.
152 (filename_completer): filename_completion_function is now called
153 rl_filename_completion_function
154 * corelow.c: Include <readline/readline.h>.
155 * exec.c: Ditto.
156 * solib.c: Ditto.
157 * source.c: Ditto.
158 * symfile.c: Ditto.
159 * symmisc.c: Ditto.
160 * top.c (init_main): No need to coerce
161 readline_line_completion_function anymore.
162 * cli/cli-dump.c: Include <readline/readline.h>.
163
75e3c1f9
AC
1642002-12-08 Andrew Cagney <ac131313@redhat.com>
165
166 * stack.c (frame_info): Use get_prev_frame.
167 * blockframe.c (frame_address_in_block): Ditto.
168 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
169 (rs6000_frameless_function_invocation): Ditto.
170 (rs6000_frame_saved_pc): Ditto.
171 (rs6000_frame_chain): Ditto.
172 * arch-utils.c (init_frame_pc_default): Ditto.
173
0d2b8049
AC
1742002-12-08 Andrew Cagney <ac131313@redhat.com>
175
176 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
177 Delete redundant definition.
178
9255ee31
EZ
1792002-12-08 Elena Zannoni <ezannoni@redhat.com>
180
181 Import of readline 4.3:
182 * cli/cli-cmds.c: Include readline/tilde.h.
183 * cli/cli-setshow.c: Ditto.
184 * defs.h: Don't declare tilde_expand anymore, since readline
185 exports it.
186
3442dad6 1872002-12-08 Elena Zannoni <ezannoni@redhat.com>
57725d84
EZ
188
189 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
190 -Werror on this file.
191
52f87c51
AC
1922002-12-07 Andrew Cagney <ac131313@redhat.com>
193
194 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
195 the format name.
196 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
197 * gdbarch.c: Regenerate.
198
2ca6c561
AC
1992002-12-06 Andrew Cagney <ac131313@redhat.com>
200
201 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
202 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
203 provide a default value.
204 * gdbarch.h, gdbarch.c: Regenerate.
205 * frame.c (get_prev_frame): Update. Check
206 DEPRECATED_INIT_FRAME_PC_FIRST_P.
207 * s390-tdep.c (s390_gdbarch_init): Update.
208 * mips-tdep.c (mips_gdbarch_init): Update.
209 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
210 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
211 * alpha-tdep.c (alpha_gdbarch_init): Update.
212
e162d11b
EZ
2132002-12-06 Elena Zannoni <ezannoni@redhat.com>
214
215 * ia64-linux-nat.c: Include gdb_string.h.
216 * alpha-nat.c: Ditto.
2b298b5d
EZ
217 * ppc-linux-nat.c: Ditto.
218 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
219 Update dependencies.
e162d11b 220
aa0cd9c1
AC
2212002-12-05 Andrew Cagney <ac131313@redhat.com>
222
223 * gdbthread.h: Include "frame.h".
224 (struct thread_info): Replace step_frame_address with
225 step_frame_id.
226 * inferior.h: Include "frame.h".
227 (step_frame_id): Replace external variable step_frame_address.
228 * gdbthread.h (save_infrun_state): Replace step_frame_address
229 parameter with step_frame_id parameter.
230 (load_infrun_state): Ditto.
231 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
232 * infcmd.c (step_frame_id, step_1, step_once): Update.
233 * thread.c (load_infrun_state, save_infrun_state): Update.
234 * infrun.c (clear_proceed_status, save_inferior_status): Update.
235 (handle_inferior_event, step_over_function): Update.
236 (normal_stop, context_switch, restore_inferior_status): Update.
237 (struct inferior_status): Replace step_frame_address with
238 step_frame_id.
239
a9a9bd0f
DC
2402002-12-05 David Carlton <carlton@math.stanford.edu>
241
242 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
243 DW_TAG_member as well as a declaration as being a C++ static data
244 member.
245 (read_structure_scope): Combine tests for DW_TAG_member and
246 DW_TAG_variable.
247
614b3b14
DC
2482002-12-05 David Carlton <carlton@math.stanford.edu>
249
250 * linespec.c (decode_compound): New function.
251 (decode_line_1): Move code into decode_compound.
252
e4051eeb
DC
2532002-12-05 David Carlton <carlton@math.stanford.edu>
254
255 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
256 argument.
257 (lookup_symbol_aux): Do the 'field_of_this' check before checking
258 the static block. See PR gdb/804.
259
f61e8913
DC
2602002-12-05 David Carlton <carlton@math.stanford.edu>
261
262 * symtab.c (lookup_symbol_aux_block): New function.
263 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
264
1e9f55d0
AC
2652002-12-05 Andrew Cagney <ac131313@redhat.com>
266
267 * gdbarch.sh: Dump the predicate function and macro values.
268 (read): Print error on standard error.
269 * gdbarch.c: Regenerate.
270
d1973055
KB
2712002-12-04 Kevin Buettner <kevinb@redhat.com>
272
273 * Makefile.in (mips_tdep_h): Define.
274 (mips-tdep.o): Add mips_tdep_h to dependency list.
275 * mips-tdep.h: New file.
276 * mips-tdep.c (mips-tdep.h): Include.
277 (enum mips_abi): Move to mips-tdep.h.
278 (mips_abi): New function.
279
f1253c7b
DC
2802002-12-04 David Carlton <carlton@math.stanford.edu>
281
282 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
283
406bc4de
DC
2842002-12-04 David Carlton <carlton@math.stanford.edu>
285
286 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
287 function.
288 (lookup_symbol_aux_minsyms): New function.
289
2a3750c5
JB
2902002-12-04 J. Brobecker <brobecker@gnat.com>
291
292 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
293
961d8652
JB
2942002-12-04 J. Brobecker <brobecker@gnat.com>
295
296 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
297 which is an obsolete macro name.
298
38c52d5a
DJ
2992002-12-04 Daniel Jacobowitz <drow@mvista.com>
300
301 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
302 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
303
d8ef46f5
DJ
3042002-12-03 H.J. Lu (hjl@gnu.org)
305
306 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
307 (create_breakpoints): Make sure the addr_string field is not
308 NULL.
309
02ae7771
AC
3102002-12-03 Andrew Cagney <ac131313@redhat.com>
311
312 * sparc-nat.c (fetch_inferior_registers)
313 (store_inferior_registers): Add comment on problem of LWP vs
314 threads.
315
316 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
317 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
318 (lin_lwp_store_registers): Remove.
319 (init_lin_lwp_ops): Use fetch_inferior_registers
320 and store_inferior_registers directly.
321 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
322 (store_inferior_registers): Likewise.
323 Fix PR gdb/725.
324
7a424e99
AC
3252002-12-03 Andrew Cagney <ac131313@redhat.com>
326
327 * frame.h (get_frame_id): Convert to a function.
328 (null_frame_id, frame_id_p): Declare.
329 (frame_id_eq, frame_id_inner): Declare.
330 (frame_id_build): New function.
331 * frame.c (get_frame_id): Update. Use null_frame_id.
332 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
333 frame_id_inner.
334 (null_frame_id, frame_id_p): Define.
335 (frame_id_eq, frame_id_inner): Define.
336 (frame_id_build): New function.
337 * varobj.c (varobj_create): Update.
338 (varobj_update): Update.
339 * valops.c (value_assign): Update.
340 (new_root_variable): Update.
341 * infrun.c (save_inferior_status): Update.
342 * breakpoint.c (watch_command_1): Update.
343
891c7f5f
JB
3442002-12-03 J. Brobecker <brobecker@gnat.com>
345
346 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
347 (SNAP2): Likewise.
348
144da3c1
AC
3492002-12-03 Andrew Cagney <cagney@redhat.com>
350
46248966
AC
351 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
352 patch.
353
144da3c1
AC
354 * PROBLEMS: Mention PR gdb/725.
355
03c6228e
AS
3562002-12-03 Andreas Schwab <schwab@suse.de>
357
358 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
359
36e53c63
AF
3602002-12-02 Adam Fedor <fedor@gnu.org>
361 Klee Dienes <kdienes@apple.com>
362
363 * objc-lang.c (objc_printstr): Add width arg to match
364 printstr prototype.
365 (compare_selectors): Add 'const' to arg types.
366 (compare_classes): Likewise.
367 (find_imps): Cast msym pointer to avoid compiler warning.
368 (print_object_command): Validate the address before
369 passing it to the print routine.
370 (find_objc_msgcall_submethod): Change function argument to
371 return an int.
372 * objc-lang.h: Add 'extern' to all function declarations.
373 (value_nsstring): Add declaration.
374
504d5c7e
JB
3752002-12-02 J. Brobecker <brobecker@gnat.com>
376
377 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
378 Fixes a build failure on HP/UX.
379
380 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
381 failure on HP/UX.
382 (hpread_has_name): Advance declaration to avoid a compilation warning.
383 (pst_syms_count): Add missing variable type. By change, the compiler
384 was defaulting to int, which seems a good choice. Fixes a compilation
385 warning.
386 (pst_syms_size): Likewise.
387
59623e27
JB
3882002-12-02 J. Brobecker <brobecker@gnat.com>
389
390 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
391 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
392 later to set the proper gdbarch methods depending on the osabi.
393 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
394
a09a320d
JB
3952002-12-02 J. Brobecker <brobecker@gnat.com>
396
397 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
398 * osabi.c (gdb_osabi_name): Add strings images for the two new
399 enum values.
400 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
401
8a81a99e
AC
4022002-12-02 Andrew Cagney <ac131313@redhat.com>
403
404 * MAINTAINERS (Java): Global maintainers are responible for Java.
405 (Past Maintainers): Mention both Anthony Green and Per Bothner as
406 part Java maintainers.
407
7af35dad
JB
4082002-12-02 J. Brobecker <brobecker@gnat.com>
409
410 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
411 Fixes a compilation failure on AiX.
412
f4ede9bc
JB
4132002-12-02 J. Brobecker <brobecker@gnat.com>
414
415 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
416 why aix-thread.o is not listed.
417
ae45cd16
AC
4182002-12-01 Andrew Cagney <ac131313@redhat.com>
419
420 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
421 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
422 * gdbarch.h, gdbarch.c: Re-generate.
423 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
424 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
425 * config/pa/tm-hppa.h, frame.h: Update.
426 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
427 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
428 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
429 * cris-tdep.c, alpha-tdep.c: Update.
430 * frame.c (set_unwind_by_pc, create_new_frame): Use either
431 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
432 (get_prev_frame): Ditto.
433
020cc13c
AC
4342002-11-30 Andrew Cagney <cagney@redhat.com>
435
436 * exec.c (xfer_memory): Replace boolean with int.
437 * p-exp.y: Use 0 instead of false.
438 * corelow.c (gdb_check_format): Change return type to int from
439 boolean.
440 * utils.c: Don't include <curses.h> or <term.h> first.
441
1d9b2aa8
SC
4422002-11-29 Stephane Carrez <stcarrez@nerim.fr>
443
444 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
445 (m68hc11_register_byte): Remove.
446 (m68hc11_gdbarch_init): Don't set the above.
447
a193e397
AC
4482002-11-29 Andrew Cagney <cagney@redhat.com>
449
450 * remote-mips.c (mips_initialize): Force a selected frame rebuild
451 by calling get_selected_frame.
452 * ocd.c (ocd_start_remote): Use get_selected frame instead of
453 set_current_frame, create_new_frame, select_frame and
454 get_current_frame.
455 * remote-e7000.c (e7000_start_remote): Ditto.
456 * remote-mips.c (common_open): Ditto
457 * remote-rdp.c (remote_rdp_open): Ditto.
458
b5fc49aa
AS
4592002-11-29 Andreas Schwab <schwab@suse.de>
460
461 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
462 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
463 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
464 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
465 read_memory_unsigned_integer instead of read_memory_integer when
466 dealing with addresses and instruction opcodes.
467 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
468 (m68k_linux_frame_saved_pc): Likewise.
469
6e7f8b9c
AC
4702002-11-29 Andrew Cagney <ac131313@redhat.com>
471
472 * stack.c (selected_frame, select_frame): Move from here ...
473 * frame.c (selected_frame, select_frame): ... to here. Include
474 "language.h".
475 * Makefile.in (frame.o): Update dependencies.
476 * frame.c (get_selected_frame): New function.
477 * frame.h (get_selected_frame): Declare.
478 (deprecated_selected_frame): Rename selected_frame.
479 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
480 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
481 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
482 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
483 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
484 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
485 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
486 * z8k-tdep.c, cli/cli-cmds.c: Update.
487
805e2818
AC
4882002-11-29 Andrew Cagney <ac131313@redhat.com>
489
490 * frame.h (get_selected_block): Add comments.
491
1058bca7
AC
4922002-11-28 Andrew Cagney <ac131313@redhat.com>
493
494 * frame.c (pc_notcurrent): New function.
495 (find_frame_sal): New function.
496 * frame.h (find_frame_sal): Declare.
497 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
498 * stack.c (print_frame_info_base): Use find_frame_sal instead of
499 find_pc_line.
1058bca7
AC
500 (frame_info): Ditto.
501 * ada-lang.c (find_printable_frame): Ditto.
502
d92419e5
JB
5032002-11-28 J. Brobecker <brobecker@gnat.com>
504
505 * configure.in: Check that the pthdebug library is recent enough
506 before enabling thread support on native AiX.
507 * configure: Regenerate.
508
509 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
510 from the list of object files as it is now appended by configure
511 if thread support is enabled.
512 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
513 if thread support is enabled.
514
8c69fc49
AC
5152002-11-28 Andrew Cagney <cagney@redhat.com>
516
517 * stack.c (get_selected_block): In-line get_current_block.
518 * frame.h (get_current_block): Delete declaration.
519 * blockframe.c (get_current_block): Delete function.
520
07555a72
AC
5212002-11-28 Andrew Cagney <ac131313@redhat.com>
522
523 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
524 USE_GENERIC_DUMMY_FRAMES.
525 * gdbarch.h, gdbarch.c: Regenerate.
526 * valops.c, frame.c: Update.
527 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
528 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
529 * config/pa/tm-hppa.h, blockframe.c: Update.
530 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
531 * m68k-tdep.c, alpha-tdep.c: Ditto.
532
533 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
534 * mips-tdep.c: Ditto.
535
b99fa2d2
AC
5362002-11-27 Andrew Cagney <ac131313@redhat.com>
537
538 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
539 (USE_GENERIC_DUMMY_FRAMES): Default to true.
540 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
541 * gdbarch.c, gdbarch.h: Re-generate.
542 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
543 (CALL_DUMMY_LOCATION): Delete macro definition.
544 (PC_IN_CALL_DUMMY): Delete macro definitions.
545
546 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
547 default is already generic_pc_in_call_dummy.
548 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
549 * v850-tdep.c (v850_gdbarch_init): Ditto.
550 * sh-tdep.c (sh_gdbarch_init): Ditto.
551 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
552 * mips-tdep.c (mips_gdbarch_init): Ditto.
553 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
554 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
555 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
556 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
557 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
558 * avr-tdep.c (avr_gdbarch_init): Ditto.
559
560 * arm-tdep.c (arm_gdbarch_init): Do not set
561 use_generic_dummy_frames, default is already 1.
562 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
563 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
564 * v850-tdep.c (v850_gdbarch_init): Ditto.
565 * sh-tdep.c (sh_gdbarch_init): Ditto.
566 * s390-tdep.c (s390_gdbarch_init): Ditto.
567 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
568 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
569 * mips-tdep.c (mips_gdbarch_init): Ditto.
570 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
571 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
572 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
573 * i386-tdep.c (i386_gdbarch_init): Ditto.
574 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
575 * frv-tdep.c (frv_gdbarch_init): Ditto.
576 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
577 * cris-tdep.c (cris_gdbarch_init): Ditto.
578 * avr-tdep.c (avr_gdbarch_init): Ditto.
579
580 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
581 call_dummy_location, default is already AT_ENTRY_POINT.
582 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
583 * v850-tdep.c (v850_gdbarch_init): Ditto.
584 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
585 * sh-tdep.c (sh_gdbarch_init): Ditto.
586 * s390-tdep.c (s390_gdbarch_init): Ditto.
587 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
588 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
589 * mips-tdep.c (mips_gdbarch_init): Ditto.
590 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
591 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
592 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
593 * i386-tdep.c (i386_gdbarch_init): Ditto.
594 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
595 * frv-tdep.c (frv_gdbarch_init): Ditto.
596 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
597 * cris-tdep.c (cris_gdbarch_init): Ditto.
598 * avr-tdep.c (avr_gdbarch_init): Ditto.
599 * arm-tdep.c (arm_gdbarch_init): Ditto.
600 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
601
abc0af47
AC
6022002-11-28 Andrew Cagney <cagney@redhat.com>
603
604 * frame.h: Update comments on set_current_frame, create_new_frame,
605 flush_cached_frames, reinit_frame_cache, select_frame and
606 selected_frame.
607
ed5cedc5
AC
6082002-11-27 Andrew Cagney <cagney@redhat.com>
609
610 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
611 deprecated pc_in_call_dummy function.
612 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
613 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
614 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
615 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
616 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
617
b2a1bd4f
MH
6182002-11-26 Martin M. Hunt <hunt@redhat.com>
619
620 * Makefile.in: Remove Tix dependencies.
621 * acinclude.m4: Ditto.
622 * aclocal.m4: Ditto.
623 * configure.in: Ditto.
624 * configure: Regenerated.
625
f09cffaa
AC
6262002-11-26 Andrew Cagney <ac131313@redhat.com>
627
628 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
629 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
630 * gdbarch.c: Re-generate.
631
e92b0cc9
AC
6322002-11-26 Andrew Cagney <ac131313@redhat.com>
633
634 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
635 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
636 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
637 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
638 pc_in_call_dummy_at_entry_point.
639 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
640 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
641 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
642 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
643 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
644 pc_in_call_dummy_on_stack.
645 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
646 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
647 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
648 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
649 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
650
b4b88177
AC
6512002-11-26 Andrew Cagney <ac131313@redhat.com>
652
653 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
654 pc_in_call_dummy_before_text_end
655 (deprecated_pc_in_call_dummy_after_text_end): Rename
656 pc_in_call_dummy_after_text_end.
657 (deprecated_pc_in_call_dummy_on_stack): Rename
658 pc_in_call_dummy_on_stack.
659 (deprecated_pc_in_call_dummy_at_entry_point): Rename
660 pc_in_call_dummy_at_entry_point.
661 * m68k-tdep.c (m68k_gdbarch_init): Update.
662 * s390-tdep.c (s390_gdbarch_init): Update.
663 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
664 * vax-tdep.c (vax_gdbarch_init): Update.
665 * sparc-tdep.c (sparc_gdbarch_init): Update.
666 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
667 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
668 * i386-tdep.c (i386_gdbarch_init): Update.
669 * frv-tdep.c (frv_gdbarch_init): Update.
670 * cris-tdep.c (cris_gdbarch_init): Update.
671 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
672 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
673 (deprecated_pc_in_call_dummy_after_text_end)
674 (deprecated_pc_in_call_dummy_on_stack)
675 (deprecated_pc_in_call_dummy_at_entry_point): Update.
676 * alpha-tdep.c (alpha_gdbarch_init): Update.
677
eb784848
DJ
6782002-11-25 Daniel Jacobowitz <drow@mvista.com>
679
680 * acconfig.h (HAVE_PREAD64): Add.
681 * configure.in: Check for pread64.
682 * config.in: Regenerated.
683 * configure: Regenerated.
684 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
685 * linux-proc.c (linux_proc_xfer_memory): New function.
686 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
687
933c6fe4
DC
6882002-11-25 David Carlton <carlton@math.stanford.edu>
689
690 * dwarf2read.c (scan_partial_symbols): Descend into namespace
691 pdi's with no name.
692
158a8022
AC
6932002-11-25 Andrew Cagney <ac131313@redhat.com>
694
695 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
696 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
697
481d0f41
JB
6982002-11-25 Jim Blandy <jimb@redhat.com>
699
e8289572
JB
700 * symfile.c (init_objfile_sect_indices): New function.
701 (default_symfile_offsets): Move the section-index-initializing
702 stuff into init_objfile_sect_indices, and call that.
703
b29c9944
JB
704 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
705 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
706
13de58df
JB
707 * symfile.c (syms_from_objfile): Adjust indentation.
708
481d0f41
JB
709 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
710 || info_verbose isn't true.
711
7d6a26a7
AC
7122002-11-24 Andrew Cagney <ac131313@redhat.com>
713
714 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
715 default to get_frame_base.
716 * gdbarch.h, gdbarch.c: Regenerate.
717 * arch-utils.c (default_frame_address): Delete function.
718 * arch-utils.h (default_frame_address): Delete declaration
719
6abe1021
PM
7202002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
721
722 * varobj.c (find_frame_addr_in_frame_chain):
723 Use get_frame_base instead of FRAME_FP,
724 obvious fix.
725
c193f6ac
AC
7262002-11-19 Andrew Cagney <ac131313@redhat.com>
727
728 * frame.h (FRAME_FP): Delete macro.
729 (get_frame_base): New function declaration.
730 * frame.c (get_frame_base): New function.
731 (get_frame_id): Use ->frame.
732 (frame_find_by_id): Rewrite to use get_frame_id.
733 * blockframe.c: Use get_frame_base instead of FRAME_FP.
734 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
735 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
736 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
737 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
738 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
739 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
740
e5d2af14
AC
7412002-11-24 Andrew Cagney <ac131313@redhat.com>
742
743 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
744
931d12c6
AC
7452002-11-24 Andrew Cagney <ac131313@redhat.com>
746
747 * frame.c (set_unwind_by_pc): Revert change below, use
748 PC_IN_CALL_DUMMY.
749 (get_prev_frame): Ditto.
750
5e0f933e
AC
7512002-11-24 Andrew Cagney <ac131313@redhat.com>
752
753 * dummy-frame.c (pc_in_dummy_frame): New function.
754 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
755 (find_dummy_frame): Update comment.
756 (generic_pop_current_frame): Use get_frame_type.
757 * dummy-frame.h (pc_in_dummy_frame): Declare.
758 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
759 (create_new_frame): Use pc_in_dummy_frame.
760 (get_prev_frame): Use pc_in_dummy_frame.
761 (frame_saved_regs_register_unwind): Use get_prev_frame.
762 (deprecated_generic_get_saved_register): Use get_prev_frame.
763
7d8547c9
AC
7642002-11-23 Andrew Cagney <ac131313@redhat.com>
765
766 * blockframe.c (find_frame_addr_in_frame_chain): Move function
767 from here ...
768 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
769 (varobj_create): Note that frame ID should be used.
770 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
771
0225421b
AC
7722002-11-23 Andrew Cagney <ac131313@redhat.com>
773
774 * breakpoint.c: Include "gdb_assert.h".
775 (deprecated_frame_in_dummy): Assert that generic dummy frames are
776 not being used.
777 * Makefile.in (breakpoint.o): Update dependencies.
778 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
779 deprecated_frame_in_dummy.
780 * stack.c (print_frame_info_base): Ditto.
781 (frame_info): Ditto.
782 (print_frame_info_base): Ditto. Delete dead code.
783
32eeb91a
AS
7842002-11-23 Andreas Schwab <schwab@suse.de>
785
786 * Makefile.in (m68k_tdep_h): Define.
787 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
788 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
789 * m68k-tdep.c: Move register number enum ...
790 * m68k-tdep.h: ... to this new file and rename the constants from
791 E_* to M68K_*. All uses changed.
792 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
793 * abug-rom.c: Include "m68k-tdep.h". Use
794 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
795 * cpu32bug-rom.c: Likewise.
796 * dbug-rom.c: Likewise.
797 * m68k-tdep.c: Likewise.
798 * m68klinux-nat.c: Likewise.
799 * remote-est.c: Likewise.
800 * rom68k-rom.c: Likewise.
801 * config/m68k/tm-linux.h: Likewise.
802
9648bac8
AC
8032002-11-23 Andrew Cagney <ac131313@redhat.com>
804
805 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
806 dummy frame initialization code.
807 * mips-tdep.c (mips_gdbarch_init): Ditto.
808
91a175b3
CF
8092002-11-22 Christopher Faylor <cgf@redhat.com>
810
811 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
812 attach will hang.
813
f4ded5b1
AC
8142002-11-22 Andrew Cagney <ac131313@redhat.com>
815
816 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
817 to default_frame_address.
818 * gdbarch.h, gdbarch.c: Re-generate.
819
820 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
821 or frame_locals_address to default_frame_address.
822 * m68k-tdep.c (m68k_gdbarch_init): Update.
823 * i386-tdep.c (i386_gdbarch_init): Update.
824 * frv-tdep.c (frv_gdbarch_init): Update.
825 * sh-tdep.c (sh_gdbarch_init): Update.
826 * v850-tdep.c (v850_gdbarch_init): Update.
827 * sparc-tdep.c (sparc_gdbarch_init): Update.
828 * mips-tdep.c (mips_gdbarch_init): Update.
829 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
830 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
831 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
832
833 * cris-tdep.c (cris_frame_args_address): Delete function.
834 (cris_frame_locals_address): Delete function.
835 (cris_gdbarch_init): Do not set frame_args_address or
836 frame_locals_address.
837
f7c1e0f3
MS
8382002-11-22 Michael Snyder <msnyder@redhat.com>
839
840 * thread-db.c (thread_db_load): Tell the user what's going on
841 if dlopen fails on libthread_db.
842
03dac896
AS
8432002-11-23 Andreas Schwab <schwab@suse.de>
844
845 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
846 invariant return values.
847
7a67d0fe
AS
8482002-11-22 Andreas Schwab <schwab@suse.de>
849
850 * valops.c (value_slice): Move declaration of `offset' to avoid
851 warning.
852
5633f842
CF
8532002-11-22 Christopher Faylor <cgf@redhat.com>
854
855 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
856 (struct so_stuff): Add end_addr field.
857 (register_loaded_dll): Calculate and store end address of loaded dll.
858 (solib_address): New function.
859 (child_solib_loaded_library_pathname): Pass carefully constructed
860 section info to safe_symbol_file_add rather than ignoring it.
861 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
862 DLL is loaded.
863 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
864 (child_create_inferior): Fix a compiler warning.
865 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
866 (solib_address): Declare new function.
867
d85fe7f7
AS
8682002-11-22 Andreas Schwab <schwab@suse.de>
869
870 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
871 and FPS registers.
872
8308e54c
DJ
8732002-11-21 Daniel Jacobowitz <drow@mvista.com>
874
875 * maint.c (_initialize_maint_cmds): Fix typo. From
876 Francesco Potorti` <pot@gnu.org>.
877
8997bd5e
AC
8782002-11-21 Andrew Cagney <cagney@redhat.com>
879
880 * mips-tdep.c (mips_dump_tdep): Delete references to
881 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
882 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
883 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
884 * printcmd.c (build_address_symbolic): Delete calls to
885 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
886 (address_info): Ditto.
887 Fix PR gdb/773.
888
4e87b832
KD
8892002-11-19 Klee Dienes <kdienes@apple.com>
890 Adam Fedor <fedor@gnu.org>
891
892 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
893 the ability to explicitly specify the quote characters and word
894 break characters; if NULL is specified for either, use the old
895 behavior of using the characters used by the completer.
896 (skip_chars): New function. Convenience wrapper around
897 skip_quoted_chars to provide the original skip_chars behavior.
898 * completer.h (skip_quoted_chars): Add prototype.
899
9ba8d803
AC
9002002-11-19 Andrew Cagney <ac131313@redhat.com>
901
902 Problems reported by Paul Eggert.
903 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
904
0a595803
AS
9052002-11-19 Andreas Schwab <schwab@suse.de>
906
907 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
908 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
909 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
910 (m68k_linux_frame_saved_pc): Move to ...
911 * m68klinux-tdep.c: ... here. New file.
912 * Makefile.in (m68klinux-tdep.o): Add dependencies.
913 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
914
e8afa4d7
AF
9152002-11-19 Adam Fedor <fedor@gnu.org>
916
917 * objc-exp.y: Revert to old skip_quoted usage.
918
a76c9d72
AF
9192002-11-19 Adam Fedor <fedor@gnu.org>
920
921 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
922 (objc_lang_h): Define.
923 (YYFILES): Add objc-exp.tab.c.
924 (local-maintainer-clean): Remove objc-exp.tab.c.
925 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
926
fd0e9d45
PM
9272002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
928
929 * p-exp.y (typecast rule): Add automatic dereference of
930 pascal classes if needed.
931 (THIS): Set current_type.
932 Automatically dereference pascal classes.
933 (typebase rule): Add ^typebase recognition.
934
82eeeb94
AF
9352002-11-18 Adam Fedor <fedor@gnu.org>
936
937 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
938 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
939 (op_name): Handle OP_OBJC_SELF.
940 * Makefile.in (expprint.o): Add additional depends.
941
646df18d
AF
9422002-11-18 Adam Fedor <fedor@gnu.org>
943
944 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
945 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
946 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
947 * objc-exp.y: Likewise.
948
379b85df
AF
9492002-11-18 Adam Fedor <fedor@gnu.org>
950
951 * gdb/parser-defs.h: (struct objc_class_str): New structure
952 for parsing ObjC classes.
953
85cf597a
AC
9542002-11-18 Andrew Cagney <ac131313@redhat.com>
955
956 * stack.c (frame_relative_level): Copy function from here ...
957 * frame.c (frame_relative_level): ...to here.
958
5a203e44
AC
9592002-11-18 Andrew Cagney <ac131313@redhat.com>
960
961 * frame.h (enum frame_type): Define.
962 (get_frame_type): Declare.
963 (struct frame_info): Add field `type'. Delete field
964 signal_handler_caller.
965 (deprecated_set_frame_signal_handler_caller): Declare.
966 * frame.c (get_frame_type): New function.
967 (deprecated_set_frame_type): New function.
968 (create_new_frame): Set the frame's type.
969 (get_prev_frame): Similar.
970 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
971 * s390-tdep.c: Ditto.
972 * m68klinux-nat.c: Ditto.
973 * ns32k-tdep.c: Ditto.
974 * x86-64-linux-tdep.c: Ditto.
975 * vax-tdep.c: Ditto.
976 * rs6000-tdep.c: Ditto.
977 * ppc-linux-tdep.c: Ditto.
978 * i386-interix-tdep.c: Ditto.
979 * mips-tdep.c: Ditto.
980 * m68k-tdep.c: Ditto.
981 * hppa-tdep.c: Ditto.
982 * ia64-tdep.c: Ditto.
983 * cris-tdep.c: Ditto.
984 * arm-tdep.c: Ditto.
985 * alpha-tdep.c: Ditto.
986 * i386-tdep.c: Ditto.
987 * stack.c: Ditto.
988 * ada-lang.c: Ditto.
989 * blockframe.c: Update.
990 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
991 deprecated_set_frame_type instead of signal_handler_caller.
992 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
993 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
994 * breakpoint.h: Delete FIXME suggesting get_frame_type.
995
bf4ae8b2
KD
9962002-11-18 Klee Dienes <kdienes@apple.com>
997
998 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
999
a672ef13
KD
10002002-11-18 Klee Dienes <kdienes@apple.com>
1001
1002 * buildsym.c (pop_context): Add comment.
1003
0c5e171a
KD
10042002-11-18 Klee Dienes <kdienes@apple.com>
1005
1006 * buildsym.h (pop_context): Convert to function, defined in
1007 buildsym.c.
1008 * buildsym.c: Include gdb_assert.h.
1009 (pop_context): Implement as C function. Add check for stack
1010 underflow.
1011 * dbxread.c (process_one_symbol): Complain and stop processing
1012 that symbol if we are already at the top of the context stack for
1013 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1014 when processing N_RBRAC.
1015
8a1f4c4c
DJ
10162002-11-16 Daniel Jacobowitz <drow@mvista.com>
1017
1018 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1019 define.
1020 (struct target_waitstatus): Add opaque definition.
1021 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1022 * exec.c (init_exec_ops): Likewise.
1023 * fork-child.c (clone_and_follow_inferior): Remove.
1024 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1025 * inferior.h (clone_and_follow_inferior): Remove prototype.
1026 * infrun.c (follow_fork_mode_both): Remove.
1027 (follow_fork_mode_kind_names): Remove commented out "both".
1028 (follow_inferior_fork): Remove follow_fork_mode_both support.
1029 * inftarg.c (child_clone_and_follow_inferior): Remove.
1030 (child_post_follow_inferior_by_clone): Remove.
1031 (init_child_ops): Don't set to_clone_and_follow_inferior
1032 or to_post_follow_inferior_by_clone.
1033 * target.c (default_clone_and_follow_inferior): Remove.
1034 (cleanup_target): Don't set to_clone_and_follow_inferior
1035 or to_post_follow_inferior_by_clone.
1036 (find_default_clone_and_follow_inferior): Remove.
1037 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1038 (debug_to_clone_and_follow_inferior): Remove.
1039 (debug_to_post_follow_inferior_by_clone): Remove.
1040 (setup_target_debug): Don't set to_clone_and_follow_inferior
1041 or to_post_follow_inferior_by_clone.
1042 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1043 and to_post_follow_inferior_by_clone.
1044 (child_clone_and_follow_inferior): Remove prototype.
1045 (child_post_follow_inferior_by_clone): Remove prototype.
1046 (target_clone_and_follow_inferior): Remove macro.
1047 (target_post_follow_inferior_by_clone): Remove macro.
1048 (find_default_clone_and_follow_inferior): Remove prototype.
1049
47932f85
DJ
10502002-11-16 Daniel Jacobowitz <drow@mvista.com>
1051
1052 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1053 inferior_has_vforked, and inferior_has_execd instead of
1054 target_has_forked, target_has_vforked, and target_has_execd.
1055 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1056 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1057 (CHILD_WAIT): Define.
1058 (child_wait): Add prototype.
1059 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1060 Add prototype.
1061 (hpux_has_vforked): Likewise, from child_has_vforked.
1062 (hpux_has_execd): Likewise, from child_has_execd.
1063 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1064 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1065 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1066 and hpux_has_syscall_event instead of the target hooks.
1067 * infrun.c (inferior_has_forked, inferior_has_vforked)
1068 (inferior_has_execd): New functions.
1069 * inftarg.c (not_same_real_pid): Remove.
1070 (child_wait): Remove references to not_same_real_pid,
1071 target_has_forked, target_has_vforked, target_has_execd,
1072 and target_has_syscall_event.
1073 (child_has_forked, child_has_vforked, child_has_execd)
1074 (child_has_syscall_event): Remove.
1075 (init_child_ops): Remove references to child_has_forked,
1076 child_has_vforked, child_has_execd, and child_has_syscall_event.
1077 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1078 (hpux_has_vforked): Likewise, from child_has_vforked.
1079 (hpux_has_execd): Likewise, from child_has_execd.
1080 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1081 * target.c (cleanup_target): Remove references to
1082 to_has_forked, to_has_vforked, to_has_execd, and
1083 to_has_syscall_event.
1084 (update_current_target): Likewise.
1085 (setup_target_debug): Likewise.
1086 (debug_to_has_forked): Remove.
1087 (debug_to_has_vforked): Remove.
1088 (debug_to_has_execd): Remove.
1089 (debug_to_has_syscall_event): Remove.
1090 * target.h (struct target_ops): Remove to_has_forked.
1091 to_has_vforked, to_has_execd, and to_has_syscall_event.
1092 (child_has_forked, child_has_vforked, child_has_execd)
1093 (child_has_syscall_event): Remove prototypes.
1094 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1095 prototypes.
1096 (target_has_forked, target_has_vforked, target_has_execd)
1097 (target_has_syscall_event): Remove macros.
1098
4088142a
DJ
10992002-11-16 Daniel Jacobowitz <drow@mvista.com>
1100
1101 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1102 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1103 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1104 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1105 * target.c (cleanup_target): Remove reference to
1106 to_can_follow_vfork_prior_to_exec.
1107 (update_current_target): Likewise.
1108 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1109 (setup_target_debug): Remove reference to
1110 to_can_follow_vfork_prior_to_exec.
1111 * target.h (struct target_ops): Remove
1112 to_can_follow_vfork_prior_to_exec.
1113 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1114 (target_can_follow_vfork_prior_to_exec): Remove definition.
1115 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1116 define.
1117 * infrun.c (follow_vfork_when_exec): Remove.
1118 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1119 (follow_exec): Likewise.
1120 (handle_inferior_event): Likewise.
1121 (keep_going): Likewise.
1122
18cde8d5
AC
11232002-11-15 Andrew Cagney <cagney@redhat.com>
1124
1125 * frame.c (generic_unwind_get_saved_register): Make static.
1126 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1127 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1128 defaults to generic_unwind_get_saved_register.
1129 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1130 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1131 * frv-tdep.c (frv_gdbarch_init): Ditto.
1132 * i386-tdep.c (i386_gdbarch_init): Ditto.
1133 * s390-tdep.c (s390_gdbarch_init): Ditto.
1134 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1135 * v850-tdep.c (v850_gdbarch_init): Ditto.
1136 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1137 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1138 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1139
a6b063af
AC
11402002-11-15 Andrew Cagney <cagney@redhat.com>
1141
1142 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1143 i386-tdep.c.
1144
f407986f
AC
11452002-11-15 Andrew Cagney <cagney@redhat.com>
1146
1147 * frame.h (sigtramp_saved_pc): Delete declaration.
1148 * blockframe.c (sigtramp_saved_pc): Delete function.
1149 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1150 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1151 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1152 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1153
f18c5a73
AC
11542002-11-15 Andrew Cagney <ac131313@redhat.com>
1155
1156 * frame.c (frame_pc_unwind): New function.
1157 (frame_saved_regs_pc_unwind): New function.
1158 (frame_register_unwind): Pass unwind_cache instead of
1159 register_unwind_cache.
1160 (set_unwind_by_pc): Add unwind_pc parameter, set.
1161 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1162 (get_prev_frame): Ditto.
1163 * frame.h (frame_pc_unwind_ftype): Declare.
1164 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1165 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1166 (frame_pc_unwind): Declare.
1167 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1168 (struct dummy_frame): Add comment mentioning that values are for
1169 previous frame.
1170 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1171 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1172 (generic_file_frame_chain_valid): Ditto.
1173 * stack.c (frame_info): Ditto.
1174
d9285969 11752002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
1176
1177 * linespec.c (locate_first_half): New function.
1178 (decode_line_1): Move code into locate_first_half.
1179
d741b867
AC
11802002-11-15 Andrew Cagney <ac131313@redhat.com>
1181
1182 * complaints.h: Add comment explaining how to eliminate a
1183 deprecated_complain call.
24382c5c 1184 * complaints.h: Fix spelling errors.
d741b867 1185
82d03c99
DC
11862002-11-15 David Carlton <carlton@math.stanford.edu>
1187
1188 * printcmd.c: Remove #include "disasm.h".
1189
c97eb5d9
AC
11902002-11-14 Andrew Cagney <ac131313@redhat.com>
1191
1192 * frame.h: Move the most relevant interface functions to the start
1193 of the file.
1194
524d7c18
AC
11952002-11-14 Andrew Cagney <ac131313@redhat.com>
1196
1197 * regcache.h (deprecated_registers): Rename registers.
1198 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1199 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1200 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1201 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1202 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1203 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1204 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1205 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1206 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1207 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1208 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1209 * v850ice.c: Update.
1210
6411e720
AC
1211Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1212
1213 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1214 NULL buffer.
1215
73937e03
AC
12162002-11-13 Andrew Cagney <cagney@redhat.com>
1217
1218 * regcache.h (deprecated_read_register_bytes): Rename
1219 read_register_bytes.
1220 (deprecated_write_register_bytes): Rename write_register_bytes.
1221 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1222 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1223 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1224 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1225 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1226 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1227 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1228 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1229 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1230 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1231 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1232 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1233 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1234 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1235
fb0cd46e
JB
12362002-11-13 Jim Blandy <jimb@redhat.com>
1237
1238 * findvar.c (read_var_value): Doc fix.
1239
2d28509a
AC
12402002-11-13 Andrew Cagney <cagney@redhat.com>
1241
1242 * regcache.c (struct regcache): Replace passthough_p with
1243 readonly_p.
1244 (regcache_xmalloc): Initialize readonly_p.
1245 (build_regcache): Initialize readonly_p.
1246 (regcache_save): New function.
1247 (regcache_restore): New function.
1248 (regcache_cpy): Re-implement using regcache_save and
1249 regcache_restore.
1250 (regcache_raw_read): Update.
1251 (regcache_cooked_read): When a read-only cache, checked for cached
1252 pseudo register values.
1253 (regcache_raw_write): Assert that the cache is not read-only.
1254 Remove code handling a non-passthrough cache.
1255 * regcache.h (regcache_save): Declare.
1256 (regcache_restore): Declare.
1257
067df2e5
AC
12582002-11-13 Andrew Cagney <cagney@redhat.com>
1259
1260 * regcache.c (struct regcache_descr): Add fields
1261 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1262 (init_legacy_regcache_descr): Compute the size of a cooked
1263 register cache and then assign that to sizeof_raw_registers. Set
1264 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1265 (init_legacy_regcache_descr): Ditto.
1266
51b1fe4e
AC
12672002-11-13 Andrew Cagney <cagney@redhat.com>
1268
1269 * regcache.c (register_buffer): Move to near start of file, update
1270 description.
1271 (regcache_raw_read): Use.
1272 (regcache_raw_write): Use.
1273 (struct regcache): Rename raw_registers to registers and
1274 raw_register_valid_p to register_valid_p.
1275 (regcache_xmalloc): Update.
1276 (regcache_xfree): Update.
1277 (register_buffer): Update.
1278 (regcache_cpy): Update.
1279 (regcache_cpy_no_passthrough): Update.
1280 (regcache_valid_p): Update.
1281 (deprecated_grub_regcache_for_registers): Update.
1282 (deprecated_grub_regcache_for_register_valid): Update.
1283 (set_register_cached): Update.
1284 (regcache_raw_write): Update.
1285
80b4c677
PM
12862002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1287
1288 * p-exp.y (name_not_typename): Use copy_name to
1289 set current_type variable for fields of THIS.
1290
0f3fafde
DJ
12912002-11-12 Daniel Jacobowitz <drow@mvista.com>
1292
1293 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1294 * monitor.c (init_base_monitor_ops): Likewise.
1295 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1296 * remote-array.c (init_array_ops): Likewise.
1297 * remote-e7000.c (init_e7000_ops): Likewise.
1298 * remote-es.c (init_es1800_ops): Likewise.
1299 (init_es1800_child_ops): Likewise.
1300 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1301 * remote-sim.c (init_gdbsim_ops): Likewise.
1302 * remote-st.c (init_st2000_ops): Likewise.
1303 * sol-thread.c (init_sol_core_ops): Likewise.
1304 (init_sol_thread_ops): Likewise.
1305 * v850ice.c (init_850ice_ops): Likewise.
1306 * win32-nat.c (init_child_ops): Likewise.
1307 * wince.c (init_child_ops): Likewise.
1308
82c0260e
AC
13092002-11-12 Andrew Cagney <ac131313@redhat.com>
1310
1311 * utils.c (gdb_realpath): Make rp a constant pointer.
1312
70d35819
AC
13132002-11-12 Andrew Cagney <ac131313@redhat.com>
1314
1315 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1316 a constant buffer; cannonicalize_file_name(); realpath() with a
1317 pathconf() defined buffer, xstrdup().
1318
9835a8b0
AC
13192002-11-12 Andrew Cagney <ac131313@redhat.com>
1320
1321 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1322 to hang2.C; hang3.c to hang3.C.
1323
3f47be5c
EZ
13242002-11-11 Elena Zannoni <ezannoni@redhat.com>
1325
1326 * findvar.c (read_var_value): Reenable TLS code.
1327
13282002-11-11 Elena Zannoni <ezannoni@redhat.com>
1329 Jim Blandy <jimb@redhat.com>
1330
1331 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1332 * target.c (update_current_target): Add
1333 to_get_thread_local_address.
1334 * target.h (to_get_thread_local_address): Export.
1335 (target_get_thread_local_address): Define.
1336 (target_get_thread_local_address_p): Define.
1337 * thread-db.c: Include solib-svr4.h.
1338 (td_thr_tls_get_addr_p): Define.
1339 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1340 (thread_db_get_thread_local_address): New function.
1341 (init_thread_db_ops): Initialize to_get_thread_local_address.
1342 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1343 * configure: Regenerate.
1344 * config.in: Regenerate.
1345
636b1a6d
DC
13462002-11-11 David Carlton <carlton@math.stanford.edu>
1347
1348 * linespec.c (set_flags): New function.
1349 (decode_line_1): Move code into set_flags.
1350
44fe14ab
DC
13512002-11-11 David Carlton <carlton@math.stanford.edu>
1352
1353 * linespec.c (decode_line_1): Move chunks of code to separate
1354 functions.
1355 (initialize_defaults): New function.
1356 (decode_indirect): New function.
1357
e6f181f5
AC
13582002-11-11 Andrew Cagney <ac131313@redhat.com>
1359
8971b011
AC
1360 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1361 instead of void_code_ptr.
1362 (sigtramp_saved_pc): Ditto.
1363
e6f181f5
AC
1364 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1365 i386_fp_regnum_p.
1366
01ad7f36
DJ
13672002-11-10 Daniel Jacobowitz <drow@mvista.com>
1368
1369 * gdbtypes.h (struct main_type): Move artificial flag out of
1370 loc. New member of ``struct field'' named static_kind. Reduce
1371 overloaded meaning of bitsize.
1372 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1373 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1374 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1375
1376 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1377 new fields.
1378 (template_to_fixed_record_type, template_to_static_fixed_type)
1379 (to_record_with_fixed_variant_part): Likewise.
1380 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1381 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1382 * dwarfread.c (struct_type, enum_type): Likewise.
1383 * hpread.c (hpread_read_enum_type)
1384 (hpread_read_function_type, hpread_read_doc_function_type)
1385 (hpread_read_struct_type): Likewise.
1386 * mdebugread.c (parse_symbol): Likewise.
1387
bf1e52be
AC
13882002-11-10 Andrew Cagney <ac131313@redhat.com>
1389
1390 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1391 * stack.c (print_frame_info_base): Update.
1392 (print_frame_info_base, frame_info): Update.
1393 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1394 (sparc_frame_saved_pc): Update.
1395 * ada-lang.c (find_printable_frame): Update.
1396 * breakpoint.c (deprecated_frame_in_dummy): Update.
1397
ce556f85
MK
13982002-11-09 Mark Kettenis <kettenis@gnu.org>
1399
1400 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1401 defined.
1402 (regmap): Extend to cover all registers.
1403 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1404 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1405 definitions.
1406 (fetch_register, sore_register): Simplify.
1407 (old_fetch_inferior_registers, old_store_inferior_registers):
1408 Remove functions.
1409 (cannot_fetch_register, cannot_store_register): Change
1410 implementation to use regmap array to decide which registers
1411 cannot be fetched/stored. This removes $orig_eax from the
1412 registers that cannot be fetched/stored.
1413 (fetch_inferior_registers): Call fetch_register directly instead
1414 of calling old_fetch_inferior_registers.
1415 (store_inferior_registers): Call store_register directly instead
1416 of calling old_store_inferior_registers.
1417 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1418 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1419 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1420
932bb524
KD
14212002-11-09 Klee Dienes <kdienes@apple.com>
1422
1423 * i387-tdep.c (i387_supply_register): When called with NULL as a
1424 buffer, mark the register as not provided (to mirror the behavior
1425 of supply_register).
1426 (i387_supply_fxsave): Ditto.
1427 (i387_supply_fsave): Ditto (inherits the behavior from
1428 i387_supply_register).
1429
ebe68b27
KD
14302002-11-09 Klee Dienes <kdienes@apple.com>
1431
1432 * blockframe.c (sigtramp_saved_pc): Use
1433 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1434 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1435 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1436
15220c65
AC
14372002-11-09 Andrew Cagney <ac131313@redhat.com>
1438
1439 * frame.c (get_prev_frame): Test prev_p to identify a previously
1440 unwound frame. Initialize prev_p.
1441 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1442 comment.
1443
95adb866
AC
14442002-11-09 Andrew Cagney <ac131313@redhat.com>
1445
1446 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1447 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1448 more comments. Zap dead code.
1449
e71ecd70
MK
14502002-11-09 Mark Kettenis <kettenis@gnu.org>
1451
1452 * infcmd.c (print_vector_info, print_float_info): Move code that
1453 checks whether the target has any registers and whether there is a
1454 selected frame up, such that it is also used if a target provides
1455 multi-arch definitions of these functions.
1456
c525330d
AC
14572002-11-08 Andrew Cagney <ac131313@redhat.com>
1458
72bdd927
AC
1459 * Makefile.in (DESTDIR): Define.
1460 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1461 prefix.
1462
c525330d
AC
1463 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1464 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1465
38c968cf
AC
14662002-11-08 Andrew Cagney <ac131313@redhat.com>
1467
1468 * i386-linux-tdep.c: Include "reggroups.h".
1469 (i386_linux_register_reggroup_p): New function.
1470 (i386_linux_init_abi): Set register_reggroup_p to
1471 i386_linux_register_reggroup_p.
1472 * i386-tdep.h (i386_register_reggroup_p): Declare.
1473 * i386-tdep.c: Include "reggroups.h".
1474 (i386_init_reggroups): New function.
1475 (i386_add_reggroups): New function.
1476 (i386_register_reggroup_p): New function.
1477 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1478 (_initialize_i386_tdep): Call i386_init_reggroups.
1479 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1480 specific reggroups.
1481
19e33363
MK
14822002-11-09 Mark Kettenis <kettenis@gnu.org>
1483
371a6e84
MK
1484 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1485 request that's available in *BSD.
1486
94ba925a
MK
1487 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1488
19e33363
MK
1489 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1490 FDOFF_REGNUM.
1491
8779790c
AC
14922002-11-08 Andrew Cagney <ac131313@redhat.com>
1493
1494 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1495 * dummy-frame.c (find_dummy_frame): Rename
1496 generic_find_dummy_frame, make static. Return the dummy frame
1497 instead of the regcache.
1498 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1499 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1500 (dummy_frame_register_unwind): Rename
1501 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1502 * dummy-frame.h (dummy_frame_register_unwind): Rename
1503 generic_call_dummy_register_unwind.
1504
8674b74f
MK
15052002-11-08 Mark Kettenis <kettenis@gnu.org>
1506
1507 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1508 except the inclusion of "i386/tm-i386.h", to...
1509 * config/i386/nm-i386v42mp.h: ...here.
1510 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1511
4c1e7e9d
AC
15122002-11-08 Andrew Cagney <ac131313@redhat.com>
1513
1514 * Makefile.in (frame.o): Update dependencies.
1515 * blockframe.c (current_frame, frame_obstack_alloc)
1516 (frame_saved_regs_zalloc, get_current_frame)
1517 (set_current_frame, create_new_frame)
1518 (set_unwind_by_pc, get_next_frame)
1519 (flush_cached_frames, reinit_frame_cache)
1520 (frame_saved_regs_register_unwind)
1521 (deprecated_generic_get_saved_register)
1522 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1523 (_initialize_blockframe): Move frame code from here...
1524 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1525 "annotate.h" and "dummy-frame.h".
1526 (_initialize_frame): New function.
1527
921e78cf
JB
15282002-11-08 Jim Blandy <jimb@redhat.com>
1529
1530 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1531 when we finish a function a context.
1532 * buildsym.h (outermost_context_p): New macro.
1533 (Bug analyzed by David Edelsohn.)
1534
9c1412c1
AC
15352002-11-08 Andrew Cagney <ac131313@redhat.com>
1536
1537 * blockframe.c: Include "dummy-frame.h".
1538 (struct dummy_frame, dummy_frame_stack)
1539 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1540 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1541 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1542 (generic_save_call_dummy_addr, generic_pop_current_frame)
1543 (generic_pop_dummy_frame, generic_fix_call_dummy)
1544 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1545 dummy frame code from here...
1546 * dummy-frame.c: ...to here. New file.
1547 * dummy-frame.h: New file.
1548 (generic_call_dummy_register_unwind): Declare.
1549 (generic_find_dummy_frame): Declare.
1550 * Makefile.in (SFILES): Add dummy-frame.c.
1551 (dummy-frame.o): Specify dependencies.
1552 (dummy_frame_h): Define.
1553 (COMMON_OBS): Add dummy-frame.o.
1554 (blockframe.o): Update dependencies.
1555
208d8187
JB
15562002-11-08 Jim Blandy <jimb@redhat.com>
1557
1558 * dwarf2read.c (read_func_scope): Restore local_symbols and
1559 param_symbols after we finish the function context. (Based on a
1560 patch from David Edelsohn.)
1561
413dad4d
DC
15622002-11-08 David Carlton <carlton@math.stanford.edu>
1563
1564 * linespec.c (symbol_found): New function.
1565 (minsym_found): New function.
1566 (decode_line_1): Separate out some code into separate functions.
1567
5512c44a
JB
15682002-11-08 Joel Brobecker <brobecker@gnat.com>
1569
1570 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1571 the benefit of the interix target.
1572 * i386-tdep.h (i386_frameless_signal_p): Declare.
1573
1b33ef47
AC
15742002-11-08 Andrew Cagney <ac131313@redhat.com>
1575
1576 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1577 declaration that snuck in from change below.
1578
23a34459
AC
15792002-11-06 Andrew Cagney <cagney@redhat.com>
1580
1581 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1582 all callers.
1583 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1584 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1585 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1586 (i386_mxcsr_regnum_p): new function. Use instead of
1587 MXCSR_REGNUM_P.
1588 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1589 (i386_sse_regnum_p): Declare.
1590 (i386_mxcsr_regnum_p): Declare.
1591 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1592 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1593 (IS_FP_REGNUM): Update definition.
1594 (IS_FPU_CTRL_REGNUM): Update definition..
1595 (IS_SSE_REGNUM): Update definition..
1596 * i386v-nat.c (register_u_addr): Update.
1597 * go32-nat.c (fetch_register): Update.
1598 (store_register): Update.
1599
d709c020
JB
16002002-11-07 Joel Brobecker <brobecker@gnat.com>
1601
1602 Preparation work to convert the hppa targets to multiarch partial.
1603
1604 * hppa-tdep.c: Add new functions replacing macro bodies from
1605 config/pa/tm-hppa.h. These function will be used to initialize
1606 the gdbarch structure. Import some comments from tm-hppa.h,
1607 and place them where appropriate, to avoid loosing them when
1608 we cleanup this file.
1609 (hppa_reg_struct_has_addr): New function.
1610 (hppa_inner_than): New function.
1611 (hppa_stack_align): New function.
1612 (hppa_pc_requires_run_before_use): New function.
1613 (hppa_instruction_nullified): New function.
1614 (hppa_register_byte): New function.
1615 (hppa_register_virtual_type): New function.
1616 (hppa_store_struct_return): New function.
1617 (hppa_cannot_store_register): New function.
1618 (hppa_frame_args_address): New function.
1619 (hppa_frame_locals_address): New function.
1620 (hppa_smash_text_address): New function.
1621 (hppa_coerce_float_to_double): New function. Requires the inclusion
1622 of "language.h".
1623
1624 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1625
1626 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1627 gdbarch-eligible macro to a call to the new associated function
1628 created in hppa-tdep.c.
1629 (INNER_THAN): Likewise.
1630 (STACK_ALIGN): Likewise.
1631 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1632 (INSTRUCTION_NULLIFIED): Likewise.
1633 (REGISTER_BYTE): Likewise.
1634 (REGISTER_VIRTUAL_TYPE): Likewise.
1635 (STORE_STRUCT_RETURN): Likewise.
1636 (CANNOT_STORE_REGISTER): Likewise.
1637 (FRAME_ARGS_ADDRESS): Likewise.
1638 (FRAME_LOCALS_ADDRESS): Likewise.
1639 (SMASH_TEXT_ADDRESS): Likewise.
1640 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1641 (ABOUT_TO_RETURN): Delete, as no longer used.
1642
83c31e7d
FN
16432002-11-07 Fernando Nasser <fnasser@redhat.com>
1644
1645 * printcmd.c (disassemble_command): Remove obsolete function.
1646 (_initialize_printcmd): Do not create disassemble command here.
1647 * cli/cli-cmds.c (disassemble_command): New function. Implements
1648 disassemble command.
1649 (init_cli_cmds): Create disassemble command here instead.
1650
0ec30a36
AC
16512002-11-07 Andrew Cagney <ac131313@redhat.com>
1652
1653 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1654
e600bd34
AC
16552002-11-07 Andrew Cagney <ac131313@redhat.com>
1656
1657 * regcache.h (regcache_cooked_read_using_offset_hack)
1658 (regcache_cooked_write_using_offset_hack): Delete declarations.
1659 (register_changed): Delete declaration.
1660 * regcache.c (regcache_cooked_read_using_offset_hack)
1661 (regcache_cooked_write_using_offset_hack): Delete functions.
1662 (cooked_xfer_using_offset_hack): Delete function.
1663 (register_changed): Delete function.
1664
568f8739
JB
16652002-11-07 Jim Blandy <jimb@redhat.com>
1666
1667 * macroscope.c: #include "complaints.h".
1668 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1669 but not in the macro table.
1670 * Makefile.in (macroscope.o): Record dependency.
1671
b0718b7b
JB
16722002-11-07 Joel Brobecker <brobecker@gnat.com>
1673
1674 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1675
2b9e5f3f
AC
16762002-11-07 Andrew Cagney <ac131313@redhat.com>
1677
1678 * regcache.c (deprecated_registers_fetched): Update.
1679 * regcache.h (deprecated_registers_fetched): Rename
1680 registers_fetched.
1681 * remote-vxsparc.c (vx_read_register): Update.
1682 * remote-vxmips.c (vx_read_register): Update.
1683 * remote-vx68.c (vx_read_register): Update.
1684 * irix5-nat.c (fetch_core_registers): Update.
1685 * mipsm3-nat.c (fetch_inferior_registers): Update.
1686 * sun3-nat.c (fetch_inferior_registers): Update.
1687 * symm-nat.c (fetch_inferior_registers): Update.
1688 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1689 (fetch_core_registers): Update.
1690 (fetch_kcore_registers): Update.
1691 * mips-nat.c (fetch_inferior_registers): Update.
1692 * corelow.c (get_core_registers): Update.
1693 * a68v-nat.c (fetch_inferior_registers): Update.
1694
e6e68f1f
JB
16952002-11-06 Joel Brobecker <brobecker@gnat.com>
1696
1697 Put in place the framework necessary for multiarching the hppa targets.
1698 * hppa-tdep.c (hppa_gdbarch_init): New function.
1699 (hppa_dump_tdep): New function.
1700 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1701 tdep structure dumper.
1702 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1703 until the multi-arching conversion has partially been completed.
1704
492254e9
AC
17052002-11-06 Andrew Cagney <ac131313@redhat.com>
1706
1707 * valops.c (value_assign): Merge lval_register case into
1708 lval_reg_frame_relative. Use frame_register and
1709 regcache_cooked_write instead of get_saved_register and
1710 write_register_bytes. After flushing the register cache, try to
1711 re-select the selected frame.
1712
8262ee23
AC
17132002-11-06 Andrew Cagney <ac131313@redhat.com>
1714
1715 * regcache.h (deprecated_register_valid): Rename register_valid.
1716 * regcache.c: Update.
1717 * ia64-aix-nat.c: Update.
1718 * i386gnu-nat.c: Update.
1719 * alpha-nat.c: Update.
1720 * sparc-nat.c: Update.
1721 * lynx-nat.c: Update.
1722 * remote-mips.c: Update.
1723
4facf7e8
JB
17242002-11-06 Joel Brobecker <brobecker@gnat.com>
1725
1726 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1727 to end of file, to be more consistent with the pratice followed
1728 by other targets.
1729
f9418c0f
AC
17302002-11-06 Andrew Cagney <ac131313@redhat.com>
1731
1732 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1733 (print_float_info): Print registers in float_reggroup.
1734 (print_vector_info): Print registers in vector_reggroup.
1735 (default_print_registers_info): When all, print registers in
1736 all_reggroup. Otherwize, print registers in general_reggroup.
1737 (registers_info): Rewrite. Add support for register groups.
1738 Eliminate a goto.
1739
3fe235a7
EZ
17402002-11-06 Elena Zannoni <ezannoni@redhat.com>
1741
1742 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1743 ages.
1744 (symtab_symbol_info): Remove eons old ifdeffed out code.
1745 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1746 command.
1747
ef944135
TR
17482002-11-06 Theodore A. Roth <troth@openavr.org>
1749
1750 * c-exp.y: Add missing semi-colons.
1751 * f-exp.y: Add missing semi-colons.
1752 * m2-exp.y: Add missing semi-colons.
1753 * p-exp.y: Add missing semi-colons.
1754 Add empty action to start rule to avoid a type clash error when
1755 building with bison >= 1.50.
1756
f8302a57
JB
17572002-11-06 Jim Blandy <jimb@redhat.com>
1758
1759 * macrotab.h (struct macro_source_file): Doc fix.
1760
6e382aa3
JJ
17612002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1762
1763 * varobj.c (child_exists, cplus_number_of_children): Change
1764 STREQ macro references to strcmp.
1765 (cplus_name_of_child): Change code to handle the fact that
1766 fields are not necessarily contiguous with regards to their
1767 access control. This is a fix for PR gdb/792.
1768
a216a322
AC
17692002-11-05 Andrew Cagney <ac131313@redhat.com>
1770
1771 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1772 * gdbarch.h, gdbarch.c: Regnerate.
1773 * frame.h (frame_register): Declare.
1774 * frame.c (frame_register): New function.
1775 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1776 GET_SAVED_REGISTER, otherwize call
1777 generic_unwind_get_saved_register.
1778 (frame_register_read): Use frame_register instead of
1779 get_saved_register.
1780
7d5b6fdd
EZ
17812002-11-05 Elena Zannoni <ezannoni@redhat.com>
1782
1783 From Jim Ingham <jingham@apple.com>:
1784 * event-top.c (gdb_disable_readline): New function.
1785 (_initialize_event_loop): Move comment.
1786
b7c64260
EZ
17872002-11-05 Elena Zannoni <ezannoni@redhat.com>
1788
1789 * event-loop.c (start_event_loop): Add comment.
1790 Update copyright.
1791
c2e1b8f2
AC
17922002-11-05 Andrew Cagney <ac131313@redhat.com>
1793
1794 * infcmd.c (default_print_registers_info): Do not call
1795 PRINT_REGISTER_HOOK.
1796
87647bb0
AC
17972002-11-05 Andrew Cagney <ac131313@redhat.com>
1798
1799 * sparc-tdep.c (sparc_print_register_hook): Make static.
1800 (sparc_print_registers_info): New function.
1801 (sparc_do_registers_info): New function.
1802 (sparclet_print_registers_info): New function.
1803 (sparclet_do_registers_info): New function.
1804 (do_sparc_print_registers_info): New function.
1805 (sparc_print_registers): New static function, clone of infcmd.c's
1806 default_print_registers_info.
1807 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1808 (sparclet_do_registers_info): Declare.
1809 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1810 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1811 Re-define.
1812 (sparc_do_registers_info): Declare.
1813 (PRINT_REGISTER_HOOK): Delete macro.
1814 (sparc_print_register_hook): Delete declaration.
1815
8155455b
DC
18162002-11-05 David Carlton <carlton@math.stanford.edu>
1817
1818 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1819 functions.
1820 (lookup_symbol_aux_local): New function.
1821 (lookup_symbol_aux_symtabs): New function.
1822 (lookup_symbol_aux_psymtabs): New function.
1823
29924310
DC
18242002-11-05 David Carlton <carlton@math.stanford.edu>
1825
1826 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1827 previous values of 'objfile' and 'block'.
1828
cc303028
PM
18292002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1830
1831 * values.c (value_change_enclosing_type): Set
1832 enclosing_type field correctly also for the case where
1833 more memory needs to be allocated.
1834
1d70089a
MK
18352002-11-03 Mark Kettenis <kettenis@gnu.org>
1836
f16a25ae
MK
1837 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1838 of puts_filtered.
1839
1d70089a
MK
1840 * i387-tdep.c (i387_print_float_info): Replace calls to
1841 register_read and deprecated_read_register_gen with calls to
1842 frame_register_read, and make the necessary adjustments to the
1843 surrounding code.
1844
7e20f3fb
AC
18452002-11-02 Andrew Cagney <ac131313@redhat.com>
1846
1847 * gdbarch.sh (register_reggroup_p): Allow default value.
1848 * gdbarch.h, gdbarch.c: Regenerate.
1849
192dbe33
AC
18502002-11-02 Andrew Cagney <ac131313@redhat.com>
1851
1852 * regcache.h: Add coment indicating replacements for deprecated
1853 functions.
1854
b59ff9d5
AC
18552002-11-02 Andrew Cagney <cagney@redhat.com>
1856
1857 * reggroups.h, reggroups.c: New files.
1858 * regcache.c: Include "reggroups.h".
1859 (enum regcache_dump_what): Add `regcache_dump_groups'.
1860 (regcache_dump): Contract size of the "Type" column. When
1861 specified, dump the register's groups.
1862 (maintenance_print_register_groups): New function.
1863 (_initialize_regcache): Add command `maint print register-groups'.
1864 * Makefile.in (COMMON_OBS): Add reggroups.o
1865 (SFILES): Add reggroups.c.
1866 (reggroups_h): Define.
1867 (regcache.o, gdbarch.o): Update dependencies.
1868 (reggroups.o): Specify dependencies.
1869 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1870 Add opaque declaration for `struct reggroup' in generated .h file.
1871 Include "reggroups.h" in generated .c file.
1872 gdbarch.h, gdbarch.c: Re-generate.
1873
4caf0990
AC
18742002-11-02 Andrew Cagney <cagney@redhat.com>
1875
1876 * regcache.h (deprecated_read_register_gen): Rename
1877 read_register_gen.
1878 (deprecated_write_register_gen): Rename write_register_gen.
1879 * i387-tdep.c: Update.
1880 * x86-64-linux-nat.c: Update
1881 * wince.c: Update.
1882 * thread-db.c: Update.
1883 * win32-nat.c: Update.
1884 * mips-tdep.c: Update.
1885 * d10v-tdep.c: Update.
1886 * cris-tdep.c: Update.
1887 * remote-sim.c: Update.
1888 * remote-rdi.c: Update.
1889 * remote-rdp.c: Update.
1890 * frame.c: Update.
1891 * target.c: Update.
1892 * blockframe.c: Update.
1893 * x86-64-tdep.c: Update.
1894 * xstormy16-tdep.c: Update.
1895 * sh-tdep.c: Update.
1896 * s390-tdep.c: Update.
1897 * rs6000-tdep.c: Update.
1898 * sparc-tdep.c: Update.
1899 * i386-tdep.c: Update.
1900 * dwarf2cfi.c: Update.
1901 * regcache.c: Update.
1902
7a7adcdf
JB
19032002-11-01 Joel Brobecker <brobecker@gnat.com>
1904
1905 New interix-specific files:
1906 * config/i386/nm-interix.h: New file.
1907 * config/i386/interix.mh: New file.
1908 * config/i386/interix.mt: New file.
1909 * i386-interix-nat.c: New file.
1910 * i386-interix-tdep.c: New file.
1911
bdcdd535
AC
19122002-11-01 Andrew Cagney <cagney@redhat.com>
1913
1914 * frame.h (deprecated_generic_get_saved_register): Rename
1915 generic_get_saved_register.
1916 * blockframe.c (deprecated_generic_get_saved_register): Update.
1917 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1918 (xstormy16_frame_saved_register): Update.
1919 * sh-tdep.c (sh_gdbarch_init): Update.
1920 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1921 * ia64-tdep.c (ia64_get_saved_register): Update.
1922 * cris-tdep.c (cris_gdbarch_init): Update.
1923 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1924 * arm-tdep.c (arm_gdbarch_init): Update.
1925
2a4b7c45
DJ
19262002-10-31 Daniel Jacobowitz <drow@mvista.com>
1927
1928 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1929
ef17e74b
DJ
19302002-10-31 Daniel Jacobowitz <drow@mvista.com>
1931
1932 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1933 trampolines in sigaction.
1934
4904ba5b
AC
19352002-10-31 Andrew Cagney <cagney@redhat.com>
1936
1937 * h8300-tdep.c: Include "gdb_assert.h".
1938 (h8300_print_register): Add gdbarch, file and frame parameters.
1939 Use frame_read_unsigned_register to read the register's value.
1940 Use fprintf_filtered to display output.
1941 (h8300_print_registers_info): Replace h8300_do_registers_info.
1942 (h8300_gdbarch_init): Set print_registers_info.
1943
f908a0eb
AC
19442002-10-31 Andrew Cagney <cagney@redhat.com>
1945
1946 * frame.c (frame_read_unsigned_register): New function.
1947 (frame_read_signed_register): New function.
1948 * frame.h (frame_read_unsigned_register): Declare.
1949 (frame_read_signed_register): Declare.
1950
c5646e11
AC
19512002-10-31 Andrew Cagney <cagney@redhat.com>
1952
1953 * h8500-tdep.c (h8500_print_registers_info): New static function,
1954 clone of infcmd.c's default_print_registers_info.
1955 (h8500_do_registers_info): New funtion.
1956 (h8500_print_register_hook): Rename print_register_hook, make
1957 static.
1958
1959 * config/h8500/tm-h8500.h: Update copyright.
1960 (DEPRECATED_DO_REGISTERS_INFO): Define.
1961 (h8500_do_registers_info: Declare.
1962 (PRINT_REGISTER_HOOK): Delete macro.
1963 (print_register_hook): Delete function.
1964
0bdd672b
AC
19652002-10-31 Andrew Cagney <cagney@redhat.com>
1966
1967 * z8k-tdep.c (z8k_print_register_hook): Make static.
1968 (z8k_print_registers_info): New static function, clone of
1969 infcmd.c's default_print_registers_info.
1970 (z8k_do_registers_info): New function. Wrap
1971 z8k_print_registers_info.
1972 * config/z8k/tm-z8k.h: Update copyright.
1973 (PRINT_REGISTER_HOOK): Delete macro.
1974 (z8k_print_register_hook): Delete declaration.
1975 (DEPRECATED_DO_REGISTERS_INFO): Define.
1976 (z8k_do_registers_info): Declare.
1977
bf9c25dc
JB
19782002-10-30 Joel Brobecker <brobecker@gnat.com>
1979
1980 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1981 as this is already provided by value.h, and was actually causing
1982 a compilation error because of a conflict in parameter type
1983 declaration due to a missing const keyword.
1984 (low_text_segment_addres): Fix a compilation warning.
1985
2c665b51
DJ
19862002-10-29 Daniel Jacobowitz <drow@mvista.com>
1987
1988 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1989 registers without a name.
1990 (mips_linux_cannot_store_register): Don't store registers without
1991 a name.
1992
e70ea697
DC
19932002-10-28 David Carlton <carlton@math.stanford.edu>
1994
1995 * symtab.c (find_addr_symbol): Delete. (It was already commented
1996 out.)
1997 * symtab.h: Delete prototype for find_addr_symbol.
1998
903ad3a6
AC
19992002-10-26 Andrew Cagney <cagney@redhat.com>
2000
2001 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2002 DO_REGISTERS_INFO.
2003 gdbarch.h, gdbarch.c: Re-generate.
2004 * infcmd.c (default_print_registers_info): Update reference.
2005 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2006 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2007 * sh-tdep.c (sh_gdbarch_init): Ditto.
2008 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2009 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2010
ab91194c
MK
20112002-10-26 Mark Kettenis <kettenis@gnu.org>
2012
e3033f15
MK
2013 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2014 cfi_init_extra_frame_info.
2015 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2016 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2017
b83b026c
MK
2018 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2019 target where necessary. Add more comments and remove the ones
2020 that don't provide any useful information.
2021
267bf4bb
MK
2022 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2023 deprecated_read_register_dummy with
2024 frame_unwind_unsigned_register.
2025
751f1375
MK
2026 * i386-tdep.c (i386_extract_struct_value_address): Use
2027 regcache_raw_read_unsigned instead of
2028 regcache_cooked_read_unsigned since we know that the register
2029 we're reading isn't a pseudo register. Rename variable 'val' into
2030 the more descriptive 'addr'.
2031
26abbdc4
MK
2032 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2033 (x86_64_push_return_address): Add comment.
2034 (x86_64_pop_frame): Make static.
2035 (examine_argument): Clarify comment.
2036 (x86_64_skip_prologue): Make prolog_expact variable static.
2037
9f1549cc
MK
2038 * dwarf2cfi.c: Fix some formatting problems.
2039 (context_cpy, read_encoded_pointer): Clarify comments.
2040
ab91194c
MK
2041 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2042 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2043 i386 target back into x86_64_gdbarch_init. Add some comments and
2044 remove meaningless ones.
2045
72367fb4
AC
20462002-10-25 Andrew Cagney <cagney@redhat.com>
2047
2048 * complaints.h (struct deprecated_complaint): Rename `struct
2049 complaint'.
2050 * complaints.c (complain): Update.
2051 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2052 incorrect comment indicating that "symfile.h" was being included
2053 for the `struct complaint' definition.
2054 * remote-vx.c: Update.
2055 * objc-lang.c: Update.
2056 * xcoffread.c: Update.
2057 * hpread.c: Update.
2058 * mdebugread.c: Update.
2059 * stabsread.c: Update.
2060 * dwarf2read.c: Update.
2061 * dwarfread.c: Update.
2062 * elfread.c: Update.
2063 * coffread.c: Update.
2064 * stabsread.h: Update.
2065 * dbxread.c: Update.
2066 * buildsym.c: Update.
2067 * gdbtypes.c: Update.
2068 * macrotab.c: Update.
2069
1f2baacc
MK
20702002-10-25 Mark Kettenis <kettenis@gnu.org>
2071
0c1a73d6
MK
2072 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2073 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2074 (x86_64_init_abi): ...new function.
2075
6aee4d54 2076 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
2077 * i386v-nat.c: Include "i386-tdep.h".
2078
8f9cbe01
AC
20792002-10-25 Andrew Cagney <cagney@redhat.com>
2080
5f11f355
AC
2081 * gdbtypes.c (address_space_name_to_int): Update.
2082 (address_space_int_to_name): Update.
2083 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2084 multi-arch predicate.
2085 (address_class_name_to_type_flags): Ditto.
2086 * gdbarch.h, gdbarch.c: Re-generate.
2087
8f9cbe01
AC
2088 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2089
e8d96a5d
MH
20902002-10-24 Martin M. Hunt <hunt@redhat.com>
2091
2092 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2093
fe39c653
EZ
20942002-10-24 Elena Zannoni <ezannoni@redhat.com>
2095
2096 * symtab.h (INIT_SAL): Delete macro.
2097 (init_sal): Export.
2098 * symtab.c (init_sal): New function.
2099
2100 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2101 to init_sal function call.
2102 (find_sal_from_funcs_and_line): Ditto.
2103 (all_sals_for_line): Ditto.
2104 * breakpoint.c (create_internal_breakpoint): Ditto.
2105 (create_fork_vfork_event_catchpoint): Ditto.
2106 (create_exec_event_catchpoint): Ditto.
2107 (parse_breakpoint_sals): Ditto.
2108 (watch_command_1): Ditto.
2109 (handle_gnu_4_16_catch_command): Ditto.
2110 (clear_command): Ditto.
2111 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2112 * infcmd.c (run_stack_dummy): Ditto.
2113 * infrun.c (process_event_stop_test): Ditto.
2114 (check_sigtramp2): Ditto.
2115 (step_over_function): Ditto.
2116 * linespec.c (decode_line_2): Ditto.
2117 (decode_line_1): Ditto.
2118 * source.c (line_info): Ditto.
2119 * symtab.c (find_pc_sect_line): Ditto.
2120
baed091b
ML
21212002-10-24 Michal Ludvig <mludvig@suse.cz>
2122
2123 * dwarf2cfi.c (struct context)
2124 (struct context_reg): Moved to dwarf2cfi.h
2125 (context_alloc, frame_state_alloc, context_cpy):
2126 Made extern instead of static, removed prototypes.
2127 * dwarf2cfi.h (struct context)
2128 (struct context_reg): New, moved from dwarf2cfi.c
2129 (context_alloc, frame_state_alloc, context_cpy):
2130 New prototypes.
2131 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2132 Changed from static to extern.
2133 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2134 (LINUX_SIGCONTEXT_FP_OFFSET)
2135 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2136 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2137 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2138 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2139 set_gdbarch_*() calls now use x86-64 specific functions
2140 instead of DWARF2 CFI ones.
2141 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2142 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2143 (x86_64_init_extra_frame_info): New prototypes.
2144
c38da1af
DC
21452002-10-23 David Carlton <carlton@math.stanford.edu>
2146
2147 * linespec.c: #include "parser-defs.h".
2148 Delete prototype for find_template_name_end.
2149 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2150
fb9b6b35
JJ
21512002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2152
2153 * NEWS: add recent mi fixes.
2154 * varobj.c (struct varobj): Add new "updated" flag.
2155 (new_variable): Default "updated" flag to 0.
2156 (varobj_set_value): Set "updated" flag to 1 if value
2157 changes.
2158 (varobj_update): Check varobj "updated" flag before
2159 comparing old and refreshed values. Fix for
2160 PR gdb/702.
2161
8da065d5
DC
21622002-10-23 David Carlton <carlton@math.stanford.edu>
2163
2164 * parse.c (parse_exp_1): Use BLOCK_START.
2165 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2166 SYMBOL_BLOCK_VALUE.
2167 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2168
87f2f08c
DC
21692002-10-23 David Carlton <carlton@math.stanford.edu>
2170
2171 * symtab.c: Delete cplusplus_hint.
2172 Delete prototype for find_template_name_end.
2173
88cda038
EZ
21742002-10-23 Elena Zannoni <ezannoni@redhat.com>
2175
2176 * symtab.h: Update comment.
2177
2625d86c
MS
21782002-10-23 Michael Snyder <msnyder@redhat.com>
2179
2180 * printcmd.c (address_info): Restore quotes in output.
2181 * valops.c (value_of_local): Restore quotes in error message.
2182
9cc0d196
EZ
21832002-10-23 Elena Zannoni <ezannoni@redhat.com>
2184
2185 * symtab.c (symbol_demangled_name): New function.
2186 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2187 turning most of it into a function.
2188 (symbol_demangled_name): Export.
2189
19de93d0
MS
21902002-10-23 Michael Snyder <msnyder@redhat.com>
2191
2192 * valops.c (value_of_local): Restore quotes in error message.
2193
89aad1f9
EZ
21942002-10-23 Elena Zannoni <ezannoni@redhat.com>
2195
2196 * symtab.c (symbol_init_language_specific): New function.
2197 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2198 turning most of it into a function.
2199 (symbol_init_language_specific): Export.
2200
d9fa45fe
DC
22012002-10-23 David Carlton <carlton@math.stanford.edu>
2202
2203 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2204 (dwarf_attr_name): Ditto.
2205 (dwarf_type_encoding_name): Ditto.
2206 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2207 (process_die): Handle DW_TAG_namespace,
2208 DW_TAG_imported_declaration, DW_TAG_imported_module.
2209 (read_namespace): New function.
2210
1045b512
JB
22112002-10-22 Joel Brobecker <brobecker@gnat.com>
2212
2213 * configure.in: Define NEW_PROC_API on Interix too.
2214 * configure: Regenerate.
2215
22162002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
2217
2218 * configure: Regenerate using the proper version of autoconf.
2219
3987b9d4
EZ
22202002-10-21 Elena Zannoni <ezannoni@redhat.com>
2221
2222 * findvar.c (read_var_value): Temporarily disable TLS code, until
2223 complete TLS support is added.
2224
9d774e44
EZ
22252002-10-21 Jim Blandy <jimb@redhat.com>
2226 Elena Zannoni <ezannoni@redhat.com>
2227
2228 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2229 for thread local storage locations.
2230 (struct symbol): Add objfile field.
2231 (SYMBOL_OBJFILE): Define.
2232 * dwarf2read.c (is_thread_local): New static variable.
2233 (new_symbol): If variable is in thread local fill in address class
2234 and objfile appropriately.
2235 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2236 stack operation.
2237 * printcmd.c (address_info): Print the information for thread
2238 local storage variable.
2239 * findvar.c (read_var_value): In case of thread local variable,
2240 defer to the target vector code to compute address.
2241
bc4a16ae
EZ
22422002-10-21 Elena Zannoni <ezannoni@redhat.com>
2243
2244 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2245 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2246
407caf07
EZ
22472002-10-21 Elena Zannoni <ezannoni@redhat.com>
2248
2249 * symtab.h (address_class): Rename
2250 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2251 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2252 * printcmd.c (address_info): Ditto.
2253 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2254
005328e3
MK
22552002-10-20 Mark Kettenis <kettenis@gnu.org>
2256
afdb036a
MK
2257 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2258 DBREG_DRX macro to acces debug registers.
2259
ca02e098
MK
2260 * Makefile.in (i386obsd-tdep.o): New target.
2261
03cc47f7
MK
2262 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2263 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2264
005328e3
MK
2265 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2266 * config/i386/obsd.mt: New file.
2267 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2268 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2269 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2270 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2271 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2272 * i386obsd-tdep.c: New file.
2273
9c96f9f2
AF
22742002-10-19 Adam Fedor <fedor@gnu.org>
2275
2276 * objc-exp.y (name_not_typename): Fix invalid comment.
2277
ce1ed485
MK
22782002-10-20 Mark Kettenis <kettenis@gnu.org>
2279
2280 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2281 to allocate partial syms and macro byte caches.
2282
1efc7aaa
DC
22832002-10-18 David Carlton <carlton@math.stanford.edu>
2284
2285 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2286
7e1d63ec
AF
22872002-10-18 Adam Fedor <fedor@gnu.org>
2288
2289 * stabsread.c (find_name_end): New function.
2290 (define_symbol): Use it.
2291
6e8d29a9
DJ
22922002-10-18 Daniel Jacobowitz <drow@mvista.com>
2293
2294 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2295 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2296 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2297 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2298
1efc7aaa 22992002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
2300
2301 * symfile.h: Add opaque declaration for struct obstack.
2302 Declare obsavestring to take a const char *.
2303 * symfile.c (obsavestring): Make first argument a const char *.
2304
1aeae86e
AF
23052002-10-16 Adam Fedor <fedor@gnu.org>
2306
2307 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2308 names when matching breakpoints in current file.
2309
8b2dbe47
KB
23102002-10-16 Kevin Buettner <kevinb@redhat.com>
2311
2312 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2313 (read_tag_pointer_type): Add address class support.
2314 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2315 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2316 New methods.
2317 * gdbarch.h, gdbarch.c: Regenerate.
2318 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2319 (make_type_with_address_space, recursive_type_dump): Add address
2320 class support.
2321 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2322 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2323 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2324
74451869
KD
23252002-10-16 Klee Dienes <kdienes@apple.com>
2326
2327 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2328 to get the last character of a char[] buffer, not
2329 name[sizeof(vptr_name)-1].
2330
ff4cb3e8
AF
23312002-10-14 Adam Fedor <fedor@gnu.org>
2332
2333 * symtab.h: New objc_specific struct.
2334 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2335 (SYMBOL_DEMANGLED_NAME): Likewise.
2336
da2cf7e0
AF
23372002-10-14 Adam Fedor <fedor@gnu.org>
2338
2339 * symfile.c (init_filename_language_table): Add ObjC file extension.
2340
4a351cef
AF
23412002-10-14 Adam Fedor <fedor@gnu.org>
2342
2343 * utils.c (puts_filtered_tabular): New function.
2344 (fprintf_symbol_filtered): Get ObjC demangled name.
2345 * defs.h (puts_filtered_tabular): Declared.
2346
9750e763
KB
23472002-10-14 Kevin Buettner <kevinb@redhat.com>
2348
2349 * c-lang.h (c_type_print_varspec_prefix): Delete.
2350 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2351 ``need_post_space'' parameter. Adjust all callers.
2352
eee771c1
DJ
23532002-10-14 Daniel Jacobowitz <drow@mvista.com>
2354
2355 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2356 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2357 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2358 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2359
46c82446
AF
23602002-10-13 Adam Fedor <fedor@gnu.org>
2361
2362 * source.c (print_source_lines): Update comments.
2363
d069f99d
AF
23642002-10-13 Adam Fedor <fedor@gnu.org>
2365
2366 * valops.c (value_of_local): New function.
2367 (value_of_this): Use it.
2368 * value.h (value_of_local): Declared.
2369
53c551b7
AF
23702002-10-13 Adam Fedor <fedor@gnu.org>
2371
2372 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2373 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2374
eb392fbf
AF
23752002-10-12 Adam Fedor <fedor@gnu.org>
2376
2377 * language.c (binop_result_type): Add language_objc to case.
2378 (integral_type): Likewise.
2379 (character_type): Likewise.
2380 (string_type): Likewise.
2381 (boolean_type): Likewise.
2382 (structured_type): Likewise.
2383 (binop_type_check): Likewise.
2384
e2b23ee9
AF
23852002-10-11 Adam Fedor <fedor@gnu.org>
2386
2387 * printcmd.c (address_info): Print 'self' for ObjC.
2388
b01ab485
AF
23892002-10-11 Adam Fedor <fedor@gnu.org>
2390
2391 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2392 OP_SELF.
2393
806e6073
AF
23942002-10-11 Adam Fedor <fedor@gnu.org>
2395
2396 * language.h (CAST_IS_CONVERSION): Add language_objc.
2397
50f85cdf
AF
23982002-10-11 Adam Fedor <fedor@gnu.org>
2399
2400 * defs.h (enum language): Add language_objc.
2401
0d540cdf
KD
24022002-10-11 Klee Dienes <kdienes@apple.com>
2403
69266111 2404 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
2405 * gdbcore.h (read_memory_typed_address): Add prototype.
2406 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2407 to read a value destined for a CORE_ADDR, not read_memory_integer.
2408 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2409 (f77_get_dynamic_lowerbound): Ditto.
2410
d5dc7960
MH
24112002-10-11 Martin M. Hunt <hunt@redhat.com>
2412
2413 * utils.c (string_to_core_addr): After turning string into
2414 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2415 which will do necessary sign-extension, etc.
2416
8343f86c
DJ
24172002-10-11 Daniel Jacobowitz <drow@mvista.com>
2418
2419 * c-exp.y (THIS): Delete token and grammar rule.
2420 (yylex): Don't return THIS.
2421 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2422 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2423 * demangle.c (cplus_markers): Update comment. Put '$'
2424 first. Remove CPLUS_MARKER.
2425 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2426 * jv-exp.y (THIS): Delete token and grammar rule.
2427 (yylex): Don't return THIS.
2428 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2429 * objc-exp.y (THIS): Delete token and grammar rule.
2430 (yylex): Don't return THIS.
2431 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2432 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2433 (read_member_functions): Likewise for opname.
2434 (read_tilde_fields): Use is_cplus_marker.
2435
2436 * defs.h (CPLUS_MARKER): Don't define.
2437 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2438 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2439 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2440 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2441 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2442
2443 * config/i386/tm-i386v4.h: Delete file.
2444 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2445 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2446 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2447 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2448 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2449 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2450 * config/i386/i386v4.mt (TM_FILE): Likewise.
2451 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2452
967c0d83
MM
24532002-10-10 Marko Mlinar <markom@opencores.org>
2454
2455 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2456 accidentially not commited 2002-10-09
2457 * gdbarch.h, gdbarch.c: Re-generate.
2458
f74fa174
MM
24592002-10-09 Marko Mlinar <markom@opencores.org>
2460
2461 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2462 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2463 * gdbarch.h, gdbarch.c: Re-generate.
2464
57349743
JB
24652002-10-08 Petr Sorfa <petrs@caldera.com>
2466
2467 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2468
2469 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2470 so we can work on more than one compilation unit at a time. This
2471 helps prepare GDB to handle inter-CU die references.
2472 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2473 the code to be defined before struct comp_unit_head.
2474 (comp_unit_head): Added new members - offset, cu_head,
2475 begin_die, next and dwarf2_abbrevs.
2476 (dwarf2_abbrevs): Removed single static var; now member of
2477 struct comp_unit_head.
2478 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2479 members.
2480 (psymtab_to_symtab_1): Changed to work with the new
2481 struct comp_unit_head.
2482 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2483 constructs the dwarf2_abbrevs[] inside the cu_header.
2484 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2485 dwarf2_abbrev table to clean up.
2486 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2487 handling of dwarf2_abbrevs inside the cu_header.
2488 (read_partial_die): Now supports the call to the new
2489 dwarf2_lookup_abbrev.
2490 (read_full_die): Now supports the call to the new
2491 dwarf2_lookup_abbrev.
2492
4092aadb
CF
24932002-10-06 Christopher Faylor <cgf@redhat.com>
2494
2495 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2496 insure that shell variables, such as "transformed_name" are propagated
2497 to later shell statements in rule.
2498
af0b2512
MK
24992002-10-06 Mark Kettenis <kettenis@gnu.org>
2500
2501 * config/i386/nm-i386sco.h: Add protection against
2502 multiple-inclusion. Include "i386/nm-i386v.h".
2503 (REGISTER_U_ADDR): Remove define.
2504 (i386_register_u_addr): Remove prototype.
2505
d6020d45
MS
25062002-10-04 Michael Snyder <msnyder@redhat.com>
2507
2508 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2509 before treating it as a single-step event.
2510
7248f48e
AF
25112002-10-03 Adam Fedor <fedor@gnu.org>
2512
2513 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2514 (objc_demangle): Remove assignment in if statements, Replace
2515 free with xfree.
2516 (add_msglist): Likewise.
2517 (end_msglist): Likewise.
2518 (complare_selectors): Likewise.
2519 (selectors_info): Likewise.
2520 (compare_classes): Likewise.
2521 (classes_info): Likewise.
2522 (print_object_command): Likewise.
2523 (find_objc_msgcall_submethod): Replace PTR with void *.
2524 * objc-lang.h: Remove check for __STDC__.
2525
52c6a6ac
JJ
25262002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2527
2528 * ui-out.h (ui_out_field_fmt_int): New prototype.
2529 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2530 of field width and alignment.
2531 * stack.c (print_frame_info_base): When printing frame level, use
2532 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2533 PR gdb/192
2534
7e3cec17
JJ
25352002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2536
2537 * MAINTAINERS: Add self to Write After Approval list.
2538
a58dd373
EZ
25392002-10-02 Elena Zannoni <ezannoni@redhat.com>
2540
2541 * infcmd.c (interrupt_target_command_wrapper): Delete.
2542 (interrupt_target_command): Make non static.
2543 (nofp_registers_info): Make static.
2544 * stack.c (return_command_wrapper): Delete.
2545 (return_command): Make non static.
2546
cee6ddeb
EZ
25472002-10-02 Elena Zannoni <ezannoni@redhat.com>
2548
2549 * event-top.c (gdb_setup_readline): New function. Code moved from
2550 _initialize_event_loop().
2551 (_initialize_event_loop): Call gdb_setup_readline().
2552
c4ed33b9
AC
25532002-10-02 Andrew Cagney <ac131313@redhat.com>
2554
2555 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2556 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2557 * gdbarch.h, gdbarch.c: Re-generate.
2558
cef4f5dd
DJ
25592002-10-02 Daniel Jacobowitz <drow@mvista.com>
2560
2561 Fix PR gdb/778
2562 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2563 before recursing.
2564 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2565 of fill_in_vptr_fieldno.
2566
36dc181b 25672002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 2568
36dc181b
EZ
2569 * inferior.h (registers_info, stepi_command, nexti_command,
2570 continue_command, interrupt_target_command): Export from infcmd.c.
2571 * frame.h (args_info, selected_frame_level_changed_hook,
2572 return_command): Export from stack.c.
2573 * v850ice.c (stepi_command, nexti_command, continue_command): use
2574 prototypes from inferior.h.
2575 * tracepoint.c (registers_info, args_info, locals_info): Use
2576 prototypes from frame.h and inferior.h.
2577 * Makefile.in (mi-main.o): Add dependency on frame.h.
2578
6f99cb26
AC
25792002-10-02 Andrew Cagney <ac131313@redhat.com>
2580
da3eff49
AC
2581 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2582 value in register 3 adjusted by ppc_gp0_regnum.
2583
6f99cb26
AC
2584 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2585
da615bee
MM
25862002-10-02 Marko Mlinar <markom@opencores.org>
2587
2588 * MAINTAINERS: Add myself to the Write After Approval list.
2589
d154bee2
AO
25902002-10-01 Alexandre Oliva <aoliva@redhat.com>
2591
62a49b2c
AO
2592 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2593 of the section for the N64 ABI, fixed.
2594
d154bee2
AO
2595 * config/mips/tm-irix6.h: Include solib.h.
2596
ed348acc
EZ
25972002-10-01 Elena Zannoni <ezannoni@redhat.com>
2598
2599 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2600 GNU operators.
2601
da0f9dcd
AC
26022002-10-01 Andrew Cagney <ac131313@redhat.com>
2603
2604 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2605 and that "mi0" syntax has been removed.
2606
bdf64bac
DC
26072002-09-30 David Carlton <carlton@math.stanford.edu>
2608
2609 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2610 * ppc-sysv-tdep.c: #include "gdb_string.h".
2611 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2612 pacify GCC.
2613
54c2a1e6
AC
26142002-10-01 Andrew Cagney <ac131313@redhat.com>
2615
2616 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2617 "vrsave"'s register number.
2618
cedea778
AC
26192002-09-30 Andrew Cagney <ac131313@redhat.com>
2620
2621 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2622 use frame_unwind_signed_register to obtain the PC.
2623 (mips_frame_chain): Handle a generic dummy frame.
2624 (mips_init_extra_frame_info): When a generic dummy frame, don't
2625 re-compute the frame base.
2626 (mips_pop_frame): Handle generic dummy frames.
2627 (mips_gdbarch_init): When generic dummy frames, set
2628 use_generic_dummy_frames, push_dummy_frame to
2629 generic_push_dummy_frame, pc_in_call_dummy to
2630 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2631 generic_save_dummy_frame_tos.
2632
68315eb8
AC
26332002-09-30 Andrew Cagney <ac131313@redhat.com>
2634
2635 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2636 against TOP when TOP was explictly set.
2637 (generic_push_dummy_frame): Set TOP to zero.
2638
3b8630c3
EZ
26392002-09-30 Elena Zannoni <ezannoni@redhat.com>
2640
2641 * event-loop.c (start_event_loop): Rename variable 'result' to
2642 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2643
28ee05e9
KS
26442002-09-30 Keith Seitz <keiths@redhat.com>
2645
2646 * gdb-events.sh (selected_thread_changed): New event.
2647 * gdb-events.c: Regenerated.
2648 * gdb-events.h: Regenerated.
2649
6eecb1c8
HPN
26502002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2651
2652 * MAINTAINERS: Add self to Write After Approval list.
2653
92df71f0
FN
26542002-09-30 Fernando Nasser <fnasser@redhat.com>
2655
3b8630c3
EZ
2656 * disasm.c: New file.
2657 * disasm.h: New file.
92df71f0
FN
2658 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2659 (compare_lines): Ditto.
2660 (dump_insns): Ditto.
3b8630c3
EZ
2661 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2662 argument.
92df71f0 2663 (do_assembly_only): Ditto.
3b8630c3
EZ
2664 (do_disassembly): Renamed to gdb_disassembly and moved to
2665 disasm.c. Sdded uiout argument.
2666 * Makefile.in: Add new files. Reorder SFILES list. Update
2667 dependencies. Include libgdb.a later in the insight executable.
92df71f0 2668
0c22854d
AC
26692002-09-29 Andrew Cagney <ac131313@redhat.com>
2670
2671 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2672 bfd/elf64-alpha-fbsd.c.
2673
e67f2023
AC
26742002-09-29 Andrew Cagney <ac131313@redhat.com>
2675
2676 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2677 i386gnu-tdep.c.
2678
89396210
AC
26792002-09-29 Andrew Cagney <ac131313@redhat.com>
2680
2681 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2682 __FUNCTION__.
2683 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2684 function name.
2685 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2686 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2687 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2688 (S_msg_sig_post_reply): Ditto.
2689
7079c36c
CV
26902002-09-28 Corinna Vinschen <vinschen@redhat.com>
2691
89396210
AC
2692 * sh-tdep.c (sh_use_struct_convention): Use definition according
2693 to ABI.
7079c36c
CV
2694 (sh_push_arguments): Store in register with correct endianess.
2695 (sh_default_store_return_value): Ditto.
2696 (sh_gdbarch_init): Set sizeof long double to 8.
2697
975ac915
MK
26982002-09-27 Mark Kettenis <kettenis@gnu.org>
2699
2700 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2701 Fix some whitespace problems.
2702
9bbe19fb
DC
27032002-09-27 David Carlton <carlton@math.stanford.edu>
2704
2705 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2706 (mcore-tdep.o): Ditto.
2707 (ns32k-tdep.o): Ditto.
2708 (ns32knbsd-tdep.o): Ditto.
2709 (sh3-rom.o): Ditto.
2710 (vax-tdep.o): Ditto.
2711 * cris-tdep.c: #include "gdb_string.h"
2712 * mcore-tdep.c: Ditto.
2713 * ns32k-tdep.c: Ditto.
2714 * ns32knbsd-tdep.c: Ditto.
2715 * sh3-rom.c: Ditto.
2716 * vax-tdep.c: Ditto.
2717
43b2fdc7
DC
27182002-09-27 David Carlton <carlton@math.stanford.edu>
2719
2720 * config/djgpp/fnchange.lst: Add entries for
2721 gdb/testsuite/gdb.c++/m-static files.
2722
e8cfbbd9
JW
27232002-09-27 Jim Wilson <wilson@redhat.com>
2724
2725 * MAINTAINERS: Add myself to the Write After Approval list.
2726
43b2fdc7 27272002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2728
2729 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2730
2731
9f3b7f07
AC
27322002-09-26 Andrew Cagney <ac131313@redhat.com>
2733
2734 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2735 frame.
2736
11269d7e
AC
27372002-09-26 Andrew Cagney <ac131313@redhat.com>
2738
2739 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2740 (rs6000_struct_return_address): Delete variable.
2741 (rs6000_store_struct_return): Update.
2742 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2743 deprecated_extract_struct_value_address.
2744 (rs6000_frame_align): New function.
2745 (rs6000_gdbarch_init): Set frame_align.
2746
f15ab4a7
AC
27472002-09-26 Andrew Cagney <ac131313@redhat.com>
2748
2749 From Grace Sainsbury <graces@redhat.com>:
2750 * Makefile.in (gdbtk-main.o): New target.
2751 (gdb.o): New target.
2752 (main_h): Define.
2753 (main.o): Update dependencies.
2754 (gdb$(EXEEXT)): Add gdb.o.
2755 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2756 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2757 (SUBDIR_GDBTK_CLEAN): Set.
2758 (install-gdbtk): Install the insight binary.
2759 (uninstall-gdbtk): New target.
2760 (all-gdbtk, clean-gdbtk): New rule.
2761 * top.c (use_windows): Default to zero.
2762 * main.c: Include "main.h".
2763 (main): Delete.
2764 (struct captured_main_args): Delete.
2765 (gdb_main): New function.
2766 * main.h: New file.
2767 * gdb.c: New File.
2768
e36180d7
AC
27692002-09-25 Andrew Cagney <cagney@redhat.com>
2770
2771 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2772 (frame_map_regnum_to_name): New function.
2773 (frame_map_name_to_regnum): New function.
2774 * frame.h (frame_map_name_to_regnum): Declare.
2775 (frame_map_regnum_to_name): Declare.
2776 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2777 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2778 * parse.c: Do not include "builtin-regs.h".
2779 (target_map_name_to_register): Delete function.
2780 (write_dollar_variable): Use frame_map_name_to_regnum.
2781 * parser-defs.h (target_map_name_to_register): Delete declaration.
2782 * expprint.c: Include "frame.h".
2783 (print_subexp): Use frame_map_regnum_to_name.
2784 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2785 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2786
8b69000d
AC
27872002-09-25 Andrew Cagney <ac131313@redhat.com>
2788
2789 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2790 wasn't saved, and the next innermost frame is a dummy, return the
2791 dummy frame's link register.
2792
046ca86a
JB
27932002-09-24 Jim Blandy <jimb@redhat.com>
2794
2795 Fix from Paul Breed:
2796 * main.c (captured_main): Add a `break' after the case for 'b'.
2797
94b66fa7
KS
27982002-09-24 Keith Seitz <keiths@redhat.com>
2799
2800 * varobj.c (c_type_of_child): Use get_target_type instead
2801 of TYPE_TARGET_TYPE.
2802
c214a6fd
FN
28032002-09-22 Fernando Nasser <fnasser@redhat.com>
2804
53cb0458
FN
2805 * source.c (get_current_or_default_source_symtab_and_line): Remove
2806 function.
2807 (set_default_source_symtab_and_line): New function. Attempts to
2808 determine a source file to list lines from if one is not currently
2809 defined.
2810 (get_current_source_symtab_and_line): Initialize sal.pc and
2811 sal.end fields.
2812 (set_current_source_symtab_and_line): Mark argument as const.
2813 * source.h: Update declarations and comments.
2814 * linespec.c (decode_line_1): Replace call to removed routine above.
2815 * stack.c (print_frame_info_base): Ditto.
2816 * cli/cli-cmds.c (edit_command): Ditto.
2817 (list_command): Ditto.
2818
28192002-09-22 Fernando Nasser <fnasser@redhat.com>
2820
d6020d45 2821 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2822 sal.pc and sal.end fields.
c214a6fd
FN
2823 (get_current_or_default_source_symtab_and_line): Ditto.
2824 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2825 so we do not cause a new source symtab to be searched for (reverting an
2826 unintentional change from the 2002-09-20 patch).
2827 * scm-lang.c (scm_unpac): Ditto.
2828
cc3b68a5
AC
28292002-09-21 Andrew Cagney <cagney@redhat.com>
2830
2831 * complaints.c (symfile_explanations): Remove new-line from
2832 ``isolated_message''.
2833 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2834 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2835
5835abe7
NC
28362002-09-20 Nick Clifton <nickc@redhat.com>
2837
2838 * NEWS: Announce that V850EA ISA is no longer supported.
2839 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2840
a15ef5f5
DC
28412002-09-20 David Carlton <carlton@math.stanford.edu>
2842
06ba1b39
DC
2843 * Makefile.in (c-lang.o): Correct dependencies.
2844 (utils.o): Gather dependencies.
2845 (charset.o): Move.
a15ef5f5
DC
2846 * c-lang.c: #include "gdb_string.h"
2847
87885426
FN
28482002-09-20 Fernando Nasser <fnasser@redhat.com>
2849
2850 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2851 * cli/cli-cmds.c (list_command): New function. Implements the new
2852 cli edit command.
2853 (_init_cli_cmds): Add new command definition.
2854 * gdb.1: Document edit command.
2855 * doc/gdb.texinfo: Document edit command.
2856
28572002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2858
2859 * source.c: Make global variables current_source_symtab and
2860 current_source_line static.
2861 (list_command): Moved to cli/cli-cmds.c.
2862 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2863 (get_first_line_listed): New accessor function.
2864 (get_lines_to_list): New accessor function.
2865 (get_current_source_symtab_and_line): New function. Retrieves the
2866 position in the source code that we consider current.
2867 (get_current_or_default_source_symtab_and_line): New function.
2868 Like the above but attempts to determine a default position if one
2869 is not currently defined.
2870 (set_current_source_symtab_and_line): New function. Sets the source
2871 code position considered current and returns the previously set one.
2872 (clear_current_source_symtab_and_line): Reset stored information about
2873 a current source line.
2874 (_initialize_source): Remove registration for the "list" command and
2875 its alias.
2876 * source.h: Add declarations for the new functions above.
2877 * symtab.h: Remove declarations for the global variables mentioned
2878 above.
2879 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2880 obtain current source line.
2881 * linespec.c (decode_line_1): Ditto.
2882 * macroscope.c (default_macro_scope): Ditto.
2883 * scm-lang.c (scm_unpac): Ditto.
2884 * stack.c (print_frame_info_base): Ditto.
2885 * symfile.c (clear_symtab_users): Ditto.
2886 * symtab.c (decode_line_spec): Ditto.
2887 * cli/cli-cmds.c (list_command): Moved here from source.c.
2888 (ambiguous_line_spec): Moved here from source.c.
2889 (_init_cli_cmds): Add definition for "list" and its alias.
2890 * Makefile.in: Update dependencies.
2891
ddd216ea
CV
28922002-09-20 Corinna Vinschen <vinschen@redhat.com>
2893
2894 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2895 with what gcc thinks is correct.
2896
6d305052
CV
28972002-09-20 Corinna Vinschen <vinschen@redhat.com>
2898
2899 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2900 multiple register push instruction.
2901
234b45d4
KB
29022002-09-19 Jim Blandy <jimb@redhat.com>
2903
2904 Add support for distinct host and target character sets.
2905 * charset.c, charset.h: New files.
2906 * c-exp.y: #include "charset.h".
2907 (yylex): Convert character and string literals to the target
2908 character set, before returning them as the semantic value of the
2909 token.
2910 * c-lang.c: #include "charset.h".
2911 (c_emit_char): Use charset-specific methods to recognize
2912 characters with backslash escape forms, to decide which characters
2913 to print literally and which to print using numeric escape
2914 sequences, and to convert target characters to host characters
2915 before printing.
2916 * utils.c: #include "charset.h".
2917 (no_control_char_error): New function.
2918 (parse_escape): Use charset-specific methods to recognize
2919 backslash escapes, parse `control character' notation, and convert
2920 characters from the host character set to the target character set.
2921 * configure.in: Set the default host character set.
2922 Check where to find iconv, and what its argument types might be.
2923 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2924 * Makefile.in (SFILES): List charset.c.
2925 (COMMON_OBS): List charset.o.
2926 (charset.o): New rule.
2927 (charset_h): New header dependency variable.
2928 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2929 (LIBICONV): New variable, set by configure.
2930 (CLIBS): Include $(LIBICONV) here.
2931 * aclocal.m4, config.in, configure: Regenerated.
2932
525d6a61
JB
29332002-09-19 Joel Brobecker <brobecker@gnat.com>
2934
2935 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2936 bison 1.35 warning.
2937
3ed93867
RE
29382002-09-19 Richard Earnshaw <rearnsha@arm.com>
2939
2940 * gdb_mbuild.sh: New file.
2941
437666f8
AC
29422002-09-19 Andrew Cagney <ac131313@redhat.com>
2943
2944 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2945
389e51db
AC
29462002-09-18 Andrew Cagney <ac131313@redhat.com>
2947
2948 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2949 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2950 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2951 valops.c, value.h: Revert previous change.
2952
3b4efeaa
MS
29532002-09-18 Michael Snyder <msnyder@redhat.com>
2954
2955 Preliminary support for Objective-C:
2956 * defs.h (language_objc): New enum value.
2957 (puts_filtered_tabular): Declaration only, exported from utils.c.
2958 (skip_quoted): Delete, declared in completer.h.
2959 * c-exp.y: Include completer.h.
2960 * p-exp.y: Ditto.
2961 * jv-exp.y: Ditto.
2962 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2963 New operator enum values.
2964 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2965 * language.c (binop_result_type): Handle language_objc case.
2966 (integral_type, character_type, string_type, boolean_type,
2967 structured_type, binop_type_check): Ditto.
2968 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2969 (struct objc_specific): Add to general_symbol_info.
2970 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2971 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2972 * parser-defs.h (struct objc_class_str): New struct type.
2973 (start_msglist, end_msglist, add_msglist): Declaration only,
2974 exported from objc-lang.c.
2975 * value.h (value_of_local, value_nsstring,
2976 call_function_by_hand_expecting_type): Exported from valops.c.
2977 * valops.c (find_function_addr): Export.
2978 (call_function_by_hand_expecting_type): New function.
2979 (value_of_local): New function.
2980 * symfile.c (init_filename_language_table): Add ".m" extension
2981 for Objective-C.
2982 * utils.c (puts_filtered_tabular): New function.
2983 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2984 (set/show demangle): Extend help-string to refer to ObjC.
2985 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2986 * stabsread.c (symbol_reference_defined): Objective-C symbols
2987 may contain colons: make allowances when scanning stabs strings
2988 for colons.
2989 (objc_find_colon): New function.
2990 * printcmd.c (address_info): If language == objc then print
2991 "self" instead of "this".
2992 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2993 OP_NSSTRING, and OP_SELF.
2994 (prefixify_subexp): Ditto.
2995 * source.c (print_source_lines): Mention objc in comment.
2996 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2997 method names.
2998
b9caf505
AC
29992002-09-18 Andrew Cagney <ac131313@redhat.com>
3000
3001 * complaints.h: Update copyright.
3002 (struct complaints): Declare.
3003 (struct complaint): Make `message' constant.
3004 (internal_complaint): Declare.
3005 (complaint): Declare.
3006 (complaint_root): Delete declaration.
3007 (symfile_complaints): Delete declaration.
3008 (struct complaints): Add opaque declaration.
3009 (clear_complaints): Add a complaints parameter.
3010 * complaints.c: Update copyright.
3011 (enum complaint_series): Define.
3012 (complaint_root): Delete.
3013 (struct complaints): Define.
3014 (complaint_sentinel, symfile_complaint_book): New variables.
3015 (symfile_explanations, symfile_complaints): New variables.
3016 New variables.
3017 (get_complaints): New function.
3018 (vcomplaint): New function.
3019 (complaint): New function.
3020 (internal_complaint): New function.
3021 (complain): Call vcomplain with symfile_complaint.
3022 (clear_complaints): Rewrite.
3023 (_initialize_complaints): Use add_setshow_command.
3024 * Makefile.in (complaints.o): Update dependencies.
3025 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3026 to call to clear_complaints.
3027 (new_symfile_objfile, reread_symbols): Ditto.
3028 (oldsyms_complaint): Delete.
3029 (empty_symtab_complaint, unknown_option_complaint): Delete.
3030 (free_named_symtabs): Use complaint instead of complain.
3031
d2e6263c
MS
30322002-09-18 Michael Snyder <msnyder@redhat.com>
3033
5fb2031a
AC
3034 Contributed by Apple Computer, Inc. Merged with current sources
3035 by Adam Fedor <fedor@doc.com> [cagney].
3036
d2e6263c
MS
3037 * objc-lang.c: First clean-up round: comments, indentation.
3038 * objc-lang.h: Ditto.
3039 * objc-lang.y: Ditto.
3040
dec43320
AC
30412002-09-18 Andrew Cagney <ac131313@redhat.com>
3042
3043 * maint.c (maintenance_internal_error): Print the parameter as the
3044 error message.
3045 (maintenance_internal_warning): New function.
3046 (_initialize_maint_cmds): Add command `maint internal-warning'.
3047
3048 * defs.h (internal_warning, internal_vwarning): Declare.
3049 * utils.c (struct internal_problem): Define.
3050 (internal_vproblem): New function.
3051 (internal_warning): New function.
3052 (internal_vwarning): New function.
3053 (internal_warning_problem, internal_error_problem): New variables.
3054 (internal_verror): Just call internal_vproblem.
3055
b81654f1
MS
30562002-09-18 Michael Snyder <msnyder@redhat.com>
3057
3058 * objc-lang.c: New file, support for Objective-C.
3059 Preliminary check-in, not yet integrated into gdb.
3060 * objc-lang.h: New file.
3061 * objc-exp.y: New file.
3062
0542c381
AC
30632002-09-18 Andrew Cagney <ac131313@redhat.com>
3064
7bda5e4a
AC
3065 * infrun.c (signal_stop_update): Convert definition to ISO C.
3066 (signal_print_update): Ditto.
3067 (signal_pass_update): Ditto.
3068 * inflow.c (terminal_save_ours): Ditto.
3069
5247b418
AC
3070 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3071 comments.
3072
fc60962c
AC
3073 * config/djgpp/fnchange.lst: Handle name clashes between
3074 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3075 bfd/coff-tic80.c.
3076
0542c381
AC
3077 * i386-linux-tdep.h: Fix tipo.
3078
5b924b9b
AF
30792002-09-18 Adam Fedor <fedor@gnu.org>
3080
3081 * MAINTAINERS: Add myself to the Write After Approval list.
3082
5afc051b
JB
30832002-09-18 Jim Blandy <jimb@redhat.com>
3084
3085 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3086 texthigh and textlow to reader-specific structs caused
3087 objfile_relocate to miss them. This is fixable, but the work that
3088 the change was supposed to prepare GDB for never got done anyway.
3089
eb944380
DC
30902002-09-18 David Carlton <carlton@math.stanford.edu>
3091
3092 * MAINTAINERS: Alphabetize Write After Approval list.
3093
948e66d9
DJ
30942002-09-18 Daniel Jacobowitz <drow@mvista.com>
3095
3096 Fix PR gdb/709
3097 * values.c (value_static_field): Call read_var_value.
3098
dc604539
AC
30992002-09-18 Andrew Cagney <ac131313@redhat.com>
3100
3101 * valops.c (hand_function_call): Align the initial stack pointer
3102 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3103 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3104 return value.
3105 * mips-tdep.c (mips_frame_align): New function.
3106 (mips_gdbarch_init): Set frame_align.
3107 * gdbarch.sh (FRAME_ALIGN): New method.
3108 * gdbarch.h, gdbarch.c: Re-generate.
3109
cb7e422f
ML
31102002-09-18 Michal Ludvig <mludvig@suse.cz>
3111
3112 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3113 registers.
3114
a094c6fb
AC
31152002-09-17 Andrew Cagney <ac131313@redhat.com>
3116
3117 * NEWS: Mention that MIPS $fp behavior changed.
3118 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3119 reference to FP_REGNUM.
3120 (mipsnbsd_cannot_store_register): Ditto.
3121 * mips-linux-nat.c: Update copyright.
3122 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3123 (mips_linux_cannot_store_register): Ditto.
3124 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3125 * config/mips/tm-mips.h: Update copyright.
3126 (FP_REGNUM): Delete macro.
3127 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3128 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3129 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3130 (mips_r3041_reg_names, mips_r3051_reg_names)
3131 (mips_r3081_reg_names): Replace "fp" with "".
3132 Fix PR gdb/480.
3133
45cf40d1
TR
31342002-09-17 Theodore A. Roth <troth@verinet.com>
3135
3136 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3137 generic_read_register_dummy() (PR gdb/703).
3138 (avr_push_return_address): #if 0 out unused vars.
3139 (avr_gdbarch_init): Enable use of avr_push_return_address().
3140
c7e701b5
MS
31412002-09-17 Michael Snyder <msnyder@redhat.com>
3142
d76ba2a5 3143 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
3144 RTE will take care of it.
3145
20bcf01c
AC
31462002-09-17 Andrew Cagney <ac131313@redhat.com>
3147
3148 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3149 invalid, return SP_REGNUM.
3150
009a9971 31512002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
3152
3153 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3154 point registers without sign extension.
3155
135c175f
AC
31562002-09-17 Andrew Cagney <cagney@redhat.com>
3157
3158 * blockframe.c (deprecated_read_register_dummy): Rename
3159 generic_read_register_dummy.
3160 * frame.c (frame_unwind_signed_register): New function.
3161 (frame_unwind_unsigned_register): New function.
3162 * frame.h (frame_unwind_signed_register): Declare.
3163 (frame_unwind_unsigned_register): Declare.
3164 (deprecated_read_register_dummy): Rename
3165 generic_read_register_dummy.
3166
3167 * h8300-tdep.c (h8300_frame_chain): Update.
3168 (h8300_frame_saved_pc): Update.
3169 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3170 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3171 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3172 (s390_frame_chain): Update.
3173 * v850-tdep.c (v850_find_callers_reg): Update.
3174 (v850_frame_saved_pc): Update.
3175 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3176 (m32r_find_callers_reg): Update.
3177 (m32r_frame_saved_pc): Update.
3178 * sh-tdep.c (sh_find_callers_reg): Update.
3179 (sh64_get_saved_pr): Update.
3180 (sh_init_extra_frame_info): Update.
3181 (sh_init_extra_frame_info): Update.
3182 (sh64_init_extra_frame_info): Update.
3183 (sh64_init_extra_frame_info): Update.
3184 * mcore-tdep.c (mcore_find_callers_reg): Update.
3185 (mcore_frame_saved_pc): Update.
3186 (mcore_init_extra_frame_info): Update.
3187 * i386-tdep.c (i386_frame_saved_pc): Update.
3188 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3189 (ia64_init_extra_frame_info): Update.
3190 (ia64_init_extra_frame_info): Update.
3191 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3192 * cris-tdep.c (cris_init_extra_frame_info): Update.
3193 * avr-tdep.c (avr_frame_chain): Update.
3194 (avr_init_extra_frame_info): Update.
3195 (avr_frame_saved_pc): Update.
3196 * arm-tdep.c (arm_find_callers_reg): Update.
3197 (arm_init_extra_frame_info): Update.
3198 (arm_frame_saved_pc): Update.
3199
a741e514
TT
32002002-09-17 Tom Tromey <tromey@redhat.com>
3201
3202 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3203 is "'".
3204
d1a8e808
CV
32052002-09-17 Corinna Vinschen <vinschen@redhat.com>
3206
3207 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3208 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3209 NEXT_PROLOGUE_INSN.
3210 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3211 NEXT_PROLOGUE_INSN.
3212
d9025a18
JB
32132002-09-16 Joel Brobecker <brobecker@gnat.com>
3214
3215 * osfsolib.c: Remove file, replaced by solib-osf.c.
3216 * Makefile.in: Remove compilation rules for osfsolib.c.
3217
1b2ef1b6
DC
32182002-09-16 David Carlton <carlton@math.stanford.edu>
3219
3220 * cp-valprint.c (cp_print_class_method): Correct args to
3221 check_stub_method_group.
3222
928e48af
CV
32232002-09-16 Corinna Vinschen <vinschen@redhat.com>
3224
3225 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3226 `set architecture'. Unify naming convention of functions.
3227 (h8300_skip_prologue): Improve prologue analysis.
3228 (h8300_push_arguments): Rewritten to more closely match GCC's
3229 bizarre argument-passing behavior, along with the comment describing
3230 said behavior.
3231 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3232 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3233 sim, remote-e7000.c, remote-hms.c and remote.c
3234
5e3397bb
MK
32352002-09-15 Mark Kettenis <kettenis@gnu.org>
3236
3237 * i386-tdep.c (gdb_print_insn_i386): Removed.
3238 (i386_print_insn): New function.
3239 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3240 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3241 tm_print_insn_info.
3242
f710f4fc
MK
32432002-09-14 Mark Kettenis <kettenis@gnu.org>
3244
3245 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3246 zero.
3247
db54fef4
CV
32482002-09-14 Corinna Vinschen <vinschen@redhat.com>
3249
3250 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3251 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3252 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3253
2becadee
CF
32542002-09-13 Christopher Faylor <cgf@redhat.com>
3255
3256 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3257
de17c821
DJ
32582002-09-13 Daniel Jacobowitz <drow@mvista.com>
3259
3260 * gdbtypes.c (check_stub_method): Make static.
3261 (check_stub_method_group): New function.
3262 * gdbtypes.h: Update prototypes.
3263 * cp-support.c: New file.
3264 * cp-support.h: New file.
3265
3266 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3267 (update_method_name_from_physname): New function.
3268 (read_member_functions): Correct method names for operators
3269 and v3 constructors/destructors. Separate v2 constructors and
3270 destructors.
3271 * Makefile.in (stabsread.o): Update dependencies.
3272 (SFILES): Add cp-support.c.
3273 (COMMON_OBS): Add cp-support.o.
3274 (cp_support_h, cp-support.o): Add.
3275
3276 * cp-valprint.c (cp_print_class_method): Call
3277 check_stub_method_group instead of check_stub_method. Remove
3278 extraneous QUITs.
3279 * p-valprint.c (pascal_object_print_class_method): Likewise.
3280 * valops.c (search_struct_method): Likewise.
3281 (find_method_list, value_struct_elt_for_reference): Likewise.
3282
e76cff22
AC
32832002-09-13 Andrew Cagney <cagney@redhat.com>
3284
3285 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3286 * gdbarch.h, gdbarch.c: Regenerate.
3287
905abb3f
AC
32882002-09-13 Andrew Cagney <ac131313@redhat.com>
3289
3290 * frame.c (find_saved_register): Delete function.
3291 * frame.h (find_saved_register): Delete declaration.
3292 Fix PR gdb/631.
3293
64159455
AC
3294Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3295
3296 * mips-tdep.c (read_next_frame_reg): Re-hack using
3297 frame_register_unwind.
3298
795e1e11
AC
3299Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3300
3301 * mips-tdep.c (mips_get_saved_register): Re-hack using
3302 frame_register_unwind.
3303
5720643c
JB
33042002-09-12 Joel Brobecker <brobecker@gnat.com>
3305
3306 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3307 vector. Will be useful for Interix.
3308 * gdbarch.h, gdbarch.c: Regenerate.
3309
3310 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3311 name of the malloc function by NAME_OF_MALLOC.
3312
3bada2a2
JB
33132002-09-12 Joel Brobecker <brobecker@gnat.com>
3314
3315 * value.h (find_function_in_inferior): Add const keyword to
3316 one of the parameters. Allows us to invoke this function with
3317 a const char *.
3318 * valops.c (find_function_in_inferior): Likewise.
3319
3db26b01
JB
33202002-09-12 Joel Brobecker <brobecker@gnat.com>
3321
3322 * exec.c (xfer_memory): Fix compilation warning with old versions
3323 of GCC.
3324 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3325
17c5ed2c
DC
33262002-09-12 David Carlton <carlton@math.stanford.edu>
3327
3328 * symtab.h: Run through gdb_indent.h.
3329 Add 2002 to Copyright year list.
3330
ecd1107e
AM
33312002-09-12 Alan Modra <amodra@bigpond.net.au>
3332
3333 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3334 mach constants.
3335 * MAINTAINERS: Add myself to write after approval list.
3336
e64f66d1
JB
33372002-09-11 J. Brobecker <brobecker@gnat.com>
3338
3339 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3340
f9395794
JB
33412002-09-11 J. Brobecker <brobecker@gnat.com>
3342
3343 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3344 Interix.
3345
1a303dec
MS
33462002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3347
3348 * procfs.c (do_detach): Clear current signal, not just fault.
3349 Corrects problem with breakpoint trap signal leaking to detached
3350 process on Tru64.
3351
c0219d42
MS
33522002-09-10 Michael Snyder <msnyder@redhat.com>
3353
3354 * buildsym.c (finish_block): Protect against null pointer.
3355
9d84ac84
AC
33562002-09-10 Andrew Cagney <cagney@redhat.com>
3357
3358 * infcmd.c (default_print_registers_info): Send all output to
3359 ``file'' instead of ``gdb_stdout''.
3360
77d8f2b4
MS
33612002-09-10 Michael Snyder <msnyder@redhat.com>
3362
3363 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3364 LONGEST, and use signed register read (addresses are sign-
3365 extended for mips).
3366
99656a61
SC
33672002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3368
3369 * event-loop.c (gdb_do_one_event): Make public.
3370 * event-loop.h (gdb_do_one_event): Declare.
3371
da12f4d8
JL
33722002-09-10 Jeff Law <law@redhat.com>
3373
3374 * infttrace.c (child_resume): Simplify and rework to avoid
3375 TT_PROC_CONTINUE.
3376
d0aee0c4
FF
33772002-09-09 Fred Fish <fnf@intrinsity.com>
3378
3379 * printcmd.c (print_scalar_formatted): "len" is the number of
3380 target bytes, NOT the number of target bits.
3381
7cb3ec5e
EZ
33822002-09-09 Elena Zannoni <ezannoni@redhat.com>
3383
3384 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3385 * top.c (init_main): Set rl_terminal_name.
3386
4dc81987
AS
33872002-09-08 Aidan Skinner <aidan@velvet.net>
3388
3389 * ada-lang.c (ada_array_bound, ada_type_match,
3390 _initialize_ada_language): Fix K&R definitions.
3391 * ada-tasks.c (get_current_task): Fix K&R definitions.
3392 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3393
842330b4
CF
33942002-09-07 Christopher Faylor <cgf@redhat.com>
3395
3396 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3397 Add XP.
3398
43156d82
MK
33992002-09-06 Mark Kettenis <kettenis@gnu.org>
3400
66da5fd8
MK
3401 * i386-tdep.c (i386_register_virtual_type,
3402 i386_register_convertible, i386_register_convert_to_virtual,
3403 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3404 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3405 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3406 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3407 Don't set push_arguments twice.
3408
4b218c18
MK
3409 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3410 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3411 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3412 sigtramp_end to NULL.
3413 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3414 defines.
3415 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3416
4cc314d5
MK
3417 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3418 whitespace.
3419
43156d82
MK
3420 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3421 * gdbarch.h, gdbarch.c: Re-generate.
3422 * blockframe.c (find_pc_sect_partial_function): Convert to use
3423 SIGTRAMP_START_P predicate.
3424
6672060b
MS
34252002-09-05 Michael Snyder <msnyder@redhat.com>
3426
a90c3637
MS
3427 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3428 generic_dummy_frame method and old method. Also distinguish
3429 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 3430 (arm_extract_return_value): Use new regcache method.
a90c3637 3431
6672060b
MS
3432 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3433 adjustment that doesn't conform to the ABI.
3434 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3435 saved regcache, not from current regcache.
3436
299ffc64
AC
34372002-09-05 Andrew Cagney <ac131313@redhat.com>
3438
3439 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3440 * README: Update.
3441
a3a2ee65
JT
34422002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3443
3444 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3445 if arm_apcs_32 is false.
3446
2bc7eea9
AC
34472002-09-04 Andrew Cagney <ac131313@redhat.com>
3448
3449 GDB 5.3 branch created.
3450
8a55a7c5
TR
34512002-09-03 Theodore A. Roth <troth@verinet.com>
3452
3453 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3454 generic_unwind_get_saved_register.
3455
e26fb1d7
DC
34562002-09-03 David Carlton <carlton@math.stanford.edu>
3457
3458 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3459 argument (PR gdb/653). Update call to smash_to_method_type.
3460 (read_structure_scope): Update call to dwarf2_add_member_fn.
3461
30d52491
ML
34622002-09-03 Michal Ludvig <mludvig@suse.cz>
3463
3464 * x86-64-linux-tdep.c: Include gdb_string.h
3465 * x86-64-linux-nat.c: Ditto.
3466
06891d83
JT
34672002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3468
3469 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3470 when YYDEBUG is set to 1.
3471 * c-exp.y: Likewise.
3472 * f-exp.y: Likewise.
3473 * jv-exp.y: Likewise.
3474 * m2-exp.y: Likewise.
3475 * p-exp.y: Likewise.
3476
7d400e77
JT
34772002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3478
3479 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3480 dependency list.
3481 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3482 solib_svr4_fetch_link_map_offsets to
3483 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3484 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3485 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3486 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3487 solib-svr4.o, and solib-legacy.o.
3488 * config/i386/tm-nbsd.h: Include solib.h.
3489
704a27c4
JT
34902002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3491
3492 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3493 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3494 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3495 comment noting that this needs its own target configuration.
3496 * config/i386/nbsd.mt: New file.
3497 * config/i386/nbsdaout.mt: Remove.
3498 * config/i386/nbsdelf.mt: Ditto.
3499 * config/i386/tm-nbsdaout.h: Ditto.
3500
d66198e1
JT
35012002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3502
3503 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3504 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3505 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3506 tdep->sigtramp_end.
3507 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3508 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3509 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3510
3cac699e
JT
35112002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3512
3513 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3514 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3515 * i386-tdep.h (i386bsd_init_abi): New prototype.
3516 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3517 function declaration.
3518 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3519 for NetBSD-a.out or NetBSD-ELF.
3520 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3521 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3522 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3523 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3524 and nbsd-tdep.h.
3525 (i386nbsd_pc_in_sigtramp): New function.
3526 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3527 i386nbsd_pc_in_sigtramp.
3528 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3529 and i386nbsdelf_init_abi OS ABI handlers.
3530 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3531 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3532
7010ca0a
MK
35332002-09-02 Mark Kettenis <kettenis@gnu.org>
3534
3535 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3536 registers if the target really has them.
3537
6dd93b72
JT
35382002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3539
3540 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3541 than nbsd-tdep.h.
3542
2ca8ae21
JT
35432002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3544
3545 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3546 list.
3547 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3548 (alphanbsd_skip_sigtramp_frame): New functions.
3549 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3550 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3551 to alphanbsd_sigcontext_addr.
3552
3d9b49b0
JT
35532002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3554
3555 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3556 list.
3557 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3558 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3559 nbsd_pc_in_sigtramp.
3560 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3561 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3562 * nbsd-tdep.c: Include gdb_string.h.
3563 (nbsd_pc_in_sigtramp): New function.
3564 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3565 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3566 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3567 ppcnbsd_pc_in_sigtramp.
3568 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3569 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3570 shnbsd_pc_in_sigtramp.
3571 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3572 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3573 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3574
c860120c
PM
35752002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3576
3577 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3578 watchpoints to NULL.
3579 (insert_breakpoints): set val field of watchpoints if NULL.
3580
3581
c7612d53
JB
35822002-08-29 Jim Blandy <jimb@redhat.com>
3583
3584 * symtab.c (lookup_symbol_aux): In the cases where we find a
3585 minimal symbol of an appropriate name and use its address to
3586 select a symtab to read and search, use `name' (as passed to us)
3587 as the demangled name when searching the symtab's global and
3588 static blocks, not the minsym's name.
3589
66609862
KS
35902002-08-29 Keith Seitz <keiths@redhat.com>
3591
3592 * stack.c (print_frame_info_base): Always set current_source_symtab
3593 and current_source_line.
3594
151fefe2
JB
35952002-08-29 Donn Terry <donnte@microsoft.com>
3596
3597 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3598
bfb3754e
KS
35992002-08-28 Keith Seitz <keiths@redhat.com>
3600
3601 * stack.c (select_frame): Add FIXME concerning selected-frame
3602 events.
3603 (select_frame_command): Send selected-frame-level-changed
3604 event notification, but only if the level actually changed.
3605 (up_silently_base): Add selected-frame-level-changed event
3606 notification.
3607 (down_silently_base): Likewise.
3608
e822a2a0
AC
36092002-08-28 Andrew Cagney <ac131313@redhat.com>
3610
3611 * Makefile.in: Update dependencies for all gdb/*.c files.
3612
309367d4
TT
36132002-08-27 Tom Tromey <tromey@redhat.com>
3614
3615 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3616 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3617 Update dependencies.
3618 * i387-tdep.c: Include gdb_string.h.
3619 * osabi.c: Likewise.
3620 * i386-linux-nat.c: Likewise.
3621 * lin-lwp.c: Likewise.
3622 * ax-gdb.c: Likewise.
3623 * signals/signals.c: Likewise.
3624 * jv-valprint.c: Likewise.
3625 * p-lang.c: Likewise.
3626 * c-valprint.c: Likewise.
3627 * cp-abi.c: Likewise.
3628
e1507482
EZ
36292002-08-27 Elena Zannoni <ezannoni@redhat.com>
3630
3631 * cli/cli-script.h (copy_command_lines): Export.
3632 * breakpoint.c: Include cli/cli-script.h.
3633 * Makefile.in (breakpoint.o): Update dependencies.
3634
c6510018
MS
36352002-08-26 Michael Snyder <msnyder@redhat.com>
3636
3637 * breakpoint.c (insert_breakpoints): Protect all references
3638 to 'process_warning'. Shorten long lines.
3639
c2b8ed2c
MS
36402002-08-26 Joel Brobecker <brobecker@gnat.com>
3641
3642 * cli/cli-script.c (copy_command_lines): New function.
3643 * defs.h (copy_command_lines): Export.
3644 * testsuite/gdb.base/commands.exp: New tests for commands
3645 attached to a temporary breakpoint, and for commands that
3646 delete the breakpoint they are attached to.
3647
36482002-08-26 Michael Snyder <msnyder@redhat.com>
3649
3650 * breakpoint.c (bpstat_stop_status): Instead of copying the
3651 pointer to the breakpoint commands struct, make a new copy
3652 of the struct and point to that.
3653 (bpstat_clear): Free the commands struct.
3654 (bpstat_clear_actions): Free the commands struct.
3655 (bpstat_do_actions): Free the command actions. Also execute
3656 the local cleanups, instead of deleting them.
3657 (delete_breakpoint): Leave the commands field of the bpstat
3658 chain alone -- it will be freed later.
3659
64b84175
KB
36602002-08-26 Kevin Buettner <kevinb@redhat.com>
3661
3662 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3663 deleted in 2002-08-20 commit. This function is still used by
3664 ppc-linux-nat.c.
3665
55970da6
KS
36662002-08-26 Keith Seitz <keiths@redhat.com>
3667
3668 * gdb-events.sh: Add selected-frame-level-changed event.
3669 * gdb-events.c: Regenerated.
3670 * gdb-events.h: Regenerated.
3671
a790ad35
SC
36722002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3673
3674 Fix PR gdb/393:
3675 * inflow.c (terminal_save_ours): New function to save terminal
3676 settings.
3677 * inferior.h (terminal_save_ours): Declare.
3678 * target.c (debug_to_terminal_save_ours): New function.
3679 (cleanup_target): Defaults to_terminal_save_ours.
3680 (update_current_target): Inherit to_terminal_save_ours.
3681 (setup_target_debug): Set to_terminal_save_ours.
3682 * target.h (target_terminal_save_ours): New to save terminal settings.
3683 (target_ops): New member to_terminal_save_ours.
3684 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3685 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3686 * inftarg.c (init_child_ops): Likewise.
3687 * m3-nat.c (init_m3_ops): Likewise.
3688 * procfs.c (init_procfs_ops): Likewise.
3689 * wince.c (init_child_ops): Likewise.
3690 * win32-nat.c (init_child_ops): Likewise.
3691 * sol-thread.c (init_sol_thread_ops): Likewise.
3692
c00dcbe9
MK
36932002-08-26 Mark Kettenis <kettenis@gnu.org>
3694
3d7f4f49
MK
3695 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3696 use regcache_* functions.
3697 (i386_gdbarch_init): Set store_return_value instead of
3698 deprecated_store_return_value.
3699
c00dcbe9
MK
3700 * regcache.c (regcache_raw_write_signed,
3701 regcache_raw_write_unsigned): New functions.
3702 * regcache.h (regcache_raw_write_signed,
3703 regcache_raw_write_unsigned): New prototypes.
3704
0e0d15ca
AC
37052002-08-25 Andrew Cagney <ac131313@redhat.com>
3706
3707 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3708 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3709 source file dependencies. Cleanup corresponding generator rules.
3710
d3b22ed5
AC
37112002-08-25 Andrew Cagney <ac131313@redhat.com>
3712
3713 * regcache.h (register_offset_hack): Declare.
3714 (regcache_cooked_read_using_offset_hack): Declare.
3715 (regcache_cooked_write_using_offset_hack): Declare.
3716
3717 * regcache.c (register_offset_hack): New function.
3718 (regcache_cooked_read_using_offset_hack): New function.
3719 (regcache_cooked_write_using_offset_hack): New function.
3720 (regcache_dump): Check that the registers, according to their
3721 offset, are packed hard against each other.
3722 (cooked_xfer_using_offset_hack): New function.
3723
bb425013
AC
37242002-08-25 Andrew Cagney <ac131313@redhat.com>
3725
3726 * regcache.c (struct regcache_descr): Add field register_type.
3727 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3728 in as a parameter
3729 (init_regcache_descr): Initialize register_type. Pass the descr
3730 to init_legacy_regcache_descr. Use register_type instead of
3731 REGISTER_VIRTUAL_TYPE.
3732 (register_type): New function.
3733 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3734 * regcache.h (register_type): Declare.
3735
d0403e00
AC
37362002-08-25 Andrew Cagney <ac131313@redhat.com>
3737
3738 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3739 instead of deprecated_store_return_value. Fix fallout from
3740 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3741
0ed04cce
AC
37422002-08-25 Andrew Cagney <ac131313@redhat.com>
3743
3744 * regcache.c (max_register_size): New function.
3745 (init_legacy_regcache_descr): Ensure that max_register_size is
3746 large enough for REGISTER_VIRTUAL_SIZE.
3747 * regcache.h (max_register_size): Declare.
3748
46d79c04
AC
37492002-08-24 Andrew Cagney <ac131313@redhat.com>
3750
3751 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3752 store_return_value.
3753 (e500_extract_return_value): Change type of valbuf pointer to
3754 void.
3755
853c7bd0
MK
37562002-08-24 Mark Kettenis <kettenis@gnu.org>
3757
cd87e769
MK
3758 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3759 workaround.
3760
853c7bd0
MK
3761 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3762 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3763 long long) to prevent compiler warning on 64-bit systems.
3764
ebba8386
AC
37652002-08-23 Andrew Cagney <cagney@redhat.com>
3766
3767 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3768 (DEPRECATED_STORE_RETURN_VALUE): New method.
3769 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3770 * gdbarch.h, gdbarch.c: Re-generate.
3771
3772 * values.c (set_return_value): Pass current_regcache to
3773 STORE_RETURN_VALUE.
3774 * arch-utils.h (legacy_store_return_value): Declare.
3775 * arch-utils.c (legacy_store_return_value): New function.
3776 (legacy_extract_return_value): Update parameters.
3777
3778 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3779 STORE_RETURN_VALUE.
3780 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3781 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3782 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3783 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3784 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3785 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3786 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3787 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3788 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3789 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3790
3791 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3792 * i386-tdep.c (i386_extract_return_value): Update.
3793 * arch-utils.c (legacy_extract_return_value): Update.
3794 * frv-tdep.c (frv_gdbarch_init): Update.
3795 * cris-tdep.c (cris_gdbarch_init): Update.
3796 * d10v-tdep.c (d10v_gdbarch_init): Update.
3797 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3798 * m68k-tdep.c (m68k_gdbarch_init): Update.
3799 * mcore-tdep.c (mcore_gdbarch_init): Update.
3800 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3801 * s390-tdep.c (s390_gdbarch_init): Update.
3802 * sparc-tdep.c (sparc_gdbarch_init): Update.
3803 * sh-tdep.c (sh_gdbarch_init): Update.
3804 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3805 * v850-tdep.c (v850_gdbarch_init): Update.
3806 * avr-tdep.c (avr_gdbarch_init): Update.
3807 * ia64-tdep.c (ia64_gdbarch_init): Update.
3808 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3809 * vax-tdep.c (vax_gdbarch_init): Update.
3810 * alpha-tdep.c (alpha_gdbarch_init): Update.
3811 * arm-tdep.c (arm_gdbarch_init): Update.
3812 * mips-tdep.c (mips_gdbarch_init): Update.
3813 * i386-tdep.c (i386_gdbarch_init): Update.
3814
5bd8c6d0
AC
38152002-08-23 Andrew Cagney <ac131313@redhat.com>
3816
3817 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3818 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3819
e73e1724
MK
38202002-08-24 Mark Kettenis <kettenis@gnu.org>
3821
3822 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3823 problems.
3824
3e6564e1
JB
38252002-08-23 Joel Brobecker <brobecker@gnat.com>
3826
3827 * infrun.c (handle_inferior_event): Move a comment outside of a
3828 function call, in order to avoid indent reformatting this part
3829 of the code in an unreadable way.
3830
81d0cc19
GS
38312002-08-23 Grace Sainsbury <graces@redhat.com>
3832
3833 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3834 when breakpoints fail. Move general breakpoint error messages to
3835 insert_breakpoints.
3836 * breakpoint.c (insert_breakpoints): Change warnings when
3837 breakpoints are nto inserted to specify the type. Remove call to
3838 memory_error when hardware breakpoints can't be inserted. Remove
3839 multiple calls to warning so all messages are sent to the user at
3840 once.
3841 (delete_breakpoints): Make insert error messsages more explicit.
3842
17574093
DJ
38432002-08-23 Daniel Jacobowitz <drow@mvista.com>
3844
3845 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3846 gdbserver/ChangeLog.
3847
8acc2935
MK
38482002-08-23 Mark Kettenis <kettenis@gnu.org>
3849
dfe01d39
MK
3850 * i386-tdep.c: Include "objfiles.h".
3851 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3852 skip_trampoline_code.
3853 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3854 (CPLUS_MARKER): Define to '.'.
3855
8acc2935
MK
3856 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3857 member.
3858 (linux_corefile_thread_callback): Increase args->num_notes.
3859 (linux_make_note_section): Initialize thread_args.num_notes, and
3860 use it to determine whether notes for any threads were created.
3861
151fefe2 38622002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3863
3864 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3865 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3866 and PCUNKILL.
3867 (write_with_trace): Conditionalize out the switch branch handling
3868 PCSHOLD if the corresponding macro is not defined. Likewise for
3869 PRSABORT and PRSTOP.
3870 This change will be needed by the Interix port.
3871
e1507482
EZ
38722002-08-22 Elena Zannoni <ezannoni@redhat.com>
3873
3874 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3875 write_register wherever possible instead of manipulating the
3876 register bytes directly.
3877 Assign VALUE_CONTENTS to a variable and use that.
3878 The GPR numbers are now dependent on the architecture.
3879
96ff0de4
EZ
38802002-08-22 Elena Zannoni <ezannoni@redhat.com>
3881
3882 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3883 ev_offset fields.
3884 (skip_prologue): Add support for BookE/e500 instructions.
3885 (e500_extract_return_value): New function.
3886 (frame_get_saved_regs): Add support for saving ev registers and
3887 pseudo gpr's.
3888 (e500_store_return_value): New function.
3889 (rs6000_gdbarch_init): Move up default intializations of
3890 deprecated_extract_return_value and store_return_value. Overwrite
3891 init of store_return_value with e500 specific version.
3892 Set extract_return_value for e500.
3893
fbefca5b
EZ
38942002-08-22 Elena Zannoni <ezannoni@redhat.com>
3895
3896 * blockframe.c (generic_call_dummy_register_unwind): Use
3897 regcache_cooked_read to catch cases in which the variable is
3898 stored in a pseudo register.
3899
4d210288
AC
39002002-08-22 Andrew Cagney <cagney@redhat.com>
3901
3902 * NEWS: Mention that the i960 has been made obsolete.
3903 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3904 i960-tdep.c
3905 (remote-nrom.o): Obsolete target.
3906 (remote-nindy.o, i960-tdep.o): Ditto.
3907 * remote-nrom.c: Make file obsolete.
3908 * remote-nindy.c, remote-vx960.c: Ditto.
3909 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3910 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3911 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3912 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3913 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3914 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3915 i960-*-vxworks* obsolete.
3916 * MAINTAINERS: Note that the i960 is obsolete.
3917
6c0c456d
CV
39182002-08-21 Corinna Vinschen <vinschen@redhat.com
3919
3920 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3921 detach to allow reinitialization.
3922
9f9d12b3
AC
39232002-08-22 Andrew Cagney <ac131313@redhat.com>
3924
3925 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3926 attempt).
3927
ebeb39fe
JB
39282002-08-22 Jim Blandy <jimb@redhat.com>
3929
3930 * coffread.c (coff_symfile_read): Don't try to read the line
3931 number table from disk if the image file doesn't have a symbol
3932 table; we'll never actually look at the info anyway, and Windows
3933 ships DLL's with bogus file offsets for the line number data.
3934
5bf1c677
EZ
39352002-08-21 Elena Zannoni <ezannoni@redhat.com>
3936
3937 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3938 an e500 executable.
3939
71b8ef93
MS
39402002-08-21 Michael Snyder <msnyder@redhat.com>
3941
3942 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3943 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
3944 (DEFAULT_MIPS_TYPE): Delete unused macro.
3945 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3946 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 3947
d174216d
JB
39482002-08-21 Jim Blandy <jimb@redhat.com>
3949
3950 * valops.c (value_cast): Simplify and correct logic for doing a
3951 static cast from a pointer to a base class to a pointer to a
3952 derived class.
3953
0ab7a791
AC
39542002-08-21 Andrew Cagney <ac131313@redhat.com>
3955
3956 * infcmd.c (default_print_registers_info): Replace
3957 do_registers_info.
3958 (registers_info): Use gdbarch_print_registers_info instead of
3959 DO_REGISTERS_INFO.
3960 * inferior.h (default_print_registers_info): Replace
3961 do_registers_info.
3962 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3963 (DO_REGISTERS_INFO): Change to a predicate function.
3964 * gdbarch.h, gdbarch.c: Regenerate.
3965
e23792cc
KS
39662002-08-21 Keith Seitz <keiths@redhat.com>
3967
3968 * gdb-events.sh: Add target-changed event.
3969 * gdb-events.c: Regenerated.
3970 * gdb-events.c: Regenerated.
3971 * valops.c (value_assign): Add target-changed event notification
3972 to inlval_register, lval_memory, and lval_reg_frame_relative.
3973
9fb14e79
JB
39742002-08-21 Joel Brobecker <brobecker@gnat.com>
3975
3976 * NEWS: Add an entry regarding the improvement of the next/step
3977 operation on Alpha Tru64 multi-processor machines.
3978
6d39a69f
AC
39792002-08-21 Andrew Cagney <ac131313@redhat.com>
3980
72acd513
AC
3981 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3982 directores.
342af04b 3983 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
3984 * Makefile.in (install-gdbtk): Move to install section.
3985 (rdi-share/libangsd.a): Move to end of file.
3986
fa5f27c7
AC
39872002-08-19 Andrew Cagney <ac131313@redhat.com>
3988
3989 * frame.c (frame_register_unwind): When a register, set addrp to
3990 the register's byte.
3991
5a89d8aa
MS
39922002-08-20 Michael Snyder <msnyder@redhat.com>
3993
3994 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3995 used locally, so move them from the target machine header to here.
3996 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3997 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3998 Make static.
3999 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4000
822e978b
AC
40012002-08-20 Andrew Cagney <cagney@redhat.com>
4002
4003 * NEWS: Mention that the Apollo line was made obsolete.
4004 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4005 m68*-hp-hpux* obsolete.
4006 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4007 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4008 * buildsym.c (make_blockvector): Make static.
4009 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4010 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4011 (ALLDEPFILES): Remove dstread.c.
4012 (dstread.o): Obsolete make rule.
4013 * dstread.c: Makefile obsolete.
4014 * dst.h: Ditto.
4015 * config/m68k/hp300hpux.mt: Ditto.
4016 * config/m68k/hp300hpux.mh: Ditto.
4017 * config/m68k/hp300bsd.mt: Ditto.
4018 * config/m68k/hp300bsd.mh: Ditto.
4019 * config/m68k/apollo68b.mt: Ditto.
4020 * config/m68k/apollo68v.mh: Ditto.
4021 * config/m68k/apollo68b.mh: Ditto.
4022
e41b17f0
MS
40232002-08-20 Michael Snyder <msnyder@redhat.com>
4024
4025 * mips-tdep.c (mips_in_return_stub): Make static.
4026 (mips_gdbarch_init): Set in_solib_return_trampoline.
4027 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4028
d50355b6
MS
40292002-08-20 Michael Snyder <msnyder@redhat.com>
4030
4031 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4032 * gdbarch.c, gdbarch.h: Regenerate.
4033 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4034 Add.
4035 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4036
757a7cc6
MS
40372002-08-20 Michael Snyder <msnyder@redhat.com>
4038
4039 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4040 (mips_gdbarch_init): Set skip_trampoline_code,
4041 in_solib_call_trampoline.
4042 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4043 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4044
c8001721
EZ
40452002-08-20 Elena Zannoni <ezannoni@redhat.com>
4046
4047 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4048
4049 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4050 vector type for ev registers.
4051 (e500_pseudo_register_read): New function.
4052 (e500_pseudo_register_write): New function.
4053 (e500_dwarf2_reg_to_regnum): New function.
4054 (PPC_UISA_NOFP_SPRS): New macro.
4055 (PPC_EV_REGS): New macro.
4056 (PPC_GPRS_PSEUDO_REGS): New macro.
4057 (registers_e500): New register set for e500.
4058 (variants): Add e500 variant.
4059 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4060 before setting architectural dependent variations. Initialize ev
4061 registers numbers. Add case for e500 architecture. Set the
4062 number of pseudo registers.
4063
64366f1c
EZ
40642002-08-20 Elena Zannoni <ezannoni@redhat.com>
4065
4066 * rs6000-tdep.c: Clean up comments.
4067
7e78f0ca
AC
40682002-08-20 Andrew Cagney <cagney@redhat.com>
4069
4070 * h8300-tdep.c: Re-indent file.
4071
697f7479
JB
40722002-08-20 Jim Blandy <jimb@redhat.com>
4073
4074 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4075 default for this.
697f7479 4076
e86ae29f
KS
40772002-08-20 Keith Seitz <keiths@redhat.com>
4078
4079 * breakpoints.c (watch_command_1): Use internal breakpoint
4080 when setting a watchpoint_scope breakpoint.
4081
216b504f
EZ
40822002-08-20 Elena Zannoni <ezannoni@redhat.com>
4083
4084 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4085 (build_builtin_type_vec64i): Ditto.
4086 (build_builtin_type_vec128): Ditto.
4087 (build_builtin_type_vec128i): Ditto.
4088
f7ab6ec6
MS
40892002-08-19 Michael Snyder <msnyder@redhat.com>
4090
4091 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4092 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4093 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4094 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4095 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4096 CALL_DUMMY_ADDRESS): Delete.
4097 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4098 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4099 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4100 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4101 push_return_address.
4102 (mips_register_raw_size, mips_eabi_use_struct_convention,
4103 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4104 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4105 mips_init_extra_frame_info, mips_eabi_push_arguments,
4106 mips_n32n64_push_arguments, mips_push_return_address,
4107 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4108 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4109
b5d1566e
MS
41102002-08-19 Michael Snyder <msnyder@redhat.com>
4111
4112 * mips-tdep.c (mips_frame_num_args): New function.
4113 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4114 frame_saved_pc, frame_args_address, frame_locals_address,
4115 frame_num_args, and frame_args_skip.
4116 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4117 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4118 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4119 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4120
2f1488ce
MS
41212002-08-20 Michael Snyder <msnyder@redhat.com>
4122
4123 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4124 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4125 * mips-tdep.c (mips_store_struct_return): New function.
4126 (mips_extract_struct_value_address): New function.
4127 (mips_gdbarch_init): Set store_struct_return and
4128 extract_struct_value_address.
4129
41ff2da1
DC
41302002-08-20 David Carlton <carlton@math.stanford.edu>
4131
4132 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4133 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4134 (read_file_scope): Check that line_header is nonzero before
4135 decoding macro information.
4136
e5451d58
MK
41372002-08-20 Mark Kettenis <kettenis@gnu.org>
4138
4139 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4140 flag the general-purpose registers as floating-point on targets
4141 that don't support the floating-point registers.
4142
4a6daafa
EZ
41432002-08-20 Elena Zannoni <ezannoni@redhat.com>
4144
4145 * rs6000-tdep.c (altivec_register_p): Delete.
4146 (rs6000_do_altivec_registers): Delete.
4147 (rs6000_altivec_registers_info): Delete.
4148 (rs6000_do_registers_info): Delete.
4149 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4150 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4151
ab4327e0
EZ
41522002-08-20 Elena Zannoni <ezannoni@redhat.com>
4153
4154 * infcmd.c (do_registers_info): Print vector registers in hex
4155 format only.
4156 (print_vector_info): Check that printing registers
4157 makes sense.
4158 (print_float_info): Ditto.
4159
cb1d2653
AC
41602002-08-20 Andrew Cagney <ac131313@redhat.com>
4161
4162 * mips-tdep.c (mips_gdbarch_init): Update.
4163 (mips_o32_extract_return_value): Rewrite.
4164 (mips_o32_store_return_value): Rewrite.
4165 (mips_o32_xfer_return_value): New function.
4166 (mips_xfer_register): Tweak debug print message. Allow for
4167 buf_offset when dumping the value transfered.
4168
dfc3d9b2
AC
41692002-08-20 Andrew Cagney <ac131313@redhat.com>
4170
4171 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4172 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4173 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4174 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4175 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4176
7807aa61
MS
41772002-08-14 Michael Snyder <msnyder@redhat.com>
4178
4179 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4180
489461e2
EZ
41812002-08-19 Elena Zannoni <ezannoni@redhat.com>
4182
4183 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4184 register.
4185 (P): New macro to define a register as a pseudo register.
4186 (R, R4, R8, R16, FR32, R64, R0): Updated.
4187 (struct variant): Add new fields for number of pseudo registers
4188 and number of total registers.
4189 (tot_num_registers): New macro replacing....
4190 (num_registers): ...deleted macro.
4191 (num_registers): New function.
4192 (num_pseudo_registers): New function.
4193 (variants): Update all variants to intialize new fields correctly.
4194 Postpone initialization of number of pseudo regs and real regs.
4195 (init_variants): New function.
4196 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4197 registers offsets.
4198
fcaffe4c
DC
41992002-08-19 David Carlton <carlton@math.stanford.edu>
4200
2c2738a0
DC
4201 * valops.c (search_struct_field): Change error message to treat
4202 return value of 0 from value_static_field as meaning that field is
4203 optimized out.
4204 (value_struct_elt_for_reference): Ditto.
4205 * values.c (value_static_field): Treat an unresolved location the
4206 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
4207 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4208 enclosed. Fix PR gdb/574.
fcaffe4c
DC
4209 * MAINTAINERS: Add self to Write After Approval list.
4210
88658117
AC
42112002-08-19 Andrew Cagney <ac131313@redhat.com>
4212
4213 * mips-tdep.c (mips_xfer_register): New function.
4214 (mips_n32n64_extract_return_value): Rewrite.
4215 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4216 instead of deprecated_extract_return_value.
4217
21283beb
EZ
42182002-08-19 Elena Zannoni <ezannoni@redhat.com>
4219
4220 * rs6000-tdep.c (TDEP): Delete macro.
4221 (branch_dest): Replace use of TDEP macro with its body.
4222 (rs6000_pop_frame): Ditto.
4223 (rs6000_push_arguments): Ditto.
4224 (rs6000_skip_trampoline_code): Ditto.
4225 (rs6000_frame_saved_pc): Ditto.
4226 (rs6000_frame_chain): Ditto.
4227 (rs6000_register_name): Ditto.
4228 (rs6000_register_byte): Ditto.
4229 (rs6000_register_raw_size): Ditto.
4230 (rs6000_register_virtual_type): Ditto.
4231 (rs6000_register_convertible): Ditto.
4232 (rs6000_convert_from_func_ptr_addr): Ditto.
4233
bf072999
DJ
42342002-08-19 Daniel Jacobowitz <drow@mvista.com>
4235
4236 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4237 conditionally.
4238 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4239 MIPS_LINUX_JB_ELEMENT_SIZE.
4240 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4241 for MAX_REGISTER_RAW_SIZE arrays.
4242 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4243 MIPS_LINUX_JB_ELEMENT_SIZE.
4244
9b949a49
PM
42452002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4246
4247 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4248
6d3e79c6
AS
42492002-08-19 Aidan Skinner <aidan@velvet.net>
4250
4251 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4252 ada-valprint.c ada-tasks.c.
4253 (YYFILES): Add ada-exp.y.
4254 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4255 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4256 (ada-exp.tab.o): New target.
4257
06c0b04e
AC
42582002-08-18 Andrew Cagney <ac131313@redhat.com>
4259
4260 * regcache.c (regcache_xfer_part): New function.
4261 (regcache_raw_read_part): New function.
4262 (regcache_raw_write_part): New function.
4263 (regcache_cooked_read_part): New function.
4264 (regcache_cooked_write_part): New function.
4265 * regcache.h (regcache_raw_read_part): Declare.
4266 (regcache_raw_write_part): Declare.
4267 (regcache_cooked_read_part): Declare.
4268 (regcache_cooked_write_part): Declare.
4269
92d1e331
DJ
42702002-08-18 Daniel Jacobowitz <drow@mvista.com>
4271
4272 * remote.c (remote_open_1): Add async_p.
4273 (remote_async_open_1): Delete.
4274 (open_remote_target): Delete.
4275 (remote_open, extended_remote_open): Update calls to remote_open_1.
4276 (remote_async_open, extended_remote_async_open): Call
4277 remote_open_1 instead of remote_async_open_1.
4278
247055de
MK
42792002-08-19 Mark Kettenis <kettenis@gnu.org>
4280
4281 * blockframe.c: Fix a few coding standard violations.
4282
641eda39
MK
42832002-08-19 Mark Kettenis <kettenis@gnu.org>
4284
0b717710
MK
4285 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4286 here from ...
4287 * config/i386/tm-i386sco5.h: ... here. File removed.
4288 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4289
26d28e12 4290 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
4291 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4292 (TM_FILE): Set to tm-i386.h.
4293 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4294 * config/i386/tm-i386v.h: Remove file.
4295 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4296 instead of "i386/tm-i386v.h".
4297 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4298 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4299 "i386/tm-i386v.h".
4300 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4301 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4302 "i386/tm-i386.h".
4303
d4e0bab4
MK
43042002-08-18 Mark Kettenis <kettenis@gnu.org>
4305
4306 * config/i386/nm-i386v.h: Add protection against
4307 multiple-inclusion.
4308 (i386_register_u_addr): Remove prototype.
4309 (register_u_addr): New prototype.
4310 (REGISTER_U_ADDR): Redefine accordingly.
4311 * i386v-nat.c: Improve several comments.
4312 (i386_register_u_addr): Change signature and rename to
4313 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4314 ubase variable.
4315
46cac009
AC
43162002-08-18 Andrew Cagney <ac131313@redhat.com>
4317
4318 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4319 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4320 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4321 deprecated_extract_return_value.
4322 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4323 rename mips_o32o64_push_arguments.
4324 (mips_gdbarch_init): Update.
4325 (mips_extract_return_value): Delete.
4326 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4327 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4328 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4329 (mips_n32n64_extract_return_value): Clone
4330 mips_extract_return_value.
4331 (mips_store_return_value): Delete.
4332 (mips_o32_store_return_value): Clone mips_store_return_value.
4333 (mips_o64_store_return_value): Clone mips_store_return_value.
4334 (mips_eabi_store_return_value): Clone mips_store_return_value.
4335 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4336
d2e4a39e
AS
43372002-08-18 Aidan Skinner <aidan@velvet.net>
4338
0c30c098
AS
4339 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4340 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4341
43422002-08-18 Aidan Skinner <aidan@velvet.net>
4343
4344 * ada-lang.c: Run through gdb_indent.sh.
4345 * ada-lang.h: Run through gdb_indent.sh.
4346 * ada-tasks.c: Run through gdb_indent.sh.
4347 * ada-typeprint.c: Run through gdb_indent.sh.
4348 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 4349
01fc4e33
AC
43502002-08-18 Andrew Cagney <ac131313@redhat.com>
4351
4352 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4353 ABI.
4354
d8ee244c
MK
43552002-08-18 Mark Kettenis <kettenis@gnu.org>
4356
c38d8261
MK
4357 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4358
222db64c
MK
4359 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4360 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4361
c2848c82
MK
4362 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4363 write_register_gen instead of write_register_bytes.
4364
d8ee244c
MK
4365 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4366 i[3456]-*-osf1mk* configurations have been made obsolete.
4367 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4368 i[3456]86-*-osf1mk* hosts obsolete.
4369 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4370 targets obsolete.
4371 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4372 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4373 config/i386/i386m3.mt, config/i386/nm-m3.h,
4374 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4375 config/i386/i386mk.mh, config/i386/i386mk.mt,
4376 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4377 obsolete.
4378 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4379 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4380 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4381
61d8d407
AC
43822002-08-18 Andrew Cagney <ac131313@redhat.com>
4383
4384 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4385 (hppa_value_returned_from_stack): Declare.
4386 (hppa_extract_return_value): Declare.
4387 * config/pa/hppa.mt: New file.
4388 * configure.tgt: Recognize hppa*-*-*.
4389 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4390
0c52bd59
MK
43912002-08-18 Mark Kettenis <kettenis@gnu.org>
4392
4393 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4394 comment.
4395
b5686e99
MK
43962002-08-17 Mark Kettenis <kettenis@gnu.org>
4397
4398 * top.c (gdb_rl_operate_and_get_next): Make sure
4399 operate-and-get-next functions correctly even when the history
4400 list is completely filled.
4401
c1bab85b
AC
44022002-08-18 Andrew Cagney <ac131313@redhat.com>
4403
4404 * MAINTAINERS (Target Instruction Set Architectures): Rename
4405 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4406 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4407 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4408 already listed under Host/Native.
4409
4410 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4411 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4412 mips*-*-*.
4413
32089c7c
AC
44142002-08-17 Andrew Cagney <ac131313@redhat.com>
4415
4416 * config/ia64/ia64.mt: New file.
4417 * config/alpha/alpha.mt: New file.
4418 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4419 ia64-linux-gnu. Mention that ia64-elf is broken.
4420 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4421
b4671f85
MK
44222002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4423
4424 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4425 generic_func_frame_valid instead of func_frame_valid.
4426
c8edd8b4
JB
44272002-08-16 Joel Brobecker <brobecker@gnat.com>
4428
4429 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4430 procfs appears to be broken when debugging on multi-processor
4431 machines. So enable software single stepping in order to avoid
4432 using the procfs interface to do next/step operations, using
4433 internal breakpoints instead.
4434
4435 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4436 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4437 make this pc address equal to the value it would have if the
4438 system stepping capability was used. Also set a new flag used
4439 to ensure that we don't readjust the PC one more time later.
4440
4441 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4442 address by DECR_PC_AFTER_BREAK when software single step is
4443 in use for this architecture, as this has already been taken
4444 care of in handle_inferior_event().
4445
238617f6
JB
44462002-08-16 Joel Brobecker <brobecker@gnat.com>
4447
4448 * infrun.c (handle_inferior_event): Minor reformatting, to make
4449 a rather long condition expression easier to read.
4450
541a7aac
AC
44512002-08-16 Andrew Cagney <ac131313@redhat.com>
4452
4453 * Makefile.in (gdbtk.o): Move to end of file.
4454 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4455 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4456 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4457 (gdbtk-wrapper.o, gdbres.o): Ditto.
4458
f92d4a7b
AC
44592002-08-16 Andrew Cagney <ac131313@redhat.com>
4460
4461 * Makefile.in (copying.o): Separate out compile rule.
4462 (hpux-thread.o, procfs.o, signals.o): Ditto.
4463 (v850ice.o, z8k-tdep.o): Ditto.
4464 (tui-file.o): Move to TUI section.
4465 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4466 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4467
1cce71eb
JB
44682002-08-16 Joel Brobecker <brobecker@gnat.com>
4469
4470 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4471 skip_trampoline_code, for better namespace-proofing.
4472
4473 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4474
0851f23d
JB
44752002-08-16 Joel Brobecker <brobecker@gnat.com>
4476
4477 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4478
f8d40ec8
JB
44792002-08-16 Joel Brobecker <brobecker@gnat.com>
4480
4481 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4482 signal, check whether we hit a breakpoint before checking for a
4483 single step breakpoint. Otherwise, GDB fails to notice that a
4484 breakpoint has been hit when stepping onto a breakpoint.
4485
63d022e0
KS
44862002-08-16 Keith Seitz <keiths@redhat.com>
4487
4488 * gdb-events.sh (clear_gdb_event_hooks): New function.
4489 * gdb-events.c: Regenerate.
4490 * gdb-events.h: Regenerate.
4491
6e31adb3
AC
44922002-08-16 Andrew Cagney <ac131313@redhat.com>
4493
4494 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4495 not_a_sw_breakpoint.
4496 * breakpoint.h (bpstat_stop_status): Add parameter names.
4497
c8189ed1
GS
44982002-08-16 Grace Sainsbury <graces@redhat.com>
4499
4500 * remote.c (remote_insert_hw_breakpoint)
4501 (remote_remove_hw_breakpoint): Fix calculation of length field
4502 for Z-packet.
4503
d05285fa
MS
45042002-08-15 Michael Snyder <msnyder@redhat.com>
4505
466d7106
MS
4506 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4507 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4508 (supply_fpregset): Ditto.
4509
d05285fa
MS
4510 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4511 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4512 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 4513 (TARGET_READ_SP): Delete.
bf1f5b4c 4514 (DO_REGISTERS_INFO): Delete.
102182a9
MS
4515 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4516 Delete.
4517 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4518 from macros to functions.
bf1f5b4c 4519
d05285fa
MS
4520 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4521 (mips_register_convertible, mips_register_convert_to_virtual,
4522 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
4523 (mips_read_sp): New function.
4524 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
4525 (mips_do_registers_info): Make static.
4526 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
4527 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4528 (mips_register_convert_from_type, mips_register_convert_to_type):
4529 New functions.
4530 (mips_gdbarch_init): Set up function_start_offset,
4531 register_virtual_size, pc_in_sigtramp.
d05285fa 4532
e76f1f2e
AC
45332002-08-15 Andrew Cagney <ac131313@redhat.com>
4534
4535 * infcmd.c (vector_info): New function.
4536 (_initialize_infcmd): Add command "info vector".
4537 (print_vector_info): New function.
4538
4539 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4540 * gdbarch.h, gdbarch.c: Regenerate.
4541
4782dc19
AC
45422002-08-15 Andrew Cagney <ac131313@redhat.com>
4543
4544 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4545 ``print_all''. Only print vector registers when ``print_all''.
4546
23e3a7ac
AC
45472002-08-15 Andrew Cagney <ac131313@redhat.com>
4548
8e186fd6
AC
4549 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4550 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4551
23e3a7ac
AC
4552 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4553 Add `args' parameter.
4554 * gdbarch.h, gdbarch.c: Regenerate.
4555
4556 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4557
4558 * infcmd.c (float_info): Call print_float_info.
4559 (print_float_info): New function. By default, print the
4560 floating-point registers.
4561
4562 * arch-utils.h (default_print_float_info): Delete declaration.
4563 * arch-utils.c (default_print_float_info): Delete function.
4564
e0ca2bb9
MK
45652002-08-16 Mark Kettenis <kettenis@gnu.org>
4566
3f733acc
MK
4567 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4568 out define.
4569
7d8d2918
MK
4570 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4571 FRAME.
4572
1c7cc583
MK
4573 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4574 * configure.host: Make i[3456]86-*-aix host obsolete.
4575 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4576 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4577 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4578 config/i386/xm-i386aix.h: Make files obsolete.
4579 * i386aix-nat.c: Make file obsolete.
4580 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4581 (i386aix-nat.o): Make target obsolete.
4582
e0ca2bb9
MK
4583 * config/i386/nm-gnu.h: Removed.
4584 * config/i386/nm-i386gnu.h: New file.
4585 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4586 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4587 Moved here from ...
4588 * config/i386/tm-i386gnu.h: ... here. Removed.
4589 * config/i386/xm-i386gnu.h: Removed.
4590 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4591 (NAT_FILE): Set to nm-i386gnu.h.
4592 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4593 * i386-tdep.c: New file.
4594 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4595 (i386gnu-tdep.o): Specify dependencies.
4596
16057ec7 45972002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 4598
6b99ee2e
MK
4599 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4600 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4601 Adjust a few comments to reflect reality a bit closer.
4602 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4603 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4604 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4605 target_insert_watchpoint, target_remove_watchpoint):
4606 Move defines to ...
4607 * config/i386/nm-i386sco5.h: ... here.
4608 (kernel_u_size): Add prototype. Improve a few comments and add
4609 protection against multiple inclusion.
4610
d9a6f65c
MK
4611 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4612 out define.
4613
047eff6a
MK
4614 * uw-thread.c (SP_ARG0): Define if not already defined.
4615 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4616
dcdb1290
MK
4617 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4618
5d2d0b2a
MK
4619 * config/i386/tm-i386.h: Don't include "regcache.h".
4620
61113f8b
MK
4621 * i387-tdep.h (i387_print_float_info): New prototype.
4622 * i387-tdep.c (print_i387_value, print_i387_ext,
4623 print_i387_status_word, print_i387_control_word): Add `struct
4624 ui_file *' argument and use it for output.
4625 (i387_print_float_info): Renamed from i387_float_info. Add
4626 `struct gdbarch *' and `struct ui_file *' arguments and use the
4627 latter for output.
4628 * i386-tdep.c: Include "i387-tdep.h".
4629 (i386_gdbarch_init): Set print_float_info.
4630 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4631 (FLOAT_INFO): Remove define.
4632
46e0f506
MS
46332002-08-13 Michael Snyder <msnyder@redhat.com>
4634
4635 * mips-tdep.c (mips_push_arguments): Rename to
4636 mips_eabi_push_arguments, and tune for EABI.
4637 (MIPS_REGS_HAVE_HOME_P): Delete.
4638 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4639 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4640 Delete references to mips_regs_have_home_p.
4641
409268de
KS
46422002-08-14 Keith Seitz <keiths@redhat.com>
4643
4644 * Makefile.in (install-gdbtk): Create insight plugin directory.
4645 Install plugins.tcl file.
4646
ffc6a242
KS
46472002-08-14 Keith Seitz <keiths@redhat.com>
4648
4649 * configure.in: Move SUBDIRS to near top of the file so that
4650 --enable options may add things to it.
4651 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4652 * configure: Regenerate.
4653
ebafbe83
MS
46542002-08-13 Michael Snyder <msnyder@redhat.com>
4655
4656 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4657 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4658 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4659
32f6f25d
AC
46602002-08-13 Andrew Cagney <ac131313@redhat.com>
4661
4662 * vax-tdep.c (vax_get_saved_register): Delete function.
4663 (vax_gdbarch_init): Update.
4664 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4665 (ns32k_gdbarch_init): Update.
4666 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4667 (alpha_gdbarch_init): Update.
4668
53826de9
AC
46692002-08-13 Andrew Cagney <cagney@redhat.com>
4670
4671 * regcache.c (init_regcache_descr): Overallocate the
4672 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4673 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4674 nr_raw_registers.
4675 (set_register_cached): Add range checking assertions. Use
4676 current_regcache.
4677
16057ec7 46782002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
4679
4680 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4681 numbers for MMX registers.
4682
7b4c2dce
AC
46832002-08-13 Andrew Cagney <cagney@redhat.com>
4684
4685 * i386-tdep.c (i386_gdbarch_init): Use
4686 generic_unwind_get_saved_register.
4687
1e03ad20
KB
46882002-08-13 Kevin Buettner <kevinb@redhat.com>
4689
4690 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4691 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4692 target vector.
4693 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4694 Delete. Add comment regarding this now-deleted target method.
4695
548bcbec
SC
46962002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4697
4698 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4699 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4700 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4701 real PC and the page number (if it's within the memory bank window).
4702 (m68hc11_pseudo_register_write): Likewise when saving.
4703 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4704 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4705 (m68hc11_register_raw_size): And use 32-bit for it.
4706 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4707 16K memory bank is used by the prog; also use the virtual pc.
4708
7df11f59
SC
47092002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4710
4711 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4712 (m68hc11_gdbarch_init): Install it in gdbarch.
4713 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4714 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4715 (MSYMBOL_SIZE): New for documentation.
4716 (insn_return_kind): Enum to specify how a function returns.
4717 (frame_extra_info): Cleanup and record the return mode.
4718 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4719 register in address computation.
4720 (m68hc11_get_return_insn): New to obtain the return instruction used
4721 by the function.
4722 (m68hc11_frame_init_saved_regs): Take into account the return
4723 instruction used by the function for far and interrupt functions.
4724 (m68hc11_init_extra_frame_info): Take into account page register.
4725 (m68hc11_frame_args_address): Adjust according to the return mode.
4726 (show_regs): Print page register only when it's used.
4727
5706502a
SC
47282002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4729
4730 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4731 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4732 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4733 registers.
4734 (m68hc11_register_raw_size): Likewise.
4735
28fc6740
AC
47362002-08-13 Andrew Cagney <cagney@redhat.com>
4737
4738 * i386-tdep.c (i386_register_name): Handle mmx registers.
4739 (mmx_regnum_p): New function.
4740 (i386_mmx_names): New array.
4741 (mmx_num_regs): New variable.
4742 (i386_pseudo_register_read): New function.
4743 (i386_pseudo_register_write): New function.
4744 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4745
4746 * regcache.c (regcache_raw_read_unsigned): New function.
4747 (regcache_raw_read_signed): New function.
4748 * regcache.h (regcache_raw_read_unsigned): Declare.
4749 (regcache_raw_read_signed): Declare.
4750
a378f419
AC
47512002-08-13 Andrew Cagney <cagney@redhat.com>
4752
4753 * regcache.c (regcache_raw_read_as_address): Delete function.
4754 (regcache_cooked_read_signed): New function.
4755 (regcache_cooked_read_unsigned): New function.
4756 * regcache.h (regcache_cooked_read_signed): Declare.
4757 (regcache_cooked_read_unsigned): Declare.
4758 (regcache_raw_read_as_address): Delete declaration.
4759
4760 * blockframe.c (generic_read_register_dummy): Use
4761 regcache_cooked_read_unsigned.
4762 * i386-tdep.c (i386_extract_struct_value_address): Use
4763 regcache_cooked_read_unsigned.
4764
81967506
SC
47652002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4766
4767 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4768 double sizes according to ELF ABI flags.
4769 (gdbarch_tdep): Record elf_flags.
4770
ffe1f3ee
SC
47712002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4772
4773 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4774 (m6812_prolog): They can appear in 68HC12 function prologue.
4775 (m68hc11_frame_chain): Cleanup.
4776
98216c5d
AC
47772002-08-12 Andrew Cagney <cagney@redhat.com>
4778
4779 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4780 declarations.
4781 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4782 (i386_linux_register_raw_size): Delete function.
4783 (i386_linux_init_abi): Update.
4784 * i386-tdep.c (i386_register_raw_size): Delete function.
4785 (i386_register_byte): Delete function.
4786 (i386_gdbarch_init): Update.
4787 (i386_register_size): Delete array.
4788 (i386_register_offset): Delete array.
4789
4790 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4791 (REGISTER_RAW_SIZE): Delete macro.
4792 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4793 (REGISTER_BYTE): Delete macro.
4794
3b19021e
AS
47952002-08-11 Aidan Skinner <aidan@velvet.net>
4796
4797 * ada-lang.c (ada_lookup_partial_symbol)
4798 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4799 prototype names so that grep ^func works properly.
4800
4801 * ada-lang.c (ada_array_element_type)
4802 (ada_lookup_partial_symbol): Fix typos in parameter list.
4803
4804 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4805 Fix prototype names so that grep ^func works properly.
4806
b063e7a2
AC
48072002-08-10 Andrew Cagney <cagney@redhat.com>
4808 Elena Zannoni <ezannoni@redhat.com>
4809 Martin M. Hunt <hunt@redhat.com>
4810
4811 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4812 (build_builtin_type_vec128i): Set the vector bit.
4813 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4814 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4815 (build_builtin_type_vec64): New function.
4816 (build_builtin_type_vec64i): New function.
4817 (build_gdbtypes): Initialize builtin_type_vec64 and
4818 builtin_type_vec64i.
4819
a7e3c2ad
AC
48202002-08-09 Andrew Cagney <cagney@redhat.com>
4821
4822 * regcache.c (regcache_dump): Compare the register offset
4823 with REGISTER_BYTE.
4824 * arch-utils.c (generic_register_byte): New function.
4825 * arch-utils.h (generic_register_byte): Declare.
4826 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4827 * gdbarch.h, gdbarch.c: Regenerate.
4828
af030b9a
AC
48292002-08-09 Andrew Cagney <cagney@redhat.com>
4830
4831 * regcache.c: Include "gdbcmd.h"
4832 (_initialize_regcache): Add commands "maintenance print
4833 registers", "maintenance print raw-registers" and "maintenance
4834 print cooked-registers".
4835 (enum regcache_dump_what): Define.
4836 (dump_endian_bytes): New function.
4837 (regcache_dump): New function.
4838 (regcache_print): New function.
4839 (maintenance_print_registers): New function.
4840 (maintenance_print_raw_registers): New function.
4841 (maintenance_print_cooked_registers): New function.
4842 * Makefile.in (regcache.o): Update dependencies.
4843
cb3d25d1
MS
48442002-08-09 Michael Snyder <msnyder@redhat.com>
4845
4846 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4847 (mips_push_arguments): Correct some comments. Use paddr_nz
4848 for printing addresses in debug output. Replace static
4849 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4850 (mips_n32n64_push_arguments): New function, cloned from
4851 mips_push_arguments and tuned for the n32/n64 ABI.
4852 (mips_push_register): Buffer needs dynamic allocation.
4853 (mips_print_register): Ditto.
4854 (do_gp_register_row): Ditto.
4855 (mips_store_return_value): Ditto.
4856 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4857
2163ab9d
DH
48582002-08-09 Don Howard <dhoward@redhat.com>
4859
4860 * memattr.c (mem_info_command): Print special case of upper bound
4861 as max CORE_ADDR + 1.
4862
b78bcb18
MS
48632002-08-08 Michael Snyder <msnyder@redhat.com>
4864
4865 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4866 returns structs by ref if they're too big to fit in two registers.
4867
ffabd70d
KB
48682002-08-09 Kevin Buettner <kevinb@redhat.com>
4869
4870 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4871 saved regs value.
4872 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4873 mips_find_saved_regs().
4874 (mips_pop_frame): Likewise.
4875
fbcdb4a3
KB
48762002-08-09 Kevin Buettner <kevinb@redhat.com>
4877
4878 * blockframe.c (frame_saved_regs_register_unwind): Revise
4879 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4880 frames are in use.
4881
3c3bea1c
GS
48822002-08-09 Grace Sainsbury <graces@redhat.com>
4883
4884 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4885 T-packets; the 'a' is not taken as a register number.
4886 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4887 (remote_stopped_data_address): New functions; add to target
4888 vector.
4889 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4890 prototypes to match other implementations of this
4891 function. replace integer argument with pointer -- the length
4892 field in the Z-packet is the length of what is pointed to or 1 if
4893 pointer is null. Add to target vector.
4894 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4895 target vector.
4896
4897 From Mark Salter:
4898 * remote.c (remote_wait): Add support to extract optional
4899 watchpoint information from T-packet. Ignore unrecognized
4900 optional info in T-packet.
4901 (remote_async_wait): Ditto.
4902
5d1d95de
CV
49032002-08-09 Corinna Vinschen <vinschen@redhat.com>
4904
4905 * cli/cli-dump.c: Change fopen modes to use binary open modes
4906 as defined in include/fopen-bin.h throughout.
4907
c86b5b38
MS
49082002-08-08 Michael Snyder <msnyder@redhat.com>
4909
4910 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4911
b30590dc
KB
49122002-08-08 Kevin Buettner <kevinb@redhat.com>
4913
4914 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4915 assertion failure by returning early after a warning.
4916
498868ed
KB
49172002-08-08 Kevin Buettner <kevinb@redhat.com>
4918
4919 * mips-tdep.c (mips_find_saved_regs): Make static.
4920 (mips_frame_init_saved_regs): New function.
4921 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4922 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4923 (mips_find_saved_regs): Delete declaration.
4924
b2dd6311
GS
49252002-08-08 Grace Sainsbury <graces@redhat.com>
4926
3c3bea1c
GS
4927 * remote.c (remote_wait, remote_async_wait): Change
4928 thread_num from int to ULONGEST.
4929 (unpack_varlen_hex): Change result parameter from
4930 int * to ULONGEST *.
b2dd6311 4931
ea47855f
AC
49322002-08-08 Andrew Cagney <ac131313@redhat.com>
4933
4934 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4935 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4936 powerpc*-*-*.
4937 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4938
69db8bae
AC
49392002-08-08 Andrew Cagney <cagney@redhat.com>
4940
4941 * gcore.c (override_derive_stack_segment): Delete variable.
4942 (preempt_derive_stack_segment): Delete function.
4943 (derive_stack_segment): Delete function.
4944 (default_derive_stack_segment): Renamed to derive_stack_segment.
4945 (override_derive_heap_segment): Delete variable.
4946 (preempt_derive_heap_segment): Delete function.
4947 (derive_heap_segment): Delete function.
4948 (default_derive_heap_segment): Rename to derive_heap_segment.
4949
cb811fe7
MS
49502002-08-06 Michael Snyder <msnyder@redhat.com>
4951
4952 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4953 * mips-tdep.c (mips_EABI_use_struct_convention,
4954 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4955 New functions. (mips_use_struct_convention): Delete.
4956 (mips_gdbarch_init): set use_gdbarch_convention.
4957
8b389c40
MS
49582002-08-06 Michael Snyder <msnyder@redhat.com>
4959
4960 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4961 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4962 mips_o32_reg_struct_has_addr): New functions.
4963 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4964
5c27f28a
AC
49652002-08-07 Andrew Cagney <ac131313@redhat.com>
4966
4967 * regcache.c (pseudo_register): Delete function.
4968 (fetch_register): Delete function.
4969 (store_register): Delete function.
4970 (regcache_raw_read, legacy_read_register_gen): Use
4971 target_fetch_registers instead of fetch_register.
4972 (legacy_write_register_gen, regcache_raw_write): Use
4973 target_store_register instead of store_register.
4974 (write_register_bytes): Ditto.
4975
4976 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4977 (STORE_PSEUDO_REGISTER): Delete.
4978 * gdbarch.h, gdbarch.c: Regenerate.
4979
5b331675
CV
49802002-08-06 Corinna Vinschen <vinschen@redhat.com>
4981
4982 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4983 write dump file binary.
4984
6acdf5c7
MS
49852002-08-05 Michael Snyder <msnyder@redhat.com>
4986
4987 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4988 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4989 (mips_gdbarch_init): Set N32 target to be mips64.
4990
b2f01c35
KB
49912002-08-06 Kevin Buettner <kevinb@redhat.com>
4992
4993 * frame.c (find_saved_register): Break out of loop once saved
4994 register address is found. Don't mention sparc in loop comment
4995 anymore.
4996
63db5580
KB
49972002-08-06 Kevin Buettner <kevinb@redhat.com>
4998
4999 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5000 mips_default_saved_regsize to 8.
5001
5e34e75e
AC
50022002-08-06 Andrew Cagney <ac131313@redhat.com>
5003
5004 * gcore.c: Do not include <sys/procfs.h>.
5005 * Makefile.in (gcore.o): Update dependencies.
5006
eb4c54a2
AC
50072002-08-06 Andrew Cagney <cagney@redhat.com>
5008
5009 * configure.tgt: Make arc-*-* obsolete.
5010 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5011 * MAINTAINERS: Make arc-elf obsolete.
5012 * arc-tdep.c: Make file obsolete.
5013 * config/arc/arc.mt: Ditto.
5014 * config/arc/tm-arc.h: Ditto.
5015
ced15480
TR
50162002-08-05 Theodore A. Roth <troth@verinet.com>
5017
c1bab85b 5018 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 5019
b4743822
AC
50202002-08-05 Andrew Cagney <ac131313@redhat.com>
5021
5022 * mcore-tdep.c (mcore_gdbarch_init): Use
5023 generic_unwind_get_saved_register instead of
5024 generic_get_saved_register.
5025 * v850-tdep.c (v850_gdbarch_init): Ditto.
5026 * frv-tdep.c (frv_gdbarch_init): Ditto.
5027 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5028 * s390-tdep.c (s390_gdbarch_init): Ditto.
5029 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5030 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5031 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5032
3956d554
JB
50332002-08-05 Joel Brobecker <brobecker@gnat.com>
5034
5035 * objfiles.h: Add missing #include "symfile.h"
5036
5037 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5038
8249c0d6
AC
50392002-08-04 Andrew Cagney <ac131313@redhat.com>
5040
5041 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5042 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5043 of FIELD_BITSIZE.
5044
b9d14705
DJ
50452002-08-04 Daniel Jacobowitz <drow@mvista.com>
5046
5047 * NEWS: Cleanup and nitpick.
5048
dd73b9bb
AC
50492002-08-03 Andrew Cagney <ac131313@redhat.com>
5050
5051 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5052
043a27f8
AC
50532002-08-03 Andrew Cagney <ac131313@redhat.com>
5054
5055 * Makefile.in (gdbtk-bp.o): Update dependencies.
5056 (gdbtk-register.o): Ditto.
5057 (gdbtk-varobj.o): Ditto.
5058
46ce284d
AC
50592002-08-03 Andrew Cagney <cagney@redhat.com>
5060
5061 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5062 m68hc11_fetch_pseudo_register.
5063 (m68hc11_pseudo_register_write): Replace
5064 m68hc11_store_pseudo_register.
5065 (m68hc11_gdbarch_init): Update.
5066
b66d6d2e
AC
5067Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5068
5069 * gdbarch.sh: Include "gdb_string.h".
5070 * gdbarch.c: Regenerate.
5071
5072 * regcache.c: Include "gdb_string.h".
5073 * ax-general.c: Ditto.
5074 * varobj.c: Ditto.
5075 * std-regs.c: Ditto.
5076 * fbsd-proc.c: Ditto.
5077 * thread.c: Ditto.
5078
5079 * Makefile.in (regcache.o): Update dependencies.
5080 (thread.o, gdbarch.o): Ditto.
5081 (ax-general.o, gdbarch.o): Ditto.
5082 (varobj.o, std-regs.o): Ditto.
5083 (fbsd-proc.o): Specify dependencies.
5084
29e1842b
AC
50852002-08-02 Andrew Cagney <cagney@redhat.com>
5086
5087 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5088 regnum.
5089 (regcache_cooked_write): Ditto.
5090
68365089
AC
50912002-08-02 Andrew Cagney <ac131313@redhat.com>
5092
5093 * regcache.c (regcache_cooked_read): New function.
5094 (regcache_cooked_write): New function.
5095 (read_register_gen): Rewrite using regcache_cooked_read.
5096 (write_register_gen): Rewrite using regcache_cooked_write.
5097
5098 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5099 Declare.
5100
d8124050
AC
51012002-08-02 Andrew Cagney <cagney@redhat.com>
5102
5103 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5104 Replace the architecture methods register_read and register_write.
5105 * gdbarch.h, gdbarch.c: Regenerate.
5106 * regcache.c (init_regcache_descr): Update.
5107 (read_register_gen): Update.
5108 (write_register_gen): Update.
5109 (supply_register): Update comment.
5110
5111 * sh-tdep.c (sh_gdbarch_init): Update.
5112 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5113 `regcache' and `gdbarch' parameters. Make `buffer' a void
5114 pointer. Update code.
5115 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5116 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5117 void pointer. Update code.
5118 (sh64_register_write): Delete.
5119 (sh4_register_read): Delete.
5120 (sh64_register_read): Delete.
5121 (sh4_register_write): Delete.
5122 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5123 void pointer, `to' parameter a void pointer.
5124 (sh_sh64_register_convert_to_raw): Ditto.
5125
a6425924
KB
51262002-08-01 Kevin Buettner <kevinb@redhat.com>
5127
5128 * mips-tdep.c (mips_register_virtual_type): Use architecture
5129 invariant return values.
5130
ff5922b5
AC
51312002-08-01 Andrew Cagney <cagney@redhat.com>
5132
5133 * linux-proc.c: Include "gdb_string.h".
5134 * Makefile.in (linux-proc.o): Update dependency list.
5135
32a6503c
KB
51362002-08-01 Kevin Buettner <kevinb@redhat.com>
5137
5138 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5139 comment.
5140
ccaa32c7
GS
51412002-08-01 Grace Sainsbury <graces@redhat.com>
5142
5143 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5144 to_insert_watchpoint, to_remove_watchpoint,
5145 to_stopped_by_watchpoint, to_stopped_data_address,
5146 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5147 target vecctor. Define their corresponding macros so they call
5148 them.
5149
5150 * target.c: Add default and debug versions of for
5151 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5152 to_insert_watchpoint, to_remove_watchpoint,
5153 to_stopped_by_watchpoint, to_stopped_data_address,
5154 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5155
78fde5f8
KB
51562002-08-01 Kevin Buettner <kevinb@redhat.com>
5157
5158 * mips-tdep.c (mips_register_virtual_type): New function.
5159 (mips_gdbarch_init): Register mips_register_virtual_type()
5160 with gdbarch machinery.
5161 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5162 this file instead of tm-bigmips.h.
5163 (MIPS_REGSIZE): Delete this macro.
5164 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5165 multiarch version in mips-tdep.c will be found.
5166
db034ac5
AC
51672002-08-01 Andrew Cagney <cagney@redhat.com>
5168
5169 * NEWS: Menion that CHILL has been made obsolete.
5170
5171 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
5172 * stabsread.c (read_range_type): Ditto.
5173 * gdbtypes.h: Ditto.
5174 * language.c (binop_type_check): Ditto.
5175 (binop_result_type): Ditto.
5176 (integral_type): Ditto.
5177 (character_type): Ditto.
5178 (string_type): Ditto.
5179 (boolean_type): Ditto.
5180 (structured_type): Ditto.
5181 (lang_bool_type): Ditto.
5182 (binop_type_check): Ditto.
5183 * language.h (_LANG_chill): Ditto.
5184 * dwarfread.c (set_cu_language): Ditto.
5185 * dwarfread.c (CHILL_PRODUCER): Ditto.
5186 * dwarfread.c (handle_producer): Ditto.
5187 * expression.h (enum exp_opcode): Ditto.
5188 * eval.c: Ditto for comments.
5189 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5190 * expprint.c (print_subexp): Ditto.
5191 (print_subexp): Ditto.
5192 * valops.c (value_cast): Ditto.
5193 (search_struct_field): Ditto.
5194 * value.h (COERCE_VARYING_ARRAY): Ditto.
5195 * symfile.c (init_filename_language_table): Ditto.
5196 (add_psymbol_with_dem_name_to_list): Ditto.
5197 * valarith.c (value_binop): Ditto.
5198 (value_neg): Ditto.
5199 * valops.c (value_slice): Ditto.
5200 * symtab.h (union language_specific): Ditto.
5201 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5202 (SYMBOL_DEMANGLED_NAME): Ditto.
5203 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5204 * defs.h (enum language): Ditto.
5205 * symtab.c (got_symtab): Ditto.
5206 * utils.c (fprintf_symbol_filtered): Ditto.
5207
5208 * ch-typeprint.c: Make file obsolete.
5209 * ch-valprint.c: Make file obsolete.
5210 * ch-lang.h: Make file obsolete.
5211 * ch-exp.c: Make file obsolete.
5212 * ch-lang.c: Make file obsolete.
5213
5214 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5215 CHILL_LIB.
5216 (TARGET_FLAGS_TO_PASS): Ditto.
5217 (CHILLFLAGS): Obsolete.
5218 (CHILL): Obsolete.
5219 (CHILL_FOR_TARGET): Obsolete.
5220 (CHILL_LIB): Obsolete.
5221 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5222 ch-valprint.c.
5223 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5224 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5225 ch-lang.o.
5226 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5227 targets.
5228
8aaf0b47
JB
52292002-07-31 Joel Brobecker <brobecker@gnat.com>
5230
5231 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5232 This does not change anything at the moment, but will be helpful
5233 later when full Ada support is integrated.
5234
f3a7b3a5
KB
52352002-07-31 Kevin Buettner <kevinb@redhat.com>
5236
5237 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5238 help message.
5239
fb850278
KB
52402002-07-31 Kevin Buettner <kevinb@redhat.com>
5241
5242 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5243 and save it in a local variable. Use variable in later test.
5244
e3bddbfa
KB
52452002-07-31 Kevin Buettner <kevinb@redhat.com>
5246
5247 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5248 test. (Thanks to Daniel Jacobowitz.)
5249
28d169de
KB
52502002-07-31 Kevin Buettner <kevinb@redhat.com>
5251
5252 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5253 (mips_abi_strings): Add "n64".
5254 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5255
7fe7e44e
KB
52562002-07-31 Kevin Buettner <kevinb@redhat.com>
5257
5258 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5259 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5260
c6caf090
KB
52612002-07-31 Kevin Buettner <kevinb@redhat.com>
5262
5263 * utils.c (host_pointer_to_address, address_to_host_pointer):
5264 Use gdb_assert() instead of explicit call to internal_error().
5265
c41669e0
KB
52662002-07-30 Kevin Buettner <kevinb@redhat.com>
5267
5268 * Makefile.in (rs6000-nat.o): Update dependencies.
5269
5270 From Nicholas Duffek:
5271 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5272 (aix-thread.o): New rule.
5273 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5274 * config/powerpc/aix432.mh: New file.
5275
2fda4977
DJ
52762002-07-30 Daniel Jacobowitz <drow@mvista.com>
5277
5278 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5279 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5280 (fetch_core_registers, ppc_linux_supply_gregset)
5281 (ppc_linux_supply_fpregset): New functions.
5282 (ppc_linux_regset_core_fns): New.
5283 (_initialize_ppc_linux_tdep): Call add_core_fns.
5284 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5285 and ppc_linux_supply_gregset.
5286 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5287 (supply_fpregset): Call ppc_linux_supply_fpregset.
5288 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5289 corelow.o.
5290 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5291
729051e6
DJ
52922002-07-30 Daniel Jacobowitz <drow@mvista.com>
5293
5294 * symtab.c (lookup_symbol): Demangle before lowercasing.
5295
5f8a3188
AC
52962002-07-30 Andrew Cagney <ac131313@redhat.com>
5297
5298 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5299 declaration.
5300 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5301 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5302 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5303 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5304 "gdb_string.h".
5305 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5306 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5307 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5308 (avr-tdep.o, mon960-rom.o): Ditto.
5309 (aout_stabs_gnu_h): Define.
5310 (symtab_h): Remove $(gdb_obstack_h).
5311
67f07146
JB
53122002-07-30 Jim Blandy <jimb@redhat.com>
5313
5314 Patch from David Carlton <carlton@math.stanford.edu>:
5315 * gdbinit.in: Move the `dir' commands that add GDB's own source
5316 directory to the search path to the end, so that the `gdb' source
5317 directory will be searched first.
5318
04ea0df1
AC
53192002-07-29 Andrew Cagney <ac131313@redhat.com>
5320
5321 * gdb_obstack.h: New file.
5322 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5323 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5324 * objfiles.h: Include "gdb_obstack.h".
5325 * Makefile.in (gdb_obstack_h): Define.
5326 (symtab_h): Add $(gdb_obstack_h).
5327 (objfiles_h): Add $(gdb_obstack_h).
5328
5329 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5330 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5331 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5332 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5333 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5334 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5335 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5336 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5337
5338 * Makefile.in (bcache.o): Update dependencies.
5339 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5340 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5341 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5342 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5343 (stabsread.o, symfile.o, symmisc.o): Ditto.
5344 (symtab.o, typeprint.o, macroexp.o): Ditto.
5345 (macrotab.o, mdebugread.o): Ditto.
5346 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5347 (coff_ecoff_h, aout_aout64_h): Define.
5348 (aout_stabs_gnu_h, libaout_h): Define.
5349
d138e37a
AC
53502002-07-29 Andrew Cagney <cagney@redhat.com>
5351
5352 * regcache.c (struct regcache_descr): Rename nr_registers to
5353 nr_cooked_registers. Revise comments describing the structure
5354 member fields.
5355 (init_regcache_descr): Update.
5356 (init_legacy_regcache_descr): Update.
5357 (read_register_gen, write_register_gen): When a cooked register in
5358 the raw register range, directly access the value from the raw
5359 register cache.
5360
460e6ec3
AC
53612002-07-29 Andrew Cagney <ac131313@redhat.com>
5362
5363 * z8k-tdep.c: Do not include "obstack.h".
5364 * h8300-tdep.c, h8500-tdep.c: Ditto.
5365 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5366 * valprint.c, v850-tdep.c: Ditto.
5367 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5368 * mn10200-tdep.c: Ditto.
5369
5370 * Makefile.in (z8k-tdep.o): Update dependencies.
5371 (m68hc11-tdep.o, valprint.o): Ditto.
5372 (v850-tdep.o, d10v-tdep.o): Ditto.
5373 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5374 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5375 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5376 (sh_opc_h, gdb_sim_sh_h): Define.
5377 (elf_sh_h, elf_bfd_h): Define.
5378 (opcode_m68hc11_h): Define.
5379 (OPCODES_SRC, OPCODES_DIR): define.
5380 (OPCODES): Use $(OPCODES_DIR).
5381 (gdb_sim_d10v_h): Rename sim_d10v_h.
5382 (gdb_sim_arm_h): Rename sim_arm_h.
5383
790c9cf0
KB
53842002-07-26 Kevin Buettner <kevinb@redhat.com>
5385
5386 * utils.c (host_pointer_to_address, address_to_host_pointer):
5387 Change internal_error() message to indicate function responsible
5388 for the error.
5389
9647fa49
KB
53902002-07-26 Kevin Buettner <kevinb@redhat.com>
5391
5392 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5393 calls to local_hex_string_custom().
5394
dabbe2c0
KB
53952002-07-26 Kevin Buettner <kevinb@redhat.com>
5396
5397 * irix5-nat.c: Move IRIX shared library support from here...
5398 * solib-irix.c: ...to here. Revised substantially to work with
5399 generic solib framework.
5400
b96d0a4e
KB
5401 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5402 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5403 * mips-irix-tdep.c: New file.
5404
313fb2f6
KB
5405 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5406 (mips-irix-tdep.o, solib-irix.o): New rules.
5407 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5408 solib-irix.o.
5409 * config/mips/irix6.mt (TDEPFILES): Likewise.
5410 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5411
ab2eaf26
KB
54122002-07-26 Kevin Buettner <kevinb@redhat.com>
5413
177e4768 5414 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
5415 disabled (via ``#if 0'') includes.
5416
7244546a
KB
54172002-07-26 Kevin Buettner <kevinb@redhat.com>
5418
5419 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5420 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5421 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5422 Add support for the fpscr register.
5423 * rs6000-nat.c (regmap, fetch_inferior_registers)
5424 (store_inferior_registers, fetch_core_registers): Likewise.
5425
dd7be90a
KB
54262002-07-26 Kevin Buettner <kevinb@redhat.com>
5427
5428 * rs6000-nat.c (language.h): Include.
5429 (special_regs): Delete this array.
5430 (regmap): New function.
5431 (fetch_register, store_register): Use regmap() to map gdb
5432 register numbers to ptrace register numbers. Also, use
5433 outputs from regmap() to make decisions regarding type of
5434 ptrace() call to make. In particular, don't compare against
5435 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5436 (fetch_inferior_registers, store_inferior_registers): Where
5437 possible, obtain register numbers from tdep struct. Don't
5438 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5439 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5440 (LAST_UISA_SP_REGNUM): Delete.
5441
11bf77db
KB
54422002-07-25 Kevin Buettner <kevinb@redhat.com>
5443
5444 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
5445 (fetch_registers, store_register, fetch_core_registers): Don't
5446 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
5447 regcache_collect() as appropriate.
5448 (find_toc_address): Format hex address with local_hex_string().
5449
06afebeb
AC
54502002-07-25 Andrew Cagney <ac131313@redhat.com>
5451
5452 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5453 bfd/elf32-frv.c.
5454
8c554d79
TT
54552002-07-24 Tom Tromey <tromey@redhat.com>
5456
5457 * jv-exp.y: Marked all strings with _().
5458 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5459 internal_error.
5460 (MethodInvocation, CastExpression, parse_number, yyerror,
5461 java_type_from_name, push_expression_name, yylex): Typo fixes.
5462
e4c242d9
DJ
54632002-07-24 Daniel Jacobowitz <drow@mvista.com>
5464
5465 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5466 (tee_file_flush, tee_file_write, tee_file_fputs)
5467 (tee_file_isatty): New.
5468 * ui-file.h (tee_file_new): Add prototype.
5469
ebf56fd3
AS
54702002-07-24 Aidan Skinner <aidan@velvet.net>
5471
5472 * ada-lang.c: Change k&r style function definitions to prototyped
5473 form.
5474 * ada-typeprint.c: Change k&r style function definitions to prototyped
5475 form.
5476 * ada-valprint.c: Change k&r style function definitions to prototyped
5477 form.
5478
7fb623f7
AC
54792002-07-24 Andrew Cagney <cagney@redhat.com>
5480
5481 * README: Remove reference to remote-bug.
5482 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5483 remote-bug.c.
5484 (m88k-nat.o): Delete rule.
5485 (m88k-tdep.o): Delete rule.
5486 (remote-bug.o): Delete rule.
5487 * MAINTAINERS: Mark as obsolete.
5488 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5489 * m88k-tdep.c: Make file obsolete.
5490 * config/m88k/m88k.mh: Ditto.
5491 * config/m88k/delta88v4.mh: Ditto.
5492 * config/m88k/delta88v4.mt: Ditto.
5493 * config/m88k/delta88.mt: Ditto.
5494 * config/m88k/delta88.mh: Ditto.
5495 * remote-bug.c: Ditto.
5496 * config/m88k/tm-delta88.h: Ditto.
5497 * config/m88k/nm-delta88v4.h: Ditto.
5498 * config/m88k/xm-delta88.h: Ditto.
5499 * config/m88k/xm-dgux.h: Ditto.
5500 * config/m88k/tm-m88k.h: Ditto.
5501 * config/m88k/nm-m88k.h: Ditto.
5502 * config/m88k/tm-delta88v4.h: Ditto.
5503 * m88k-nat.c: Ditto.
5504 * cxux-nat.c: Ditto.
5505 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5506 and m88*-*-* obsolete.
5507 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5508 m88*-*-* obsolete.
5509
37611a2b
AC
55102002-07-24 Andrew Cagney <cagney@redhat.com>
5511
5512 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5513 constant. Same for local pointer variables.
5514 (extract_signed_integer): Ditto.
5515 * defs.h (extract_unsigned_integer): Update.
5516 (extract_signed_integer): Update.
5517
1aaa5f99
AC
55182002-07-24 Andrew Cagney <cagney@redhat.com>
5519
5520 * regcache.c (regcache_raw_write): Change buf parameter to a
5521 constant void pointer.
5522 (regcache_raw_read): Change buf parameter to a void pointer.
5523 (legacy_write_register_gen): Change myaddr parameter a constant
5524 void pointer.
5525 (supply_register): Change val parameter to a const void pointer.
5526 * regcache.h (regcache_raw_write): Update declaration.
5527 (regcache_raw_read): Update declaration.
5528 (supply_register): Update declaration.
5529
b4f5539f
TT
55302002-07-24 Tom Tromey <tromey@redhat.com>
5531
5532 * defs.h (gdb_readline_wrapper): Declare.
5533 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5534 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5535 * top.c (gdb_readline_wrapper): New function.
5536 (command_line_input): Use it.
5537
0818c12a
AC
55382002-07-24 Andrew Cagney <cagney@redhat.com>
5539
5540 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5541 regcache_read and regcache_write.
5542 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5543 * regcache.c: Update.
5544 * sh-tdep.c (sh64_push_arguments): Update comment.
5545 (sh_pseudo_register_read): Update.
5546 (sh_pseudo_register_write): Update.
5547 (sh4_register_read): Update.
5548 (sh4_register_write): Update.
5549 (sh64_pseudo_register_read): Update.
5550 (sh64_pseudo_register_write): Update.
5551 (sh64_register_read): Update.
5552 (sh64_register_write): Update.
5553 * i386-tdep.c (i386_extract_return_value): Update.
5554 (i386_extract_struct_value_address): Update.
5555 (i386_extract_return_value): Update.
5556 * blockframe.c (generic_read_register_dummy): Update.
5557 (generic_call_dummy_register_unwind): Update
5558 * infrun.c (write_inferior_status_register): Update.
5559
f7321c06
JB
55602002-07-23 Jim Blandy <jimb@redhat.com>
5561
5562 * parser-defs.h (expression_context_pc): Make this extern.
5563 (Thanks to Michael Snyder.)
5564
2037aebb
AC
55652002-07-23 Andrew Cagney <ac131313@redhat.com>
5566
5567 GDB 5.2.1 released from 5.2 branch.
5568 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5569 * README: Update to mention 5.2.1.
5570
66504d44
MS
55712002-07-23 Mark Salter <msalter@redhat.com>
5572
5573 * remote.c (remote_read_bytes): Fix check for error.
5574
27bae383
KB
55752002-07-22 Kevin Buettner <kevinb@redhat.com>
5576
5577 * aix-thread.c (language.h): Include.
5578 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5579 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5580 Print newlines at end of debug messages.
5581 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5582 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5583
55842002-07-22 Kevin Buettner <kevinb@redhat.com>
5585
5586 * aix-thread.c (ppc-tdep.h): Include.
5587 (special_register_p): New function.
5588 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5589 (store_regs_user_thread): Use register number information from
5590 gdbarch_tdep struct instead of hardcoded offsets relative to
5591 FIRST_UISA_SP_REGNUM.
5592 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5593 special_register_p() instead of using FPLAST_REGNUM and
5594 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5595 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5596 will be MQ's register number.
5597
55982002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
5599
5600 * aix-thread.c (ops): Rename to aix_thread_ops.
5601 (base_ops): Rename to base_target.
5602 (ops_attach): Rename to aix_thread_attach.
5603 (ops_detach): Rename to aix_thread_detach.
5604 (ops_resume): Rename to aix_thread_detach.
5605 (ops_wait): Rename to aix_thread_wait.
5606 (ops_kill): Rename to aix_thread_kill.
5607 (init_ops): Rename to init_aix_thread_ops.
5608 (ops_fetch_register): Rename to aix_thread_fetch_register.
5609 (ops_store_register): Rename to aix_thread_store_register.
5610 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5611 (ops_thread_alive): Rename to aix_thread_thread_alive.
5612 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5613 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5614 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5615 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5616 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5617 (store_regs_lib): Rename to store_regs_user_thread.
5618 (store_regs_kern): Rename to store_regs_kernel_thread.
5619
27bae383 56202002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
5621
5622 * aix-thread.c (ops_prepare_to_store): Eliminate.
5623 (init_ops): Don't initialize ops.prepare_to_store.
5624 (store_regs_kern): Pre-fetch register buffers from child,
5625 because some registers may not be in the cache. Copy
5626 regs from register cache only if they are cached.
5627 (store_regs_lib): Copy regs from register cache only
5628 if they are cached.
5629 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5630 fill_gprs64): Ditto.
5631
61c5da0b
KB
56322002-07-22 Kevin Buettner <kevinb@redhat.com>
5633
5634 * aix-thread.c (gdb_assert.h): Include.
5635 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5636 register sizes (from register cache) match size of buffer holding
5637 register data.
5638 (fill_sprs32): Change parameter types to match those in the ptrace()
5639 buffer.
5640 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5641 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5642
56432002-07-22 Michael Snyder <msnyder@redhat.com>
5644
5645 * aix-thread.c (supply_sprs64): Cosmetic change.
5646 (supply_sprs32): Cosmetic change.
5647 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5648 (fill_sprs64): Use regcache_collect instead of read_register.
5649 (store_regs_lib): Use regcache_collect instead of
5650 read_register. Use fill_sprs32 instead of fill_sprs64,
5651 if debugging a 32-bit architecture.
5652 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5653 out of the register cache, instead of passing a pointer into
5654 the register cache directly to ptrace. Use regcache_collect
5655 insteaad of read_register.
5656 (ops_prepare_to_store): Use target_read_registers instead
5657 of read_register_bytes.
5658
36479eb1
AS
56592002-07-20 Aidan Skinner <aidan@velvet.net>
5660
5661 * MAINTAINERS: Add self under write after approval.
5662
80ae6ee2
AS
56632002-07-20 Aidan Skinner <aidan@velvet.net>
5664
5665 * ada-tasks.c: Change k&r style function definitions to prototyped
5666 form.
5667
8a8ab2b9
AC
56682002-07-19 Andrew Cagney <ac131313@redhat.com>
5669
5670 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5671 * x86-64-tdep.c: Include "objfiles.h".
5672 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5673 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5674
fb16b900
ML
56752002-07-17 Michal Ludvig <michal@suse.cz>
5676
5677 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5678 (update_context): Initialise cfa variable.
5679
0fe7bf7b
MS
56802002-07-17 Michael Snyder <msnyder@redhat.com>
5681
5682 * aix-thread.c: Shorten some long lines.
5683 Bring comments into line with code spec.
5684
488f131b
JB
56852002-07-18 Joel Brobecker <brobecker@gnat.com>
5686
5687 * infrun.c: Re-indent using gdb_indent.sh.
5688
46c415d2
JB
56892002-07-18 Joel Brobecker <brobecker@gnat.com>
5690
5691 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5692 Leave the indentation temporarily untouched, to minimize the diffs.
5693
cdecafbe
EZ
56942002-07-18 Elena Zannoni <ezannoni@redhat.com>
5695
5696 * stabsread.c: Make os9k sections of the code obsolete,
5697 for real this time.
5698 * stabsread.h: Make os9k sections of the code obsolete.
5699
7b6aa020
ML
57002002-07-18 Michal Ludvig <mludvig@suse.cz>
5701
09ec9b38
ML
5702 * linux-low.c (regsets_store_inferior_registers): Add free()
5703 at the end of a loop to prevent memory leak.
5704 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5705 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5706 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5707 line a comment.
4894ac5d 5708 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5709
233282cd
JB
57102002-07-17 Jim Blandy <jimb@redhat.com>
5711
5712 * macrocmd.c (info_macro_command): Remove newline from error
5713 message.
5714
7b6aa020 57152002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5716
5717 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5718 (sh_gdbarch_init): Use it for sh-dsp.
5719
f7ef9339
KB
57202002-07-16 Kevin Buettner <kevinb@redhat.com>
5721
5722 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5723 64-bit DWARF2 format.
5724
8dd72958
JB
57252002-07-16 Joel Brobecker <brobecker@gnat.com>
5726
5727 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5728 <sys/proc.h> when not available.
5729
a99a9e1b
AC
57302002-07-16 Andrew Cagney <ac131313@redhat.com>
5731
5732 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5733 * stabsread.c: Make os9k sections of the code obsolete.
5734 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5735 * config/i386/i386os9k.mt: Make file obsolete.
5736 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5737 (COMMON_OBS): Remove os9kread.o
5738 (SFILES): Remove os9kread.c.
5739 (os9kread.o, remote-os9k.o): Make target obsolete.
5740 * remote-os9k.c: Make file obsolete.
5741 * os9kread.c: Make file obsolete.
5742 * Makefile.in
5743
7a3085c1
AC
57442002-07-16 Andrew Cagney <ac131313@redhat.com>
5745
5746 * NEWS: Mention that the FR30 has been made obsolete.
5747 * fr30-tdep.c: Make file obsolete.
5748 * config/fr30/tm-fr30.h: Ditto.
5749 * config/fr30/fr30.mt: Ditto.
5750 * configure.tgt: Make fr30-*-elf obsolete.
5751 * MAINTAINERS: Make fr30-elf obsolete.
5752
28a93f5a
PM
57532002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5754
5755 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5756 found is not inside a section.
5757
be006b8b
KB
57582002-07-15 Kevin Buettner <kevinb@redhat.com>
5759
5760 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5761 strerror().
5762 (pdc_realloc): Use xrealloc() instead of realloc().
5763
14fa3751
KB
57642002-07-15 Kevin Buettner <kevinb@redhat.com>
5765
5766 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5767 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5768 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5769 macros.
5770
42cc437f
KB
57712002-07-15 Kevin Buettner <kevinb@redhat.com>
5772
5773 * aix-thread.c (ptrace_check): Eliminate goto.
5774 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5775 problem.
5776
8e2c28d4
KB
57772002-07-15 Kevin Buettner <kevinb@redhat.com>
5778
5779 * aix-thread.c (gdbcmd.h): Include.
5780 (DEBUG, DBG, DBG2, dbg): Eliminate.
5781 (debug_aix_thread): New static global.
5782 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5783 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5784 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5785 invocations to DBG and DBG2 macros to test against
5786 ``debug_aix_thread'' and call fprintf_unfiltered().
5787 (_initialize_aix_thread): Add new command "set debug aix-thread".
5788
30413464
AC
57892002-07-15 Andrew Cagney <ac131313@redhat.com>
5790
5791 From Gerhard Tonn <TON@de.ibm.com>:
5792 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5793 instead of supply_register.
5794
7c43edc1
AC
57952002-07-15 Andrew Cagney <ac131313@redhat.com>
5796
5797 * dwarf2cfi.c: Include "gdb_assert.h".
5798 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5799 non-NULL.
5800 (update_context): Do not use __func__. Add missing ``break''.
5801 (update_context): Do not use __func__.
5802
9364a0ef
EZ
58032002-07-15 Elena Zannoni <ezannoni@redhat.com>
5804
5805 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5806 and its setting. Set gdbarch instruction printing functions
5807 directly. For non-rs6000 case use new function
5808 gdb_print_insn_powerpc.
5809 (gdb_print_insn_powerpc): New function.
5810
3fbeef0b
AC
58112002-07-13 Andrew Cagney <ac131313@redhat.com>
5812
92eb23c5 5813 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5814 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5815 * configure.tgt: Mark d30v-*-* as obsolete.
5816 * d30v-tdep.c: Mark file as obsolete.
5817 * config/d30v/d30v.mt: Ditto.
5818 * config/d30v/tm-d30v.h: Ditto.
5819
aacb1f0a
AS
58202002-07-13 Aidan Skinner <aidan@velvet.net>
5821
5822 * ada-tasks.c (add_task_entry): replace calls to
5823 malloc() with xmalloc
5824 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5825
5826 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5827 ada_finish_decode_line_1, all_sals_for_line
5828 ada_breakpoint_rewrite): replace calls to free() with xfree()
5829
c11d79f2
KB
58302002-07-12 Kevin Buettner <kevinb@redhat.com>
5831
5832 From Nicholas Duffek (with minor changes by Martin Hunt,
5833 Louis Hamilton, and Kevin Buettner):
5834 * aix-thread.c: New file.
5835
8e19ed76
PS
58362002-07-12 Petr Sorfa <petrs@caldera.com>
5837
5838 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5839 complaint for invalid attribute class or form.
5840 (read_func_scope): DW_AT_frame_base
5841 better handling of DW_AT_block*.
5842 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5843 better handling of DW_AT_block*.
5844 (read_common_block): DW_AT_location
5845 better handling of DW_AT_block*.
5846 (read_partial_die): DW_AT_location better handling
5847 of DW_AT_block*.
5848 (new_symbol): DW_AT_external better handling of
5849 DW_AT_block*. Proper initialization of variable
5850 "addr".
5851 (attr_form_is_block): New function that returns true
5852 if the attribute's form is of DW_FORM_block*.
5853
295401f7
DJ
58542002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5855
5856 * valops.c (find_method_list): Remove comment about
5857 removed STATIC_MEMFUNCP argument.
5858 (value_find_oload_method_list): Likewise.
5859
e42dc924
KB
58602002-07-12 Kevin Buettner <kevinb@redhat.com>
5861
5862 From Nicholas Duffek:
5863 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5864 target_new_objfile_hook.
5865
6904b546
KB
58662002-07-12 Kevin Buettner <kevinb@redhat.com>
5867
5868 From Nicholas Duffek:
5869 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5870 csect.
5871
53fe9346
AC
58722002-07-12 Andrew Cagney <cagney@redhat.com>
5873
5874 * MAINTAINERS: Mention --enable-sim-build-warnings.
5875 (m68hc11-elf): Disable sim build warnings.
5876 (m32r-elf): Mark as broken obsolete candidate.
5877 (x86_64-linux-gnu): Mark as buildable with -Werror.
5878 (arm-elf): Change -w to ``,'' which enables warnings but not
5879 -Werror.
5880
af5f3db6
AC
58812002-07-12 Andrew Cagney <ac131313@redhat.com>
5882
5883 * bcache.h: Update copyright.
5884 (struct bstring, struct bcache): Move definition to "bcache.c".
5885 Replaced by opaque declaration.
5886 (bcache_xfree): Replace free_bcache.
5887 (bcache_xmalloc, bcache_memory_used): Declare.
5888
5889 * bcache.c: Update copyright.
5890 (struct bstring, struct bcache): Moved to here from "bcache.h".
5891 Update comments.
5892 (bcache_xmalloc, bcache_memory_used): New functions.
5893 (bcache_xfree): Replace function free_bcache.
5894
5895 * Makefile.in (objfiles.o): Add $(bcache_h).
5896 (objfiles_h): Remove $(bcache_h).
5897 (symfile.o): Add $(bcache_h).
5898
5899 * symmisc.c: Update copyright.
5900 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5901 (print_objfile_statistics): Use bcache_memory_used.
5902
5903 * symfile.c: Include "bcache.h".
5904 (reread_symbols): Use bcache_xfree.
5905 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5906 (add_psymbol_to_list): Pass psymbol_cache by value.
5907 (add_psymbol_with_dem_name_to_list): Ditto.
5908
5909 * objfiles.h: Update copyright.
5910 (struct bcache): Declare opaque. Do not include "bcache.h".
5911 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5912 bcache'' pointers.
5913 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5914
5915 * objfiles.c: Include "bcache.h". Update copyright.
5916 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5917 macro_cache.
5918 (free_objfile): Use bcache_xfree.
5919
444199e7
GS
59202002-07-11 Grace Sainsbury <graces@redhat.com>
5921
5922 * monitor.c (monitor_fetch_register): Make name a constant.
5923 (monitor_store_register): Same.
5924
261397f8
DJ
59252002-07-11 Daniel Jacobowitz <drow@mvista.com>
5926
5927 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5928 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5929 (finish_block) For non-function blocks, hash the symbol table. For
5930 function blocks, mark the symbol table as unhashed.
5931 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5932 (msymbol_hash_iw): Likewise.
5933 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5934 value.
5935 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5936 (lookup_minimal_symbol): Likewise for both.
5937 * symtab.h (struct block): Add `hashtable' flag. Comment the
5938 hashtable.
5939 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5940 (ALL_BLOCK_SYMBOLS): Update.
5941 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5942 (struct symbol): Add `hash_next' pointer.
5943 * symtab.c (lookup_block_symbol): Search using the hash table when
5944 possible.
5945 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5946 (search_symbols, find_addr_symbol): Likewise.
5947
5948 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5949 (read_dst_symtab): Likewise.
5950 * jv-lang.c (get_java_class_symtab): Likewise.
5951 * mdebugread.c: Include "gdb_assert.h".
5952 (shrink_block): Assert that the block being modified is not hashed.
5953 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5954 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5955 symbols.
5956 (dump_symtab): Recognize hashed blocks.
5957 * printcmd.c (print_frame_args): Assert that function blocks do not
5958 have hashed symbol tables.
5959 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5960 (fill_in_ada_prototype, debug_print_block): Likewise.
5961 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5962
6f0eaa01
CV
59632002-07-11 Corinna Vinschen <vinschen@redhat.com>
5964
5965 * stack.c (print_frame): Use result of frame_address_in_block()
5966 instead of fi->pc when evaluating symbols.
5967 (backtrace_command_1): Ditto.
5968
a208b0cb
AC
59692002-07-11 Andrew Cagney <cagney@redhat.com>
5970
5971 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5972 Make static.
5973
5974 * arm-tdep.c (arm_register_name): Make return type constant.
5975
a6b6b089
AC
59762002-07-10 Andrew Cagney <ac131313@redhat.com>
5977
5ae5f592
AC
5978 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5979 prototype.
5980 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5981 * s390-tdep.c (s390_fp_regnum): Ditto.
5982 (s390_read_fp): Ditto.
5983 (s390_pop_frame): Ditto.
5984 (_initialize_s390_tdep): Ditto.
5985 * remote.c (get_remote_state): Ditto.
5986 * procfs.c (mappingflags): Ditto.
5987 * memattr.c (_initialize_mem): Ditto.
5988 * mcore-tdep.c (mcore_pop_frame): Ditto.
5989 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5990 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5991 * language.c (set_case_str): Ditto.
5992 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5993 * frv-tdep.c (new_variant): Ditto.
5994 (frv_stopped_data_address): Ditto.
5995 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5996 (context_alloc): Ditto.
5997 (frame_state_alloc): Ditto.
5998 (unwind_tmp_obstack_init): Ditto.
5999 (unwind_tmp_obstack_free): Ditto.
6000 (cfi_read_fp): Ditto.
6001 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6002 (cris_pop_frame): Ditto.
6003 * c-lang.c (scanning_macro_expansion): Ditto.
6004 (finished_macro_expansion): Ditto.
6005 (c_preprocess_and_parse): Ditto.
6006 * gdbarch.sh: Ditto.
6007 * gdbarch.h, gdbarch.c: Regenerate.
6008 * config/mn10200/tm-mn10200.h: Adjust indentation.
6009 * target.c: Adjust indentation.
6010 * symtab.h: Adjust indentation.
6011 * stabsread.h: Adjust indentation.
6012 * remote-es.c: Adjust indentation.
6013 * os9kread.c: Adjust indentation.
6014
60152002-07-10 Andrew Cagney <ac131313@redhat.com>
6016
a6b6b089
AC
6017 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6018 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6019
a1789893
GS
60202002-07-10 Grace Sainsbury <graces@redhat.com>
6021
6022 * NEWS: Mention m68k, mcore multi-arching.
6023 * MAINTAINERS: Change status of m68k, mcore to reflect
6024 multi-arching.
6025
02f0d45d
DJ
60262002-07-10 Daniel Jacobowitz <drow@mvista.com>
6027
6028 * valops.c (find_overload_match): Free oload_syms.
6029
f15f768e
JB
60302002-07-09 Joel Brobecker <brobecker@gnat.com>
6031
6032 Define HAVE_SYS_PROC_H if sys/proc.h exists
6033 * configure.in: Add check for sys/proc.h
6034 * config.in: Regenerate.
6035 * configure: Regenerate.
6036
902a7139
GS
60372002-07-09 Grace Sainsbury <graces@redhat.com>
6038
6039 * config/m68k/tm-m68k.h: Remove macros wrapped in
6040 #if !GDB_MULTI_ARCH.
6041
a534e424
AC
60422002-07-08 Andrew Cagney <ac131313@redhat.com>
6043
6044 * config.in, configure: Regenerate.
6045
9b94f7bf
MK
60462002-07-08 Mark Kettenis <kettenis@gnu.org>
6047
6048 * dwarf2cfi.c: Include "gcore.h".
6049 (execute_stack_op): Fix implementation of the
6050 DW_OP_deref and DW_OP_deref_size operators by letting do their
6051 lookup in the target.
6052
1d34db41
MK
60532002-07-07 Mark Kettenis <kettenis@gnu.org>
6054
6055 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6056 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6057 tdep->sc_sp_offset.
6058
79d5b63a
DJ
60592002-07-05 Daniel Jacobowitz <drow@mvista.com>
6060
6061 Fix PR gdb/595, gdb/602
6062 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6063 Don't call value_cast, just read the vtable pointer; update comments
6064 to match.
6065
3bb912e8
GS
60662002-07-05 Grace Sainsbury <graces@redhat.com>
6067
6068 * config/mcore/tm-mcore.h: Remove file.
6069 * config/mcore/mcore.mt: Remove definition of TM_FILE
6070 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6071
ca39387d
MK
60722002-07-05 Mark Kettenis <kettenis@gnu.org>
6073
6074 * i386bsd-tdep.c: Include "gdb_string.h".
6075
efdc1108
GS
60762002-07-04 Grace Sainsbury <graces@redhat.com>
6077
6078 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6079 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6080 mcore-tdep.
6081 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6082 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6083 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6084 (RETVAL_REGNUM): Move macros from tm-mcore.h
6085 (mcore_reg_struct_has_addr): New function.
6086 (mcore_gdbarch_init): Added initializations for the macros removed
6087 from tm-mcore.h.
6088
bb21884d
MK
60892002-07-04 Mark Kettenis <kettenis@gnu.org>
6090
6091 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6092 traditonal string branding within the ELF header.
6093
228c6d41
DJ
60942002-07-04 Daniel Jacobowitz <drow@mvista.com>
6095
6096 * symtab.c (remove_params): New function.
6097 (make_symbol_overload_list): Use it instead of cplus_demangle.
6098 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6099
2404952e
MK
61002002-07-04 Mark Kettenis <kettenis@gnu.org>
6101
e5e4acad
MK
6102 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6103
baadce09
MK
6104 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6105 New variables.
6106 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6107 and tdep->sigtramp_end.
6108 * i386obsd-nat.c: New file.
6109 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6110
2404952e
MK
6111 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6112 Don't call get_current_frame().
6113
9b4f1ba7
PM
61142002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6115
6116 * i386-nat.c (child_post_startup_inferior): New function
6117 calling i386_cleanup_dregs if
6118 I386_USE_GENERIC_WATCHPOINTS is defined.
6119 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6120 conditional to acknowledge that i386-nat.c has its
6121 own child_post_startup_inferior function.
6122
c0d1d883
MK
61232002-07-04 Mark Kettenis <kettenis@gnu.org>
6124
00f8375e
MK
6125 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6126 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6127 instead of MAX_REGISTER_RAW_SIZE.
6128 (i386_extract_return_value, i386_extract_struct_value_address):
6129 Convert to use regcache.
6130 (i386_gdbarch_init): Set max_register_raw_size and
6131 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6132 Set extract_return_value and extract_struct_value_address instead
6133 of their deprecated variants.
6134
c0d1d883
MK
6135 Convert i386 target to generic dummy frames.
6136 * i386-tdep.c: Include "symfile.h".
6137 (i386_frameless_signal_p): Consider a function to be frameless if
6138 the pc points at the first instruction of the function.
6139 (i386_frame_chain): Handle (generic) call dummies.
6140 (i386_frame_saved_pc): Likewise.
6141 (i386_frame_init_saved_regs): Remove code dealing with call
6142 dummies on the stack.
6143 (i386_push_dummy_frame): Removed.
6144 (i386_call_dummy_words): Removed.
6145 (i386_fix_call_dummy): Removed.
6146 (i386_push_return_address): New function.
6147 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6148 parameter, and don't call get_current_frame.
6149 (i386_pop_frame): New function.
6150 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6151 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6152 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6153 call_dummy_length to 0, set call_dummy_words to NULL, set
6154 sizeof_call_dummy_words to 0, set fix_call_dummy to
6155 generic_fix_call_dummy, set pc_in_call_dummy to
6156 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6157 generic_push_dummy_frame, set push_return_address to
6158 i386_push_return_address and set frame_chain_valid to
6159 generic_file_frame_chain_valid.
6160
049ee0e4
AC
61612002-07-03 Andrew Cagney <ac131313@redhat.com>
6162
6163 * gdbarch.sh (struct regcache): Add opaque declaration.
6164 (EXTRACT_RETURN_VALUE): New architecture method.
6165 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6166 * gdbarch.h, gdbarch.c: Regenerate.
6167 * arch-utils.c (legacy_extract_return_value): New function.
6168 * arch-utils.h (legacy_extract_return_value): Declare.
6169 * values.c (value_being_returned): Re-enable code handling
6170 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6171 deprecated_grub_regcache_for_registers call to block handling
6172 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6173 (EXTRACT_RETURN_VALUE): Do not define.
6174
4e0d9804
GS
61752002-07-03 Grace Sainsbury <graces@redhat.com>
6176
6177 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6178 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6179 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6180 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6181 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6182 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6183 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6184 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6185 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6186 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6187 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6188 argument so the function fits the prototype in the architecture
6189 vector.
6190 (mcore_pop_frame): Remove argument so the function fits the
6191 prototype. Use get_current_frame instead of the argument.
6192 (mcore_push_arguments): Change type of struct_return so the
6193 function can be used in the architecture vector.
6194 (mcore_store_struct_return): Add.
6195 (mcore_frame_init_saved_regs): Add.
6196 (mcore_gdbarch_init): Add function calls to replace the macros
6197 removed from tm-mcore.h
6198
36160dc4
AC
61992002-07-03 Andrew Cagney <ac131313@redhat.com>
6200
6201 * infcmd.c (print_return_value): Remove compatibility code calling
6202 deprecated_grub_regcache_for_registers.
6203
6204 * values.c: Include "regcache.h".
6205 (value_being_returned): Update. Use
6206 deprecated_grub_regcache_for_registers to extract the register
6207 buffer address.
6208 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6209 ``struct regcache''.
6210 * Makefile.in (values.o): Add dependency on $(regcache_h).
6211
6212 * inferior.h (run_stack_dummy): Change type of second parameter to
6213 a ``struct regcache''.
6214 * valops.c (hand_function_call): Change type of retbuf to ``struct
6215 regcache''. Allocate using regcache_xmalloc, clean using
6216 make_cleanup_regcache_xfree.
6217 * infcmd.c (run_stack_dummy): Update. Use
6218 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6219
6220 * regcache.c (do_regcache_xfree): New function.
6221 (make_cleanup_regcache_xfree): New function.
6222 * regcache.h (make_cleanup_regcache_xfree): Declare.
6223
e64d9b3d
MH
62242002-07-03 Martin M. Hunt <hunt@redhat.com>
6225
4dd79c29
MH
6226 * event-top.c (command_line_handler): Don't read past
6227 beginning of buffer.
e64d9b3d 6228
4dd79c29
MH
62292002-07-03 Martin M. Hunt <hunt@redhat.com>
6230
e64d9b3d
MH
6231 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6232 struct frame_id.
6233 (varobj_create): Store frame_id for root.
6234 (varobj_gen_name): Use xasprintf.
6235 (varobj_update): Save and restore frame using get_frame_id() and
6236 frame_find_by_id().
6237 (create_child): Use xasprintf.
6238 (new_root_variable): Initialize frame_id.
6239 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6240 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6241 to prevent memory leak.
6242
26e6c56a
AC
62432002-07-03 Andrew Cagney <ac131313@redhat.com>
6244
6245 * valops.c (hand_function_call): Move declaration of retbuf to
6246 start of function, allocate using malloc, add a cleanup but before
6247 the inf_status cleanup, cleanup the buffer. Rename local variable
6248 old_chain to inf_status_cleanup.
6249
f436dd25
MH
62502002-07-03 Martin M. Hunt <hunt@redhat.com>
6251
6252 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6253
6254 * cli/cli-decode.c (cmd_func_p): New function.
6255 (cmd_func): New function.
6256
6257 * command.h: Add cmd_func() and cmd_func_p().
6258
4cfe2084
GS
62592002-07-03 Grace Sainsbury <graces@redhat.com>
6260
6261 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6262 (REGISTER_SIZE): Remove.
6263 (MAX_REGISTER_RAW_SIZE): Remove.
6264 (REGISTER_VIRTUAL_TYPE): Remove.
6265 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6266 (REGISTER_NAME): Remove.
6267 (USE_GENERIC_DUMMY_FRAMES): Remove.
6268 (CALL_DUMMY): Remove.
6269 (CALL_DUMMY_START_OFFSET): Remove.
6270 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6271 (CALL_DUMMY_LOCATION): Remove.
6272 (FIX_CALL_DUMMY): Remove.
6273 (CALL_DUMMY_ADDRESS): Remove.
6274 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6275 (SAVE_DUMMY_FRAME_TOS): Remove.
6276 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6277 (mcore_register_virtual_type): New function.
6278 (mcore_register_byte): New function.
6279 (mcore_register_size): New function.
6280 (mcore_register_name): New function.
6281 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6282 macros removed from tm-mcore.h.
6283 (mcore_dump_tdep): Add.
6284 (_initialize_mcore_tdep): Add gdbarch_register call.
6285
4fd667e9
MK
62862002-07-03 Mark Kettenis <kettenis@gnu.org>
6287
6288 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6289 frameless_look_for_prologue, such that we actually call this
6290 function.
6291
42f99ac2
JB
62922002-07-02 Joel Brobecker <brobecker@gnat.com>
6293
6294 * frame.h (frame_address_in_block): New function.
6295
6296 * blockframe.c (frame_address_in_block): New function extracted
6297 from get_frame_block().
6298 (get_frame_block): Use frame_address_in_block().
6299 (block_innermost_frame): Use frame_address_in_block() to match
6300 the frame pc address against the block boundaries rather than
6301 the frame pc directly. This prevents a failure when a frame pc
6302 is actually a return-address pointing immediately after the end
6303 of the given block.
6304
103a1597 63052002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
6306
6307 * MAINTAINERS: Add self under write after approval.
6308
63092002-07-02 Grace Sainsbury <graces@redhat.com>
6310
103a1597
GS
6311 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6312 used in architecture vector. The default is
6313 m68k_local_breakpoint_from_pc.
6314 (m68k_local_breakpoint_from_pc): Add.
6315 (enum): Add register numbers from tm-m68k.h.
6316 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6317 vector.
6318 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6319 GDB_MULTI_ARCH_PARTIAL.
6320 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6321 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6322 m68k-tdep.c.
6323 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6324 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6325 to enum in m68k-tdep.c
6326
7a5a0534
JB
63272002-07-02 Joel Brobecker <brobecker@gnat.com>
6328
6329 * solib-osf.c (open_map): Compute the list of shared libraries
6330 loaded by the inferior, rather than the list of libraries loaded
6331 by GDB itself. Otherwise, GDB ends up reading the symbols from
6332 the wrong shared libraries...
6333
6f558d74
MK
63342002-07-02 Mark Kettenis <kettenis@gnu.org>
6335
b7d15bf7
MK
6336 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6337 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6338 macros.
6339 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6340 Remove functions.
6341 (FRAMELESS_SIGNAL): Remove function.
6342 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6343 i386_linux_saved_pc_after_call): Removed.
6344 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6345 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6346 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6347
6bff26de
MK
6348 * i386-tdep.c (i386_frameless_signal_p): New function.
6349 (i386_frame_chain): Deal with frameless signals.
6350 (i386_sigtramp_saved_sp): New function.
6351 (i386_frame_saved_pc): Deal with frameless signals.
6352 (i386_saved_pc_after_call): Make sure the correct value is
6353 returned just after entry into a sigtramp.
6354 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6355 i386fbsd4_sc_sp_offset): New variables.
6356 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6357 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6358 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6359 similiar to what we already did for sc_pc_offset.
6360 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6361 tdep->sc_sp_offset.
6362
6f558d74
MK
6363 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6364
145564b7
ML
63652002-07-02 Michal Ludvig <mludvig@suse.cz>
6366
6367 * config/i386/tm-x86-64linux.h: New.
6368 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6369 definitions.
6370 * config/i386/nm-x86-64.h: Rename to ...
6371 * config/i386/nm-x86-64linux.h: ... this one.
6372 * config/i386/x86-64linux.mh: Reflect the above change.
6373
3a1e71e3
MK
63742002-07-01 Mark Kettenis <kettenis@gnu.org>
6375
21d0e8a4
MK
6376 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6377 with sigcontext_addr. Add sc_sp_offset.
6378 (i386bsd_sigtramp_saved_pc): Remove prototype.
6379 (i386bsd_sicontext_addr): Add prototype.
6380 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6381 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6382 (i386_svr4_sigtramp_saved_pc): Removed.
6383 (i386_svr4_sigcontext_addr): New function.
6384 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6385 Initialize tdep->sigcontext_addr instead. Initialize
6386 tdep->sc_pc_offset and tdep->sc_sp_offset.
6387 (i386_gdbarch_init): Likewise.
6388 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6389 any more.
6390 (i386bsd_sigtramp_saved_pc): Remove function.
6391 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6392 Initialize tdep->sigcontext_addr instead. Initialize
6393 tdep->sc_pc_offset.
6394 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6395 of tdep->sigtramp_saved_pc.
6396 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6397 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6398 instead.
6399
3a1e71e3
MK
6400 * i386-tdep.c (i386_frameless_function_invocation,
6401 i386_frame_num_args, i386_frame_init_saved_regs,
6402 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6403 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6404 i386_extract_return_value, i386_store_return_value,
6405 i386_extract_struct_value_address, i386_register_virtual_type,
6406 i386_register_convertible, i386_register_convert_to_virtual,
6407 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6408 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6409 static.
6410
52e9098c
MK
64112002-07-01 Mark Kettenis <kettenis@gnu.org>
6412
77b13a25
MK
6413 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6414
52e9098c
MK
6415 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6416 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6417 this macro. Include "value.h".
6418
1b372fff
AS
64192002-06-30 Aidan Skinner <aidan@velvet.net>
6420
6421 * ada-exp.tab.c: remove as it's a generated file
6422 * ada-lex.c: remove as it's a generated file
6423
9c5045b5
MK
64242002-06-30 Mark Kettenis <kettenis@gnu.org>
6425
4a93c5bb
MK
6426 * config/i386/tm-i386.h (struct frame_info, struct
6427 frame_saved_regs, struct value, struct type): Remove forward
6428 declarations.
6429
322d4fe0
MK
6430 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6431 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6432 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6433 (FILL_FPXREGSET): Define.
6434
fdd8263d
MK
6435 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6436
482e577b
MK
6437 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6438 i[3456]86-*-netbsd* case.
6439 * config/i386/tm-obsd.h: Removed.
6440 * config/i386/obsd.mt: Removed.
6441 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6442 core-aout.o.
6443 (MH_CFLAGS): Add -DYYDEBUG=0.
6444
6916549a
MK
6445 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6446 i386nbsd_sc_pc_offset on OpenBSD too.
6447
9c5045b5
MK
6448 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6449 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6450 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6451 define.
6452 * i386bsd-tdep.c: Include "arch-utils.h".
6453 (i386bsd_aout_in_solib_call_trampoline): New function.
6454 (i386bsd_init_abi): Set in_solib_call_trampoline to
6455 i386bsd_aout_in_solib_call_trampoline.
6456 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6457 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6458
aa84d1bb
AC
64592002-06-28 Andrew Cagney <ac131313@redhat.com>
6460
6461 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6462 (struct obstack, struct bcache): Add opaque declarations.
6463 * Makefile.in (macrotab_h): Update
6464
b4d83933
AC
64652002-06-28 Andrew Cagney <ac131313@redhat.com>
6466
6467 * blockframe.c (generic_find_dummy_frame): Change return type to
6468 ``struct regcache''.
6469 (struct dummy_frame): Replace field ``registers'' with regcache, a
6470 struct regcache object.
6471 (generic_find_dummy_frame): Update.
6472 (generic_push_dummy_frame): Update. Use regcache_xfree,
6473 regcache_xmalloc and regcache_cpy.
6474 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6475 regcache_xfree.
6476 (deprecated_generic_find_dummy_frame): Update.
6477 (generic_read_register_dummy): Update. Use
6478 regcache_read_as_address.
6479 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6480 (generic_get_saved_register): Update. Use regcache_read.
6481
08c0b5bc
AC
64822002-06-28 Andrew Cagney <ac131313@redhat.com>
6483
6484 * Makefile.in (objfiles_h): Add $(bcache_h).
6485 * objfiles.h: Include "bcache.h".
6486
6487 * Makefile.in (symtab_h): Remove $(bcache_h).
6488 * symtab.h: Do not include "bcache.h".
6489
1f89801a
AC
64902002-06-28 Andrew Cagney <ac131313@redhat.com>
6491
6492 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6493 generic_func_frame_chain_valid.
6494
b9644b58
DB
64952002-06-28 David O'Brien <obrien@FreeBSD.org>
6496
6497 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6498 * config/i386/tm-fbsd.h: Likewise.
6499
dd486634
AC
65002002-06-28 Andrew Cagney <ac131313@redhat.com>
6501
6502 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6503 generic_unwind_get_saved_register.
6504
0b434a00
AC
65052002-06-27 Andrew Cagney <ac131313@redhat.com>
6506
6507 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6508 * regcache.c (supply_register): Add missing argument to
6509 register_buffer call.
6510
f30e5a77
AC
65112002-06-27 Andrew Cagney <ac131313@redhat.com>
6512
6513 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6514 Solaris /bin/grep does not not like it. From Peter Schauer.
6515
9f064c95
TT
65162002-06-26 Tom Tromey <tromey@redhat.com>
6517
6518 * command.h (add_setshow_cmd): Declare.
6519 (add_setshow_cmd_full): Declare.
6520 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6521 returns void. Use add_setshow_cmd_full.
6522 (add_setshow_cmd_full): New function.
6523 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6524 (add_setshow_boolean_cmd): Likewise.
6525
099c7589
JT
65262002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6527
6528 * config/vax/tm-vax.h: Protect from multiple inclusion.
6529 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6530 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6531 * config/vax/tm-vaxbsd.h: ...here. New file.
6532 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6533
1d049c5e
JT
65342002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6535
6536 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6537 (BELIEVE_PCC_PROMOTION): Remove.
6538 (AP_REGNUM): Move to...
6539 * config/vax/nm-vax.h: ...here.
6540 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6541 (vax_breakpoint_from_pc): New function.
6542 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6543 and gdbarch_believe_pcc_promotion.
6544
4791e091
JT
65452002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6546
6547 * Makefile.in (vax_tdep_h): Define.
6548 (vax-tdep.o): Use $(vax_tdep_h).
6549 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6550 (vax_dump_tdep): New function.
6551 (_initialize_vax_tdep): Register vax_dump_tdep.
6552 * vax-tdep.h: Include osabi.h.
6553 (struct gdbarch_tdep): New.
6554
da130f98
AC
65552002-06-26 Andrew Cagney <cagney@redhat.com>
6556
6557 * frame.h (deprecated_generic_find_dummy_frame): Rename
6558 generic_find_dummy_frame.
6559 * blockframe.c (generic_find_dummy_frame): Make static.
6560 (deprecated_generic_find_dummy_frame): New function.
6561 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6562 generic_find_dummy_frame with deprecated_find_dummy_frame.
6563 (sh64_nofp_frame_init_saved_regs): Ditto.
6564 (sh_fp_frame_init_saved_regs): Ditto.
6565 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6566 (s390_frame_chain): Ditto.
6567 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6568
6300c360
GS
65692002-06-26 Grace Sainsbury <graces@redhat.com>
6570
6571 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6572 gdbarch vector are at the top.
6573 (NUM_REGS): Remove.
6574 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6575 (FRAME_ARGS_ADDRESS): Remove.
6576 (FRAME_LOCALS_ADDRESS): Remove.
6577 (FRAME_NUM_ARGS): Remove.
6578 (FRAME_ARGS_SKIP): Remove.
6579 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6580 (m68k_gdbarch_init): Add gdbarch initializations for macros
6581 undefined in tm-m68k.h
6582
1c617db8
GS
65832002-06-26 Grace Sainsbury <graces@redhat.com>
6584
6585 * monitor.h: Add the function regname to monitor_ops
6586 structure. This way NUM_REGS does not have to be a constant.
6587 * monitor.c (monitor_fetch_register): Added support for regname
6588 function. The function is called if the array regnames is NULL.
6589 (monitor_store_register): Same.
da130f98
AC
6590 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6591 regnames array.
1c617db8
GS
6592 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6593 cpu32bug_cmds.regname to point to new function.
6594 * abug-rom.c (abug_regname): Same as above.
6595 (init_abug_cmds): Same.
6596 * dbug-rom.c (dbug_regname): Same as above.
6597 (init_dbug_cmds): Same.
6598 * remote-est.c (est_regname): Same.
6599 (init_est_cmds): Same.
6600 * rom68k-rom.c (rom68k_regname): Same.
6601 (init_rom68k_cmds): Same.
6602
ea9365bb
TT
66032002-06-25 Tom Tromey <tromey@redhat.com>
6604
6605 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6606
72cec141
AC
66072002-06-25 Andrew Cagney <cagney@redhat.com>
6608
6609 * infrun.c (stop_registers): Change variable's type to ``struct
6610 regcache'''.
6611 (xmalloc_inferior_status): Delete function.
6612 (free_inferior_status): Delete function.
6613 (normal_stop): Use regcache_cpy.
6614 (struct inferior_status): Change type of fields ``stop_registers''
6615 and ``registers'' to ``struct regcache''.
6616 (write_inferior_status_register): Use regcache_write.
6617 (save_inferior_status): Instead of calling
6618 xmalloc_inferior_status, allocate the inf_status buffer directly.
6619 Use regcache_dup_no_passthrough and regcache_dup to save the
6620 buffers.
6621 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6622 Replace the stop_registers regcache instead of overriding it. Use
6623 regcache_xfree. Instead of calling free_inferior_status, xfree
6624 the buffer directly.
6625 (discard_inferior_status): Use regcache_xfree. Instead of calling
6626 free_inferior_status, xfree the buffer directly.
6627 (build_infrun): Use regcache_xmalloc.
6628 (_initialize_infrun): Delete redundant call to build_infrun.
6629
6630 * Makefile.in (infcmd.o): Add $(regcache_h).
6631
6632 * infcmd.c: Include "regcache.h".
6633 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6634 obtain the address of `stop_registers' register buffer.
6635 (print_return_value): Ditto.
6636
6637 * inferior.h (struct regcache): Add opaque declaration.
6638 (stop_registers): Change variable's declared type to ``struct
6639 regcache''.
6640
defc6f8c
TT
66412002-06-24 Tom Tromey <tromey@redhat.com>
6642
c0e624e7
TT
6643 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6644 * target.c (initialize_targets): Fixed typo in
6645 trust-readonly-sections `show' documentation.
6646
defc6f8c
TT
6647 * main.c: Marked all strings with _().
6648
2b236d82
DH
66492002-06-24 Don Howard <dhoward@redhat.com>
6650
6651 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6652 that means max CORE_ADDR+1.
6653 (lookup_mem_region): Ditto.
6654 (mem_info_command): Ditto.
6655
942dc0e9
GS
66562002-06-24 Grace Sainsbury <graces@redhat.com>
6657
6658 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6659 (REGISTER_BYTES_OK): Remove.
6660 (REGISTER_BYTES): Remove.
6661 (STORE_STRUCT_RETURN): Remove.
6662 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6663 (STORE_RETURN_VALUE): Remove.
6664 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6665 (FRAME_CHAIN): Remove.
6666 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6667 (FRAME_SAVED_PC): Remove.
6668 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6669 (m68k_store_struct_return): Add.
6670 (m68k_deprecated_extract_return_value): Add.
6671 (m68k_deprecated_extract_struct_value_address): Add.
6672 (m68k_store_return_value): Add.
6673 (m68k_frame_chain): Add.
6674 (m68k_frameless_function_invocation): Add.
6675 (m68k_frame_saved_pc): Add.
6676 (m68k_gdbarch_init): added set_gdbarch calls for new
6677 functions and deleted macros.
6678
03c30d4d
TT
66792002-06-23 Tom Tromey <tromey@redhat.com>
6680
6681 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6682 (ALLDEPFILES): Likewise.
6683 (udiheaders): Removed.
6684 (udip2soc.o): Likewise.
6685 (udi2go32.o): Likewise.
6686 (udr.o): Likewise.
6687 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6688
37e71372
AC
66892002-06-22 Andrew Cagney <ac131313@redhat.com>
6690
06a6ac57
AC
6691 * infrun.c (_initialize_infrun): Delete unnecessary call to
6692 build_infrun.
6693
37e71372
AC
6694 * regcache.h: Update comments describing the regcache_cpy family
6695 of functions.
6696 (regcache_save, regcache_restore): Delete declaration.
6697 (regcache_save_no_passthrough): Delete declaration.
6698 (regcache_restore_no_passthrough): Delete declaration.
6699 * regcache.c (regcache_save): Delete function.
6700 (regcache_save_no_passthrough): Delete function.
6701 (regcache_restore): Delete function.
6702 (regcache_restore_no_passthrough): Delete function.
6703
78f6d055
AC
67042002-06-21 Andrew Cagney <ac131313@redhat.com>
6705
6706 * config/m68k/tm-m68k.h: Fix typo.
6707 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6708 (m68k_frame_init_saved_regs): Declare.
6709
78b119cb
JB
67102002-06-21 Jim Blandy <jimb@redhat.com>
6711
6712 Remove some vestiges of Harris 88k support.
6713 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6714 register numbering quirk.
6715 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6716 odd symbols occurring in Harris 88k ELF targets.
6717
0fbb3da7
TT
67182002-06-21 Tom Tromey <tromey@redhat.com>
6719
6720 * gdb_locale.h: New file.
6721 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6722 (defs_h): Added gdb_locale.h.
6723 * configure, config.in: Rebuilt.
6724 * configure.in (PACKAGE): Define.
6725 * defs.h: Include gdb_locale.h.
6726 * main.c (captured_main): Call setlocale, bindtextdomain,
6727 textdomain.
6728
456f8b9d
DB
67292002-06-21 Dave Brolley <brolley@redhat.com>
6730
6731 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6732 * config/frv/frv.mt: New file.
6733 * config/frv/tm-frv.h: New file.
6734 * configure.tgt: Support frv-*-*.
6735 * Makefile.in (frv-tdep.o): New target.
6736 * frv-tdep.c: New file.
6737 * NEWS: Mention frv.
6738
cdd463f9
DB
67392002-06-21 Dave Brolley <brolley@redhat.com>
6740
6741 * MAINTAINERS: Add self to "Write After Approval" list.
6742
5d3ed2e3
GS
67432002-06-21 Grace Sainsbury <graces@redhat.com>
6744
6745 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6746 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6747 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6748 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6749 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6750
6751 * m68k-tdep.c: Include arch-utils.h
6752 (m68k_register_raw_size): Add.
6753 (m68k_register_virtual_size): Add.
6754 (m68k_register_virtual_type): Add.
6755 (m68k_register_name): Add.
6756 (m68k_stack_align): Add.
6757 (m68k_register_byte): Add.
6758 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6759 tm-m68k.h.
6760
7f8e7424
GS
67612002-06-21 Grace Sainsbury <graces@redhat.com>
6762
a2c6a6d5 6763 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6764 m68k_find_saved_regs.
6765 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6766 references to it with frame->saved_regs.
7f8e7424
GS
6767 (m68k_gdbarch_init): Added function calls to initialize the
6768 gdbarch structure.
a2c6a6d5
GS
6769 (m68k_fix_call_dummy): Add.
6770 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6771 (CALL_DUMMY): Remove.
6772 (CALL_DUMMY_LENGTH): Remove.
6773 (CALL_DUMMY_START_OFFSET): Remove.
6774 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6775 (FIX_CALL_DUMMY): Remove.
6776 (PUSH_DUMMY_FRAME): Remove.
6777 (POP_FRAME): Remove.
7f8e7424 6778
f461f5cf
PM
67792002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6780
6781 * parse.c (parse_fprintf): New function used to avoid calls to
6782 fprintf in bison parser generated debug code.
6783 * parser-defs.h: Declaration of new parse_fprintf function.
6784 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6785 Set YYDEBUG to 1 by default.
6786 Set YYFPRINTF as parse_fprintf.
6787
7f0c12ed
ML
67882002-06-21 Michal Ludvig <mludvig@suse.cz>
6789
6790 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6791 encoding anymore.
6792 (pointer_encoding, enum ptr_encoding): New.
6793 (execute_cfa_program): Take care about pointer encoding.
6794 (dwarf2_build_frame_info): Only call parse_frame_info for
6795 .debug_frame and .eh_frame.
6796 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6797 fixed augmentation handling, added relative addressing,
6798 ignore duplicate FDEs. Added comments.
19d833a2 6799 * dwarf2cfi.c: Reindented.
7f0c12ed 6800
87c4a039
EZ
68012002-06-20 Elena Zannoni <ezannoni@redhat.com>
6802
6803 * event-top.c (command_handler): Don't use space_at_cmd_start
6804 unless there is sbrk() on the host. Assign time and space data
6805 to union fields of the appropriate length.
6806
1cf877ad
ML
68072002-06-20 Michal Ludvig <mludvig@suse.cz>
6808
6809 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6810 x86_64_register_name. Return type changed to 'const char *'.
6811 (x86_64_register_name2nr): Rename to x86_64_register_number.
6812 (x86_64_gdbarch_init): Update to reflect the change.
6813 * x86-64-tdep.h: Ditto.
6814 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6815 (supply_fpregset): Ditto.
6816
3fadccb3
AC
68172002-06-19 Andrew Cagney <cagney@redhat.com>
6818
6819 * regcache.h: Update copyright.
6820 (struct regcache, struct gdbarch): Add opaque declarations.
6821 (current_regcache): Declare global variable.
6822 (regcache_read, regcache_write): Add gdbarch parameter.
6823 (regcache_save, regcache_save_no_passthrough)
6824 (regcache_restore, regcache_restore_no_passthrough)
6825 (regcache_dup, regcache_dup_no_passthrough)
6826 (regcache_cpy, regcache_cpy_no_passthrough)
6827 (deprecated_grub_regcache_for_registers)
6828 (deprecated_grub_regcache_for_register_valid)
6829 (regcache_valid_p): Add function declarations.
6830
6831 * regcache.c: Update copyright.
6832 (regcache_descr_handle): New global variable.
6833 (struct regcache_descr): Define.
6834 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6835 (regcache_descr, xfree_regcache_descr): New functions.
6836 (struct regcache): Define.
6837 (regcache_xmalloc, regcache_xfree): New functions.
6838 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6839 (regcache_dup, regcache_dup_no_passthrough): New functions.
6840 (regcache_valid_p, regcache_read_as_address): New functions.
6841 (deprecated_grub_regcache_for_registers): New function.
6842 (deprecated_grub_regcache_for_register_valid): New function.
6843 (current_regcache): New global variable.
6844 (register_buffer): Add regcache parameter. Update calls.
6845 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6846 (read_register_gen, write_register_gen): Update register_buffer
6847 call. Test for legacy_p instead of gdbarch_register_read_p or
6848 gdbarch_register_write_p.
6849 (regcache_collect): Update register_buffer call.
6850 (build_regcache): Rewrite. Use deprecated grub functions.
6851 (regcache_save, regcache_save_no_passthrough): New functions.
6852 (regcache_restore, regcache_restore_no_passthrough): New
6853 functions.
6854 (_initialize_regcache): Create the regcache_data_handle. Swap
6855 current_regcache global variable.
6856
6857 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6858 parameter to regcache_read and regcache_write calls.
6859 (sh4_register_read): Ditto.
6860 (sh64_pseudo_register_read): Ditto.
6861 (sh64_register_read): Ditto.
6862 (sh_pseudo_register_write): Ditto.
6863 (sh4_register_write): Ditto.
6864 (sh64_pseudo_register_write): Ditto.
6865 (sh64_register_write): Ditto.
6866
6867 * defs.h (XCALLOC): Define.
6868
152d9db6
GS
68692002-06-19 Grace Sainsbury <graces@redhat.com>
6870
6871 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6872 * m68k-tdep.c (m68k_gdbarch_init): Added.
6873 (m68k_dump_tdep): Added.
6874
170911c7
DJ
68752002-06-19 Daniel Jacobowitz <drow@mvista.com>
6876
6877 * ada-lang.c (fill_in_ada_prototype): Update comment.
6878
2e4ebe70
DJ
68792002-06-19 Daniel Jacobowitz <drow@mvista.com>
6880
6881 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6882 MIPS_ABI_LAST.
6883 (mips_abi_string, mips_abi_strings): New.
6884 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6885 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6886 tdep->mips_abi_string. Honor mips_abi_string. Default to
6887 O32 if no ABI is found.
6888 (mips_dump_tdep): Use mips_abi_strings.
6889 (mips_abi_update): New function.
6890 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6891 ``set mips abi'' and ``show mips abi''. Check the size of
6892 mips_abi_strings.
6893
16775908
AC
68942002-06-19 Andrew Cagney <cagney@redhat.com>
6895
6896 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6897 constant.
6898
5051bfa4 68992002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6900
5051bfa4
JB
6901 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6902 current frame using only the first stack size adjustment. All
6903 subsequent size adjustments are not considered to be part of
6904 the "static" part of the current frame.
6905 Compute the address of the saved registers relative to the
6906 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6907 in use in this frame.
6908
56468235
DH
69092002-06-18 Don Howard <dhoward@redhat.com>
6910
6911 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6912 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6913 suggesting this solution.
6914
0b624158
AC
69152002-06-18 Andrew Cagney <ac131313@redhat.com>
6916
6917 * config/romp/xm-rtbsd.h: Delete file.
6918 * config/romp/rtbsd.mh: Delete file.
6919
221ea385
KS
69202002-06-18 Keith Seitz <keiths@redhat.com>
6921
6922 * breakpoint.c (condition_command): Post breakpoint_modify
6923 when a condition is added to an existing breakpoint.
6924 (commands_command): Likewise for commands.
6925 (set_ignore_count): Likewise for ignore counts.
6926 If no tty, do not simply return, still need to send event
6927 notification.
6928 (ignore_command): Only print a newline if the command came
6929 from a tty.
6930 Don't call breakpoints_changed, since this is now properly
6931 handled by set_ignore_count.
6932
5402eed1
AC
69332002-06-18 Andrew Cagney <cagney@redhat.com>
6934
6935 * MAINTAINERS: Note that cris-elf target can be compiled with
6936 -Werror.
6937 * cris-tdep.c (cris_register_name): Make return type constant.
6938 (cris_breakpoint_from_pc): Ditto.
6939
cc22880b
ML
69402002-06-18 Michal Ludvig <mludvig@suse.cz>
6941
6942 * frame.h (struct frame_info): Change type of context to
6943 'struct context'.
6944
fa88f677
AC
69452002-06-17 Andrew Cagney <cagney@redhat.com>
6946
6947 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6948 pointer.
6949 * gdbarch.h, gdbarch.c: Regenerate.
6950 * config/mips/tm-mips.h (mips_register_name): Update.
6951 * i386-tdep.h (i386_register_name): Update.
6952 * mips-tdep.c (mips_register_name): Update
6953 * alpha-tdep.c (alpha_register_name): Update.
6954 * arch-utils.c (legacy_register_name): Update.
6955 * arch-utils.h (legacy_register_name): Update.
6956 * avr-tdep.c (avr_register_name): Update.
6957 * ia64-tdep.c (ia64_register_name): Update.
6958 * i386-tdep.c (i386_register_name): Update.
6959 * sparc-tdep.c (sparc32_register_name): Update.
6960 (sparc64_register_name): Update.
6961 (sparclite_register_name): Update.
6962 (sparclet_register_name): Update.
6963 * sh-tdep.c (sh_generic_register_name): Update.
6964 (sh_sh_register_name): Update.
6965 (sh_sh3_register_name): Update.
6966 (sh_sh3e_register_name): Update.
6967 (sh_sh_dsp_register_name): Update.
6968 (sh_sh3_dsp_register_name): Update.
6969 (sh_sh4_register_name): Update.
6970 (sh_sh64_register_name): Update.
6971 * s390-tdep.c (s390_register_name): Update.
6972 * rs6000-tdep.c (rs6000_register_name): Update.
6973 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6974 (ns32k_register_name_32382): Update.
6975 * d10v-tdep.c (d10v_ts2_register_name): Update.
6976 (d10v_ts3_register_name): Update.
6977 * xstormy16-tdep.c (xstormy16_register_name): Update.
6978 * vax-tdep.c (vax_register_name): Update.
6979 * v850-tdep.c (v850_register_name): Update.
6980 * m68hc11-tdep.c (m68hc11_register_name): Update.
6981 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6982 (am33_register_name): Update.
6983
ea1e7ef6
GS
69842002-06-17 Grace Sainsbury <graces@redhat.com>
6985
6986 * m68k-tdep.c: Reindented.
6987
9b02dd1b
AC
69882002-06-17 Andrew Cagney <ac131313@redhat.com>
6989
6990 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6991 list of predefined types.
6992
8758dec1
MK
69932002-06-16 Mark Kettenis <kettenis@gnu.org>
6994
b6197528
MK
6995 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6996 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6997 REGISTER_CONVERT_TO_RAW): Remove defines.
6998 (i386_register_virtual_type, i386_register_convertible,
6999 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7000 Remove prototypes.
7001 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7002 macros mentioned above.
7003
82b47e62
MK
7004 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7005 (i386lynx_saved_pc_after_call): Remove prototype.
7006 * i386ly-tdep.c: Include "i386-tdep.h".
7007 (i386lynx_saved_pc_after_call): Make static. Use
7008 read_memory_nobpt instead of read_memory. Use
7009 read_memory_unsigned_integer instead of read_memory_integer.
7010 (i386lynx_init_abi): New function.
7011 (i386lynx_coff_osabi_sniffer): New function.
7012 (_initialize_i386bsd_tdep): New function.
7013
8758dec1
MK
7014 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7015 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7016 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7017 (i386_fix_call_dummy): Remove prototype.
7018 * i386-tdep.c (i386_call_dummy_words): New variable.
7019 (i386_gdbarch_init): Adjust for removal of the
7020 macros mentioned above.
7021
e9e68a56
AC
70222002-06-15 Andrew Cagney <ac131313@redhat.com>
7023
7024 * command.h (add_setshow_auto_boolean_cmd): Replace
7025 add_set_auto_boolean_cmd.
7026 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7027 add_set_auto_boolean_cmd.
7028 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7029 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7030 mask-address'' command.
7031 (show_mask_address): Add cmd parameter.
7032 * remote.c (add_packet_config_cmd): Update. Change type of
7033 set_func and show_func to cmd_sfunc_ftype.
7034 (_initialize_remote): Update `set remote Z-packet'
7035 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7036 (show_remote_protocol_e_packet_cmd): Ditto.
7037 (show_remote_protocol_E_packet_cmd): Ditto.
7038 (show_remote_protocol_P_packet_cmd): Ditto.
7039 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7040 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7041 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7042 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7043 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7044 (show_remote_protocol_Z_packet_cmd): Ditto.
7045 (show_remote_protocol_binary_download_cmd): Ditto.
7046 (show_remote_cmd): Pass NULL to all of above.
7047
fc08ec52
MK
70482002-06-15 Mark Kettenis <kettenis@gnu.org>
7049
7050 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7051 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7052 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7053 POP_FRAME): Remove defines.
7054 (i386_push_arguments, i386_store_struct_return,
7055 i386_extract_return_value, i386_store_return_value,
7056 i386_extract_struct_value_address, i386_push_dummy_frame,
7057 i386_pop_frame): Renove prototypes.
7058 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7059 macros mentioned above.
7060
e707bbc2
AC
70612002-06-15 Andrew Cagney <ac131313@redhat.com>
7062
7063 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7064 add_set_boolean_cmd.
7065 (add_setshow_cmd): New function.
7066 * command.h (add_setshow_boolean_cmd): Replace
7067 add_set_boolean_cmd.
7068 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7069 and ``set rdiromatzero''.
7070 * maint.c (_initialize_maint_cmds): Update commented out code.
7071 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7072 * target.c (initialize_targets): Update `set
7073 trust-readonly-sections'.
7074 * remote.c (_initialize_remote): Update `set remotebreak'.
7075
42fdc8df
MK
70762002-06-15 Mark Kettenis <kettenis@gnu.org>
7077
93924b6b
MK
7078 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7079 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7080 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7081 fit into multi-arch framework.
7082 (i386_breakpoint_from_pc): New function.
7083 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7084 above.
7085
42fdc8df
MK
7086 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7087 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7088 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7089 (i386_frameless_function_invocation, i386_frame_num_args,
7090 i386_frame_init_saved_regs): Remove prototypes.
7091 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7092 macros mentioned above.
7093
9773a94b
AC
70942002-06-15 Andrew Cagney <ac131313@redhat.com>
7095
7096 * cli/cli-decode.c (set_cmd_cfunc): Update.
7097 (set_cmd_sfunc): Update.
7098 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7099 (set_cmd_sfunc, set_cmd_cfunc): Update.
7100 * cli/cli-decode.h: Update.
7101
6e157172
MK
71022002-06-15 Mark Kettenis <kettenis@gnu.org>
7103
7104 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7105 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7106
7f19b9a2
AC
71072002-06-15 Andrew Cagney <ac131313@redhat.com>
7108
7109 * defs.h (auto_boolean): Declare enum.
7110 * command.h (cmd_auto_boolean): Delete enum.
7111 * mips-tdep.c (mask_address_var): Update.
7112 (mips_mask_address_p): Update.
7113 (show_mask_address): Update.
7114 * remote.c (struct packet_config): Update.
7115 (update_packet_config): Update.
7116 (show_packet_config_cmd): Update.
7117 (packet_ok): Update.
7118 (add_packet_config_cmd): Update.
7119 (_initialize_remote):
7120 * command.h: Update.
7121 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7122 (do_setshow_command): Update.
7123 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7124 * cli/cli-decode.h: Update.
7125
1cf88de5
MK
71262002-06-15 Mark Kettenis <kettenis@gnu.org>
7127
22ba8cf2
MK
7128 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7129 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7130 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7131 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7132 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7133 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7134
762c5349
MK
7135 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7136 list of DJGPP COFF targets.
7137
091198bb
MK
7138 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7139 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7140 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7141 (FP0_REGNUM): Remove define.
7142 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7143 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7144 (i386_register_virtual_size): Remove protoype.
7145 * i386-tdep.c (i386_register_virtual_size): Removed.
7146 (i386_extract_return_value, i386_store_return_value): Use
7147 FP0_REGNUM instead of NUM_FREGS to determine whether the
7148 floating-point registers are available.
7149 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7150 Adjust for removal of macros mentioned above.
7151
71522002-06-15 Mark Kettenis <kettenis@gnu.org>
7153
fcc9bf01
MK
7154 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7155 comments.
7156 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7157 Remove prototypes.
7158 (supply_gregset, fill_gregset): Remove use of register keyword and
7159 remove declaration for regmap. Use I386_NUM_GREGS instead of
7160 NUM_REGS and NUM_FREGS.
7161 (FPREGSET_FSAVE_OFFSET): Remove.
7162 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7163 NUM_FREGS to determine whether the floating-point registers are
7164 available.
7165
65e78234
MK
7166 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7167 gnu_store_registers): Replace usage of NUM_GREGS with
7168 I386_NUM_GREGS.
7169
98df6387
MK
7170 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7171 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7172 usage of NUM_GREGS with I386_NUM_GREGS.
7173
099a9414
MK
7174 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7175
57976e88
MK
7176 * i386bsd-nat.c: Include "i386-tdep.h".
7177 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7178 I386_NUM_GREGS.
7179
b335f4a6
MK
7180 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7181 and associated comment. They no longer make any sense, since we
7182 don't use this file anymore on Linux.
7183
1cf88de5
MK
7184 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7185 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7186 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7187 elements in these arrays.
7188 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7189 MAX_NUM_REGS.
7190
daa66587
MK
71912002-06-15 Mark Kettenis <kettenis@gnu.org>
7192
7193 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7194 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7195
26e9b323
AC
71962002-06-14 Andrew Cagney <cagney@redhat.com>
7197
7198 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7199 EXTRACT_RETURN_VALUE.
7200 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7201 EXTRACT_STRUCT_VALUE_ADDRESS.
7202 * gdbarch.h, gdbarch.c: Regenerate.
7203
7204 * values.c (value_being_returned): Handle
7205 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7206 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7207
7208 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7209 * arm-tdep.c (arm_gdbarch_init): Update.
7210 * avr-tdep.c (avr_gdbarch_init): Update.
7211 * cris-tdep.c (cris_gdbarch_init): Update.
7212 * d10v-tdep.c (d10v_gdbarch_init): Update.
7213 * ia64-tdep.c (ia64_gdbarch_init): Update.
7214 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7215 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7216 * s390-tdep.c (s390_gdbarch_init): Update.
7217 * sh-tdep.c (sh_gdbarch_init): Update.
7218 * s390-tdep.c (s390_gdbarch_init): Update.
7219 * sparc-tdep.c (sparc_gdbarch_init): Update.
7220 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7221 * v850-tdep.c (v850_gdbarch_init): Update.
7222 * vax-tdep.c (vax_gdbarch_init): Update.
7223 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7224 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7225
7226 * config/arc/tm-arc.h: Update.
7227 * config/d30v/tm-d30v.h: Update.
7228 * config/fr30/tm-fr30.h: Update.
7229 * config/h8300/tm-h8300.h: Update.
7230 * config/h8500/tm-h8500.h: Update.
7231 * config/i386/tm-i386.h: Update.
7232 * config/i386/tm-ptx.h: Update.
7233 * config/i386/tm-symmetry.h: Update.
7234 * config/i960/tm-i960.h: Update.
7235 * config/m32r/tm-m32r.h: Update.
7236 * config/m68k/tm-delta68.h: Update.
7237 * config/m68k/tm-linux.h: Update.
7238 * config/m68k/tm-m68k.h: Update.
7239 * config/m88k/tm-m88k.h: Update.
7240 * config/mcore/tm-mcore.h: Update.
7241 * config/mips/tm-mips.h: Update.
7242 * config/mn10200/tm-mn10200.h: Update.
7243 * config/pa/tm-hppa.h: Update.
7244 * config/pa/tm-hppa64.h: Update.
7245 * config/sparc/tm-sp64.h: Update.
7246 * config/sparc/tm-sparc.h: Update.
7247 * config/sparc/tm-sparclet.h: Update.
7248 * config/z8k/tm-z8k.h: Update.
7249
5179e78f
AC
72502002-06-14 Andrew Cagney <cagney@redhat.com>
7251
7252 * Makefile.in (i386_linux_tdep_h): Define.
7253 (i386_tdep_h, i387_tdep_h): Define.
7254 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7255 $(i386_tdep_h) and $(i387_tdep_h).
7256 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7257
8201327c
MK
72582002-06-14 Mark Kettenis <kettenis@gnu.org>
7259
edf393ac
MK
7260 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7261 Already covered by the default.
7262
896fb97d
MK
7263 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7264 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7265 (i386_gdbarch_init): Initialize long_double_format and long_double
7266 bit.
7267
8201327c
MK
7268 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7269 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7270 Move these to ...
7271 * config/i386/i386sol2.mh: ... here.
7272 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7273 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7274 (SIGCONTEXT_PC_OFFSET): Remove define.
7275 (IN_SIGTRAMP): Remove define.
7276 * i386-sol2-tdep.c: New file.
7277
7278 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7279 * config/i386/tm-i386nw.h: Removed.
7280
7281 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7282 USE_STRUCT_CONVENTION): Remove defines.
7283 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7284 (get_longjmp_target): Remove prototype.
7285 (IN_SIGTRAMP): Remove define.
7286 (i386bsd_in_sigtramp): Remove prototype.
7287 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7288 function. Update comment accordingly
7289 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7290 (FRAME_SAVED_PC): Remove define.
7291 (i386bsd_frame_saved_pc): Remove prototype.
7292 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7293 GET_LONGJMP_TARGET): Remove defines.
7294 (get_longjmp_target): Remove prototype.
7295 (IN_SIGTRAMP): Remove define.
7296 (i386bsd_in_sigtramp): Remove prototype.
7297 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7298 function. Update comment accordingly
7299 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7300 (FRAME_SAVED_PC): Remove define.
7301 (i386bsd_frame_saved_pc): Remove prototype.
7302 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7303 Remove prototype.
7304 (USE_STRUCT_CONVENTION): Remove prototype.
7305 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7306 declaration.
7307 (_initialize_i386bsd_nat): Revise logic to determine some
7308 constants at compile time when compiling a native GDB. Warn if
7309 things don't match up with what we expect.
7310 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7311 Remove variables.
7312 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7313 to use date stored in `struct gdbarch_tdep'.
7314 (i386bsd_sigcontext_offset): Remove varaible.
7315 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7316 stored in `struct gdbarch_tdep'.
7317 (i386bsd_frame_saved_pc): Make static.
7318 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7319 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7320 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7321 i386fbsd4_sc_pc_offset): New variables.
7322 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7323 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7324 functions.
7325 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7326 functions.
7327 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7328 Modify the value of i386fbsd_sigtramp_start and
7329 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7330 i386fbsd_sigtramp_end.
7331 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7332 function.
7333
7334 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7335 define to i386-linux-tdep.h.
7336 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7337 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7338 defines.
7339 (i386_linux_register_name, i386_linux_register_byte,
7340 i386_linux_register_raw_size): Remove prototypes.
7341 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7342 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7343 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7344 TARGET_WRITE_PC): Remove defines.
7345 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7346 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7347 i386_linux_write_pc): Remove prototypes.
7348 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7349 (get_longjmp_target): Remove prototype.
7350 * i386-linux-tdep.h: New file.
7351 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7352 * i386-linux-tdep.c: Include "i386-tdep.h" and
7353 "i386-linux-tdep.h".
7354 (i386_linux_register_name, i386_linux_register_byte,
7355 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7356 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7357 Make static.
7358 (i386_linux_init_abi): New function.
7359 (_initialize_i386_linux_tdep): New function.
7360
7361 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7362 (i386_saved_pc_after_call): Remove prototype.
7363 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7364 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7365 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7366 (i386_register_name, i386_stab_reg_to_regnum,
7367 i386_dwarf_reg_to_regnum): Remove prototypes.
7368 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7369 SIZEOF_SSE_REGS): Remove defines.
7370 (REGISTER_BYTES): Remove define.
7371 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7372 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7373 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7374 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7375 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7376 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7377 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7378 (get_longjmp_target): Remove prototype.
7379 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7380 (sigtramp_saved_pc): Remove define.
7381 (i386v4_sigtramp_saved_pc): Remove prototype.
7382 * config/i386/tm-go32.h (FRAME_CHAIN,
7383 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7384 (i386go32_frame_saved_pc): Remove prototype.
7385 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7386 (get_longjmp_target): Remove prototype.
7387 * i386-tdep.h: Include "osabi.h".
7388 (enum i386_abi): Removed.
7389 (enum struct_return): New enum.
7390 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7391 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7392 sc_pc_offset members.
7393 (i386_gdbarch_register_os_abi): Remove prototype.
7394 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7395 I386_SSE_NUM_REGS): New defines.
7396 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7397 I386_SSE_SIZEOF_REGS): New defines.
7398 (i386_register_name, i386_register_byte, i386_register_raw_size):
7399 New prototypes.
7400 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7401 (i386bsd_sigtramp_saved_pc): New prototype.
7402 * i386-tdep.c: Don't include "elf-bfd.h".
7403 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7404 i386_frame_chain, i386_saved_pc_after_call): Make static.
7405 (i386_frame_saved_pc): Rewrite to call architecture dependent
7406 function to deal with signal handlers. Make static.
7407 (i386go32_frame_saved_pc): Removed.
7408 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7409 Removed.
7410 (i386_get_longjmp_target): New function.
7411 (default_struct_convention, pcc_struct_convention,
7412 reg_struct_convention, valid_conventions, struct_convention): New
7413 variables.
7414 (i386_use_struct_convention): New function.
7415 (i386v4_sigtramp_saved_pc): Renamed to
7416 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7417 (i386_pc_in_sigtramp): New function.
7418 (i386_abi_names): Removed.
7419 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7420 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7421 Removed.
7422 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7423 i386_gdbarch_register_os_abi): Removed.
7424 (struct i386_abi_handler): Removed.
7425 (i386_abi_handler_list): Removed.
7426 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7427 functions.
7428 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7429 i386_nw_init_abi): New functions.
7430 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7431 Use set_gdbarch_xxx() calls instead of relying on macros for a
7432 number of calls.
7433 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7434 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7435 Register the various architecture variants defined in this file.
7436
ad2f7632
DJ
74372002-06-14 Daniel Jacobowitz <drow@mvista.com>
7438
7439 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7440 (struct main_type): Remove arg_types member. Update comments for
7441 struct field.
7442 (TYPE_ARG_TYPES): Remove.
7443 (TYPE_FN_FIELD_ARGS): Update.
7444 (smash_to_method_type): Update prototype.
7445
7446 * c-typeprint.c (cp_type_print_method_args): Take method type
7447 instead of argument list. Use new argument layout. Simplify.
7448 (c_type_print_args): Use new argument layout. Simplify.
7449 (c_type_print_base): Update call to cp_type_print_method_args.
7450 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7451 argument; use die->type instead. Update call to
7452 smash_to_method_type.
7453 (read_structure_scope): Update call to dwarf2_add_member_fn.
7454 * gdbtypes.c (allocate_stub_method): Update comment.
7455 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7456 Use new argument layout.
7457 (check_stub_method): Use new argument layout. Don't count
7458 void as an argument.
7459 (print_arg_types): Update comments. Use new argument layout.
7460 (recursive_dump_type): Don't print arg_types member.
7461 * hpread.c (hpread_read_struct_type): Use new argument layout.
7462 (fixup_class_method_type): Likewise.
7463 (hpread_type_lookup): Likewise.
7464 * stabsread.c (read_type): Update calls to read_args and
7465 smash_to_method_type.
7466 (read_args): Use new argument layout. Simplify.
7467 * valops.c (typecmp): Use new argument layout. Update parameters
7468 and comments. Simplify.
7469 (hand_function_call): Use new argument layout.
7470 (search_struct_method): Update call to typecmp.
7471 (find_overload_match): Use new argument layout.
7472
6da02953
DJ
74732002-06-13 Daniel Jacobowitz <drow@mvista.com>
7474
7475 * NEWS: Mention multithreaded debug support for gdbserver.
7476
519b2366
DJ
74772002-06-13 Daniel Jacobowitz <drow@mvista.com>
7478
7479 * MAINTAINERS: Mention NEWS.
7480
6c0d6680
DJ
74812002-06-13 Daniel Jacobowitz <drow@mvista.com>
7482
7483 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7484 (struct mips_objfile_private, compare_pdr_entries): New.
7485 (non_heuristic_proc_desc): Read the ".pdr" section if it
7486 is present.
7487
6529d2dd
AC
74882002-06-12 Andrew Cagney <ac131313@redhat.com>
7489
7490 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7491 (arm_debug): New static variable.
7492 (_initialize_arm_tdep): Add ``set debug arm'' command.
7493
26216b98
AC
74942002-06-12 Andrew Cagney <ac131313@redhat.com>
7495
7496 * Makefile.in (sim_arm_h): Define.
7497 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7498 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7499 (arm_register_sim_regno): New function, map an internal REGNUM
7500 onto a simulator register number.
7501 (arm_gdbarch_init): Set register_sim_regno.
7502
814b3ba0
AH
75032002-06-09 Aldy Hernandez <aldyh@redhat.com>
7504
7505 * MAINTAINERS: Add self.
7506
475b0867
JB
75072002-06-11 Jim Blandy <jimb@redhat.com>
7508
919d772c
JB
7509 * source.c (source_info): Mention whether the symtab has
7510 information about preprocessor macros.
7511
475b0867
JB
7512 Call the command `info macro', not `show macro'.
7513 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7514 Fix error message.
7515 (_initialize_macrocmd): Register `info_macro_command' in
7516 `infolist', not `showlist'.
7517
9e364162
DJ
75182002-06-11 Daniel Jacobowitz <drow@mvista.com>
7519
7520 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7521 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7522 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7523 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7524 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7525 unconditionally.
7526 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7527 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7528 (_initialize_mips_tdep): Remove dead code.
7529 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7530 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7531 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7532 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7533 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7534 MIPS_LAST_FP_ARG_REGNUM): Remove.
7535
23aa4c72
ML
75362002-06-11 Michal Ludvig <mludvig@suse.cz>
7537
7538 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7539 (unwind_tmp_obstack_free, parse_frame_info)
7540 (update_context, cfi_read_fp, cfi_write_fp)
7541 (cfi_frame_chain, cfi_init_extra_frame_info)
7542 (cfi_virtual_frame_pointer): Use the above function.
264d1763 7543 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 7544
70eb15a4
CV
75452002-06-11 Corinna Vinschen <vinschen@redhat.com>
7546
7547 * v850-tdep.c (v850_type_is_scalar): New function.
7548 (v850_use_struct_convention): Match current gcc implementation
7549 as close as possible.
7550 (v850_push_arguments): Fix stack_offset handling. Don't write
7551 struct_addr into register. This is done by v850_store_struct_return.
7552 (v850_extract_return_value): Care for structs.
7553 (v850_store_return_value): Ditto.
7554 (v850_store_struct_return): Actually write address.
7555
482a4d06
ML
75562002-06-11 Michal Ludvig <mludvig@suse.cz>
7557
7558 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7559 without debug information too.
7560
d855c300
AC
75612002-06-10 Andrew Cagney <ac131313@redhat.com>
7562
7563 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7564 Make multi-arch pure.
7565 * gdbarch.h, gdbarch.c: Re-generate.
7566 * arm-tdep.c (arm_print_float_info): Update.
7567 * arch-utils.h (default_print_float_info): Update.
7568 * arch-utils.c (default_print_float_info): Update.
7569 * infcmd.c (float_info): Update call.
7570
dd12a101
AC
75712002-06-10 Andrew Cagney <ac131313@redhat.com>
7572
7573 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7574 the front of the initialize list.
7575
101dcfbe
AC
75762002-06-10 Andrew Cagney <ac131313@redhat.com>
7577
7578 * infrun.c (struct inferior_status): Replace fields
7579 selected_frame_address and selected_level with field
7580 selected_frame_id.
7581 (save_inferior_status): Update. Use get_frame_id.
7582 (struct restore_selected_frame_args): Delete.
7583 (restore_selected_frame): Update. Use frame_find_by_id.
7584 (restore_inferior_status): Update.
7585
7586 * breakpoint.h (struct breakpoint): Change type of
7587 watchpoint_frame to frame_id.
7588 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7589 call to get_current_frame.
7590 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7591 get_current_frame.
7592 (watchpoint_check): Use frame_find_by_id.
7593
7594 * frame.h (record_selected_frame): Delete declaration.
7595 * stack.c (record_selected_frame): Delete function.
7596
7597 * frame.h (struct frame_id): Define.
7598 (get_frame_id): Declare.
7599 (frame_find_by_id): Declare.
7600 * frame.c (frame_find_by_id): New function.
7601 (get_frame_id): New function.
7602
304270b6
AV
76032002-06-10 Andrey Volkov <avolkov@transas.com>
7604
7605 * ser-e7kpc.c: Fix duplicated define and call of
7606 _initialize_ser_e7000pc
7607
2f2cf184
DJ
76082002-06-09 Daniel Jacobowitz <drow@mvista.com>
7609
7610 * signals/signals.c (target_signal_from_host): Fix #ifdef
7611 SIGRTMIN case.
7612 (do_target_signal_to_host): Likewise.
7613
caaa3122
DJ
76142002-06-09 Daniel Jacobowitz <drow@mvista.com>
7615
7616 * mips-tdep.c (mips_find_abi_section): New function.
7617 (mips_gdbarch_init): Call it.
7618
6ac5df3a
MK
76192002-06-09 Mark Kettenis <kettenis@gnu.org>
7620
7621 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7622 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7623 after Andrew's 2002-06-08 gdbarch change.
7624
82ea117a
MK
76252002-06-09 Mark Kettenis <kettenis@gnu.org>
7626
7627 * i386-linux-nat.c (suppy_gregset): Don't supply
7628 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7629 register cache.
7630 (fill_gregset): Don't fetch it under the same circumstances.
7631
3c25f8c7
AC
76322002-06-09 Andrew Cagney <cagney@redhat.com>
7633
7634 * Makefile.in (callback_h): Define.
7635 (remote_sim_h): Update path to remote-sim.h.
7636 (remote-rdp.o): Add $(callback_h).
7637 (remote-sim.o): Use $(callback_h).
7638 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7639 * remote-rdp.c: Include "gdb/callback.h".
7640
1029b7fa
MK
76412002-06-09 Mark Kettenis <kettenis@gnu.org>
7642
7643 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7644 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7645
616675d3
AC
76462002-06-08 Andrew Cagney <ac131313@redhat.com>
7647
a3efda28
AC
7648 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7649 * rdi-share/serpardr.c: Ditto.
7650 * rdi-share/unixcomm.c: Ditto.
7651 * rdi-share/serdrv.c: Ditto.
7652 * rdi-share/hostchan.h: Ditto.
7653 * rdi-share/hostchan.c: Ditto.
7654 * rdi-share/host.h: Ditto.
7655 * rdi-share/devsw.c: Ditto.
7656
c5f10366
AC
7657 * objfiles.h: Change type of obj_private to void pointer.
7658 * pa64solib.c: Update copyright. Don't include "assert.h", use
7659 strcmp instead of STREQ, use LONGEST, do not use PTR
7660 * somsolib.c: Ditto.
7661
616675d3
AC
7662 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7663 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7664 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7665
e4b415d9
AC
76662002-06-08 Andrew Cagney <ac131313@redhat.com>
7667
7668 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7669 (default_get_saved_register): Delete function.
7670 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7671 generic_unwind_get_saved_register.
7672 * gdbarch.h, gdbarch.c: Re-generate.
7673
ca0d0b52
AC
76742002-06-08 Andrew Cagney <ac131313@redhat.com>
7675
7676 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7677 generic_func_frame_chain_valid.
7678 * gdbarch.h, gdbarch.c: Re-generate.
7679 * blockframe.c (generic_func_frame_chain_valid): Only check
7680 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7681 passing FP to PC_IN_CALL_DUMMY.
7682 Fix PR gdb/360.
7683
76860b5f
AC
76842002-06-08 Andrew Cagney <ac131313@redhat.com>
7685
7686 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7687 (register_gdbarch_data): Initialize init_p.
7688 (gdbarch_data): Initialize data pointer using the init function.
7689 (init_gdbarch_data): Delete function.
7690 (gdbarch_update_p): Update.
7691 (initialize_non_multiarch): Update.
7692 (struct gdbarch): Add field initialized_p.
7693 * gdbarch.h, gdbarch.c: Re-generate.
7694
8dda9770
ML
76952002-06-07 Michal Ludvig <mludvig@suse.cz>
7696
7697 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7698 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7699 better do the things actually here.
7700 * x86-64-tdep.c (x86_64_register_name2nr): New.
7701 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7702 (x86_64_gdbarch_init): Respect the above change.
7703 * x86-64-tdep.h (x86_64_register_name2nr)
7704 (x86_64_register_nr2name): Add prototypes.
7705 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7706
3d79a47c
MS
77072002-06-06 Michael Snyder <msnyder@redhat.com>
7708
7bd91a28
MS
7709 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7710 Delete extra braces and re-indent.
7711 (d10v_store_return_value): Char return values
3d79a47c
MS
7712 must be shifted over by one byte in R0.
7713 (d10v_extract_return_value): Delete extra braces, re-indent.
7714
095a4c96
EZ
77152002-06-06 Elena Zannoni <ezannoni@redhat.com>
7716
7717 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7718 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7719 (d10v_integer_to_address): Rewrite.
7720 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7721 the d10v specific functions which take care of converting to the
7722 correct space.
7723
e8a77ca4
EZ
77242002-06-06 Elena Zannoni <ezannoni@redhat.com>
7725
7726 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7727 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7728
4f2e4a4f
AC
77292002-06-02 Andrew Cagney <ac131313@redhat.com>
7730
7731 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7732 includes.
7733 * config/tm-linux.h: Ditto.
7734 * config/alpha/tm-alphalinux.h: Ditto.
7735 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7736 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7737 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7738 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7739 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7740 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7741 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7742 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7743 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7744 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7745 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7746 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7747 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7748 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7749 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7750 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7751 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7752 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7753 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7754 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7755 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7756 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7757 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7758 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7759 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7760 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7761 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7762 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7763 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7764 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7765 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7766 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7767 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7768 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7769 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7770 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7771 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7772
ae2ab2ce
AS
77732002-05-04 Aidan Skinner <aidan@velvet.net>
7774
7775 * ada-exp.tab.c: New file
7776 * ada-exp.y: New file
7777 * ada-lang.c: New file
7778 * ada-lang.h: New file
7779 * ada-lex.c: New file
7780 * ada-lex.l: New file
7781 * ada-tasks.c: New file
7782 * ada-typeprint.c: New file
7783 * ada-valprint.c: New file
7784
0ddd0135
JT
77852002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7786
7787 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7788 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7789
750fbacc
JT
77902002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7791
7792 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7793 insetead of ppc-linux-tdep.o.
7794 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7795 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7796
df94e18a
AC
77972002-06-02 Andrew Cagney <ac131313@redhat.com>
7798
7799 2002-05-07 Christian Groessler <chris@groessler.org>
7800 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7801 bit register contents for little endian hosts.
7802
1a38ab75
AC
78032002-06-01 Andrew Cagney <ac131313@redhat.com>
7804
7805 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7806 any maintainer.
7807
8b1632ac
AC
78082002-06-01 Andrew Cagney <ac131313@redhat.com>
7809
7810 * gdbarch.h: Regenerate.
7811
627054c8
AC
78122002-06-01 Andrew Cagney <ac131313@redhat.com>
7813
7814 * MAINTAINERS: Add everyone to write-after-approval list.
7815
4f460812
AC
78162002-06-01 Andrew Cagney <ac131313@redhat.com>
7817
7818 * stack.c (frame_info): Use frame_register_unwind instead of
7819 saved_regs. Mention when the SP is on the stack or in a register.
7820
7821 * frame.h (frame_register_unwind_ftype): Define. Document.
7822 (struct frame_info): Add field register_unwind and
7823 register_unwind_cache.
7824 (frame_register_unwind): Declare.
7825 (generic_unwind_get_saved_register): Declare.
7826
7827 * frame.c (frame_register_unwind): New function.
7828 (generic_unwind_get_saved_register): New function.
7829
7830 * blockframe.c (generic_call_dummy_register_unwind): New function.
7831 (frame_saved_regs_register_unwind): New function.
7832 (set_unwind_by_pc): New function.
7833 (create_new_frame): New function.
7834 (get_prev_frame): New function.
7835
de888f76
AC
78362002-05-30 Andrew Cagney <ac131313@redhat.com>
7837
7838 * a29k-share/: Delete directory.
7839 * remote-vx29k.c: Delete file.
7840
2f2c3626
JT
78412002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7842
7843 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7844 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7845
9ce5c36a
JT
78462002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7847
7848 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7849 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7850 (sparc64nbsd-nat.o)
7851 (sparcnbsd-nat.o)
7852 (sparcnbsd-tdep.o): New dependency lists.
7853 * NEWS: Note new UltraSPARC NetBSD native configuration.
7854 * configure.host (sparc64-*-netbsd*): New host.
7855 * configure.tgt (sparc-*-netbsdelf*)
7856 (sparc-*-netbsd*): Set gdb_target to nbsd.
7857 (sparc64-*-netbsd*): New target.
7858 * sparc64nbsd-nat.c: New file.
7859 * sparcnbsd-nat.c: New file.
7860 * sparcnbsd-tdep.c: New file.
7861 * sparcnbsd-tdep.h: New file.
7862 * config/sparc/nbsd.mt: New file.
7863 * config/sparc/nbsd64.mh: New file.
7864 * config/sparc/nbsd64.mt: New file.
7865 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7866 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7867 (HOST_IPC): Remove.
7868 * config/sparc/nbsdaout.mt: Remove.
7869 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7870 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7871 (HOST_IPC): Remove.
7872 * config/sparc/nbsdelf.mt: Remove.
7873 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7874 sparc-nat.c compatiblity defines.
7875 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7876 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7877 * config/sparc/tm-nbsd64.h: New file.
7878 * config/sparc/tm-nbsdaout.h: Remove.
7879 * config/sparc/xm-nbsd.h: Remove.
7880
ef3cf062
JT
78812002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7882
7883 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7884 * sparc-tdep.c: Include osabi.h.
7885 (gdbarch_tdep): Add osabi member.
7886 (_initialize_sparc_tdep): Use gdbarch_register.
7887 (sparc_gdbarch_init): Use generic OS ABI framework.
7888 (sparc_dump_tdep): New function.
7889
ee8ff470
KB
78902002-05-30 Kevin Buettner <kevinb@redhat.com>
7891
7892 * corefile.c (do_captured_read_memory_integer): Return non-zero
7893 result.
7894 (safe_read_memory_integer): Copy result of memory read when
7895 status is non-zero. Also, add comments.
7896
7b112f9c
JT
78972002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7898
7899 * Makefile.in (ppc_tdep_h): Define.
7900 (ppc-linux-nat.o)
7901 (ppc-linux-tdep.o)
7902 (rs6000-tdep.o): Use $(ppc_tdep_h).
7903 (ppc-sysv-tdep.o)
7904 (ppcnbsd-nat.o)
7905 (ppcnbsd-tdep.o): New dependency lists.
7906 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7907 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7908 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7909 (ppc_sysv_abi_broken_use_struct_convention)
7910 (ppc_sysv_abi_use_struct_convention)
7911 (ppc_sysv_abi_push_arguments): Move to...
7912 * ppc-sysv-tdep.c: ...here.
7913 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7914 * rs6000-tdep.c (process_note_abi_tag_sections)
7915 (get_elfosabi): Remove.
7916 (rs6000_gdbarch_init): Use generic OS ABI framework.
7917 (rs6000_dump_tdep): New function.
7918 (_initialize_rs6000_tdep): Use gdbarch_register.
7919 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7920 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7921 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7922 of ppc-linux-tdep.o.
7923 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7924 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7925 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7926 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7927 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7928 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7929
480dd42a
JB
79302002-05-29 Jim Blandy <jimb@redhat.com>
7931
7932 * macroscope.c (default_macro_scope): Put `void' in empty argument
7933 list.
7934
4182591f
AC
79352002-05-29 Andrew Cagney <ac131313@redhat.com>
7936
7937 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7938 * arch-utils.c: Include "sim-regno.h".
7939 * gdbarch.sh: Don't include "sim-regno.h".
7940 * gdbarch.h, gdbarch.c: Regenerate.
7941 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7942 here.
7943 * arch-utils.h (legacy_register_sim_regno): To here.
7944 * remote-sim.c (legacy_register_sim_regno): Move function from
7945 here.
7946 * arch-utils.c (legacy_register_sim_regno): To here.
7947
8238d0bf
AC
79482002-05-28 Andrew Cagney <ac131313@redhat.com>
7949
7950 * sim-regno.h: New file.
7951 * Makefile.in (sim_regno_h): Define.
7952 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7953 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7954 (legacy_register_sim_regno): New function.
7955 (one2one_register_sim_regno): New function.
7956 (gdbsim_fetch_register): Rewrite.
7957 (gdbsim_store_register): Only store a register when
7958 REGISTER_SIM_REGNO is valid.
7959 * d10v-tdep.c: Include "sim-regno.h".
7960 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7961 (d10v_ts3_register_sim_regno): Ditto.
7962 * gdbarch.sh: Include "sim-regno.h".
7963 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7964 * gdbarch.h, gdbarch.c: Regenerate.
7965 * arch-utils.h (default_register_sim_regno): Delete declaration.
7966 * arch-utils.c (default_register_sim_regno): Delete function.
7967
485721b1
JT
79682002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7969
7970 * ppcnbsd-nat.c: Rewrite.
7971 * ppcnbsd-tdep.c: New file.
7972 * ppcnbsd-tdep.h: New file.
7973 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7974 solib.o, and solib-svr4.o.
7975 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7976 nbsd-tdep.o, and corelow.o.
7977
697f244d
AC
79782002-05-28 Andrew Cagney <ac131313@redhat.com>
7979
7980 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7981 `tr' and `sed'. Mention that `broken' targets are not expected to
7982 build.
7983
f08caad1 79842002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
7985
7986 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7987 Let PC point right after the prologue before looking up symbols.
7988
3139facc
MH
79892002-05-27 Martin M. Hunt <hunt@redhat.com>
7990
7991 * i386-tdep.c (i386_register_virtual_type): Return
7992 builtin_type_vec128i for SSE registers.
7993
7994 * gdbtypes.h (builtin_type_vec128i): Declare.
7995
7996 * gdbtypes.c (build_builtin_type_vec128i): New function.
7997 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7998 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7999 (build_gdbtypes): Initialize new builtin vector types.
8000 (_initialize_gdbtypes): Register new vector types with gdbarch.
8001
6e3ba3b8
JT
80022002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8003
8004 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8005 since it has been multi-arch'd.
8006 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8007 Move Alpha and VAX multi-arch news entries to same section
8008 as other multi-arch news.
8009
93d5585d
JT
80102002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8011
8012 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8013 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8014 static. Rename some register numbers to put them in ns32k-tdep
8015 private namespace.
8016 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8017 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8018 functions.
8019 (_initialize_ns32k_tdep): Use gdbarch_register.
8020 * ns32k-tdep.h: New file.
8021 * ns32knbsd-tdep.c: New file.
8022 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8023 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8024 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8025 REGISTER_BYTES, REGISTER_BYTE): Remove.
8026 * config/ns32k/tm-ns32k.h: New file.
8027 * config/ns32k/tm-umax.h: Remove.
8028
efb2c70e
JT
80292002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8030
8031 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8032 ns32k_store_struct_return, ns32k_extract_return_value,
8033 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8034 functions.
8035 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8036 ns32k_saved_pc_after_call.
8037 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8038 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8039 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8040 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8041 ns32k_extract_struct_value_address.
8042
7bcc927b
JT
80432002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8044
8045 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8046 ns32k_fix_call_dummy): New.
8047 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8048 ns32k_call_dummy_words.
8049 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8050 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8051 CALL_DUMMY_NARGS): Remove.
8052 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8053
78f9d765
JT
80542002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8055
8056 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8057 ns32k_frame_saved_pc, ns32k_frame_args_address,
8058 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8059 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8060 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8061 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8062 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8063 (BREAKPOINT): Remove..
8064 (FRAME_CHAIN): Define as ns32k_frame_chain.
8065 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8066 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8067 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8068 (FRAME_FIND_SAVED_REGS): Remove.
8069 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8070 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8071 (POP_FRAME): Define as ns32k_pop_frame.
8072
f2c762e0
JT
80732002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8074
8075 * ns32k-tdep.c (ns32k_register_byte_32082,
8076 ns32k_register_byte_32382, ns32k_register_raw_size,
8077 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8078 functions.
8079 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8080 ns32k_register_byte_32382.
8081 * config/ns32k/tm-umax.h: Update copyright years.
8082 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8083 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8084 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8085 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8086 (ns32k_get_enter_addr): Fix prototype.
8087
af137673
JT
80882002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8089
8090 * ns32k-tdep.c: Update copyright years.
8091 (ns32k_register_name_32082): New function.
8092 (ns32k_register_name_32382): Ditto.
8093 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8094 (REGISTER_NAME): Define as ns32k_register_name_32382.
8095 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8096 (REGISTER_NAME): Define as ns32k_register_name_32082.
8097
a8bc7b56
JB
80982002-05-24 Jim Blandy <jimb@redhat.com>
8099
8100 * dwarf2read.c (free_line_header): Use xfree, not free.
8101
83a45910
JT
81022002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8103
8104 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8105 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8106
0db71247
AC
81072002-05-23 Andrew Cagney <ac131313@redhat.com>
8108
8109 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8110
b9e5e4dd
AC
81112002-05-23 Andrew Cagney <ac131313@redhat.com>
8112
8113 From Ross Alexander at NEC Europe:
8114 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8115
de530e84
MS
81162002-05-23 Michael Snyder <msnyder@redhat.com>
8117
8118 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8119 for input, rather than parse_and_eval_address.
8120
b91b96f4
AC
81212002-05-23 Andrew Cagney <ac131313@redhat.com>
8122
8123 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8124 * Makefile.in (sim_d10v_h): Update definition.
8125
8b279e7a
AC
81262002-05-24 Andrew Cagney <cagney@redhat.com>
8127
8128 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8129 change `2002-05-22 Michael Snyder' below.
8130 (d10v_push_arguments): Ditto.
8131 (d10v_extract_return_value): Ditto.
8132
0a3d0425
JB
81332002-05-23 Jim Blandy <jimb@redhat.com>
8134
8135 * macrotab.c (check_for_redefinition): Don't complain if the new
8136 definition is the same as the previous one. Take more arguments
8137 to allow the comparison.
8138 (macro_define_object, macro_define_function): Pass more arguments
8139 to check_for_redefinition.
8140
78eac43e
MS
81412002-05-22 Michael Snyder <msnyder@redhat.com>
8142
8143 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8144 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8145 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8146 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8147 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8148 Add a temp variable to save a call (and a memory read).
8149 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8150 if possible (so that PC_IN_CALL_DUMMY will work).
8151
9bc1edb8
CV
81522002-05-22 Corinna Vinschen <vinschen@redhat.com>
8153
8154 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8155
005ef3d2
ML
81562002-05-22 Michal Ludvig <mludvig@suse.cz>
8157
8158 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8159 fde->cie_ptr.
8160 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8161 (dwarf2_build_frame_info): Add offset to fde->initial_location
8162 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
8163 (execute_stack_op): Change type of 'result' from ULONGEST to
8164 CORE_ADDR.
005ef3d2 8165
fcf4f891
JT
81662002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8167
8168 * config/alpha/tm-nbsd.h: Include solib.h.
8169
cfef91e4
JT
81702002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8171
8172 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8173 assumptions about the host's byte order.
8174
9964235a
JT
81752002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8176
8177 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8178 to dependency list.
8179 * alphanbsd-tdep.c: Include solib-svr4.h.
8180 * shnbsd-tdep.c: Ditto.
8181
9eeef8ef
JT
81822002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8183
8184 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8185 nbsd-tdep.h to dependency list.
8186 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8187 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8188 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8189 nbsdaout.mh and nbsdelf.mh consistently.
8190 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8191 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8192 nbsdaout.mt and nbsdelf.mh consistently.
8193 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8194 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8195 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8196 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8197 a.out shared library stuff from here...
8198 * config/nm-nbsdaout.h: ...to here.
8199 * config/tm-nbsd.h: Remove.
8200 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8201 * config/arm/nbsd.mh: Remove.
8202 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8203 nbsd-tdep.o.
8204 * config/arm/nbsdaout.mh: New file.
8205 * config/arm/nbsdelf.mh: New file.
8206 * config/arm/nm-nbsdaout.h: New file.
8207 * config/i386/nbsd.mh: Remove.
8208 * config/i386/nbsd.mt: Remove.
8209 * config/i386/nbsdaout.mh: New file.
8210 * config/i386/nbsdaout.mt: New file.
8211 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8212 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8213 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8214 i386_register_u_addr): Remove.
8215 * config/i386/nm-nbsdaout.h: New file.
8216 * config/i386/nm-nbsdelf.h: Remove.
8217 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8218 (USE_STRUCT_CONVENTION): Remove.
8219 * config/i386/tm-nbsdaout.h: New file.
8220 * config/i386/tm-nbsdelf.h: Remove.
8221 * config/m68k/nbsd.mh: Remove.
8222 * config/m68k/nbsd.mt: Remove.
8223 * config/m68k/nbsdaout.mh: New file.
8224 * config/m68k/nbsdaout.mt: New file.
8225 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8226 * config/m68k/nm-nbsdaout.h: New file.
8227 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8228 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8229 * config/ns32k/nbsd.mh: Remove.
8230 * config/ns32k/nbsd.mt: Remove.
8231 * config/ns32k/nbsdaout.mh: New file.
8232 * config/ns32k/nbsdaout.mt: New file.
8233 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8234 * config/ns32k/nm-nbsdaout.h: New file.
8235 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8236 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8237 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8238 (SVR4_SHARED_LIBS): Remove.
8239 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8240 * config/sparc/nbsd.mh: Remove.
8241 * config/sparc/nbsd.mt: Remove.
8242 * config/sparc/nbsdaout.mh: New file.
8243 * config/sparc/nbsdaout.mt: New file.
8244 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8245 * config/sparc/nbsdelf.mt: New file.
8246 * config/sparc/nm-nbsdaout.h: New file.
8247 * config/sparc/nm-nbsdelf.h: Remove.
8248 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8249 * config/sparc/tm-nbsdaout.h: New file.
8250
257ce470
JT
82512002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8252
8253 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8254 mipsnbsd-tdep.c
8255 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8256
76a6d5fe
JT
82572002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8258
8259 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8260 shnbsd-nat.c.
8261 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8262
45888261
JT
82632002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8264
8265 * NEWS: Note new MIPS NetBSD native configuration.
8266 * configure.host (mips*-*-netbsd*): New host.
8267 * configure.tgt (mips*-*-netbsd*): New target.
8268 * mipsnbsd-nat.c: New file.
8269 * mipsnbsd-tdep.c: New file.
8270 * mipsnbsd-tdep.h: New file.
8271 * config/mips/nbsd.mh: New file.
8272 * config/mips/nbsd.mt: New file.
8273 * config/mips/nm-nbsd.h: New file.
8274 * config/mips/tm-nbsd.h: New file.
8275
70f80edf
JT
82762002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8277
8278 * Makefile.in (SFILES): Add osabi.c.
8279 (COMMON_OBS): Add osabi.o.
8280 (osabi.o): New dependency list.
8281 * osabi.c: New file.
8282 * osabi.h: New file.
8283 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8284
8285 * Makefile.in (alpha_tdep_h): Define and use instead of
8286 alpha-tdep.h.
8287 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8288 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8289 Remove.
8290 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8291 * alpha-tdep.h: Include osabi.h.
8292 (alpha_abi): Remove.
8293 (gdbarch_tdep): Use generic OS ABI framework.
8294 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8295 gdbarch_register_osabi.
8296 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8297 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8298 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8299
8300 * Makefile.in (sh_tdep_h): Add osabi.h.
8301 * sh-tdep.h (sh_osabi): Remove.
8302 (gdbarch_tdep): Use generic OS ABI framework.
8303 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8304 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8305 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8306 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8307
8308 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8309 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8310 gdbarch_register_osabi.
8311 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8312 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8313 (get_elfosabi): Rename to...
8314 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8315 ABI framework support routines.
8316 (arm_gdbarch_init): Use generic OS ABI framework.
8317 (arm_dump_tdep): Likewise.
8318 (_initialize_arm_tdep): Likewise.
8319 * arm-tdep.h: Include osabi.h.
8320 (arm_abi): Remove.
8321 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8322 osabi member.
8323 (arm_gdbarch_register_os_abi): Remove prototype.
8324 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8325 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8326
8327 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8328 * mips-tdep.c: Include osabi.h.
8329 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8330 OS ABI framework.
8331
d194345b
KH
83322002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8333
8334 * h8300-tdep.c: Fix formatting.
8335
70c6b0d1
EZ
83362002-05-20 Elena Zannoni <ezannoni@redhat.com>
8337
8338 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8339 printing vector registers.
8340
165b8e33
AC
83412002-05-19 Andrew Cagney <ac131313@redhat.com>
8342
8343 From Fernando Nasser:
8344 * remote.c (remote_async_open_1): Re-throw the exception when the
8345 connection fails.
8346 (remote_cisco_open): Ditto.
8347 (remote_open_1): Ditto.
8348
36918e70
AC
83492002-05-19 Andrew Cagney <ac131313@redhat.com>
8350
8351 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8352 (remote_start_remote): Add uiout parameter. Pass through to
8353 remote_start_remote_dummy.
8354 (remote_open_1): Use catch_exception instead of catch_errors.
8355 (remote_async_open_1): Ditto.
8356 (remote_cisco_open): Ditto.
8357
ae44c0c4
AC
83582002-05-19 Andrew Cagney <ac131313@redhat.com>
8359
8360 * remote.c (remote_start_remote): Replace PTR with void pointer.
8361 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8362 static.
8363
8efe637d
AC
83642002-05-18 Andrew Cagney <ac131313@redhat.com>
8365
8366 * gdb_indent.sh: Allow the script to be run in the sim directory.
8367
2f1b5984
MK
83682002-05-18 Mark Kettenis <kettenis@gnu.org>
8369
f0f625e2
MK
8370 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8371 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8372
2f1b5984
MK
8373 * corelow.c (core_open): Only call set_gdbarch_from_file if
8374 exec_bfd is NULL.
8375
fc974602
AV
83762002-05-17 Andrey Volkov <avolkov@transas.com>
8377
8378 * h8300-tdep.c: Add support of EXR register
8379 * config/h8300/tm-h8300.h: Ditto.
8380
906709f4
AV
83812002-05-17 Andrey Volkov <avolkov@transas.com>
8382
8383 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8384
6e591d68
AV
83852002-05-17 Andrey Volkov <avolkov@transas.com>
8386
8387 * h8300-tdep.c: Change literal regnums to REGNO.
8388
84f0252a
JB
83892002-05-17 Jim Blandy <jimb@redhat.com>
8390
e0e9281e
JB
8391 * NEWS: Note addition of macro support.
8392
84f0252a
JB
8393 Expand preprocessor macros in C expressions.
8394 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8395 (scan_macro_expansion, scanning_macro_expansion,
8396 finished_macro_expansion): New function declarations.
8397 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8398 variable declarations.
8399 * parser-defs.h (expression_context_pc): New declaration.
8400 * parse.c (expression_context_pc): New variable.
8401 (parse_exp_1): Set expression_context_pc, as well as
8402 expression_context_block.
8403 * c-exp.y (yylex): If we're not already reading the result of a
8404 macro expansion, try to macro-expand the next token. When we're
8405 done scanning a macro expansion, switch back to the mainline text.
8406 Commas and `if's in a macro's expansion don't terminate the input.
8407 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8408 (macro_original_text, macro_expanded_text,
8409 expression_macro_lookup_func, expression_macro_lookup_baton): New
8410 variables.
8411 (scan_macro_expansion, scanning_macro_expansion,
8412 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8413 c_preprocess_and_parse): New functions.
8414 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8415 c_preprocess_and_parse, instead of c_parse.
8416 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8417 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8418
1c509ca8
JR
8419Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8420
8421 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8422 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8423 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8424
2250ee0c
CV
84252002-05-17 Corinna Vinschen <vinschen@redhat.com>
8426
8427 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8428
ab3b8126
JT
84292002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8430
8431 * Makefile.in (sh_tdep_h): Define and use.
8432 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8433 register enum): Move to...
8434 * * sh-tdep.h: ...here.
8435 * sh-tdep.c: Include sh-tdep.h.
8436 * sh3-rom.c: Likewise.
8437 * shnbsd-tdep.c: Likewise.
8438
ed9d4749
MS
84392002-05-16 Michael Snyder <msnyder@redhat.com>
8440
8441 * arm-tdep.c: Spelling fix in comment.
8442
2e276125
JB
84432002-05-16 Jim Blandy <jimb@redhat.com>
8444
6821892e
JB
8445 Add commands for manually expanding macros and showing their
8446 definitions.
8447 * macrocmd.c, macroscope.c, macroscope.h: New files.
8448 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8449 (macroscope_h): New variable.
8450 (HFILES_NO_SRCDIR): Add macroscope.h.
8451 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8452 (macroscope.o, macrocmd.o): New rules.
8453
2e276125
JB
8454 Teach the Dwarf 2 reader to read macro information.
8455 * dwarf2read.c: #include "macrotab.h".
8456 (dwarf_macinfo_buffer): New variable.
8457 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8458 dwarf_macinfo_size.
8459 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8460 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8461 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8462 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8463 dwarf2_macro_spaces_in_definition): New complaints.
8464 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8465 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8466 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8467 the partial symbol table.
8468 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8469 from what's recorded in the partial symbol table.
8470 (read_file_scope): If the compilation unit has a
8471 `DW_AT_macro_info' attribute, read its macro information.
8472 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8473
2f53fe6c
DJ
84742002-05-16 Daniel Jacobowitz <drow@mvista.com>
8475
8476 Fix PR gdb/546
8477 * ser-tcp.c: Don't include <netinet/udp.h>.
8478
2be99286
SC
84792002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8480
8481 * MAINTAINERS: Update my email address.
8482
c9af212b 84832002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
8484
8485 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8486 include file of the same name.
8487
bf5f1a52
CV
84882002-05-16 Corinna Vinschen <vinschen@redhat.com>
8489
8490 * configure.tgt: Mark v850 as multi-arched.
8491 * config/v850/tm-v850.h: Remove file.
8492 * config/v850/v850.mt: Eliminate TM_FILE.
8493
435e042a
CV
84942002-05-16 Corinna Vinschen <vinschen@redhat.com>
8495
8496 * v850-tdep.c: Full multi-arch.
8497 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8498 Define GDB_MULTI_ARCH to 2.
8499
9819c6c8
PM
85002002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8501
8502 * p-exp.y (current_type): New static variable.
8503 Carries the type of the expression at the position that is parsed.
8504 (push_current_type, pop_current_type): Two new functions. Used
8505 to store/restore current_type in expression on specific tokens.
c9af212b
RE
8506 (search_field): New static variable. Set to one after parsing a point
8507 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
8508 (FIELDNAME): New token. After a point only a token belonging to
8509 current_type type definition is allowed.
8510 (all over token rules): reset and change current_type according
8511 to rules.
8512 (exp '[' rule): insert implicit array index field if
8513 exp is a pascal string type.
8514
3a06899a
CV
85152002-05-16 Corinna Vinschen <vinschen@redhat.com>
8516
8517 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8518 frame info. Use frame_info's saved_regs instead of matching member
8519 in extra_frame_info throughout.
8520 (v850_frame_init_saved_regs): New function.
8521 (v850_init_extra_frame_info): Move most functionality into
8522 v850_frame_init_saved_regs().
8523 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8524 (v850_frame_find_saved_regs): Remove declaration.
8525 (FRAME_FIND_SAVED_REGS): Remove definition.
8526 (v850_frame_init_saved_regs): Add declaration.
8527 (FRAME_INIT_SAVED_REGS): Add definition.
8528
6ed14b0e
CV
85292002-05-16 Corinna Vinschen <vinschen@redhat.com>
8530
8531 * v850-tdep.c: Begin multi-arch'ing v850.
8532 (v850_target_architecture_hook): Remove function.
8533 (v850_gdbarch_init): New function. Add code previously in
8534 v850_target_architecture_hook().
8535 (_initialize_v850_tdep): Don't set target_architecture_hook.
8536 Call register_gdbarch_init() instead.
8537
42725910
DJ
85382002-05-16 Daniel Jacobowitz <drow@mvista.com>
8539
8540 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8541 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8542 (fixup_class_method_type): Likewise.
8543
99d9066e
JB
85442002-05-15 Jim Blandy <jimb@redhat.com>
8545
8546 Add macro structures to GDB's symbol tables. Nobody puts anything
8547 in them yet.
8548 * symtab.h (struct symtab): New member: `macro_table'.
8549 * buildsym.h (pending_macros): New global variable.
8550 * buildsym.c: #include "macrotab.h".
8551 (buildsym_init): Initialize `pending_macros'.
8552 (end_symtab): If we found macro information while reading a CU's
8553 debugging info, do build a symtab structure for it. Make the
8554 symtab point to the macro information, and clear the
8555 `pending_macros' pointer which held it while we were reading the
8556 debug info.
8557 (really_free_pendings): Free any pending macro table.
8558 * objfiles.h (struct objfile): New member: `macro_cache'.
8559 * objfiles.c (allocate_objfile): Set allocate and free functions
8560 for the macro cache's objstack.
8561 (free_objfile): Empty the macro cache's obstack.
8562 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8563 set new allocate and free functions for it.
8564 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8565 free functions for the macro cache's objstack. (Why is this
8566 function building its own objfile?)
8567 * symmisc.c (print_objfile_statistics): Print statistics on the
8568 macro bcache.
8569 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8570
c899585b
RE
85712002-05-15 Richard Earnshaw <rearnsha@arm.com>
8572
8573 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8574 (REGISTER_U_ADDR): Delete definition.
8575 (arm_register_u_addr): Delete declaration.
8576
a6cdd8c5
RE
85772002-05-15 Richard Earnshaw <rearnsha@arm.com>
8578
8579 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8580 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8581
c97dcfc7
AC
85822002-05-14 Andrew Cagney <ac131313@redhat.com>
8583
8584 * regcache.c (register_valid): Revise comments refering to "Not
8585 available" and "unavailable".
8586 * frame.c (frame_register_read): Ditto.
8587 * findvar.c (value_of_register): Ditto.
8588
93021b7d
AC
85892002-05-15 Andrew Cagney <cagney@redhat.com>
8590
8591 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8592 (remote-sim.o): Update dependencies.
8593 (d10v-tdep.o): Specify dependencies.
8594 (sim_d10v_h): Define.
8595
a86bc61c
JB
85962002-05-14 Jim Blandy <jimb@redhat.com>
8597
8598 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8599 * macrotab.c (macro_lookup_inclusion, find_definition,
8600 new_macro_table): Same.
8601
8602 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8603 not `! strcmp ()'. This is a dubious improvement.
8604 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8605
8606 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8607 although it's not necessary, to avoid a warning.
8608
2fdde8f8
DJ
86092002-05-14 Daniel Jacobowitz <drow@mvista.com>
8610
8611 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8612 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8613 TYPE_INSTANCE_FLAGS.
8614 (struct main_type): New.
8615 (struct type): Move most members to struct main_type. Change
8616 cv_type and as_type to new type_chain member. Add instance_flags.
8617 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8618 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8619 (finish_cv_type): Remove prototype.
8620 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8621 Set TYPE_CHAIN.
8622 (alloc_type_instance): New function.
8623 (smash_type): New function.
8624 (make_pointer_type, make_reference_type, make_function_type)
8625 (smash_to_member_type, smash_to_method_type): Call smash_type.
8626 (make_qualified_type): New function.
8627 (make_type_with_address_space): Call make_qualified_type.
8628 (make_cv_type): Likewise.
8629 (finish_cv_type): Remove unnecessary function.
8630 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8631 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8632 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8633 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8634 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8635 * hpread.c (hpread_read_struct_type): Likewise.
8636 * stabsread.c (read_struct_type): Likewise.
8637
843fedf4
EZ
86382002-05-14 Elena Zannoni <ezannoni@redhat.com>
8639
8640 * configure.tgt: Add a catch all sh* target, for cases like
8641 sh[2,3,4]-elf and sh-hms.
8642
05a6c72c
KS
86432002-05-14 Keith Seitz <keiths@redhat.com>
8644
8645 * event-loop.c (create_file_handler): Don't do anything but
8646 update data when we are given a fd which we are already
8647 monitoring.
8648
5d085aaf
ML
86492002-05-14 Michal Ludvig <mludvig@suse.cz>
8650
8651 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8652 (update_context): Use __func__ in warnings.
8653
9db8d71f
DJ
86542002-05-14 Daniel Jacobowitz <drow@mvista.com>
8655
8656 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8657 and tcp_close to net_open and net_close.
8658 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8659 using UDP if requested. Don't try to disable Nagle on UDP
8660 sockets.
8661 * remote.c (remote_serial_open): New function. Warn about UDP.
8662 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8663
5dbc6baa
EZ
86642002-05-13 Elena Zannoni <ezannoni@redhat.com>
8665
8666 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8667
cc3023f7
EZ
86682002-05-13 Elena Zannoni <ezannoni@redhat.com>
8669
8670 * configure.tgt: Remove sh-hms target.
8671 * MAINTAINERS: Don't list sh-hms as a separate target.
8672
ec2bcbe7
JB
86732002-05-13 Jim Blandy <jimb@redhat.com>
8674
8675 Add first preprocessor macro-expansion files.
8676 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8677 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8678 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8679 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8680 (COMMON_OBS): Add macrotab.o, macroexp.o.
8681 (macroexp.o, macrotab.o): New rules.
8682
6d531722
AC
86832002-05-13 Andrew Cagney <ac131313@redhat.com>
8684
8685 * config/m88k/tm-m88k.h: Update copyright.
8686 (m88k_target_write_pc): Declare
8687 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8688 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8689 (SHIFT_INST_REGS): Update definition.
8690 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8691 using old definition of TARGET_WRITE_PC.
8692 * regcache.c (generic_target_write_pc): Delete code handling
8693 NNPC_REGNUM.
8694 * gdbarch.sh (NNPC_REGNUM): Delete.
8695 * gdbarch.h, gdbarch.c: Regenerate.
8696
3e3f2739
RE
86972002-05-13 Richard Earnshaw <rearnsha@arm.com>
8698
8699 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8700 builtin reg number.
8701
0004e5a2
DJ
87022002-05-13 Daniel Jacobowitz <drow@mvista.com>
8703
8704 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8705 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8706 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8707 access macros.
8708 * c-typeprint.c (cp_type_print_method_args): Likewise.
8709 (c_type_print_args): Likewise.
8710 * d10v-tdep.c (d10v_push_arguments): Likewise.
8711 (d10v_extract_return_value): Likewise.
8712 * expprint.c (print_subexp): Likewise.
8713 * gdbtypes.c (lookup_primitive_typename): Likewise.
8714 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8715 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8716 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8717 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8718 (TYPE_VECTOR): Likewise.
8719 * hpread.c (hpread_read_struct_type)
8720 (fix_static_member_physnames, fixup_class_method_type)
8721 (hpread_type_lookup): Likewise.
8722 * mdebugread.c (parse_symbol, parse_type): Likewise.
8723 * p-lang.c (is_pascal_string_type): Likewise.
8724 * valops.c (hand_function_call): Likewise.
8725 * x86-64-tdep.c (classify_argument): Likewise.
8726
8727 * hpread.c (hpread_read_function_type)
8728 (hpread_read_doc_function_type): Call replace_type.
8729 * dstread.c (create_new_type): Delete.
8730 (decode_dst_structure, process_dst_function): Call alloc_type.
8731 Use type access macros.
8732
dff95cc7
MK
87332002-05-12 Mark Kettenis <kettenis@gnu.org>
8734
8735 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8736 the're not supported by the current architecture.
8737 (i387_fill_fxsave): Likewise.
8738
bbcd32ad
FF
87392002-05-12 Fred Fish <fnf@redhat.com>
8740
8741 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8742 sect_index_xxx members to index the first slot in section_offsets
8743 if all of the section_offsets are zero.
8744
89cf4787
MK
87452002-05-12 Mark Kettenis <kettenis@gnu.org>
8746
8747 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8748 checked in with last change.
8749
1f77ffc5
MK
87502002-05-12 Mark Kettenis <kettenis@gnu.org>
8751
8752 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8753 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8754 config.sub.
8755
89b8b4a9
DJ
87562002-05-12 Daniel Jacobowitz <drow@mvista.com>
8757
8758 * Makefile.in: Update dependencies.
8759
14a5e767
AC
87602002-05-11 Andrew Cagney <ac131313@redhat.com>
8761
8762 * language.c (local_hex_string_custom): Simplify. Do not depend
8763 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8764
8765 * memattr.c (mem_info_command): Replace calls to
8766 longest_local_hex_string and longest_local_hex_string_custom.
8767 * buildsym.c (make_blockvector): Ditto.
8768 * solib.c (info_sharedlibrary_command): Ditto.
8769 * tracepoint.c (tracepoints_info): Ditto.
8770 * symtab.c (print_msymbol_info): Ditto.
8771
8772 * language.c (local_hex_string): Delete.
8773 (local_hex_string_custom): Delete.
8774 (longest_local_hex_string): Rename to local_hex_string.
8775 (longest_local_hex_string_custom): Rename to
8776 local_hex_string_custom.
8777 * language.h (local_hex_string): Change parameter type to LONGEST.
8778 (local_hex_string_custom): Ditto.
8779 (longest_local_hex_string): Delete declaration.
8780 (longest_local_hex_string_custom): Ditto.
8781
8782 * solib.c: Update copyright.
8783 * memattr.c: Update copyright.
8784
13d01224
AC
87852002-05-11 Andrew Cagney <ac131313@redhat.com>
8786
8787 * arch-utils.h (legacy_register_to_value): Declare.
8788 (legacy_value_to_register): Declare.
8789 (legacy_convert_register_p): Declare.
8790 * arch-utils.c (legacy_register_to_value): New function.
8791 (legacy_value_to_register): New function.
8792 (legacy_convert_register_p): New function.
8793
8794 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8795 (VALUE_TO_REGISTER): Define.
8796 (CONVERT_REGISTER_P): Define.
8797 * gdbarch.h, gdbarch.c: Regenerate.
8798
8799 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8800 VALUE_TO_REGISTER.
8801 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8802 CONVERT_REGISTER_P.
8803
4a1970e4
DJ
88042005-05-11 Daniel Jacobowitz <drow@mvista.com>
8805 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8806
8807 * Makefile.in: Update dependencies for valops.c.
8808 * valops.c: Include "gdb_assert.h".
8809 (typecmp): Skip THIS parameter to methods.
8810 (find_method_list): Remove static_memfuncp argument,
8811 update callers. Check for stub methods.
8812 (find_value_oload_method_list): Don't set *static_memfuncp.
8813 (find_overload_match): Don't check for stub methods. Assert
8814 that methods are not stubbed. Handle static methods.
8815 (value_find_oload_method_list): Remove static_memfuncp argument.
8816 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8817 to the argument list for static stub methods.
8818 * value.h (value_find_oload_method_list): Update prototype.
8819
b2e75d78
AC
88202002-05-11 Andrew Cagney <ac131313@redhat.com>
8821
8822 * arch-utils.h (generic_register_size): Declare.
8823 (generic_register_raw_size, generic_register_virtual_size): Delete
8824 declarations.
8825 * arch-utils.c (generic_register_raw_size): Delete.
8826 (generic_register_size): New function.
8827 (generic_register_virtual_size): Delete.
8828
8829 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8830 default generic_register_size.
8831 * gdbarch.h, gdbarch.c: Re-generate.
8832
8833 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8834 register_virtual_size.
8835 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8836 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8837
451fbdda
AC
88382002-05-11 Andrew Cagney <ac131313@redhat.com>
8839
8840 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8841 * gdbarch.h, gdbarch.c: Regenerate.
8842 * gnu-v3-abi.c: Update copyright.
8843 (vtable_address_point_offset): Update.
8844 (gnuv3_rtti_type): Update.
8845 (gnuv3_baseclass_offset): Update.
8846 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8847 (init_fetch_link_map_offsets): Update.
8848 * remote.c (get_remote_state): Update.
8849
6d2f5cea
DJ
88502002-05-11 Daniel Jacobowitz <drow@mvista.com>
8851
8852 * TODO: Remove value_headof/value_from_vtable_info comment.
8853 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8854 * values.c (value_headof, value_from_vtable_info): Delete.
8855 * value.h (value_from_vtable_info): Delete prototype.
8856
d2324da4
AC
88572002-05-11 Andrew Cagney <ac131313@redhat.com>
8858
8859 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8860 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8861 $(gdb_regex_h).
8862 (gdb_assert_h): Define.
8863 (gdb_wait_h): Define.
8864 (gdb_regex_h): Define.
8865
5c717440
DJ
88662002-05-11 Daniel Jacobowitz <drow@mvista.com>
8867
8868 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8869 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8870
6c7861b3
JT
88712002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8872
8873 * nbsd-tdep.c: Fix comment.
8874
ea5bc2a6
JT
88752002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8876
8877 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8878 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8879 (nbsd-tdep.o): New dependency list.
8880 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8881 nbsd-tdep.h.
8882 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8883 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8884 * nbsd-tdep.c: New file.
8885 * nbsd-tdep.h: New file.
8886 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8887 nbsd-tdep.h.
8888 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8889 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8890 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8891 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8892
b28da865
JT
88932002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8894
8895 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8896 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8897 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8898 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8899 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8900 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8901
4b8ff1fa
JT
89022002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8903
8904 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8905 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8906 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8907 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8908 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8909 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8910 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8911
dfe6eb1f
JT
89122002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8913
8914 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8915 fetch_elfcore_registers to...
8916 * i386nbsd-tdep.c: ...here.
8917 (i386nbsd_use_struct_convention): Rename to...
8918 (i386nbsd_aout_use_struct_convention): ...this.
8919 (i386nbsd_supply_reg): New function.
8920 (i386nbsd_fill_reg): New function.
8921 (fetch_core_registers): Use i386nbsd_supply_reg.
8922 (fetch_elfcore_registers): Likewise.
8923 (_initialize_i386nbsd_tdep): New function.
8924 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8925 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8926 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8927 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8928 (i386nbsd_aout_use_struct_convention): ...this.
8929
20cb8cda
JT
89302002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8931
8932 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8933 (store_inferior_registers): Use shnbsd_fill_reg.
8934 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8935 sh_nbsd_supply_register): Collapse into...
8936 (shnbsd_supply_reg): ...this.
8937 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8938 (shnbsd_fill_reg): ...this.
8939 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8940 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8941 (fetch_core_registers): Use shnbsd_supply_reg.
8942 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8943 (sh_nbsd_core_fns): Rename to...
8944 (shnbsd_core_fns): ...this.
8945 (sh_nbsd_elfcore_fns): Rename to...
8946 (shnbsd_elfcore_fns): ...this.
8947 (sh_nbsd_init_abi): Rename to...
8948 (shnbsd_init_abi): ...this.
8949 (_initialize_sh_nbsd_tdep): Rename to...
8950 (_initialize_shnbsd_tdep): ...this.
8951 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8952 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8953 sh_nbsd_fill_register): Remove prototypes.
8954 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8955
e750d25e
JT
89562002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8957
8958 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8959 (i387-nat.o): Delete dependency list.
8960 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8961 (x86-64-linux-nat.o): Likewise.
8962 * i387-nat.c: Delete file, moving contents to...
8963 * i387-tdep.c: ...here.
8964 * i387-nat.h: Rename...
8965 * i387-tdep.h: ...to this.
8966 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8967 * i386-linux-nat.c: Likewise.
8968 * i386bsd-nat.c: Likewise.
8969 * i386gnu-nat.c: Likewise.
8970 * i386nbsd-nat.c: Likewise.
8971 * i386v4-nat.c: Likewise.
8972 * x86-64-linux-nat.c: Likewise.
8973 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8974 * config/i386/go32.mh (NATDEPFILES): Likewise.
8975 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8976 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8977 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8978 * config/i386/linux.mh (NATDEPFILES): Likewise.
8979 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8980 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8981 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8982 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8983
1aee598a
JT
89842002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8985
8986 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8987 (alphanbsd-nat.o): Remove dependency list.
8988 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8989 * alphanbsd-nat.c: Delete. Contents moved to...
8990 * alphanbsd-tdep.c: ...here.
8991 (_initialize_alphanbsd_tdep): Register core functions.
8992 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8993
12bcb0fe
JT
89942002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8995
8996 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8997 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8998 (alphanbsd-nat.o): Likewise.
8999 (alphabsd-tdep.o): New dependency list.
9000 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9001 (fill_gregset): Use alphabsd_fill_reg.
9002 (supply_fpregset): Use alphabsd_supply_fpreg.
9003 (fill_fpregset): Use alphabsd_fill_fpreg.
9004 (fetch_inferior_registers): Use struct reg and struct fpreg
9005 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9006 and alphabsd_supply_fpreg.
9007 (store_inferior_registers): Use struct reg and struct fpreg
9008 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9009 and alphabsd_fill_fpreg.
9010 * alphabsd-tdep.c: New file.
9011 * alphabsd-tdep.h: New file.
9012 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9013 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9014 alphabsd_supply_fpreg.
9015 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9016 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9017
361d1df0
EC
90182002-05-11 Eric Christopher <echristo@redhat.com>
9019
9020 * mips-tdep.c (mips_double_register_type): Fix thinko.
9021 (mips_single_register_type): Ditto.
9022 * MAINTAINERS: Add self.
9023
92dd7cee
MK
90242002-05-11 Mark Kettenis <kettenis@gnu.org>
9025
9026 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9027 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9028 right thing on architectures with different endianness and/or
9029 integer sizes.
9030
e27da16d
JT
90312002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9032
9033 From Christian Limpach <chris@Pin.LU>
9034 * configure.in: Change sed expression which comments out
9035 NATDEPFILES to also comment out continuation lines.
9036 * configure: Regenerate.
9037
ddde02bd
EZ
90382002-05-10 Elena Zannoni <ezannoni@redhat.com>
9039
9040 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9041 big patch.
9042
1c922164
EZ
90432002-05-10 Elena Zannoni <ezannoni@redhat.com>
9044
9045 * sh-tdep.c: Include correct file.
9046
283150cd
EZ
90472002-05-10 Elena Zannoni <ezannoni@redhat.com>
9048
9049 New support for sh64-elf (sh5) target.
9050
9051 * configure.tgt: For sh64-elf target, default to sh-elf.
9052
9053 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9054 (struct gdbarch_tdep): Add new fields for new registers and ABI
9055 info.
361d1df0 9056
283150cd
EZ
9057 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9058 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9059 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9060 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9061 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9062 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9063 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9064 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9065 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9066 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9067 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9068 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9069 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9070 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9071 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9072 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9073 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9074 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9075 sign_extend, sh64_nofp_frame_init_saved_regs,
9076 sh64_init_extra_frame_info, sh64_get_saved_register,
9077 sh64_extract_struct_value_address, sh64_pop_frame,
9078 sh64_push_arguments, sh64_extract_return_value,
9079 sh64_store_return_value, sh64_show_media_regs,
9080 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9081 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9082 sh_sh64_register_virtual_type,
9083 sh_sh64_register_convert_to_virtual,
9084 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9085 sh64_register_read, sh64_pseudo_register_write,
9086 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9087 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9088 sh64_do_pseudo_register, sh_compact_do_registers_info,
9089 sh64_do_registers_info, sh_gdbarch_init): New functions.
9090
3117ed25
EZ
90912002-05-10 Elena Zannoni <ezannoni@redhat.com>
9092
9093 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9094
2654e6d4
DJ
90952002-05-10 Daniel Jacobowitz <drow@mvista.com>
9096
9097 * linespec.c (decode_line_1): Check for a double quote after
9098 a filename correctly.
9099
9ab3e532
JB
91002002-05-10 Jim Blandy <jimb@redhat.com>
9101
9102 Properly track the size of the current objfile's .debug_line section.
9103 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9104 (DWARF_LINE_SIZE): New macro.
9105 (dwarf2_build_psymtabs_hard): Record the line section's size in
9106 the partial symbol table.
9107 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9108 symbol table.
9109
126fa72d
PS
91102002-05-10 Petr Sorfa <petrs@caldera.com>
9111
9112 * ia64-tdep.c: Handle breakpoints on L instruction type
9113 in MLX instruction bundle by moving the breakpoint to
9114 the third slot (X instruction type) as L holds only data.
9115
1f077a3e
KB
91162002-05-10 Kevin Buettner <kevinb@redhat.com>
9117
9118 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9119 (process_one_symbol): Complain about discarding local symbols
9120 due to a misplaced N_LBRAC entry.
9121
8120c9d5 91222002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
9123
9124 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
9125 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9126 decrease the depth we are at, in the case of templates.
361d1df0 9127
67b2c998
DJ
91282002-05-09 Daniel Jacobowitz <drow@mvista.com>
9129
9130 * mips-tdep.c (mips_float_register_type): New function.
9131 (mips_double_register_type): New function.
9132 (mips_print_register): Use them.
9133 (do_fp_register_row): Likewise.
9134
fd326606
DJ
91352002-05-09 Daniel Jacobowitz <drow@mvista.com>
9136
6609d9af 9137 * signals/signals.c (signals): Remove conditional compilation around
fd326606 9138 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 9139 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 9140
bef35864
MS
91412002-05-09 Michael Snyder <msnyder@redhat.com>
9142
9143 * remote-rdp.c (remote_rdp_can_run): Remove.
9144
c55a3f73
TT
91452002-05-09 Tom Tromey <tromey@redhat.com>
9146
9147 * jv-valprint.c (java_val_print): Handle `char' as a special case
9148 of TYPE_CODE_INT.
9149
b8d5e71d
MS
91502002-05-09 Michael Snyder <msnyder@redhat.com>
9151
9152 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9153 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 9154 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 9155 str r(0123),[sp,#nn].
361d1df0 9156 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
9157 order-independent by placing it in a loop.
9158
e2cd42dd
MS
91592002-05-06 Michael Snyder <msnyder@redhat.com>
9160
9161 * stabsread.c (read_type): Add recognition for new attribute:
9162 "@V;" means that an array type is actually a vector.
9163 This is analogous to the vector flag that's been added to dwarf2.
9164
3ce1502b
MK
91652002-05-09 Mark Kettenis <kettenis@gnu.org>
9166
9167 * i386-tdep.h (i386_abi): New enum.
9168 (struct gdbarch_tdep): Replace os_ident member with abi.
9169 (i386_gdbarch_register_os_abi): New prototype.
9170 * i386-tdep.c (i386_abi_names): New array.
9171 (process_note_abi_tag_sections): Removed.
9172 (process_note_sections): New function.
9173 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9174 (struct i386_abi_handler): New struct.
9175 (i386_abi_handler_list): New variable.
9176 (i386_gdbarch_register_os_abi): New function.
9177 (i386_gdbarch_init): Adapt for the changes given above.
9178
084c156a
DJ
91792002-05-08 Daniel Jacobowitz <drow@mvista.com>
9180
9181 * gregset.h: Say "GNU/Linux".
9182
6599f021
EZ
91832002-05-08 Elena Zannoni <ezannoni@redhat.com>
9184
9185 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9186 (build_gdbtypes): Build builtin_type_v2_float.
9187 (_initialize_gdbtypes): Register new builtin type.
9188
40af4b0c
AC
91892002-05-08 Andrew Cagney <ac131313@redhat.com>
9190
9191 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9192 (clear_gdbarch_swap): New function.
9193 (initialize_non_multiarch): Call.
9194 (gdbarch_update_p): Before calling init(), swap out and clear the
9195 existing architecture.
9196 * gdbarch.c: Regenerate.
9197
4fe84f46
JT
91982002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9199
9200 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9201 alphanbsd-tdep.c.
9202
4015edd1
JT
92032002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9204
9205 * sh-nbsd-nat.c: Rename to...
9206 * shnbsd-nat.c: ...this.
9207 * sh-nbsd-tdep.c: Rename to...
9208 * shnbsd-tdep.c: ...this.
9209 * sh-nbsd-tdep.h: Rename to...
9210 * shnbsd-tdep.h: ...this.
9211 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9212 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9213
0e2bd219
RE
92142002-05-08 Richard Earnshaw <rearnsha@arm.com>
9215
9216 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9217 concatenation for command help messages.
9218
13a38d45
JT
92192002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9220
9221 * NEWS: Note new sh*-*-netbsdelf* configuration.
9222 * configure.host: Set gdb_host_cpu to sh for all sh*.
9223 (sh*-*-netbsdelf*): New host.
9224 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9225 (sh*-*-netbsdelf*): New target.
9226 * sh-nbsd-nat.c: New file.
9227 * sh-nbsd-tdep.c: New file.
9228 * sh-nbsd-tdep.h: New file.
9229 * config/sh/nbsd.mh: New file.
9230 * config/sh/nbsd.mt: New file.
9231 * config/sh/nm-nbsd.h: New file.
9232 * config/sh/tm-nbsd.h: New file.
9233
d658f924
JT
92342002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9235
9236 * sh-tdep.c (sh_osabi_names): Declare.
9237 (process_note_abi_tag_sections): New function.
9238 (get_elfosabi): Ditto.
9239 (sh_gdbarch_register_os_abi): Ditto.
9240 (sh_dump_tdep): Ditto.
9241 _initialize_sh_tdep): Use gdbarch_register to register
9242 sh_gdbarch_init and sh_dump_tdep.
9243 * config/sh/tm-sh.h (sh_osabi): Declare.
9244 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9245
848cfffb
AC
92462002-05-07 Andrew Cagney <ac131313@redhat.com>
9247
9248 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9249 (thumb_scan_prologue): Ditto.
9250 (arm_find_callers_reg): Ditto.
9251 (arm_frame_chain): Ditto.
9252 (arm_init_extra_frame_info): Ditto.
9253 (arm_frame_saved_pc): Ditto.
9254 (arm_pop_frame): Ditto.
9255 (arm_push_return_address): New function.
9256 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9257 call_dummy_location, call_dummy_breakpoint_offset_p,
9258 call_dummy_breakpoint_offset, call_dummy_p,
9259 call_dummy_stack_adjust_p, call_dummy_words,
9260 sizeof_call_dummy_words, call_dummy_start_offset,
9261 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9262 call_dummy_address, push_return_address and push_dummy_frame for
9263 generic dummy frames.
9264
e7d717c0
JT
92652002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9266
9267 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9268 size computation for alloca.
9269 (sh_fp_frame_init_saved_regs): Likewise.
9270
7bbcf283
RE
92712002-05-07 Richard Earnshaw <rearnsha@arm.com>
9272
9273 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9274 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 9275 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
9276 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9277 * remote-rdp.c (remote_rdp_fetch_register): Use
9278 ARM_MAX_REGISTER_RAW_SIZE.
9279 (remote_rdp_store_register): Likewise.
9280
4657573b
ML
92812002-05-07 Michal Ludvig <mludvig@suse.cz>
9282
361d1df0 9283 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
9284 added default labels to switch {} statements.
9285 * x86-64-tdep.c: Ditto.
9286 * x86-64-linux-nat.c: Ditto.
9287
010f3b2f
JT
92882002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9289
9290 * solib.h: Protect against multiple inclusion.
9291
debd256d
JB
92922002-05-06 Jim Blandy <jimb@redhat.com>
9293
9ab3e532
JB
9294 Add first preprocessor macro-expansion files.
9295 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9296 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9297 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9298 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9299 (COMMON_OBS): Add macrotab.o, macroexp.o.
9300 (macroexp.o, macrotab.o): New rules.
9301
debd256d
JB
9302 Separate the job of reading the line number info statement program
9303 header (...expialidocious) out into its own function.
9304 * dwarf2read.c (struct line_head, struct filenames, struct
9305 directories): Replace with...
9306 (struct line_header): New structure, containing the full
9307 contents of the statement program header, including the
9308 include directory and file name tables.
9309 (read_file_scope): If we have line number info, instead of just
9310 calling dwarf_decode_lines to do all the work, call
9311 dwarf_decode_line_header first to get a `struct line_header'
9312 containing the data in the statement program header, and then
9313 pass that to dwarf_decode_lines, which will pick up where that
9314 left off. Be sure to clean up the `struct line_header' object.
9315 (dwarf_decode_line_header, free_line_header, add_include_dir,
9316 add_file_name): New functions.
9317 (dwarf_decode_lines): Move all the code to read the statement
9318 program header into dwarf_decode_line_header. Take the line
9319 header it built as the first argument, instead of the offset to
9320 the compilation unit's line number info. Use the new `struct
9321 line_header' type instead of the old structures. No need to do
9322 cleanups here now, since we don't allocate anything.
9323 (dwarf2_statement_list_fits_in_line_number_section,
9324 dwarf2_line_header_too_long): New complaints.
9325
ac3aafc7
EZ
93262002-05-06 Elena Zannoni <ezannoni@redhat.com>
9327
9328 * gdbtypes.c (init_vector_type): New function.
9329 (build_builtin_type_vec128): Simplify the representation of SIMD
9330 registers.
9331 (build_gdbtypes): Initialize new builtin vector types.
9332 (_initialize_gdbtypes): Register new vector types with gdbarch.
9333 (builtin_type_v4_float, builtin_type_v4_int32,
9334 builtin_type_v8_int16, builtin_type_v16_int8,
9335 builtin_type_v2_int32, builtin_type_v4_int16,
9336 builtin_type_v8_int8): New (renamed) SIMD types.
9337
13e49980
MK
93382002-05-06 Mark Kettenis <kettenis@gnu.org>
9339
9340 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9341 (i387_fill_fxsave): Likewise.
9342
997b20b8
AO
93432002-05-05 Alexandre Oliva <aoliva@redhat.com>
9344
9345 * alpha-tdep.c (alpha_extract_return_value): Don't use
9346 non-constant array size in prototype.
9347
535c96ce
AC
93482002-05-04 Andrew Cagney <ac131313@redhat.com>
9349
9350 From Brian Taylor <briant at model dot com>:
9351 * ui-out.c (ui_out_field_core_addr): Use the function
9352 longest_local_hex_string_custom'to format addresses > 32 bits
9353 wide.
9354
9355 * ui-out.c (ui_out_field_core_addr): Update comment.
9356
bedfa57b
AC
93572002-05-04 Andrew Cagney <ac131313@redhat.com>
9358
9359 * stack.c (select_and_print_frame): Make static. Delete the
9360 parameter `level'.
9361 (func_command): Update call.
9362 (select_frame_command): Delete code computing the frame level.
9363 * frame.h (select_and_print_frame): Delete declaration.
9364
f621c63e
AC
93652002-05-04 Andrew Cagney <ac131313@redhat.com>
9366
9367 * sparc-tdep.c (sparc_get_saved_register): Comment why
9368 get_prev_frame call is safe.
9369
0f7d239c
AC
93702002-05-04 Andrew Cagney <ac131313@redhat.com>
9371
9372 * frame.h (select_frame): Delete level parameter.
9373 * stack.c (select_frame): Update. Use frame_relative_level to
9374 obtain the frame's level.
9375 (select_and_print_frame): Update call.
9376 (select_frame_command): Ditto.
9377 (up_silently_base): Ditto.
9378 (down_silently_base): Ditto.
9379 * ocd.c (ocd_start_remote): Ditto.
9380 * remote-rdp.c (remote_rdp_open): Ditto.
9381 * remote-mips.c (mips_initialize): Ditto.
9382 (common_open): Ditto.
9383 * remote-e7000.c (e7000_start_remote): Ditto.
9384 * m3-nat.c (select_thread): Ditto.
9385 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9386 (child_get_current_exception_event): Ditto.
9387 * varobj.c (varobj_create): Ditto.
9388 (varobj_update): Ditto.
9389 (c_value_of_root): Ditto.
9390 * tracepoint.c (finish_tfind_command): Ditto.
9391 * corelow.c (core_open): Ditto.
9392 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9393 * thread.c (info_threads_command): Ditto.
9394 (switch_to_thread): Ditto.
9395 * infrun.c (normal_stop): Ditto.
9396 (restore_selected_frame): Ditto.
9397 (restore_inferior_status): Ditto.
9398 * breakpoint.c (insert_breakpoints): Ditto.
9399 (watchpoint_check): Ditto.
9400 (bpstat_stop_status): Ditto.
9401 (do_enable_breakpoint): Ditto.
9402 * blockframe.c (flush_cached_frames): Ditto.
9403 (reinit_frame_cache): Ditto.
9404
71d6c7b1
AC
94052002-05-04 Andrew Cagney <ac131313@redhat.com>
9406
9407 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9408 maintainer.
9409
cda6c68a
JB
94102002-05-04 Jim Blandy <jimb@redhat.com>
9411
9412 * gdbtypes.c (replace_type): Doc fix.
9413
5c1c87f0
AC
94142002-05-04 Andrew Cagney <ac131313@redhat.com>
9415
9416 * valprint.c (strcat_longest): Delete commented out function.
9417 Update copyright.
9418
cd9bfe15
AC
94192002-05-04 Andrew Cagney <ac131313@redhat.com>
9420
9421 * MAINTAINERS: Mark a29k as deleted.
9422 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9423 Move new configurations to the top.
9424 * configure.tgt: Remove a29k.
9425 * config/a29k/tm-vx29k.h: Delete.
9426 * config/a29k/vx29k.mt: Delete.
9427 * config/a29k/tm-a29k.h: Delete.
9428 * config/a29k/a29k-udi.mt: Delete.
9429 * config/a29k/a29k.mt: Delete.
9430 * a29k-tdep.c: Delete.
9431 * remote-udi.c: Delete.
9432 * remote-mm.c: Delete.
9433 * remote-eb.c: Delete.
9434 * remote-adapt.c: Delete.
9435 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
9436 * config/s390/s390x.mt: Ditto.
9437 * config/s390/s390.mt: Ditto.
9438 * config/sparc/sparclynx.mh: Ditto.
9439 * config/sparc/linux.mh: Ditto.
9440 * config/pa/hppaosf.mh: Ditto.
9441 * config/pa/hppabsd.mh: Ditto.
9442 * config/ns32k/nbsd.mt: Ditto.
9443 * config/mips/vr5000.mt: Ditto.
9444 * config/m68k/sun3os4.mh: Ditto.
9445 * config/m68k/nbsd.mt: Ditto.
9446 * config/m68k/m68klynx.mh: Ditto.
9447 * config/m32r/m32r.mt: Ditto.
9448 * config/i386/x86-64linux.mt: Ditto.
9449 * config/i386/nbsdelf.mt: Ditto.
9450 * config/i386/nbsd.mt: Ditto.
9451 * config/i386/i386lynx.mh: Ditto.
9452
bf0c5130
AC
94532002-05-04 Andrew Cagney <ac131313@redhat.com>
9454
9455 * target.c (debug_print_register): New function. Handle oversize
9456 registers.
9457 (debug_to_fetch_registers): Call.
9458 (debug_to_store_registers): Call.
9459
2ae1c2d2
JB
94602002-05-03 Jim Blandy <jimb@redhat.com>
9461
13a393b0
JB
9462 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9463 (read_type): Doc fix.
9464 * gdbtypes.c (replace_type): Doc fix.
9465
2ae1c2d2
JB
9466 * stabsread.c (multiply_defined_struct): New complaint.
9467 (read_struct_type): If the type we were passed isn't empty, or
9468 incomplete, don't read the new struct type into it; complain,
9469 and return the original type unchanged. Take a new `type_code'
9470 argument, which is the type code for the new type.
9471 (read_type): Rather than storing the type's type code here, pass
9472 it as an argument to read_struct_type, and let that take care of
9473 storing it. That way, we don't overwrite the original type code,
9474 so read_struct_type can use it to decide whether we're overwriting
9475 something we shouldn't.
9476 (complain_about_struct_wipeout): New function.
9477
8de9bdc4
AC
94782002-05-03 Andrew Cagney <ac131313@redhat.com>
9479
9480 * gdbarch.sh: Assert that gdbarch is non-NULL.
9481 * gdbarch.c: Regenerate.
9482
f773fdbb
JM
94832002-05-03 Jason Merrill <jason@redhat.com>
9484
9485 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9486 and return NULL.
9487
0e04a514
ML
94882002-05-03 Michal Ludvig <mludvig@suse.cz>
9489
9490 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9491 (x86_64_dwarf2gdb_regno_map_length),
9492 (x86_64_dwarf2_reg_to_regnum): Added.
9493 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9494 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9495 (_initialize_x86_64_tdep): Synced with the change above.
9496 (x86_64_skip_prologue): Reformulated message.
9497
065432a8
PM
94982002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9499
9500 * f-exp.y: Also use new prev_lexptr variable
9501 to improve error reporting. Based on Michael Snyder
9502 2002-04-24 dated patch to c-exp.y.
9503 * jv-exp.y: Likewise.
9504 * m2-exp.y: Likewise.
9505
a3162708
EZ
95062002-05-02 Elena Zannoni <ezannoni@redhat.com>
9507
9508 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9509 we are dealing with vectors.
9510
03620c38
PM
95112002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9512
9513 * config/m68k/tm-nbsd.h: Obvious fix,
9514 correct machine name.
9515
6604db2e
PM
95162002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9517
9518 * p-typeprint.c (pascal_type_print_base): Add support
9519 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9520
0906b739
PM
95212002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9522
9523 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9524 for fondamental pascal 'char' type.
9525
e2625b33
PM
95262002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9527
9528 * p-lang.h (is_pascal_string_type): Declaration changed,
9529 new sixth argument of type char ** added.
361d1df0 9530 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
9531 changed. Args length_pos, length_size, string_pos, char_size
9532 can now be NULL. New argument arrayname set to the field
9533 name of the char array. Return value set to char array
9534 field index plus one.
361d1df0 9535 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
9536 is_pascal_string_type function.
9537
cf17c188
AC
95382002-05-02 Andrew Cagney <cagney@redhat.com>
9539
9540 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9541 <cagney@redhat.com> change.
9542 * gdbarch.c: Regenerate.
9543
52bca491
AC
95442002-05-02 Andrew Cagney <cagney@redhat.com>
9545
9546 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9547 before probing for a new one. Detect errorenous gdbarch_init
9548 functions.
9549 * gdbarch.c: Regenerate.
9550
d5e72505
AC
95512002-05-01 Andrew Cagney <cagney@redhat.com>
9552
9553 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9554 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9555 * config/v850/tm-v850.h: Ditto. Update copyright.
9556
af566d9f
AC
95572002-04-30 Andrew Cagney <ac131313@redhat.com>
9558
9559 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9560 current_gdbarch.
9561
880d85fa
MS
95622002-04-30 Michael Snyder <msnyder@redhat.com>
9563
94c30b78
MS
9564 * arm-tdep.c: Whitespace clean-ups.
9565 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
9566 should have been removed as part of 4/24 change.
9567
6f5987a6
KB
95682002-04-30 Kevin Buettner <kevinb@redhat.com>
9569
9570 * rs6000-tdep.c: Added comment describing how fpscr register
9571 numbers were chosen.
9572
1a113c93
MS
95732002-04-30 Michael Snyder <msnyder@redhat.com>
9574
9575 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9576
9a6f53fe
EZ
95772002-04-29 Elena Zannoni <ezannoni@redhat.com>
9578
9579 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9580 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9581 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9582
11ed25ac
KB
95832002-04-29 Kevin Buettner <kevinb@redhat.com>
9584
9585 From Louis Hamilton <hamilton@redhat.com>:
9586 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9587 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9588 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9589 not bfd-private xcoff data, to determine wordsize.
9590 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9591
ae232405
AC
95922002-04-29 Andrew Cagney <ac131313@redhat.com>
9593
9594 GDB 5.2 released from 5.2 branch.
9595
91fd20f7
ML
95962002-04-29 Michal Ludvig <mludvig@suse.cz>
9597
9598 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9599 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9600 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 9601
2dc5091b
EZ
96022002-04-29 Elena Zannoni <ezannoni@redhat.com>
9603
9604 * rs6000-tdep.c (rs6000_extract_return_value,
9605 rs6000_store_return_value): Handle returning vectors.
9606 (rs6000_gdbarch_init): Use
9607 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9608 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9609 New function.
9610 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9611 vectors.
9612 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9613 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 9614
2b9848d8
PM
96152002-04-24 Pierre Muller <ics.u-strasbg.fr>
9616
9617 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 9618 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
9619 with fprintf_unfiltered (gdb_stderr,...).
9620
f8d17dc5
PM
96212002-04-24 Pierre Muller <ics.u-strasbg.fr>
9622
9623 * remote-array.c (printf_monitor, write_monitor,
361d1df0 9624 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
9625 Replace fprintf (stderr,...
9626 with fprintf_unfiltered (gdb_stderr,....
9627 * remote-es.c: Likewise.
9628 * remote-os9k.c: Likewise.
9629 * remote-st.c: Likewise.
9630
2f2f1ad1
AS
96312002-04-28 Andreas Schwab <schwab@suse.de>
9632
9633 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9634 linux-proc.o and gcore.o.
9635
b6779aa2
AC
96362002-04-26 Michal Ludvig <mludvig@suse.cz>
9637
9638 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9639 code without frame pointers.
9640
7e57f5f4
AC
96412002-04-26 Andrew Cagney <ac131313@redhat.com>
9642
9643 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9644 ON_STACK is needed.
9645
2ceb85d0
BE
96462002-04-26 Ben Elliston <bje@redhat.com>
9647
9648 * target.c (do_xfer_memory): Correct reference to the new option
9649 "trust-readonly-sections".
9650
f5f8a009
EZ
96512002-04-26 Elena Zannoni <ezannoni@redhat.com>
9652
9653 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9654 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9655 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9656 vectors.
9657 (read_array_type): Record the fact that this array type is really a
9658 vector (i.e. are passed in by value).
9659
5868c862
JT
96602002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9661
9662 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9663 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9664 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9665 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9666 * alpha-linux-tdep.c: Include frame.h.
9667 (alpha_linux_sigcontext_addr): New function.
9668 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9669 alpha_linux_sigcontext_addr.
9670 * alpha-osf1-tdep.c: Include gdbcore.h.
9671 (alpha_osf1_sigcontext_addr): New function.
9672 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9673 alpha_osf1_sigcontext_addr.
9674 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9675 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9676
bfb01f37
AC
96772002-04-26 Andrew Cagney <ac131313@redhat.com>
9678
361d1df0 9679 * stack.c (selected_frame_level):
bfb01f37
AC
9680 (select_frame): Do not set selected_frame_level.
9681 * frame.h (selected_frame_level): Delete declaration.
9682
15813d3f
AC
96832002-04-26 Andrew Cagney <ac131313@redhat.com>
9684
9685 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9686 convert_from_func_ptr-addr when AIX / PowerOpen.
9687
6096c27a
AC
96882002-04-25 Andrew Cagney <ac131313@redhat.com>
9689
9690 * valops.c (hand_function_call): Call
9691 generic_save_call_dummy_addr.
9692 * frame.h (generic_save_call_dummy_addr): Declare.
9693 * blockframe.c (struct dummy_frame): Add fields call_lo and
9694 call_hi.
9695 (generic_find_dummy_frame): Check for PC in range call_lo to
9696 call_hi instead of entry_point_address.
9697 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9698 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9699 (generic_save_call_dummy_addr): New function.
9700
f510d44e
DM
97012002-04-24 David S. Miller <davem@redhat.com>
9702
9703 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9704 sparc_skip_prologue.
9705 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9706 information to find prologue when possible.
9707 (sparc_prologue_frameless_p): Call examine_prologue directly.
9708 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9709 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9710 second argument.
9711 (SKIP_PROLOGUE): Likewise.
9712
15d72a92
JT
97132002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9714
9715 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9716 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9717 indicate that the condition it was testing is always true.
9718 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9719 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9720 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9721
accc6d1f
JT
97222002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9723
9724 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9725 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9726 tdep->jb_pc and tdep->jb_elt_size.
9727 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9728 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9729 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9730 * alpha-nat.c (get_longjmp_target): Remove.
9731 (JB_ELEMENT_SIZE): Ditto.
9732 (JB_PC): Ditto.
9733 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9734 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9735 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9736 to alpha_get_longjmp_target.
9737 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9738 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9739 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9740
1bfdc549
AC
97412002-04-25 Andrew Cagney <ac131313@redhat.com>
9742
9743 * README: Update to GDB 5.2.
9744
1bd316f0
AC
97452002-04-25 Andrew Cagney <ac131313@redhat.com>
9746
9747 * gdbarch.sh (LC_ALL): Set to `c'.
9748
2e5ff58c
TR
97492002-04-25 Theodore A. Roth <troth@verinet.com>
9750
9751 * avr-tdep.c: Ran through gdb_indent.sh.
9752
e33ce519
TR
97532002-04-25 Theodore A. Roth <troth@verinet.com>
9754
9755 * MAINTAINERS: Add myself as AVR maintainer.
9756 * NEWS: Note new target avr.
9757
8818c391
TR
97582002-04-25 Theodore A. Roth <troth@verinet.com>
9759
9760 * Makefile.in: Add support for AVR target.
9761 * configure.tgt: Add support for AVR target.
9762 * avr-tdep.c: New file
9763 * config/avr/avr.mt: New file.
9764
79509c2d
TR
97652002-04-25 Theodore A. Roth <troth@verinet.com>
9766
9767 * MAINTAINERS: Add myself to write-after-approval.
9768
dac8068e
PM
97692002-04-24 Pierre Muller <ics.u-strasbg.fr>
9770
9771 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9772 with fprintf_unfiltered (gdb_stderr,....
9773
25bf3106
PM
97742002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9775
9776 Fix PR gdb/508.
9777 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9778
24467a86
PM
97792002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9780
9781 * p-exp.y: Also use new prev_lexptr variable
9782 to improve error reporting. Based on Michael Snyder
9783 2002-04-24 dated patch to c-exp.y.
9784
95b80706
JT
97852002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9786
9787 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9788 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9789 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9790 to 0.
9791 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9792 and struct value.
9793 (FUNCTION_START_OFFSET): Remove.
9794 (BREAKPOINT): Ditto.
9795
e90cc612
JT
97962002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9797
9798 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9799 * NEWS: Ditto.
9800
6c72f9f9
JT
98012002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9802
9803 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9804 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9805 alpha_linux_pc_in_sigtramp.
9806 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9807 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9808 alpha_osf1_pc_in_sigtramp.
9809 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9810 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9811 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9812 alphafbsd_pc_in_sigtramp.
9813 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9814 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9815 alphanbsd_pc_in_sigtramp.
9816 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9817 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9818
5e4f3379
JT
98192002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9820
9821 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9822
da8ca43d
JT
98232002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9824
9825 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9826 alphanbsd-tdep.c.
9827 (alphanbsd-nat.o): New dependency list.
9828 (alphanbsd-tdep.o): Ditto.
9829 * NEWS: Note new native NetBSD/alpha configuration.
9830 * alphanbsd-nat.c: New file.
9831 * alphanbsd-tdep.c: Ditto.
9832 * configure.host (alpha*-*-netbsd*): New host.
9833 * configure.tgt (alpha*-*-netbsd*): New target.
9834 * config/alpha/nbsd.mh: New file.
9835 * config/alpha/nbsd.mt: Ditto.
9836 * config/alpha/nm-nbsd.h: Ditto.
9837 * config/alpha/tm-nbsd.h: Ditto.
9838
36a6271d
JT
98392002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9840
9841 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9842 (alpha-osf1-tdep.o): New dependency list.
9843 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9844 and skip_sigtramp_frame members.
9845 * alpha-linux-tdep.c: Include gdbcore.h.
9846 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9847 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9848 * alpha-osf1-tdep.c: New file.
9849 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9850 alpha-osf1-dep.c.
9851 (alpha_frame_past_sigtramp_frame): New function.
9852 (alpha_dynamic_sigtramp_offset): Ditto.
9853 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9854 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9855 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9856 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9857 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9858 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9859 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9860 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9861 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9862 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9863 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9864 to find_solib_trampoline_target.
9865 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9866 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9867 (SKIP_TRAMPOLINE_CODE): Remove.
9868 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9869 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9870 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9871 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9872 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9873 (PROC_SIGTRAMP_MAGIC): Ditto.
9874 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9875 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9876 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9877 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9878 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9879
2f4bc57b
JT
98802002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9881
9882 * NEWS: Note that Alpha targets are now multi-arch.
9883
665132f9
MS
98842002-04-24 Michael Snyder <msnyder@redhat.com>
9885
9886 * parser-defs.h (prev_lexptr): New external variable.
9887 * parse.c (parse_exp_1): Set prev_lexptr to null before
9888 calling the language-specific parser.
9889 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9890 (yyerror): Use prev_lexptr in error reporting.
9891
32872fa7
DJ
98922002-04-24 Daniel Jacobowitz <drow@mvista.com>
9893
9894 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9895 * gregset.h: If FILL_FPXREGSET is defined, provide
9896 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9897 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9898 is defined, call fill_fpxregset.
9899
57e76fac
MS
99002002-04-24 Roland McGrath <roland@frob.com>
9901
9902 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9903 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9904 (supply_gregset, supply_fpregset): New functions.
9905
9906 * gnu-nat.c (gnu_find_memory_regions): New function.
9907 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9908 (gnu_xfer_memory): Add a cast.
9909
f43845b3
MS
99102002-04-24 Michael Snyder <msnyder@redhat.com>
9911
361d1df0 9912 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9913 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9914 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9915 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9916 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9917 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9918
a0abec03
AC
9919Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9920
9921 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9922 NUM_PSEUDO_REGS can be used.
9923
d7bd68ca
AC
99242002-04-24 Andrew Cagney <ac131313@redhat.com>
9925
9926 * arch-utils.h: Update copyright.
9927
9928 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9929 * gdbarch.h, gdbarch.c: Re-generate.
9930
9931 * inferior.h (IN_SIGTRAMP): Delete definition.
9932 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9933 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9934
9935 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9936 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9937 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9938 (find_proc_framesize): Ditto.
9939 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9940 (alpha_init_extra_frame_info): Ditto.
9941 * infrun.c (handle_inferior_event): Ditto.
9942 (handle_inferior_event): Ditto.
9943 (check_sigtramp2): Ditto.
9944 * blockframe.c (create_new_frame): Ditto.
9945 (get_prev_frame): Ditto.
9946 * ppc-linux-tdep.c: Update comments.
9947 * i386-linux-tdep.c: Update comments.
9948 * breakpoint.c (bpstat_what): Update comment.
9949
4867e41e
DM
99502002-04-24 David S. Miller <davem@redhat.com>
9951
21d83aa5
DM
9952 * i960-tdep.c (register_in_window_p): New function.
9953 (i960_find_saved_register): Use it instead of
9954 REGISTER_IN_WINDOW_P.
9955 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9956
4867e41e
DM
9957 * symtab.h (find_stab_function_addr): Kill extern.
9958 * minsyms.c (find_stab_function_addr): Remove from here...
9959 * dbxread.c: ... to here, and mark it static.
9960
69cdf6a2
DM
99612002-04-20 David S. Miller <davem@redhat.com>
9962
9963 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9964 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9965
5a595886
DM
99662002-04-21 David S. Miller <davem@redhat.com>
9967
9968 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9969 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9970 (vx_write_register): Likewise.
9971
1da1a192
JB
99722002-04-23 J. Brobecker <brobecker@gnat.com>
9973
9974 * source.c (is_regular_file): New function.
9975 (openp): Check wether file to open is a regular file
9976 to avoid opening directories.
9977
baa6f10b
JT
99782002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9979
9980 * findvar.c (extract_signed_integer): Cast printf argument
9981 to suppress format warning.
9982 (extract_unsigned_integer): Likewise.
9983 * infcmd.c (registers_info): Likewise.
9984 * top.c (get_prompt_1): Likewise.
9985 * valops.c (value_assign): Likewise.
9986 * valprint.c (print_decimal): Likewise.
9987
b2c4da81
L
99882002-04-22 H.J. Lu (hjl@gnu.org)
9989
9990 * c-exp.y (typebase): Support
361d1df0 9991
b2c4da81
L
9992 [long|long long|short] [signed|unsigned] [int|]
9993
9994 and
9995
9996 signed [long|long long|short] int
9997
f267bd6a
JT
99982002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9999
10000 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10001 and vax-tdep.h.
10002 * vax-tdep.h: New file.
10003 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10004 Make several routines static.
10005 (vax_get_saved_register): New function.
10006 (vax_gdbarch_init): New function.
10007 (_initialize_vax_tdep): Register vax_gdbarch_init.
10008 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10009 Remove macros now under the control of gdbarch.
10010
da3c6d4a
MS
100112002-04-22 Michael Snyder <msnyder@redhat.com>
10012
11d3b27d
MS
10013 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10014 Some whitespace and coding standards tweaks.
da3c6d4a 10015
a33f7558
JT
100162002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10017
10018 * vax-tdep.c: Include regcache.h.
10019 (vax_call_dummy_words): New.
10020 (sizeof_vax_call_dummy_words): New.
10021 (vax_fix_call_dummy): New function.
10022 (vax_saved_pc_after_call): Ditto.
10023 * config/vax/tm-vax.h: Don't include regcache.h.
10024 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10025 (CALL_DUMMY): Remove.
10026 (CALL_DUMMY_WORDS): Define.
10027 (SIZEOF_CALL_DUMMY_WORDS): Define.
10028 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10029
47a73475
MS
100302002-04-18 Michael Snyder <msnyder@redhat.com>
10031
10032 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10033
52efde73
JT
100342002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10035
10036 * vax-tdep.c (vax_frame_chain): New function.
10037 (vax_push_dummy_frame): Ditto.
10038 (vax_pop_frame): Ditto.
10039 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10040 (FRAMELESS_FUNCTION_INVOCATION): Use
10041 generic_frameless_function_invocation_not.
10042 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10043 (POP_FRAME): Use vax_pop_frame.
10044
ea74468c
JT
100452002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10046
10047 * vax-tdep.c (vax_store_struct_return): New function.
10048 (vax_extract_return_value): Ditto.
10049 (vax_store_return_value): Ditto.
10050 (vax_extract_struct_value_address): Ditto.
10051 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10052 vax_store_struct_return.
10053 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10054 (STORE_RETURN_VALUE): Use vax_store_return_value.
10055 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10056
5516aa92
JT
100572002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10058
10059 * vax-tdep.c (vax_frame_saved_pc): New function.
10060 (vax_frame_args_address_correct): Ditto.
10061 (vax_frame_args_address): Ditto.
10062 (vax_frame_locals_address): Ditto.
10063 (vax_frame_num_args): Move code to be in proximity to
10064 other frame-related functions.
10065 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10066 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10067 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10068 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10069 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10070
36af0b35
L
100712002-04-22 H.J. Lu (hjl@gnu.org)
10072
10073 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10074 includedir.
10075
ab62c900
JT
100762002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10077
10078 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10079 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10080 (FRAME_INIT_SAVED_REGS): New macro.
10081
7232b100
JT
100822002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10083
10084 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10085
b70d2aee
JT
100862002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10087
10088 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10089 where needed.
10090 (fetch_osf_core_registers): Likewise.
10091 (supply_gregset): Likewise.
10092
a0e8a2d1 100932002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 10094
a0e8a2d1
JB
10095 * symfile.h (get_section_index): Define.
10096 * symfile.c (get_section_index): New function.
10097 * mdebugread.c (SC_IS_SBSS): New macro.
10098 (SC_IS_BSS): Return true for the scBss storage class only, as
10099 the scSBss storage class refers to the .sbss section.
10100 (parse_partial_symbols): Discard the symbols which associated
10101 section does not exist.
10102 Make sure to use the .sbss section index for symbols which
10103 storage class is scBss, rather than using the .bss section index.
10104
51eb8b08
JT
101052002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10106
10107 * vax-tdep.c: Update copyright years.
10108 (vax_register_name): New function.
10109 (vax_register_byte): Ditto.
10110 (vax_register_raw_size): Ditto.
10111 (vax_register_virtual_size): Ditto.
10112 (vax_register_virtual_type): Ditto.
10113 * config/vax/tm-vax.h: Update copyright years.
10114 (REGISTER_NAMES): Remove.
10115 (REGISTER_NAME): Define.
10116 (REGISTER_BYTE): Use vax_register_byte.
10117 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10118 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10119 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10120
6cc1c0a8
AC
101212002-04-21 Andrew Cagney <ac131313@redhat.com>
10122
10123 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10124 declaration
10125 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10126
9319a2fe
DM
101272002-04-21 David S. Miller <davem@redhat.com>
10128
10129 * arch-utils.c (generic_prologue_frameless_p): Kill
10130 SKIP_PROLOGUE_FRAMELESS_P code.
10131 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10132 references.
10133 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10134 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10135 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10136 references.
10137 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10138 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10139 (sparc_gdbarch_init): Pass it to
10140 set_gdbarch_prologue_frameless_p.
a0e8a2d1 10141
e9ed6d01
JT
101422002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10143
10144 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10145 (alphabsd-nat.o): New dependency list.
10146
36012033
JT
101472002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10148
10149 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10150 alphafbsd-tdep.c.
10151 (alpha-linux-tdep.o): New dependency list.
10152 (alphafbsd-tdep.o): Likewise.
10153
3379287a
JT
101542002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10155
10156 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10157 to here...
10158 * alpha-tdep.c: ...from here.
10159 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10160
4bcbd6cb
JT
101612002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10162
10163 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10164 prototype from here...
10165 * alpha-tdep.h: ...to here.
10166
b31da25e
AC
101672002-04-21 Andrew Cagney <ac131313@redhat.com>
10168
10169 * frame.h (selected_frame_level): Document as deprecated.
10170 (frame_relative_level): Declare.
10171 * stack.c (frame_relative_level): New function.
10172 (selected_frame_level): Document as deprecated.
10173 (select_frame): Do not set the selected_frame_level.
10174
10175 * stack.c (frame_info, record_selected_frame): Update.
10176 (frame_command, current_frame_command): Update.
10177 (up_silently_base, up_command, down_silently_base): Update.
10178 (down_command): Update.
10179 * inflow.c (kill_command): Update.
10180 * tracepoint.c (finish_tfind_command): Update.
10181 * corelow.c (core_open): Update.
10182 * thread.c (info_threads_command): Update.
10183 (do_captured_thread_select): Update.
10184 * infcmd.c (finish_command): Update.
10185 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10186
9c1d6fe5
JT
101872002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10188
10189 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10190
ab89facf
AC
101912002-04-21 Andrew Cagney <ac131313@redhat.com>
10192
10193 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10194 type const.
10195
82a4efa1
JT
101962002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10197
10198 * alphafbsd-tdep.c: Update copyright years. Include
10199 alpha-tdep.h.
10200 (alphafbsd_use_struct_convention): Make static.
10201 (alphafbsd_init_abi): New function.
10202 (_initialize_alphafbsd_tdep): New function.
10203 * config/alpha/tm-fbsd.h: Update copyright years.
10204 (USE_STRUCT_CONVENTION): Remove.
10205
44dffaac
JT
102062002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10207
10208 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10209 an Alpha ABI variant.
10210 (alpha_abi_handler_list): Declare.
10211 (alpha_gdbarch_register_os_abi): New function.
10212 (alpha_gdbarch_init): Give registered ABI variant handlers a
10213 chance to tweak the gdbarch once we have set up defaults.
10214 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10215
65585be4
JT
102162002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10217
10218 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10219 to standard_coerce_float_to_double.
10220 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10221
d9b023cc
JT
102222002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10223
10224 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10225 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10226 from gdbarch_tdep rather than a constant.
10227 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10228 the default text address for all Alpha Unix ABIs.
10229 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10230 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10231
dc129d82
JT
102322002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10233
10234 * alpha-tdep.h: New file. Includes several Alpha target constants
10235 taken from...
10236 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10237 let gdbarch deal with.
10238 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10239 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10240 to dependency list.
10241 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10242 Alpha target register names.
10243 * alphabsd-nat.c: Likewise.
10244 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10245 Alpha target register names. Make serveral routines static.
10246 (alpha_get_saved_register): New function.
10247 (alpha_abi_names): New.
10248 (process_note_abi_tag_sections): New function.
10249 (get_elfosabi): New function.
10250 (alpha_gdbarch_init): New function.
10251 (alpha_dump_tdep): New function.
10252 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10253
d49d1e0a
AC
102542002-04-21 Andrew Cagney <ac131313@redhat.com>
10255
10256 * frame.c (find_saved_register): Delete #ifdef
10257 HAVE_REGISTER_WINDOWS code.
10258 * config/sparc/tm-sparc.h: Update comments.
10259 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10260
92e8c9ed
AC
102612002-04-21 Andrew Cagney <ac131313@redhat.com>
10262
10263 * i960-tdep.c (i960_find_saved_register): New function.
10264 (i960_get_saved_register): New function.
10265 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10266 (i960_get_saved_register): Declare.
10267 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10268
e1925118
DM
102692002-04-20 David S. Miller <davem@redhat.com>
10270
10271 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10272
29673b29
AC
102732002-04-20 Andrew Cagney <ac131313@redhat.com>
10274
10275 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10276 instead of NUM_PSEUDO_REGS.
10277
6c86dcd5
DM
102782002-04-20 David S. Miller <davem@redhat.com>
10279
10280 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10281 GDB_MULTI_ARCH_PARTIAL
10282 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10283 define, let tm-sp64.h do it.
10284
aa40ec90
JT
102852002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10286
10287 * frame.c (find_saved_register): Avoid a NULL pointer
10288 dereference and actually walk the frame list.
10289
0f79675b
AC
102902002-04-20 Andrew Cagney <ac131313@redhat.com>
10291
10292 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10293 sorted in most most-recent-used order. Document.
10294 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10295
f91305dd 102962002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
10297
10298 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10299 instead of ->prev.
10300 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10301 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10302 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10303 instead of ->prev.
10304
73d322b1
EZ
103052002-04-19 Elena Zannoni <ezannoni@redhat.com>
10306
10307 Fix PR gdb/471.
10308 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10309 (build_builtin_type_vec128): Ditto.
10310 (append_composite_type_field): Fix calculation of type length in
10311 union case.
10312
ccd9a834
EZ
103132002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10314
10315 * config/djgpp/README: Update.
10316
10317 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10318 compiler warnings.
10319
a57f9e49
JT
103202002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10321
10322 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10323 (alpha_setup_arbitrary_frame): ...to this.
10324 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10325 for alpha_setup_arbitrary_frame.
10326
f4f9705a
AC
103272002-04-18 Andrew Cagney <cagney@redhat.com>
10328
10329 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10330 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10331
f4f9705a
AC
10332 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10333 * target.h (memory_breakpoint_from_pc): Update declaration.
10334 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10335
10336 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10337 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10338 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10339 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10340 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10341 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10342 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10343 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10344 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10345 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10346 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10347 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10348
10349 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10350 const pointer.
10351 * monitor.c (monitor_insert_breakpoint): Ditto.
10352 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10353
10354 * config/mcore/tm-mcore.h: Update copyright.
10355 * mem-break.c: Ditto.
10356 * xstormy16-tdep.c: Ditto.
10357
29f319b8
PM
103582002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10359
10360 * p-exp.y: Add precedence rule for '^' token.
10361 This removes the shift/reduce conflicts.
10362 Remove the comment concerning these shift/reduce conflicts.
10363
ebeac11a
EZ
103642002-04-18 Elena Zannoni <ezannoni@redhat.com>
10365
10366 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10367 (registers_powerpc_nofp): New register set for processors
10368 without floating point unit.
10369
27c31547
DM
103702002-04-18 David S. Miller <davem@redhat.com>
10371
10372 * MAINTAINERS: Add myself to write-after-approval.
10373
47a73475
MS
103742002-04-17 Michael Snyder <msnyder@redhat.com>
10375
10376 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10377
953836b2
AC
103782002-04-17 Andrew Cagney <ac131313@redhat.com>
10379
10380 * rs6000-tdep.c (frame_initial_stack_address): Use
10381 frame_register_read to read the alloca_reg.
10382
8b0d4340
AC
103832002-04-17 Andrew Cagney <ac131313@redhat.com>
10384
10385 * frame.c (find_saved_register): Find saved registers in the next
10386 not prev frame.
10387 Fix PR gdb/365.
10388
d8864532
AC
103892002-04-17 Andrew Cagney <ac131313@redhat.com>
10390
10391 * gdbarch.sh (LANG): Set to ``c''.
10392
36cc83a3 103932002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 10394
36cc83a3 10395 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 10396
2f4150cc 103972002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
10398
10399 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10400 Update copyright.
10401
628703c6 10402 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 10403 Also fix PR gdb/391.
361d1df0 10404
56157b4a
AC
104052002-04-14 Andrew Cagney <ac131313@redhat.com>
10406
10407 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10408 * aclocal.m4, configure: Re-generate.
10409 Fix PR gdb/391.
361d1df0 10410
6d1e3329
EZ
104112002-04-14 Elena Zannoni <ezannoni@redhat.com>
10412
10413 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10414 instead of tm_print_insn.
10415
cb06fa07
EZ
104162002-04-14 Elena Zannoni <ezannoni@redhat.com>
10417
10418 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10419
f208ba17
AC
104202002-04-14 Andrew Cagney <ac131313@redhat.com>
10421
10422 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10423 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10424 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10425
20f01a46
DH
104262002-04-12 Don Howard <dhoward@redhat.com>
10427
10428 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10429 max_user_call_depth.
10430 (init_cmd_lists): Initialize the new value;
10431 * cli/cli-script.c (execute_user_command): Limit the call depth of
10432 user defined commands. This avoids a core-dump when user commands
10433 are infinitly recursive.
10434
a88376a3
KB
104352002-04-12 Kevin Buettner <kevinb@redhat.com>
10436
10437 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10438 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10439 from tdep struct instead of DEFAULT_LR_SAVE.
10440 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10441 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10442 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10443
f2172603
MS
104442002-04-12 Michael Snyder <msnyder@redhat.com>
10445
694f61fb 10446 * Remote.c: Spelling fix.
20fe79c8
MS
10447 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10448 If no symbol found for "sbrk", try "_sbrk".
10449 (make_output_phdrs): Use bfd_section_name.
10450 (gcore_copy_callback): Use bfd_section_name.
62995fc4 10451 * eval.c: Indentation fix-ups.
169a7369
MS
10452 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10453 in case it gets applied to an address that is already
10454 in the instruction space.
de74f71f
MS
10455 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10456 * symfile.c: Fix indentation, long lines.
f2172603
MS
10457 * source.c: White space fix-up.
10458
cda5a58a
AC
104592002-04-12 Andrew Cagney <cagney@redhat.com>
10460
10461 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10462 * frame.c (frame_register_read): New function. Return non-zero on
10463 success.
10464 (read_relative_register_raw_bytes_for_frame): Delete.
10465 (read_relative_register_raw_bytes): Delete.
10466 * frame.h (frame_register_read): Declare.
10467 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10468 * sh-tdep.c: Ditto.
10469 * infcmd.c (do_registers_info): Ditto.
10470 * hppa-tdep.c: Ditto.
10471 * rs6000-tdep.c: Ditto.
10472 * h8500-tdep.c: Ditto.
10473 * mips-tdep.c: Ditto.
10474 * h8300-tdep.c: Ditto.
10475 * z8k-tdep.c: Ditto.
10476
2ea5f656
KB
104772002-04-12 Kevin Buettner <kevinb@redhat.com>
10478
10479 From Jimi X <jimix@watson.ibm.com>:
10480 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10481 64-bit SysV ABI.
10482
27b15785
KB
104832002-04-12 Kevin Buettner <kevinb@redhat.com>
10484
10485 From Jimi X <jimix@watson.ibm.com>:
10486 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10487 bfd info.
10488
5d57ee30
KB
104892002-04-12 Kevin Buettner <kevinb@redhat.com>
10490
10491 From Jimi X <jimix@watson.ibm.com>:
10492 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10493 register sets for these processor variants.
10494
bc1e36ca
DJ
104952002-04-11 Daniel Jacobowitz <drow@mvista.com>
10496
bc1e36ca
DJ
10497 * regformats/reg-ppc.dat: Support FPSCR.
10498
e3f36dbd
KB
104992002-04-11 Kevin Buettner <kevinb@redhat.com>
10500
10501 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10502 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10503 Add fpscr as an invalid/unfetchable register.
10504 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10505 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10506 (fill_fpregset): Add support for register fpscr.
10507 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10508 (fill_gregset): Account for the fact that register ``mq'' might
10509 not exist.
10510 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10511 (registers_power): Add fpscr to register set at slot 71.
10512 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10513 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10514
943c9c25
MS
105152002-04-11 Michael Snyder <msnyder@redhat.com>
10516
10517 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10518 * configure: Regenerate.
10519 * config.in: Regenerate.
10520 * acconfig.h: Add define for _SYSCALL32.
10521 * core-sol2.c: Remove #define _SYSCALL32.
10522 * solib-legacy.c: Remove #define _SYSCALL32.
10523
d8c0a2e7
AC
105242002-04-10 Andrew Cagney <ac131313@redhat.com>
10525
10526 * stack.c (select_frame): Cleanup internal error message, do not
10527 use %p.
10528
7cc19214
AC
105292002-04-10 Andrew Cagney <ac131313@redhat.com>
10530
10531 * stack.c (select_frame): Check that selected_frame and the
10532 specified level are as expected.
10533 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10534 Update copyright.
10535 * frame.h (struct frame_info): Add field `level'. Update
10536 copyright.
10537 Work-in-progress PR gdb/464.
10538
67a2b77e
AC
105392002-04-10 Andrew Cagney <ac131313@redhat.com>
10540
10541 * maint.c (maint_print_section_info): Rename print_section_info.
10542 (print_bfd_section_info, print_objfile_section_info): Update.
10543 * inferior.h (struct gdbarch): Add opaque declaration.
10544 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10545 * gdbarch.h: Regenerate.
10546
8cfda98c
ML
105472002-04-10 Michal Ludvig <mludvig@suse.cz>
10548
10549 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10550 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10551 (kernel_u_size): Added.
10552 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10553 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10554
ca439ad2 105552002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 10556
ca439ad2
JI
10557 * valarith.c (find_size_for_pointer_math): New function, either returns
10558 the size for a pointer's target, returns 1 for void *, or errors for
10559 incomplete types.
10560 (value_add, value_sub): use find_size_for_pointer_math.
10561
2f2893d9
DJ
105622002-04-09 Daniel Jacobowitz <drow@mvista.com>
10563
10564 * linux-low.c (linux_look_up_symbols): New hook.
10565 (linux_target_ops): Add linux_look_up_symbols.
10566 * remote-utils.c (decode_address): New function.
10567 (look_up_one_symbol): New function.
10568 * server.c (handle_query): Call target look_up_symbols hook.
10569 * server.h (look_up_one_symbol): Add prototype.
10570 * target.h (struct target_ops): Add look_up_symbols hook.
10571
96cb11df
AC
105722002-04-09 Andrew Cagney <ac131313@redhat.com>
10573
10574 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10575 override FP_REGNUM with frame->fp. Update copyright.
10576 * parse.c (num_std_regs, std_regs): Delete.
10577 (target_map_name_to_register): Do not search std_regs. Update
10578 function description.
10579 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10580 declarations. Update copyright.
10581 Fix PR gdb/251.
361d1df0 10582
97658e92
DJ
105832002-04-09 Daniel Jacobowitz <drow@mvista.com>
10584
10585 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10586 after the last symbol in a block.
10587
6044e3eb
PM
105882002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10589
10590 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10591 is non zero as a found symbol.
10592
0406ec40
AC
105932002-04-08 Andrew Cagney <ac131313@redhat.com>
10594
10595 * findvar.c: Include "builtin-regs.h".
10596 (value_of_register): Call value_of_builtin_reg when applicable.
10597 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10598 (target_map_name_to_register): Call
10599 builtin_reg_map_name_to_regnum.
10600 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10601 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10602 (builtin_regs_h): Define.
10603 (builtin-regs.o): New target.
10604 (findvar.o): Add $(builtin_regs_h).
10605 * builtin-regs.c, builtin-regs.h: New files.
10606 * std-regs.c: New file.
10607 Partial fix for PR gdb/251.
10608
56a6dfb9
KB
106092002-04-08 Kevin Buettner <kevinb@redhat.com>
10610
10611 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10612 it's no longer required.
10613
3a808432
AC
106142002-04-08 Andrew Cagney <ac131313@redhat.com>
10615
10616 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10617
7c40d541
KB
106182002-04-08 Kevin Buettner <kevinb@redhat.com>
10619
10620 From Jimi X <jimix@watson.ibm.com>:
10621 * rs6000-tdep.c (rs6000_software_single_step): Use
10622 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10623 and size. Use target_insert_breakpoint() and
10624 target_remove_breakpoint() to insert and remove breakpoints
10625 instead of explicit memory reads and writes.
10626
cc9836a8
KB
106272002-04-08 Kevin Buettner <kevinb@redhat.com>
10628
10629 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10630 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10631 ELF_OBJECT_FORMAT ifdef.
10632
7495d1dc
KB
106332002-04-08 Kevin Buettner <kevinb@redhat.com>
10634
10635 From Jimi X <jimix@watson.ibm.com>:
10636 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10637
4288e836
KB
106382002-04-08 Kevin Buettner <kevinb@redhat.com>
10639
10640 From Jimi X <jimix@watson.ibm.com>:
10641 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10642 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10643
a4e4e501
MK
106442002-04-07 Mark Kettenis <kettenis@gnu.org>
10645
10646 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10647 s/asprintf/xasprintf/.
10648 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10649
006defba
AC
106502002-04-07 Andrew Cagney <ac131313@redhat.com>
10651
10652 I believe Jeff Law denies responsability for this one:
10653 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10654 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10655 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10656 Work-around for PR gdb/366.
10657
7aa83cac
EZ
106582002-04-07 Elena Zannoni <ezannoni@redhat.com>
10659
10660 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10661 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10662 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10663
cf1fcca1
EZ
106642002-04-07 Elena Zannoni <ezannoni@redhat.com>
10665
10666 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10667 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10668 information.
10669
3f289e6f
AC
106702002-04-07 Andrew Cagney <ac131313@redhat.com>
10671
10672 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10673 maintainer.
10674
129188f6
AC
106752002-04-07 Andrew Cagney <ac131313@redhat.com>
10676
10677 * README (Reporting Bugs in GDB): Document the bug web page as the
10678 prefered way of submitting bugs.
10679 Fix PR gdb/402.
10680
1200cd6e
AC
106812002-04-06 Andrew Cagney <ac131313@redhat.com>
10682
10683 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10684 -1. Update comment.
10685 * gdbarch.h, gdbarch.c: Re-generate.
10686
2853c33c
AS
106872002-04-07 Andreas Schwab <schwab@suse.de>
10688
10689 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10690 buffer to regcache_collect.
10691
c2169756
AC
106922002-04-06 Andrew Cagney <ac131313@redhat.com>
10693
10694 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10695 * gdbarch.c, gdbarch.h: Re-generate.
10696
25f1b008
AC
106972002-04-06 Andrew Cagney <ac131313@redhat.com>
10698
10699 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10700 declaration. Fix -Werror.
10701
59263426
DJ
107022002-04-05 Daniel Jacobowitz <drow@mvista.com>
10703
10704 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10705 * gdbarch.c: Regenerate.
10706
f5db4da3
MS
107072002-04-05 Michael Snyder <msnyder@redhat.com>
10708
80f8a6eb
MS
10709 * breakpoint.c (clear_command): Rewrite middle section to
10710 combine two loops with identical control conditions.
10711 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10712 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10713
ad3dcc5c
L
107142002-04-05 H.J. Lu (hjl@gnu.org)
10715
10716 * solib-svr4.c (bkpt_names): Add "__start".
10717
f32e7a74
AC
107182002-04-04 Andrew Cagney <ac131313@redhat.com>
10719
10720 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10721 as test for 64 bit target.
10722
8227c0ff
AC
107232002-04-05 Andrew Cagney <ac131313@redhat.com>
10724
10725 * h8500-tdep.c (h8500_write_fp): Delete function.
10726 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10727 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10728 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10729 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10730 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10731 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10732 (s390_write_fp):
10733 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10734 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10735 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10736 (d10v_write_fp): Delete function.
10737 * inferior.h (write_fp, generic_target_write_fp): Delete
10738 declarations.
10739 * regcache.c (generic_target_write_fp): Delete function.
10740 (write_fp): Delete function.
10741 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10742 * gdbarch.h, gdbarch.c: Regenerate.
10743 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10744 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10745 (sparc64_write_fp): Delete declaration.
10746 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10747 (h8500_write_fp): Delete declaration.
10748
2757dd86
AC
107492002-04-04 Andrew Cagney <ac131313@redhat.com>
10750
10751 * sparc-tdep.c (sparc64_write_fp): Delete.
10752 (sparc_push_dummy_frame): Replace write_fp call with code to store
10753 the FP directly.
10754 (sparc_gdbarch_init): Do not initialize write_fp.
10755
c69255e1
KB
107562002-04-05 Kevin Buettner <kevinb@redhat.com>
10757
10758 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10759 clause.
10760
ae767bfb
JB
107612002-03-29 Jim Blandy <jimb@redhat.com>
10762
10763 * stack.c (get_selected_block): Add new argument `addr_in_block',
10764 used to return the exact code address we used to select the block,
10765 not just the block.
10766 * blockframe.c (get_frame_block, get_current_block): Same.
10767 * frame.h (get_frame_block, get_current_block,
10768 get_selected_block): Update declarations.
10769 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10770 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10771
84d2ac95
MS
107722002-04-05 Michael Snyder <msnyder@redhat.com>
10773
10774 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10775 warning message.
10776
596aa3bf
JB
107772002-04-05 J. Brobecker <brobecker@gnat.com>
10778
10779 * utils.c (xfullpath): New function.
10780 * defs.h (xfullpath): Add declaration.
10781 * source.c (openp): Use xfullpath in place of gdb_realpath to
10782 avoid resolving the basename part of filenames when the
10783 associated file is a symbolic link. This fixes a potential
10784 inconsistency between the filenames known to GDB and the
10785 filenames it prints in the annotations.
10786 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10787 to be able to match a filename with either the real filename, or
10788 the name of any symbolic link to this file.
10789 (lookup_partial_symtab): Ditto.
10790
c02f5703
MS
107912002-04-04 Michael Snyder <msnyder@redhat.com>
10792
10793 * breakpoint.c: Add support for hardware breakpoints in overlays.
10794 (overlay_events_enabled): New state variable.
10795 (insert_breakpoints): Use overlay_events_enabled to decide
10796 whether to attempt to set a breakpoint at the overlay load addr.
10797 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10798 (remove_breakpoint): Use overlay_events_enabled to decide
10799 whether breakpoints need to be removed from overlay load addr.
10800 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10801 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 10802 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
10803 disable_overlay_breakpoints): Update overlay_events_enabled.
10804
5fb290d7
DJ
108052002-04-04 Daniel Jacobowitz <drow@mvista.com>
10806
10807 * dwarf2read.c (struct function_range): New.
10808 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10809 (check_cu_functions): New.
10810 (read_file_scope): Initialize global function lists.
10811 Call dwarf_decode_line after processing children.
10812 (read_func_scope): Add to global function list.
10813 (dwarf_decode_lines): Call check_cu_functions everywhere
10814 record_line is called. Call record_line with a linenumber
10815 of 0 to mark sequence ends.
10816
7b3fabf0
ML
108172002-04-04 Michal Ludvig <mludvig@suse.cz>
10818
361d1df0 10819 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10820 change sync with glibc.
10821
bce58c09
JB
108222002-04-03 Jim Blandy <jimb@redhat.com>
10823
10824 * configure.in: Call AC_C_INLINE.
10825 * configure: Regenerated.
361d1df0 10826
2fccf04a
DJ
108272002-04-01 Daniel Jacobowitz <drow@mvista.com>
10828
10829 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10830 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10831
2d1bfe2e
MK
108322002-03-31 Mark Kettenis <kettenis@gnu.org>
10833
a5941fbf
MK
10834 * NEWS: Mention gcore support on FreeBSD/i386.
10835
a90cd31d
MK
10836 * fbsd-proc.c: New file.
10837 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10838 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10839
2d1bfe2e
MK
10840 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10841 while statement.
10842
9eb6e5a1
JB
108432002-03-29 Jim Blandy <jimb@redhat.com>
10844
10845 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10846 unescaped newlines in string literals, but newer ones don't. So
10847 escape them.
10848
f02df580
MS
108492002-03-26 Michael Snyder <msnyder@redhat.com>
10850 Andrew Cagney <cagney@redhat.com>
10851
361d1df0 10852 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10853 restore file to memory.
10854 * cli/cli-dump.h: New file.
10855 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10856 * NEWS: Mention new commands.
f02df580 10857
109f874e
MS
108582002-03-28 Michael Snyder <msnyder@redhat.com>
10859
10860 * symfile.c (symbol_file_add): Move test for null symbols to later.
10861
520f6ade
AC
108622002-03-27 Andrew Cagney <ac131313@redhat.com>
10863
10864 From veksler at il.ibm.com:
10865 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10866 the xstrduped original path.
10867 Fix PR gdb/417.
10868
d4654627
MS
108692002-03-27 Michael Snyder <msnyder@redhat.com>
10870
10871 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10872 * infcmd.c (_initialize_infcmd): Ditto.
10873 * language.c (_initialize_language): Ditto.
10874 * symfile.c (_initialize_symfile): Ditto.
10875 * top.c (_init_main): Ditto.
10876 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10877
6be8bc0c
EZ
108782002-03-27 Elena Zannoni <ezannoni@redhat.com>
10879
10880 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10881 vector registers handling.
10882 (skip_prologue): Handle new AltiVec instructions. Fill in new
10883 fields of frame data.
10884 (frame_get_saved_regs): Fill in information for AltiVec registers.
10885
12af6855
JB
108862002-03-27 Jim Blandy <jimb@redhat.com>
10887
10888 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10889 a function; leave this macro here to invoke that function.
10890 (symbol_init_mangled_name): Declaration for that function.
10891 * symtab.c (symbol_init_mangled_name): New function.
10892
dc672865
AC
108932002-03-27 Andrew Cagney <ac131313@redhat.com>
10894
10895 * valarith.c: Replace strerror with safe_strerror.
10896 * tracepoint.c: Ditto.
10897 * lin-lwp.c: Ditto.
10898 * go32-nat.c: Ditto.
10899 * inflow.c: Ditto.
10900 * gnu-nat.c: Ditto.
10901
d96429cd
AS
109022002-03-27 Andreas Schwab <schwab@suse.de>
10903
10904 * event-top.c (command_line_handler): Remove useless if.
10905
7e336ba1
AJ
109062002-03-27 Andreas Jaeger <aj@suse.de>
10907
10908 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10909 comment.
10910
de220d0f
ML
109112002-03-27 Michal Ludvig <mludvig@suse.cz>
10912
10913 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10914 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10915 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10916 (x86_64_linux_dr_get_status, supply_gregset),
10917 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10918 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10919 (x86_64_register_info_table): Add.
10920 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10921 (x86_64_register_raw_size, x86_64_register_virtual_type),
10922 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10923 general x86_64_register_info_table.
10924 (i386_gdbarch_init): gdbarch_register_bytes is now set
10925 dynamicaly during initialization.
10926 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10927 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10928
0e98d0a7
DJ
109292002-03-27 Daniel Jacobowitz <drow@mvista.com>
10930
10931 * gdbserver/server.c (main): Call target_signal_to_host_p
10932 and target_signal_to_host on signals received from the remote.
10933 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10934 target_signal_from_host on signals sent to the remote.
10935 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10936 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10937
3130066b
DJ
109382002-03-27 Daniel Jacobowitz <drow@mvista.com>
10939
10940 * signals/signals.c: Include "server.h" in gdbserver build.
10941 (target_signal_from_name): Don't use STREQ.
10942 (_initialize_signals): Likewise. Don't include function in
10943 gdbserver build.
10944
9aedf4f4
DJ
109452002-03-27 Daniel Jacobowitz <drow@mvista.com>
10946
10947 * signals.c: Moved to...
10948 * signals/signals.c: Here.
7e336ba1 10949 * Makefile (signals.o): Update.
9aedf4f4 10950
3fa41cdb
JL
109512002-03-26 Jeff Law (law@redhat.com)
10952
10953 * somread.c (som_symtab_read): Remove some commented out code and
10954 updated related comments. Do not set the minimal symbol table to
10955 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10956 in a dynamic executable.
10957 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10958 where we are unable to find the minimal symbol for the given
10959 PC value.
10960
ee677e8d
MS
109612002-03-25 Jeff Law (law@redhat.com)
10962
10963 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10964
e76e1718
ML
109652002-03-25 Michal Ludvig <mludvig@suse.cz>
10966
10967 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10968
18a642a1
AC
109692002-03-23 Andrew Cagney <ac131313@redhat.com>
10970
10971 * command.h: Update copyright.
10972 (struct cmd_list_element): Replace definition with opaque
10973 declaration.
10974 (enum cmd_types): Document that it will eventually be moved to
10975 cli/cli-decode.h
10976 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10977 (MALLOCED_REPLACEMENT): Delete macro.
10978 * Makefile.in (cli_decode_h): Add $(command_h).
10979 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 10980 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
10981 * completer.c: Include "cli/cli-decode.h".
10982 * maint.c: Include "cli/cli-decode.h".
10983 * cli/cli-decode.h: Include "command.h".
10984 (enum command_class): Delete.
10985 (enum cmd_types): Comment out.
10986 (enum cmd_auto_boolean): Delete.
10987 (enum var_types): Delete.
10988
b2875cc0
AC
109892002-03-23 Andrew Cagney <ac131313@redhat.com>
10990
10991 * cli/cli-decode.c: Include "gdb_assert.h".
10992 (add_set_or_show_cmd): New static function.
10993 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10994 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10995 all fields, such as func, from the set command.
10996
3b45974e
AC
109972002-03-23 Andrew Cagney <ac131313@redhat.com>
10998
10999 * MAINTAINERS (sh-elf): Change warning flag to -w.
11000
823ca731
AC
110012002-03-23 Andrew Cagney <cagney@redhat.com>
11002
11003 * defs.h (error): Add printf format attribute.
11004 * thread-db.c (thread_from_lwp): Fix error format string.
11005 * stack.c (parse_frame_specification): Ditto.
11006 * cli/cli-decode.c (undef_cmd_error): Ditto.
11007 * scm-lang.c (scm_lookup_name): Ditto.
11008 * tracepoint.c (trace_error): Ditto.
11009 * remote-utils.c (usage): Ditto.
11010 * remote.c (compare_sections_command): Ditto.
11011 Fix PR gdb/328.
11012
0e101458
AC
110132002-03-22 Andrew Cagney <ac131313@redhat.com>
11014
11015 * gdbtypes.c (append_composite_type_field): New function.
11016 (init_composite_type): New function.
11017 * gdbtypes.h (append_composite_type_field): Declare.
11018 (init_composite_type): Ditto.
11019
8e0662df
EZ
110202002-03-22 Elena Zannoni <ezannoni@redhat.com>
11021
11022 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 11023 function.
8e0662df
EZ
11024 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11025 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11026 structure returning convention for SYSV ABI case, but not
11027 for GNU/Linux, FreeBSD, or NetBSD.
11028
3121eff0
DJ
110292002-03-22 Daniel Jacobowitz <drow@mvista.com>
11030
11031 * symtab.h (lookup_block_symbol): Add mangled_name argument
11032 to prototype.
11033
11034 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11035 with new mangled_name argument.
11036 * linespec.c (decode_line_1): Likewise.
11037 * valops (value_of_this): Likewise.
11038 * symtab.c (lookup_transparent_type): Likewise.
11039 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11040 (lookup_symbol): If we are given a mangled name, pass it down
11041 to lookup_symbol_aux.
11042 (lookup_block_symbol): If we are given a mangled name to check
11043 against, only return symbols which match it.
11044
349b409f
CF
110452002-03-22 Christopher Faylor <cgf@redhat.com>
11046
11047 * win32-nat.c (child_create_inferior): Check for proper shell to use
11048 here, in case the user changes it on the fly.
11049 (_initialize_inftarg): Remove shell path considerations.
11050
2a873819
EZ
110512002-03-21 Elena Zannoni <ezannoni@redhat.com>
11052
11053 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11054 for gdbarch_max_register_raw_size and max_register_virtual_size.
11055 Adjust copyright year.
11056
a1b9830c
DJ
110572002-03-21 Daniel Jacobowitz <drow@mvista.com>
11058
11059 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11060 in a function to cover the entire beginning of the function
11061 as well if it does not already.
11062
8b5790f2
TR
110632002-03-21 Tom Rix <trix@redhat.com>
11064
11065 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11066 (rs6000_ptrace64): Renamed from ptrace64.
11067
bdbe5747
MH
110682002-03-20 Martin M. Hunt <hunt@redhat.com>
11069
11070 * gdbserver/remote-utils.c (remote_open): Don't call
11071 getprotobyname, we're all using TCP here so just use
11072 IPPROTO_TCP.
7e336ba1 11073 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
11074
110752002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 11076
bdbe5747
MH
11077 * regcache.c (_initialize_regcache): No need to call
11078 build_regcache() at this time; it gets called whenever
11079 the gdbarch changes.
11080
7781cd62
DB
110812002-03-20 David O'Brien <obrien@FreeBSD.org>
11082
11083 * sparc-nat.c: Include sys/param.h where possible.
11084
f65ca430
DJ
110852002-03-20 Daniel Jacobowitz <drow@mvista.com>
11086
11087 Fix PR gdb/422.
11088 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11089 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11090 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11091 complex types.
11092 * stabsread.c (rs6000_builtin_type): Likewise.
11093 (read_sun_floating_type): Likewise.
11094
0c867556
PS
110952002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11096
11097 * stabsread.c (read_member_functions): Remove skip code for duplicate
11098 constructor/destructor methods. Use standard parsing for these
11099 methods and just do not chain them to the list of methods after
11100 parsing.
11101
12b9c64f
AO
111022002-03-19 Alexandre Oliva <aoliva@redhat.com>
11103
11104 * coffread.c: Remove redundant static declarations. Replace
11105 occurrences of `PTR' with `void *'.
11106 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11107 * top.h (quit_cover): Likewise.
11108 * defs.h (catch_errors): Likewise.
11109
349c5d5f
AC
111102002-03-18 Andrew Cagney <ac131313@redhat.com>
11111
11112 * defs.h (XMALLOC): Define.
11113 * gdb-events.sh (XMALLOC): Delete macro.
11114 * gdb-events.c, gdb-events.h: Regenerate.
11115 * gdbarch.sh (XMALLOC): Delete macro.
11116 * gdbarch.c: Regenerate.
11117 * serial.c (XMALLOC): Delete macro.
11118 * ui-file.c (XMALLOC): Ditto.
11119 * ser-unix.h (XMALLOC): Ditto.
11120 * sh-tdep.c (XMALLOC): Ditto.
11121 * ui-out.c (XMALLOC): Ditto.
11122 * utils.c (XMALLOC): Ditto.
11123 * i386-tdep.c (XMALLOC): Ditto.
11124 * gdb-events.c (XMALLOC): Ditto.
11125 * d10v-tdep.c (XMALLOC): Ditto.
11126 * cli-out.c (XMALLOC): Ditto.
11127
11128 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11129 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11130 * ui-file.c, ui-out.c: Ditto.
11131
7d0766f3
AC
111322002-03-18 Andrew Cagney <ac131313@redhat.com>
11133
11134 * command.h (struct cmd_list_element): Add field context.
11135 (set_cmd_context, get_cmd_context): Declare.
11136 * cli/cli-decode.h: Ditto.
11137 * cli/cli-decode.c (get_cmd_context): New function.
11138 (set_cmd_context): New function.
11139 (add_cmd): Initialize context.
11140 Part of fixing PR gdb/145 and PR gdb/146.
11141
5913bcb0
AC
111422002-03-17 Andrew Cagney <ac131313@redhat.com>
11143
1868c04e
AC
11144 * cli/cli-decode.c (cmd_type): New function.
11145 * command.h (cmd_type): Declare.
11146 * infrun.c (set_schedlock_func): Call function cmd_type.
11147 * kod.c (kod_set_os): Call cmd_type.
11148 * cris-tdep.c (cris_version_update): Use function cmd_type.
11149 (cris_mode_update, cris_abi_update): Ditto.
11150
5913bcb0
AC
11151 * command.h: (execute_cmd_post_hook): Declare.
11152 (execute_cmd_pre_hook): Declare.
11153 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11154 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11155 functions. Execute pre/post hook while ensuring that afterwords
11156 hook_in is cleared.
11157 * top.c (execute_command): Use execute_cmd_post_hook, and
11158 execute_cmd_pre_hook to execute pre/post commands.
11159 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11160 hook_stop_stub.
11161 (hook_stop_stub): Call execute_cmd_pre_hook.
11162
b51450c9
AC
111632002-03-17 Andrew Cagney <ac131313@redhat.com>
11164
11165 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11166 set'' and this leads to a core dump. Move xstrdup of
11167 operating_system to after check that it is not NULL.
11168
f66c9f11
AC
111692002-03-17 Andrew Cagney <ac131313@redhat.com>
11170
8e694ecf
AC
11171 * kod.c (kod_set_os): Remove unnecessary check that
11172 ``command->type'' is set_cmd.
11173
f66c9f11
AC
11174 * valprint.c (set_input_radix): Use input_radix.
11175 (set_output_radix): Use output_radix.
11176 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11177 isn't reverted.
11178
9d01611c
AC
111792002-03-16 Andrew Cagney <ac131313@redhat.com>
11180
11181 * value.h (struct value): Delete field ``substring_addr''. Change
11182 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
11183 force_core_addr_align and force_pointer_aligh.
11184
11185 * value.h (struct value): Fix typo in above change.
9d01611c 11186
4156bb53
PS
111872002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11188
11189 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11190 to fix internal_error from ``maintenance print architecture''.
11191
0e5e3ea6
PS
111922002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11193
11194 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11195 for gcc versions after gcc-2.8.1.
11196
9b013045
PS
111972002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11198
11199 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11200 for method resolution. Restore adjustment of ``this'' pointer after
11201 calling value_struct_elt, which was accidentally removed during the
11202 HP merge.
11203
376c9600
AC
112042002-03-15 Andrew Cagney <ac131313@redhat.com>
11205
11206 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11207 value_of_register.
11208 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11209 get_saved_register.
11210 * value.h (value_of_register): Update.
11211
a4db0f07
RH
112122002-03-14 Richard Henderson <rth@redhat.com>
11213
11214 * configure.in: Detect declaration for canonicalize_file_name.
11215 * utils.c (canonicalize_file_name): Declare, if needed.
11216 (gdb_realpath): Prefer realpath if available and usable.
11217 * config.in, configure: Rebuild.
11218
96383835
RH
112192002-03-14 Richard Henderson <rth@redhat.com>
11220
11221 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11222 a constant array bound.
11223
11224 * MAINTAINERS: Add myself to write-after-approval.
11225
75245b24
MS
112262002-03-14 Michael Snyder <msnyder@redhat.com>
11227
11228 * symfile.c (syms_from_objfile): Return immediately if no syms.
11229 (symbol_file_add): Return immediately if no syms.
11230 (find_sym_fns): Return immediately if no syms.
11231
e641a1ca
ML
112322002-03-13 Michal Ludvig <mludvig@suse.cz>
11233
11234 * gdbserver/remote-util.c (remote_open): Print remote-side's
11235 IP address when remote debugging over the network.
7e336ba1 11236
df08bfec
DB
112372002-03-12 David O'Brien <obrien@FreeBSD.org>
11238
11239 * config/sparc/fbsd.mh: Fix copyright.
11240 * config/sparc/fbsd.mt: Likewise.
11241
9a57864f
RE
112422002-03-11 Richard Earnshaw <rearnsha@arm.com>
11243
11244 * MAINTAINERS: Fix typo in name of gdb warnings option.
11245 (x86-64): Fix formating so that this can be parsed by awk.
11246
dd7bf85e
DJ
112472002-03-10 Daniel Jacobowitz <drow@mvista.com>
11248
11249 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11250 * defs.h: Include "gdb/signals.h".
11251 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11252
33a0a2ac
ML
112532002-03-10 Michal Ludvig <mludvig@suse.cz>
11254
11255 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 11256 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
11257 from x86-64-tdep.h
11258
dd824b04
DJ
112592002-03-10 Daniel Jacobowitz <drow@mvista.com>
11260 Don Howard <dhoward@redhat.com>
11261
11262 * mips-tdep.c (ST0_FR): Define.
11263 (mips2_fp_compat): New function, temporarily disabled.
11264 (mips_read_fp_register_single): New function.
11265 (mips_read_fp_register_double): New function.
11266 (mips_print_register): Use them.
11267 (do_fp_register_row): Likewise.
11268
6a41ff59
AC
112692002-03-09 Andrew Cagney <ac131313@redhat.com>
11270
11271 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11272 approval''.
11273
4ea09c10
PS
112742002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11275
11276 * stabsread.c (read_member_functions): Fix is_stub test for
11277 static member functions, improve comment.
11278
6ccc741d
RE
112792002-03-07 Richard Earnshaw <rearnsha@arm.com>
11280
11281 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11282 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11283 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11284 commands that set boolean values.
11285 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11286 (arm_rdi_resume): Always initialize PC.
11287 (arm_rdi_open): Don't use rslt as a boolean.
11288 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11289 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11290 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11291 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11292
438013df
AO
112932002-03-06 Alexandre Oliva <aoliva@redhat.com>
11294
11295 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11296 * configure: Rebuilt.
11297
70ed8774
SC
112982002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11299
11300 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11301 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11302
5ba2abeb
AC
113032002-03-06 Andrew Cagney <ac131313@redhat.com>
11304
11305 * cli/cli-decode.c (set_cmd_completer): New function.
11306 * command.h (set_cmd_completer): Declare.
11307 * cli/cli-decode.h (set_cmd_completer): Ditto.
11308
11309 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11310 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11311 * win32-nat.c (_initialize_inftarg): Ditto.
11312 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11313 * proc-api.c (_initialize_proc_api): Ditto.
11314 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11315 * source.c (_initialize_source): Ditto.
11316 * exec.c (_initialize_exec): Ditto.
11317 * solib.c (_initialize_solib): Ditto.
11318 * top.c (init_main): Ditto.
11319 * tracepoint.c (_initialize_tracepoint): Ditto.
11320 * symfile.c (_initialize_symfile): Ditto.
11321 * printcmd.c (_initialize_printcmd): Ditto.
11322 * infcmd.c (_initialize_infcmd): Ditto.
11323 * corefile.c (_initialize_core): Ditto.
11324
f779ca99
AC
113252002-03-05 Andrew Cagney <ac131313@redhat.com>
11326
11327 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11328
01a3934b
AC
113292002-03-05 Andrew Cagney <ac131313@redhat.com>
11330
11331 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11332
37057839
AC
113332002-03-05 Andrew Cagney <ac131313@redhat.com>
11334
11335 * NEWS: Update headings, 5.2 has branched.
11336
c6ecbae5
DJ
113372002-03-04 Daniel Jacobowitz <drow@mvista.com>
11338
11339 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11340 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11341 (register_addr, REGISTER_RAW_SIZE): Likewise.
11342 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11343 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11344
e9f30c21
ML
113452002-03-03 Michal Ludvig <mludvig@suse.cz>
11346
11347 * MAINTAINERS (x86-64): Add myself.
11348 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11349 changed value_ptr -> struct value *
11350
54394ac3
DB
113512002-03-01 David O'Brien <obrien@FreeBSD.org>
11352
11353 * configure.host (sparc64-*-freebsd): Add.
11354 * configure.tgt: Likewise.
11355 * config/sparc/fbsd.mh: New file.
11356 * config/sparc/fbsd.mt: Likewise.
11357 * config/sparc/nm-fbsd.h: Likewise.
11358 * config/sparc/tm-fbsd.h: Likewise.
11359
bfe95955
DJ
113602002-03-01 Daniel Jacobowitz <drow@mvista.com>
11361
11362 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11363 regformats/reg-s390x.dat.
11364
f33c6cbf
AC
113652002-03-01 Andrew Cagney <ac131313@redhat.com>
11366
11367 * utils.c: Add FIXME explaining true/false problem.
11368
5ecaa7dd
AC
113692002-02-28 Andrew Cagney <ac131313@redhat.com>
11370
11371 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11372
2a251cc2
MC
113732002-02-28 Michael Chastain <mec@shout.net>
11374
11375 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11376
6a8031a3 113772002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
11378
11379 * gdbserver/linux-s390-low.c: New file.
11380 * regformats/reg-s390.dat: New file.
11381 * regformats/reg-s390x.dat: New file.
11382 * gdbserver/configure.srv: Add S/390.
11383 * gdbserver/Makefile.in: Add S/390.
11384 * configure.tgt: Enable gdbserver for S/390.
11385
ac469903
EZ
113862002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11387
11388 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11389 first line of the doc string for "info dos", except at the end of
11390 the sentence, since the short help stops at the first period.
11391
985cb1a3
JM
113922002-02-28 Jason Merrill <jason@redhat.com>
11393
11394 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11395
c570663e
FF
113962002-02-27 Fred Fish <fnf@redhat.com>
11397
11398 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11399 comment (dumy -> dummy).
11400
43630227
PS
114012002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11402
11403 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11404
b84911e8
RB
114052002-02-27 Rodney Brown <rbrown64@csc.com.au>
11406
11407 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11408
58caa3dc
DJ
114092002-02-27 Daniel Jacobowitz <drow@mvista.com>
11410
11411 * gdbserver/acconfig.h: New file.
11412 * gdbserver/i387-fp.c: New file.
11413 * gdbserver/i387-fp.h: New file.
11414 * gdbserver/linux-x86-64.c: New file.
11415 * regformats/reg-x86-64.dat: New file.
11416 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11417 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11418 * gdbserver/configure.in: Add support for regsets.
11419 * gdbserver/config.in: Regenerate.
11420 * gdbserver/configure: Regenerate.
11421 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11422 * gdbserver/linux-low.h: New file.
11423 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11424 for regsets.
11425 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11426 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11427 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11428 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11429 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11430 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11431 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11432 "i387-fp.h". Add PTRACE_GETREGS and friends.
11433 * gdbserver/regcache.c (supply_register): New function.
11434 (supply_register_by_name): New function.
11435 (collect_register): New function.
11436 (collect_register_by_name): New function.
11437
93652174
DJ
114382002-02-27 Daniel Jacobowitz <drow@mvista.com>
11439
11440 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11441 (config.status): Add configure.srv dependency.
11442 (server_h): Add config.h dependency.
11443
a02e4a61
DJ
114442002-02-27 Daniel Jacobowitz <drow@mvista.com>
11445
11446 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11447 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11448 * gdbserver/configure.srv: Change i386-*-linux* to use
11449 reg-i386-linux.o.
11450
ce0eebec
AC
114512002-02-26 Andrew Cagney <ac131313@redhat.com>
11452
11453 * x86-64-tdep.c: Re-indent. Update copyright date.
11454
82dbc5f7
AC
114552002-02-26 Andrew Cagney <ac131313@redhat.com>
11456
11457 From Michal Ludvig <mludvig@suse.cz>:
11458 * x86-64-tdep.c (value.h): Delete.
11459 (gdb_assert.h): Include.
11460 (x86_64_register_convert_to_virtual,
11461 x86_64_register_convert_to_raw ): Add check which lets only
11462 floating-point values to be converted.
11463 (value_push): Delete.
11464 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11465 (i386_gdbarch_init): Number of register_bytes fixed.
11466
e4621584
AC
114672002-02-26 Andrew Cagney <ac131313@redhat.com>
11468
11469 * MAINTAINERS: Add x86-64 target.
11470
81a9a963
AC
114712002-02-26 Andrew Cagney <ac131313@redhat.com>
11472
11473 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11474 * osfsolib.c (solib_map_sections): Ditto.
11475 * irix5-nat.c (solib_map_sections): Ditto.
11476 * corelow.c (gdb_check_format): Ditto.
11477 * symfile.c (symfile_bfd_open): Ditto.
11478 * solib.c (solib_map_sections): Ditto.
11479 Fix PR gdb/354.
7e336ba1 11480
0f017ab9
AC
114812002-02-26 Andrew Cagney <ac131313@redhat.com>
11482
11483 * remote.c (_initialize_remote): By default, disable ``e'' and
11484 ``E'' step out-of-range packets.
11485
75738c29
AS
114862002-02-26 Andreas Schwab <schwab@suse.de>
11487
11488 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11489 m68k_linux_frame_saved_pc.
11490 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11491 in_sigtramp.
11492 (SIGCONTEXT_PC_OFFSET): Remove.
11493 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11494 m68k_linux_sigtramp_saved_pc): New functions.
11495 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11496 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11497 (UCONTEXT_PC_OFFSET): Define.
11498 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11499 non-RT and RT signal trampolines.
11500
7e8ed687
RE
115012002-02-26 Richard Earnshaw <rearnsha@arm.com>
11502
11503 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11504 (TARGET_NBPG, STACK_END_ADDR): Delete
11505 (VARIABLES_INSIDE_BLOCK): Delete.
11506
6972bc8b
AC
115072002-02-25 Andrew Cagney <ac131313@redhat.com>
11508
11509 * utils.c (perror_with_name): Make string parameter constant.
11510 (print_sys_errmsg): Ditto.
11511 (query): Ditto.
11512 * defs.h (perror_with_name): Update.
11513 (print_sys_errmsg): Update.
11514 (query): Update.
11515
aa32f823
DJ
115162002-02-25 Daniel Jacobowitz <drow@mvista.com>
11517
11518 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11519 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11520
19caaa45
PS
115212002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11522
11523 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11524 if it already matches the current architecture from the exec file.
11525 Include arch-utils.h for gdbarch_info_init prototype.
11526 * Makefile.in (rs6000-nat.o): Update dependencies.
11527
d951901f
EZ
115282002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11529
11530 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11531 list of exported variables.
11532
7ea81414
DJ
115332002-02-24 Daniel Jacobowitz <drow@mvista.com>
11534
11535 * gdbserver/configure.srv: New file.
11536 * gdbserver/configure.in: Use configure.srv instead
11537 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11538 from it.
11539 * gdbserver/configure: Regenerated.
11540 * gdbserver/terminal.h: New file.
11541 * gdbserver/Makefile.in: Update for configure changes. Remove
11542 more unneeded include paths.
11543
080fe24b
AC
115442002-02-24 Andrew Cagney <ac131313@redhat.com>
11545
11546 From wiz at danbala:
11547 * config/sparc/tm-sp64.h: Fix grammar and typos.
11548 Fix PR gdb/287.
11549
8605d56e
AC
115502002-02-24 Andrew Cagney <ac131313@redhat.com>
11551
11552 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
11553 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11554 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11555 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
11556 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11557 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11558 * s390-tdep.c: Ditto.
92362027
AC
11559 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11560 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11561 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11562 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11563 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11564 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11565 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11566 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11567 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11568 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 11569 Fix PR gdb/378.
7e336ba1 11570
8ed32cc0
AC
115712002-02-23 Andrew Cagney <ac131313@redhat.com>
11572
a3007b6f
AC
11573 * lin-thread.c: Delete file.
11574 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11575 to gdb_proc_service.h.
11576 * configure: Re-generate.
11577
50a9e2f1
AC
11578 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11579 * serial.c (serial_open): Delete check for "ocd".
11580 Fix PR gdb/349.
11581
8b6e7932
AC
11582 * Makefile.in (linux-thread.o): Delete target.
11583 * linux-thread.c: Delete file.
11584
d155c46b
AC
11585 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11586 renamed SH files to be consistent.
11587
8ed32cc0
AC
11588 * symtab.c (sort_search_symbols): Use xfree.
11589
0e18d038
RE
115902002-02-23 Richard Earnshaw <rearnsha@arm.com>
11591
11592 * arm-linux-tdep.c (arm_linux_init_abi): Register
11593 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11594 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11595 definition with undef, since we don't want the sysvr4 definition.
11596 (SKIP_TRAMPOLINE_CODE): Likewise.
11597
27aac7ff
AC
115982002-02-23 Andrew Cagney <ac131313@redhat.com>
11599
11600 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11601
11602 * configure.in: (AC_CHECK_FUNCS) Added test for
11603 canonicalize_file_name Regenerated.
11604 * config.in, configure: Regenerated.
11605 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11606 defined use canonicalize_file_name.
7e336ba1 11607
65a6e0ee
MC
116082002-02-23 Michael Chastain <mec@shout.net>
11609
11610 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11611
47b95330
AC
116122002-02-23 Andrew Cagney <ac131313@redhat.com>
11613
11614 * README: Remove references to cygnus.com.
11615 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11616 dot com'' form. Remove references to cygnus.com and sourceware.
11617
696f451b
AC
116182002-02-23 Andrew Cagney <ac131313@redhat.com>
11619
11620 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11621 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11622 1003.1-2001 no longer allows "head -1".
11623 * gdb/Makefile.in (version.c): Likewise.
11624 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11625 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11626 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11627
bbaca940
AC
116282002-02-23 Andrew Cagney <ac131313@redhat.com>
11629
11630 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11631 * command.h (cmd_cfunc_eq): Declare.
11632 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11633
11634 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11635 ``struct cmd_list_element *''.
11636 * cli/cli-cmds.c (is_complete_command): Update. Use
11637 cmd_cfunc_eq.
11638 * top.c (execute_command): Pass the command to
11639 is_complete_command.
11640 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11641
b8b8b047
AC
116422002-02-23 Andrew Cagney <ac131313@redhat.com>
11643
11644 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11645 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11646 architecture defines.
11647 * s390-tdep.c (s390_gdbarch_init): Likewise.
11648
19d3fc80
RE
116492002-02-23 Richard Earnshaw <rearnsha@arm.com>
11650
11651 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11652 (arm_linux_push_arguments): Likewise.
11653 (arm_linux_init_abi): Register them. Also register linux-specific
11654 call_dummy_words.
11655 (find_minsym_and_objfile): Use strcmp, not STREQ.
11656 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11657 (arm_linux_call_dummy_words): Delete declaration.
11658 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11659 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11660 declarations.
11661 (LOWEST_PC): Delete.
11662
3ab13650
PS
116632002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11664
11665 * maint.c (print_section_info): Do not prepend `0x' to filepos
11666 output, it will be handled by local_hex_string_custom.
11667
19d3fc80 116682002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
11669
11670 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11671 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11672 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11673
d85a5daf
JB
116742002-02-22 Jim Blandy <jimb@redhat.com>
11675
11676 Indicate that the bcache functions don't change the strings
11677 they're passed.
11678 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11679 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11680
eeb25b8a
PM
116812002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11682
11683 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11684
6badb179
CF
116852002-02-21 Christopher Faylor <cgf@redhat.com>
11686
11687 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11688 find the complete path to a loaded DLL.
11689
e8717518
FF
116902002-02-21 Fred Fish <fnf@redhat.com>
11691
11692 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11693 that marks the end of the range of a function, enter a line number
11694 entry that has a line number of zero and a PC offset that matches
11695 the end of the function. This starts a range of PC's for which no
11696 line number information is known.
11697 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11698 PC's for which no line number info is found (line number is zero)
11699 then we didn't find any valid line information.
11700 * symtab.h: Document use of zero line number entry.
11701
9abe5450
EZ
117022002-02-21 Elena Zannoni <ezannoni@redhat.com>
11703
11704 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11705 (have_ptrace_getvrregs): Define for run time checks.
11706 (gdb_vrregset_t): New type for Altivec register handling.
11707 (fetch_register, store_register): Fetch/store altivec register
11708 when needed.
11709 (fetch_altivec_register, store_altivec_register): New functions.
11710 (supply_vrregset, fill_vrregset): New functions.
11711 (fetch_altivec_registers, store_altivec_registers): New functions.
11712 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11713 registers as well.
11714
aaa38bb5
AJ
117152002-02-21 Jiri Smid <smid@suse.cz>
11716
11717 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11718
b34db576
RE
117192002-02-21 Richard Earnshaw <rearnsha@arm.com>
11720
11721 * Makefile.in (armnbsd-nat.o): Update dependencies.
11722 * armnbsd-nat.c (supply_gregset): New function. Common code to
11723 supply the integer register set.
11724 (supply_fparegset): New function. Similar for FPA registers.
11725 (fetch_regs, fetch_fp_regs): Use them.
11726 (fetch_core_registers): Likewise.
11727 (fetch_elfcore_registers): New function.
11728 (arm_netbsd_elfcore_fns): New core-file type specification.
11729 (_initialize_arm_netbsd_nat): Register it.
11730
3e56fc4b
RE
117312002-02-21 Richard Earnshaw <rearnsha@arm.com>
11732
11733 * armnbsd-nat.c: Include gdbcore.h.
11734 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11735 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11736 'void' to declaration, to shut up ARI.
11737 (fetch_core_registers): Make static. Rewrite using supply_register.
11738 (arm_netbsd_core_fns): New core-file type specification.
11739 (_initialize_arm_netbsd_nat): New function.
11740
097f6b0b
CF
117412002-02-21 Christopher Faylor <cgf@redhat.com>
11742
11743 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11744 value.
11745
c914e0cc
CF
117462002-02-20 Christopher Faylor <cgf@redhat.com>
11747
11748 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11749 fails.
11750
385fa495
DJ
117512002-02-20 Daniel Jacobowitz <drow@mvista.com>
11752
11753 * jv-exp.y (parse_number): Change type of implicit longs
11754 to builtin_type_uint64.
11755
e5f1222d
DJ
117562002-02-20 Daniel Jacobowitz <drow@mvista.com>
11757
11758 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11759 to be an integer instead of a `union wait'.
11760
75c9abc6
DJ
117612002-02-20 Daniel Jacobowitz <drow@mvista.com>
11762
11763 * mips-linux-nat.c: Call the operating system GNU/Linux.
11764 * mips-linux-tdep.c: Likewise.
11765 * mips-tdep.c: Likewise.
11766
551792a5
DJ
117672002-02-20 Daniel Jacobowitz <drow@mvista.com>
11768
11769 Fix PR gdb/265.
11770 * jv-exp.y (parse_number): Handle 64-bit integers.
11771
ee6e2b82
DJ
117722002-02-20 Daniel Jacobowitz <drow@mvista.com>
11773
11774 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11775 AC_STDC_HEADERS to AC_HEADER_STDC.
11776 * gdbserver/configure: Regenerated.
11777
a48442a0
RE
117782002-02-20 Richard Earnshaw <rearnsha@arm.com>
11779
11780 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11781 is defined.
11782 * sparc-tdep.c (get_longjmp_target): Likewise.
11783
fe419ffc
RE
117842002-02-20 Richard Earnshaw <rearnsha@arm.com>
11785
11786 * News: Add news about ARM and Multi-arch. Mention the new target
11787 arm*-*-netbsd*.
11788
5832ed7e
JB
117892002-02-19 Jim Blandy <jimb@redhat.com>
11790
11791 * stabsread.c (error_type_complaint): Improve error message.
11792
84563040
DJ
117932002-02-19 Daniel Jacobowitz <drow@mvista.com>
11794
11795 * gdbserver/README: Update documentation.
11796 * gdbserver/configure.in: Update configury to match documentation.
11797 * gdbserver/Makefile.in: Likewise.
11798 * gdbserver/configure: Regenerated.
11799 * gdbserver/aclocal.m4: New file, generated by aclocal.
11800 * gdbserver/config.in: New file, generated by autoheader.
11801
375fd65b
RE
118022002-02-19 Richard Earnshaw <rearnsha@arm.com>
11803
11804 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11805 armnbsd-nat.c.
11806
08216dd7
RE
118072002-02-19 Richard Earnshaw <rearnsha@arm.com>
11808
11809 * arm-tdep.h (enum arm_float_model): New enum.
11810 (struct gdbarch_tdep): Add fp_model.
11811 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11812 up floating-point conversions until we know the floating-point model
11813 in use by the inferior. Don't complain about being unable to
11814 determine the ABI of the inferior when we don't have one.
11815 (arm_extract_return_value): Support different floating-point models.
11816 (arm_store_return_value): Likewise.
aaa38bb5 11817 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11818 ARM_FLOAT_SOFT.
11819 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11820
65d6d66a
PS
118212002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11822
11823 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11824 of ``current_gdbarch''.
11825
47221191
RE
118262002-02-19 Richard Earnshaw <rearnsha@arm.com>
11827
11828 * armnbsd-nat.c : ANSIfy all function declarations.
11829 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11830 (fetch_inferior_registers): Re-implement in terms of above.
11831 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11832 (store_inferior_registers): Re-implement in terms of above.
11833
fdf39c9a
RE
118342002-02-19 Richard Earnshaw <rearnsha@arm.com>
11835
aaa38bb5 11836 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11837 kernel.
11838 * arm-linux-tdep.c: Likewise.
11839 * config/arm/tm-linux.h: Likewise.
11840
93247f88
RE
118412002-02-19 Richard Earnshaw <rearnsha@arm.com>
11842
11843 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11844 * config/arm/nbsd.mt (TM_FILE): Delete.
11845 * config/arm/tm-nbsd.h: Delete.
11846
d7b486e7
RE
118472002-02-19 Richard Earnshaw <rearnsha@arm.com>
11848
11849 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11850 Initialize CALL_DUMMY_LENGTH.
11851
41d39a95
RE
118522002-02-19 Richard Earnshaw <rearnsha@arm.com>
11853
11854 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11855 function.
11856 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11857 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11858 defines one thing and that is incorrect for this port.
11859 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11860
e1195560
PM
118612002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11862
11863 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11864
c1748f97
PM
118652002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11866
11867 * win32-nat.c (display_selector): New function. Displays information
11868 about the information returned by GetThreadSelectorEntry API function.
11869 (display_selectors): New function. Displays the infomation of
11870 the selector given as argument, or of CS, DS ans FS selectors
11871 if no argument is given.
11872 ( _initialize_inftarg): Add "w32" as info prefix command.
11873 Add "info w32 selector" as command calling display_selectors.
11874
e41e6bbf
PM
118752002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11876
11877 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11878 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11879 if not defined.
11880
0d3a9f48
RE
118812002-02-18 Richard Earnshaw <rearnsha@arm.com>
11882
11883 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11884
3fb4b924
RE
118852002-02-18 Richard Earnshaw <rearnsha@arm.com>
11886
11887 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11888 (arm_fix_call_dummy): Call it.
11889 (arm_call_dummy_breakpoint_offset): Delete.
11890 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11891 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11892
7f55af32
AC
118932002-02-18 Andrew Cagney <ac131313@redhat.com>
11894
11895 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11896 Default to func_frame_chain_valid.
11897 * gdbarch.h, gdbarch.c: Re-generate.
11898 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11899
05f13b9c
EZ
119002002-02-18 Elena Zannoni <ezannoni@redhat.com>
11901
11902 * ppc-linux-nat.c: Update copyright.
11903 (fetch_register, store_register): Add tid parameter, don't compute
11904 tid here.
11905 (fetch_ppc_registers, store_ppc_registers): Add tid
11906 parameter. Pass it along to callees.
11907 (fetch_inferior_registers, store_inferior_registers): Compute tid
11908 here, and pass it to calleed functions.
11909 (fill_gregset, supply_fpregset): Clean up formatting.
11910
d7afb4c9
RE
119112002-02-18 Richard Earnshaw <rearnsha@arm.com>
11912
11913 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11914 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11915
9df628e0
RE
119162002-02-18 Richard Earnshaw <rearnsha@arm.com>
11917
11918 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11919 * gdbarch.c gdbarch.h: Regenerate.
11920 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11921 function.
11922 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11923 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11924 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11925
11926 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11927 * arm-tdep.c (arm_get_longjmp_target): New function.
11928 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11929 this to a positive value register arm_get_longjmp_target as the
11930 longjmp handler.
11931 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11932 (arm_linux_init_abi): Set up longjmp description in tdep.
11933 * armnbsd-nat.c (get_longjmp_target): Delete.
11934 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11935 description in tdep.
11936 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11937 (get_longjmp_target): Delete declaration.
11938 (GET_LONGJMP_TARGET): Delete.
11939 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11940 (GET_LONGJMP_TARGET): Delete.
11941
57bc8964
KB
119422002-02-17 Kevin Buettner <kevinb@redhat.com>
11943
11944 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11945 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11946 of ``current_gdbarch''.
11947
83d31a92
TT
119482002-02-17 Tom Tromey <tromey@redhat.com>
11949
11950 * cli/cli-cmds.c (compare_strings): New function.
11951 (complete_command): Only print each unique item once.
11952 * completer.h (complete_line): Declare.
11953 * completer.c (complete_line): New function.
11954 (line_completion_function): Use it.
11955
17ef5d92
AC
119562002-02-16 Andrew Cagney <ac131313@redhat.com>
11957
11958 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11959 * gdbarch.h, gdbarch.c: Re-generate.
11960
491b8946
DJ
119612002-02-16 Daniel Jacobowitz <drow@mvista.com>
11962
11963 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11964
119652002-02-16 Daniel Jacobowitz <drow@mvista.com>
11966
11967 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11968 * valops.c (value_arg_coerce): Don't take the address of a reference
11969 to convert an argument to a reference.
11970
dfe7f3ac
CF
119712002-02-15 Christopher Faylor <cgf@redhat.com>
11972
11973 * win32-nat.c (get_image_name): New function.
11974 (handle_load_dll): Use get_image_name function.
11975 (get_child_debug_event): Avoid registering debug events until possibly
11976 execed process is started.
11977 (child_create_inferior): Allow invocation via shell so that command
11978 line redirection, etc. works ok.
11979 (_initialize_inftarg): Add new command: "set shell" to control whether
11980 a shell is used to start a process.
11981
1d33e73a
DJ
119822002-02-15 Daniel Jacobowitz <drow@mvista.com>
11983
11984 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11985 instead of find_register_by_number.
11986 (cannot_store_register): Likewise.
11987
48cd0caa
PM
119882002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11989
aaa38bb5 11990 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
11991 fprintf_unfiltered (gdb_stderr, ...).
11992
8656e7d8
DJ
119932002-02-15 Daniel Jacobowitz <drow@mvista.com>
11994
11995 * gdbserver/gdbserver.1: Document --attach.
11996
66e810cd
RE
119972002-02-15 Richard Earnshaw <rearnsha@arm.com>
11998
11999 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12000 descriptions.
12001 * arm-tdep.c (arm_default_arm_le_breakpoint)
12002 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12003 (arm_default_thumb_be_breakpoint): New. Initialize them from
12004 traditional breakpoint defines.
12005 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12006 (arm_gdbarch_init): Initialize new breakpoint variables.
12007 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12008 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12009 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12010 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12011 code out to ...
12012 (arm_netbsd_init_abi_common): ... here; new function.
12013 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12014 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12015 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12016 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12017
97e03143
RE
120182002-02-15 Richard Earnshaw <rearnsha@arm.com>
12019
12020 * arm-tdep.h (enum arm_abi): New enum.
12021 (struct gdbarch_tdep): New structure.
12022 (LOWEST_PC): Provide a default.
12023 (arm_gdbarch_register_os_abi): Declare new function.
12024 * arm-tdep.c (arm_abi_names): New array.
12025 (process_note_abi_tag_sections): New function.
12026 (get_elfosabi): New function.
12027 (arm_gdbarch_register_os_abi): New function.
12028 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12029 support for that ABI has been built in, then call the appropriate
12030 configuration routine. Use gdbarch_num_regs() to get the number
12031 of registers.
12032 (arm_dump_tdep): New function.
12033 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12034 place-holder functions.
12035 (_initialize_arm_tdep): Register them.
12036 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12037
12038 * armnbsd-tdep.c: New file.
12039 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12040 * config/arm/nbsd.mt (TDEPFILES): Add it.
12041 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12042
12043 * armnbsd-nat.c: Include regcache.h.
12044 * Makefile.in (armnbsd-nat.o): Update dependency list.
12045
12046 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12047
ad68be46
DJ
120482002-02-14 Daniel Jacobowitz <drow@mvista.com>
12049
12050 * gdbserver/Makefile.in: Fix typos in target rules.
12051
003d6d1d
DJ
120522002-02-14 Daniel Jacobowitz <drow@mvista.com>
12053
aaa38bb5 12054 Fix part of PR gdb/267.
003d6d1d
DJ
12055 * linespec.c (find_methods): Handle constructors specially for now.
12056
6b230f1b
CV
120572002-02-14 Corinna Vinschen <vinschen@redhat.com>
12058
12059 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12060 handling.
12061 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12062 standard_coerce_float_to_double().
12063
1ea98d12
CF
120642002-02-14 Christopher Faylor <cgf@redhat.com>
12065
12066 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12067 GDBINIT_FILENAME.
12068
dd47e6fd
EZ
120692002-02-14 Elena Zannoni <ezannoni@redhat.com>
12070
12071 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12072 find_variant_by_name, because it confuses the multiarch
12073 framework. Return NULL if there isn't an architecture with the
12074 user supplied name, instead of forcing a different one without
12075 recording the change with the multiarch machinery.
12076 (find_variant_by_name): Delete.
12077
d7e39b9e
PS
120782002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12079
12080 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12081 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12082
76e42a4f
MH
120832002-02-13 Martin M. Hunt <hunt@redhat.com>
12084
aaa38bb5 12085 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
12086 print_frame_info_listing_hook, set current_source_symtab.
12087
0a30fbc4
DJ
120882002-02-14 Daniel Jacobowitz <drow@mvista.com>
12089
12090 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12091 and remove unused $(INCLUDE_DIR).
12092 Add regcache.c to OBS.
12093 Add generated register protocol files to clean target.
12094 Update dependencies for new objects, obsolete old target code.
12095
12096 * gdbserver/linux-low.c: Remove all platform-specific code to
12097 new files. Remove various dead code. Update to use regcache
12098 functionality.
12099 * gdbserver/remote-utils.c (fromhex): Add return statement
12100 to quiet warning.
12101 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12102 constant.
12103 (input_interrupt): Add integer parameter to match prototype
12104 of a signal handler.
12105 (outreg): Use register_data ().
12106 (prepare_resume_reply): Use gdbserver_expedite_regs.
12107 * gdbserver/server.c (main): Dynamically allocate own_buf because
12108 PBUFSIZ is no longer constant. Use registers_to_string () and
12109 registers_from_string ().
12110 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12111 for error (), fatal (), and warning (). Update definition of
12112 PBUFSIZ to use regcache functionality. Add include guard.
12113 * gdbserver/utils.c (fatal): Add missing ``const''.
12114 (warning): New function.
12115
12116 * regformats/regdat.sh: Include "regcache.h" in generated files.
12117 Provide init_registers () function.
12118 * regformats/regdef.h: Add prototype for set_register_cache ().
12119 Add include guard.
12120
12121 * gdbserver/linux-arm-low.c: New file.
12122 * gdbserver/linux-i386-low.c: New file.
12123 * gdbserver/linux-ia64-low.c: New file.
12124 * gdbserver/linux-m68k-low.c: New file.
12125 * gdbserver/linux-mips-low.c: New file.
12126 * gdbserver/linux-ppc-low.c: New file.
12127 * gdbserver/linux-sh-low.c: New file.
12128
12129 * gdbserver/regcache.c: New file.
12130 * gdbserver/regcache.h: New file.
12131
12132 * gdbserver/low-linux.c: Removed obsolete file.
12133
4cc841d0
DJ
121342002-02-14 Daniel Jacobowitz <drow@mvista.com>
12135
12136 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12137 * config/i386/linux.mt: Likewise.
12138 * config/ia64/linux.mt: Likewise.
12139 * config/m68k/linux.mh: Likewise.
12140 * config/powerpc/linux.mh: Likewise.
12141 * config/mips/linux.mt: Likewise.
12142
12143 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12144
12145 * config/i386/i386lynx.mh: Mark gdbserver variables
12146 as (currently) obsolete for this target.
12147 * config/i386/nbsd.mt: Likewise.
12148 * config/i386/nbsdelf.mt: Likewise.
12149 * config/m32r/m32r.mt: Likewise.
12150 * config/m68k/m68klynx.mh: Likewise.
12151 * config/m68k/nbsd.mt: Likewise.
12152 * config/m68k/sun3os4.mh: Likewise.
12153 * config/mips/vr5000.mt: Likewise.
12154 * config/ns32k/nbsd.mt: Likewise.
12155 * config/pa/hppabsd.mh: Likewise.
12156 * config/pa/hppaosf.mh: Likewise.
12157 * config/powerpc/nbsd.mt: Likewise.
12158 * config/rs6000/rs6000lynx.mh: Likewise.
12159 * config/s390/s390.mt: Likewise.
12160 * config/s390/s390x.mt: Likewise.
12161 * config/sparc/sparclynx.mh: Likewise.
12162 * config/sparc/sun4os4.mh: Likewise.
12163 * config/i386/x86-64linux.mt: Likewise.
12164 * config/sparc/linux.mh: Likewise.
12165
a85f51e7
DJ
121662002-02-14 Daniel Jacobowitz <drow@mvista.com>
12167
12168 * configure.tgt: Configure gdbserver only for known working
12169 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12170 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12171 SUBDIRS if it is configured. Update comment for ${nativefile}.
12172 * configure: Regenerated.
12173
65554fef
MS
121742002-02-13 Michael Snyder <msnyder@redhat.com>
12175
670a52db
MS
12176 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12177
6dbdc4a3
MS
12178 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12179 (default_gcore_mach): Just return 0, work around a problem in bfd.
12180 (default_gcore_target): OK to return NULL if exec_bfd is null.
12181 (make_mem_sec): Use a cast, avoid a warning.
12182
12183 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 12184 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
12185 sizeof (host pointer) != sizeof (target pointer)).
12186 (procfs_make_note_section): Avoid overflow in psargs string.
12187
aaa38bb5 12188 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
12189 implementation return an error.
12190
121912002-02-13 Rodney Brown <rbrown64@csc.com.au>
12192
12193 * procfs.c (procfs_make_note_section): Provide a default definition
12194 (for alpha-dec-osf4.0f). Fix typos.
12195
1e4d76e7
EZ
121962002-02-13 Elena Zannoni <ezannoni@redhat.com>
12197
12198 * linux-proc.c: Add include of regcache.h.
12199 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12200
b6d1a1d5
AC
122012002-02-13 Andrew Cagney <ac131313@redhat.com>
12202
12203 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
12204 * memattr.c (create_mem_region): Disallow useless empty region.
12205 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 12206 non-overlapping.
b6d1a1d5 12207
6c6ea35e
MC
122082002-02-13 Michael Chastain <mec@shout.net>
12209
12210 * defs.h: Kill CONST_PTR.
12211 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12212 * c-lang.c (c_builtin_types): Likewise.
12213 * ch-lang.c (ch_builtin_types): Likewise.
12214 * f-lang.c (f_builtin_types): Likewise.
12215 * language.c (unknown_builtin_types): Likewise.
12216 * m2-lang.c (m2_builtin_types): Likewise.
12217 * p-lang.c (pascal_builtin_types): Likewise.
12218 * scm-lang.c (c_builtin_types): Likewise.
12219
3e0b0f48
KS
122202002-02-13 Keith Seitz <keiths@redhat.com>
12221
12222 * arm-tdep.h (arm_get_next_pc): Add declaration.
12223
67255d04
RE
122242002-02-13 Richard Earnshaw <rearnsha@arm.com>
12225
12226 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12227 with other related struct-returning functions.
12228 (arm_extract_struct_value_address): New function.
12229 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12230 initialize float_format, double_format and long_double_format as
12231 appropriate to the endianness of the target.
12232 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12233 (arm_use_struct_convention): Delete declaration.
12234 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12235
079777f6
KS
122362002-02-13 Keith Seitz <keiths@redhat.com>
12237
12238 * defs.h (core_addr_to_string_nz): New function.
12239
34588f23
MK
122402002-02-13 Mark Kettenis <kettenis@gnu.org>
12241
12242 Apply missing bits of 2002-01-15 patch.
12243 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12244 (fill_fpregset): Use i387_fill_fsave.
12245
49b563f9
KS
122462002-02-12 Keith Seitz <keiths@redhat.com>
12247
49b563f9
KS
12248 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12249 (core_addr_to_string_nz): New function.
12250
aeb98c60
RE
122512002-02-11 Richard Earnshaw <rearnsha@arm.com>
12252
12253 * arm-linux-nat.c: Really include arm-tdep.h.
12254 * config/arm/tm-linux.h (struct type, struct value): Declare.
12255
65554fef
MS
122562002-02-11 Michael Snyder <msnyder@redhat.com>
12257
12258 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12259 (gcore section): Ifdef for Solaris and Unixware only.
12260 (procfs_do_thread_registers): Unixware needs one lwpstatus
12261 per thread (not one prstatus or pstatus).
12262 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12263 not over all gdb threads. For unixware, call elfcore_write_pstatus
12264 once before iterating over threads.
12265
34e8f22d
RE
122662002-02-11 Richard Earnshaw <rearnsha@arm.com>
12267
12268 * arm-tdep.h: New file.
12269 * arm-tdep.c: Include arm-tdep.h.
12270 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12271 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12272 (arm_print_float_info, arm_register_type, convert_to_extended)
12273 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12274 (arm_extract_return_value, arm_register_name): Make static.
12275 (arm_software_single_step): Similarly. Fix types in declaration.
12276 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12277 (arm_store_return_value, arm_store_struct_return): New functions.
12278 (arm_gdbarch_init): Register the above functions. Also register
12279 call_dummy_start_offset, sizeof_call_dummy_words,
12280 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12281 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 12282 max_register_virtual_size, register_size. Set up
34e8f22d
RE
12283 prologue_cache.saved_regs here, rather than ...
12284 (_initialize_arm_tdep): ... here.
12285 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12286 declarations.
12287 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12288 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12289 (arm_print_float_info, arm_register_type, convert_to_extended)
12290 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12291 (arm_extract_return_value, arm_register_name): Delete declarations.
12292 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12293 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12294 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12295 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12296 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12297 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12298 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12299 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12300 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12301 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12302 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12303 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12304 interface.
12305 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12306 * remote-rdi.c remote-rdp.c: Likewise.
12307 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12308 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12309 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12310 definition.
12311
12312 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12313 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12314 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12315 from non-ARM_ prefixed definitions.
12316 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12317 all uses of above.
12318 * remote-rdi.c remote-rdp.c: Likewise.
12319 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12320
148754e5
RE
123212002-02-11 Richard Earnshaw <rearnsha@arm.com>
12322
12323 * arm-tdep.c (arm_frameless_function_invocation)
12324 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12325 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12326 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12327 (arm_pop_frame, arm_get_next_pc): Make static.
12328 (arm_gdbarch_init): Register above in gdbarch structure.
12329 (arm_read_fp): Renamed from arm_target_read_fp.
12330 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12331 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12332 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12333 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12334 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12335 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12336 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
12337 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12338 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12339 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12340 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 12341
434d2d4f
DJ
123422002-02-10 Daniel Jacobowitz <drow@mvista.com>
12343
12344 * symtab.c (compare_search_syms): New function.
12345 (sort_search_symbols): New function.
12346 (search_symbols): Sort symbols after searching rather than
12347 before.
12348
55241689
AC
123492002-02-10 Andrew Cagney <ac131313@redhat.com>
12350
12351 * NEWS: Linux -> GNU/Linux.
12352
028c194b
AC
123532002-02-10 Andrew Cagney <ac131313@redhat.com>
12354
12355 * gdbarch.sh: For for level one methods, disallow a definition
12356 when partially multi-arched. Add comments explaining rationale.
12357 * gdbarch.h: Re-generate.
12358
6acf50cd
AC
123592002-02-10 Andrew Cagney <ac131313@redhat.com>
12360
12361 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12362 multi-arch partial.
aaa38bb5 12363
50248794
AC
123642002-02-10 Andrew Cagney <ac131313@redhat.com>
12365
12366 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12367 field. Use diff -u.
12368 * gdbarch.c: Re-generate.
12369
c30e0066
AC
123702002-02-10 Andrew Cagney <ac131313@redhat.com>
12371
9b56c5f3 12372 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
12373 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12374 partial.
12375
6e6d6484
AC
123762002-02-10 Andrew Cagney <ac131313@redhat.com>
12377
12378 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12379 multi-arch partial.
12380 (PUSH_ARGUMENTS): Switch to using predefault.
12381 * gdbarch.c: Regenerate.
12382
c203844d
AC
123832002-02-10 Andrew Cagney <ac131313@redhat.com>
12384
12385 * valops.c (PUSH_ARGUMENTS): Delete definition.
12386 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12387 partial. Default to default_push_arguments.
12388 * gdbarch.h, gdbarch.c: Regenerate.
12389
b5a2688f
AC
123902002-02-09 Andrew Cagney <ac131313@redhat.com>
12391
12392 * defs.h (throw_exception): Rename return_to_top_level. Update
12393 comments.
12394 * utils.c (error_stream, internal_verror, quit): Ditto.
12395 * top.c (throw_exception, catcher): Ditto.
12396 * sparclet-rom.c (sparclet_load): Ditto.
12397 * remote.c (interrupt_query, minitelnet): Ditto.
12398 * remote-sds.c (interrupt_query): Ditto.
12399 * remote-mips.c (mips_error, mips_kill): Ditto.
12400 * ocd.c (interrupt_query): Ditto.
12401 * monitor.c (monitor_interrupt_query): Ditto.
12402 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12403 * target.h: Update comment.
aaa38bb5 12404
b5a2688f 12405 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 12406
2fa5c1e0
AC
124072002-02-09 Andrew Cagney <ac131313@redhat.com>
12408
12409 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12410 default_double_format.
12411 * gdbarch.h, gdbarch.c: Re-generate.
12412 * findvar.c (floatformat_unknown): Delete variable definition.
12413 * doublest.h (floatformat_unknown): Delete variable declaration.
12414
da966255
JB
124152002-02-09 Jim Blandy <jimb@redhat.com>
12416
12417 * stabsread.c (read_type): Add code to parse Sun's syntax for
12418 prototyped function types.
12419
123a4891
AC
124202002-02-09 Andrew Cagney <ac131313@redhat.com>
12421
12422 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12423 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12424
fb39c8f3
PS
124252002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12426
12427 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12428 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12429 now _initialize_xcoffsolib gets called again and overrides the
12430 commands from solib.c in a native configuration.
12431
0b87a11d
MK
124322002-02-09 Mark Kettenis <kettenis@gnu.org>
12433
12434 * doublest.c (store_typed_floating): Don't try to return a value.
12435 Fixes PR gdb/290.
12436
bdc2fc72
JB
124372002-02-08 Jim Blandy <jimb@redhat.com>
12438
12439 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12440 is prototyped and has no arguments, print its argument list as
12441 `(void)'.
12442
da69bbcf
CD
124432002-02-08 Chris Demetriou <cgd@broadcom.com>
12444
12445 * MAINTAINERS (write-after-approval): Add myself.
12446 (paper-trail): I've escaped!
aaa38bb5 12447
b69571f5
CF
124482002-02-08 Christopher Faylor <cgf@redhat.com>
12449
12450 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12451 changes.
12452 (_initialize_check_for_gdb_ini): Ditto.
12453
f6871398
MH
124542002-02-08 Martin M. Hunt <hunt@redhat.com>
12455
12456 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12457 xaprintf -> xasprintf.
12458
4e52d31c
PM
124592002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12460
12461 * win32-nat.c: Remove use of printf and sprintf functions.
12462
39bbf761
RE
124632002-02-08 Richard Earnshaw <rearnsha@arm.com>
12464
12465 * arm-tdep.c (arm_frame_chain_valid): Make static.
12466 (arm_push_arguments): Likewise.
12467 (arm_gdbarch_init): New function.
12468 (_initialize_arm_tdep): Call it.
12469 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12470 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12471 (FRAME_CHAIN_VALID): Delete.
12472 (arm_frame_chain_valid): Delete declaration.
12473 (PUSH_ARGUMENTS): Delete.
12474 (arm_push_arguments): Delete declaration.
12475 (CALL_DUMMY_P): Delete.
12476
9c9532c9
CV
124772002-02-08 Andrew Cagney <ac131313@redhat.com>
12478 Corinna Vinschen <vinschen@redhat.com>
12479
12480 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12481 on builtin float types.
12482
4e8f7a8b
DJ
124832002-02-08 Daniel Jacobowitz <drow@mvista.com>
12484
12485 * utils.c: Include <curses.h> before "bfd.h".
12486 * tui/tui-hooks.c: Likewise.
12487 * tui/tui.c: Likewise.
12488 * tui/tuiCommand.c: Likewise.
12489 * tui/tuiData.c: Likewise.
12490 * tui/tuiDataWin.c: Likewise.
12491 * tui/tuiDisassem.c: Likewise.
12492 * tui/tuiGeneralWin.c: Likewise.
12493 * tui/tuiIO.c: Likewise.
12494 * tui/tuiLayout.c: Likewise.
12495 * tui/tuiRegs.c: Likewise.
12496 * tui/tuiSource.c: Likewise.
12497 * tui/tuiSourceWin.c: Likewise.
12498 * tui/tuiStack.c: Likewise.
12499 * tui/tuiWin.c: Likewise.
12500
cd4bffcf
EZ
125012002-02-07 Elena Zannoni <ezannoni@redhat.com>
12502
12503 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12504 to include space for pseudoregs as well. Update loops accordingly.
12505 (sh_fp_frame_init_saved_regs): Ditto.
12506 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12507
26806ce2
AC
125082002-02-07 Andrew Cagney <ac131313@redhat.com>
12509
12510 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12511 Add Richard Earnshaw to Arm maintainers.
12512
97fdab62
AC
125132002-02-07 Andrew Cagney <ac131313@redhat.com>
12514
a6b98203
AC
12515 * defs.h (warning_begin): Delete declaration.
12516
97fdab62
AC
12517 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12518 Delete macro.
12519
78b29b40
MS
125202002-02-07 Michael Snyder <msnyder@redhat.com>
12521
aaa38bb5 12522 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
12523 Logic bug, remove misplaced else.
12524
d8849953
KD
125252002-02-07 Klee Dienes <klee@apple.com>
12526
12527 * fork-inferior.c (fork_inferior): Add '!' to the list of
12528 characters that need to be quoted when building a string for the
12529 shell. Quote '!' specifically with a backslash, since CSH chokes
12530 when trying to evaluate "str!str".
aaa38bb5 12531
095778a0
NC
125322002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12533
12534 * rdi-share/host.h: Only provide a typedef for bool if it is not
12535 defined.
12536
1900040c
MS
125372002-02-04 Michael Snyder <msnyder@redhat.com>
12538
12539 * breakpoint.h (enum bptype): Add new overlay event bp type.
12540 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 12541
1900040c
MS
12542 * breakpoint.c (create_internal_breakpoint): New function.
12543 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12544 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12545 (create_thread_event_breakpoint): Ditto.
12546 (create_solib_event_breakpoint): Ditto.
12547 (create_overlay_event_breakpoint): New function.
12548 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12549 (update_breakpoints_after_exec): Delete and re-initialize
12550 overlay event breakpoints after an exec. Add FIXME comment
12551 about longjmp breakpoint.
12552 (print_it_typical): Ignore overlay event breakpoints.
12553 (print_one_breakpoint): Ditto.
12554 (mention): Ditto.
12555 (bpstat_what): Do not stop for overlay event breakpoints.
12556 (delete_breakpoint): Don't delete overlay event breakpoints.
12557 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12558 (breakpoint_re_set): Re-create overlay event breakpoint.
12559
12560 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12561 (overlay_manual_command): Disable overlay breakpoints.
12562 (overlay_off_command): Disable overlay breakpoints.
12563
082fc60d
RE
125642002-02-06 Richard Earnshaw <rearnsha@arm.com>
12565
12566 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12567 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12568 to here from config/tm-arm.h.
12569 (coff_sym_is_thumb): Make static.
12570 (arm_elf_make_msymbol_special): New function.
12571 (arm_coff_make_msymbol_special): New function.
12572 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12573 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12574 (coff_sym_is_thumb): Delete declaration.
12575 (arm_elf_make_msymbol_special): Declare.
12576 (arm_coff_make_msymbol_special): Declare.
12577 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12578 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12579
039c5766
RE
125802002-02-06 Richard Earnshaw <rearnsha@arm.com>
12581
12582 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12583
125842002-02-06 Richard Earnshaw <rearnsha@arm.com>
12585
12586 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12587 * gdbarch.c gdbarch.h: Regenerate.
12588 * arch-utils.c (default_print_float_info): New function.
12589 * arch-utils.h (default_print_float_info): Prototype it.
12590 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12591 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12592 (PRINT_FLOAT_INFO): Document it.
12593
12594 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12595 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12596 (PRINT_FLOAT_INFO): Define.
12597
58fa08f0
PM
125982002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12599
aaa38bb5 12600 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
12601 Add typecast to sprintf argument to suppress a warning.
12602
7393af7c
PM
126032002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12604
58fa08f0 12605 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
12606 to allow easier handling of pass state.
12607 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12608 that gives exception name and address.
12609 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 12610 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 12611 exceptions added.
aaa38bb5
AJ
12612 (child_continue): Correctly report continue_status.
12613 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 12614 TARGET_SIGNAL_0 (new default value).
aaa38bb5 12615 (child_resume): consider sig argument passed to decide if
7393af7c
PM
12616 the exception should be passed to debuggee or not.
12617
6af4589c
MS
126182002-02-05 Michael Snyder <msnyder@redhat.com>
12619
12620 * regcache.c (fetch_register): Call target_fetch_register
12621 only if we don't call FETCH_PSEUDO_REGISTER.
12622 (store_register): Call target_store_register only if we
12623 don't call STORE_PSEUDO_REGISTER.
12624
a2cf933a
EZ
126252002-02-05 Elena Zannoni <ezannoni@redhat.com>
12626
12627 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12628 ELF_MAKE_MSYMBOL_SPECIAL.
12629 * gdbarch.c, gdbarch.h: Regenerate.
12630 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12631 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12632 * elfread.c (elf_symtab_read): Compile use of
12633 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12634 multiarched.
12635 * coffread.c (coff_symtab_read): Ditto, for
12636 COFF_MAKE_MSYMBOL_SPECIAL.
12637
6bb7be43
JB
126382002-02-05 Jim Blandy <jimb@redhat.com>
12639
12640 * solib-svr4.c (svr4_truncate_ptr): New function.
12641 (svr4_relocate_section_addresses): Do the address arithmetic with
12642 the appropriate truncation for target addresses, even when
12643 CORE_ADDR is larger than a target address.
12644
e18651ec
DJ
126452002-02-05 Daniel Jacobowitz <drow@mvista.com>
12646
12647 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12648 to (int *).
12649
6b2725be
DJ
126502002-02-05 Daniel Jacobowitz <drow@mvista.com>
12651
12652 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12653 code.
12654
fca9e603
DJ
126552002-02-05 Daniel Jacobowitz <drow@mvista.com>
12656
12657 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12658
6c537a52
DJ
126592002-02-05 Daniel Jacobowitz <drow@mvista.com>
12660
12661 * gdbserver/linux-low.c: Remove unused include files.
12662
d844cde6
DJ
126632002-02-05 Daniel Jacobowitz <drow@mvista.com>
12664
12665 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12666 (read_inferior_memory): Use it.
12667 (write_inferior_memory): Likewise.
12668
d07c63e7
DJ
126692002-02-05 Daniel Jacobowitz <drow@mvista.com>
12670
12671 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12672 grubbing through sys_errlist.
12673
da6d8c04
DJ
126742002-02-05 Daniel Jacobowitz <drow@mvista.com>
12675
12676 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12677
5b421780
PM
126782002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12679 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12680
9f60d481
AC
126812002-02-04 Andrew Cagney <ac131313@redhat.com>
12682
12683 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12684 (do_sfunc, set_cmd_sfunc): New functions.
12685
12686 * command.h (struct cmd_list_element): Add field func.
12687 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12688 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12689 * cli/cli-decode.h: Ditto.
12690
12691 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12692 (help_all, help_cmd_list): Ditto.
12693 (find_cmd, complete_on_cmdlist): Ditto.
12694 * top.c (execute_command): Ditto.
12695
12696 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12697 function.sfunc.
12698
12699 * infcmd.c (notice_args_read): Fix function signature.
12700
12701 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12702 * cli/cli-decode.c (add_set_cmd): Ditto.
12703 * utils.c (initialize_utils): Ditto.
12704 * maint.c (_initialize_maint_cmds): Ditto.
12705 * infrun.c (_initialize_infrun): Ditto.
12706 * demangle.c (_initialize_demangler): Ditto.
12707 * remote.c (add_packet_config_cmd): Ditto.
12708 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12709 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12710 * proc-api.c (_initialize_proc_api): Ditto.
12711 * kod.c (_initialize_kod): Ditto.
12712 * valprint.c (_initialize_valprint): Ditto.
12713 * top.c (init_main): Ditto.
12714 * infcmd.c (_initialize_infcmd): Ditto.
12715 * corefile.c (_initialize_core): Ditto.
12716 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12717 * arch-utils.c (initialize_current_architecture): Ditto.
12718 (_initialize_gdbarch_utils): Ditto.
12719 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12720
12721 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12722 * wince.c (_initialize_inftarg): Ditto.
12723 * symfile.c (_initialize_symfile): Ditto.
12724 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12725 * language.c (_initialize_language): Ditto.
12726 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12727
f9ba0717
MS
127282002-02-04 Michael Snyder <msnyder@redhat.com>
12729
12730 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12731
0c74b2a7
DJ
127322002-02-04 Daniel Jacobowitz <drow@mvista.com>
12733
12734 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12735 Add rules for building the register data files.
12736
c638789f
DJ
127372002-02-04 Daniel Jacobowitz <drow@mvista.com>
12738
12739 * regformats/regdat.sh: Add braces to the definition of
12740 expedite_regs_${arch}.
12741
db253027
DJ
127422002-02-04 Daniel Jacobowitz <drow@mvista.com>
12743
12744 * regformats/regdef.h (struct reg): Add comment describing the
12745 requirements for offset and size fields.
12746
206be19c
AS
127472002-02-04 Andreas Schwab <schwab@suse.de>
12748
12749 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12750 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12751
181c1381
RE
127522002-02-04 Richard Earnshaw <rearnsha@arm.com>
12753
12754 * gdbarch.sh (copyright): Update years in generated header.
12755 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12756 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12757 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12758 * dbxread.c: Likewise.
12759 * dwarfread.c: Likewise.
12760 * elfread.c: Likewise.
12761 * somread.c: Likewise.
12762
12763 * arm-tdep.c (arm_smash_text_address): New function.
12764 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12765
fa4ba8da
PM
127662002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12767
12768 Add support for hardware watchpoints on win32 native.
aaa38bb5 12769 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12770 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12771 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12772 of debug registers.
12773 (debug_registers_changed): New variable. Reflects when debug registers
12774 are changed and need to be written to inferior.
aaa38bb5 12775 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12776 was set, used when new threads are created.
12777 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12778 i386-nat code.
12779 (thread_rec): Set dr array if id is the thread of current_event .
12780 (child_continue, child_resume): Change the debug registers for all
12781 threads if debug_registers_changed.
12782 (child_add_thread): Change the debug registers if debug_registers_used.
12783 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12784 Link nm.h to new nm-cygwin.h file.
12785 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12786 of hardware registers.
12787
a73c86fb
AC
127882002-02-03 Andrew Cagney <ac131313@redhat.com>
12789
12790 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12791 Restore behavour broken by 2002-01-20 Andrew Cagney
12792 <ac131313@redhat.com> IEEE_FLOAT removal.
12793
acf5ed49
DJ
127942002-02-03 Daniel Jacobowitz <drow@mvista.com>
12795
12796 * c-valprint.c (c_val_print): Pass a proper valaddr to
12797 cp_print_class_method.
12798 * valops.c (search_struct_method): If there is only one method
12799 and args is NULL, return that method.
12800
493d28d5
DJ
128012002-02-03 Daniel Jacobowitz <drow@mvista.com>
12802
12803 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12804 accessing tag_name directly.
12805
7495dfdb
DJ
128062002-02-03 Daniel Jacobowitz <drow@mvista.com>
12807
12808 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12809 of accessing tag_name directly.
12810
dd6bda65
DJ
128112002-02-03 Daniel Jacobowitz <drow@mvista.com>
12812
12813 PR gdb/280
12814 * gdbtypes.c (replace_type): New function.
12815 * gdbtypes.h (replace_type): Add prototype.
12816 * stabsread.c (read_type): Use replace_type.
12817
88fe217c
RE
128182002-02-03 Richard Earnshaw <rearnsha@arm.com>
12819
12820 * Makefile.in (memattr.o): Add missing dependencies rule.
12821
e5d66720
PS
128222002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12823
12824 * breakpoint.c (break_at_finish_command): Really export.
12825 (break_at_finish_at_depth_command): Ditto.
12826 (tbreak_at_finish_command): Ditto.
12827 * hppa-tdep.c: Include completer.h.
12828 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12829 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12830
fffee0be
AC
128312002-02-01 Andrew Cagney <ac131313@redhat.com>
12832
12833 * utils.c (do_write): New function.
12834 (error_stream): Rewrite combining the code from error_begin and
12835 verror.
12836 (verror): Rewrite using error_stream.
12837 (error_begin): Delete function.
12838
255e7dbf
AC
128392002-02-01 Andrew Cagney <ac131313@redhat.com>
12840
12841 * utils.c (error_begin): Make static.
12842 * defs.h (error_begin): Delete declaration.
12843
12844 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12845 (decode_line_1): Use cplusplus_error instead of error_begin,
12846 cplusplus_hint and return_to_top_level.
12847 * coffread.c (coff_symfile_read): Use error instead of error_begin
12848 and return_to_top_level.
12849 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12850
ddfe3c15
AC
128512002-02-01 Andrew Cagney <ac131313@redhat.com>
12852
12853 * language.h (type_error, range_error): Make string parameter
12854 constant.
12855 * language.c (warning_pre_print): Delete extern declaration.
12856 * dwarfread.c (warning_pre_print): Ditto.
12857 * language.c (type_error, range_error): Rewrite to use verror and
12858 vwarning instead of warning_begin.
12859
03ac34d5
MS
128602002-02-01 Michael Snyder <msnyder@redhat.com>
12861
261c4ca2
MS
12862 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12863 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12864
e00d1dc8
AC
128652002-02-01 Andrew Cagney <ac131313@redhat.com>
12866
12867 * command.h (NO_FUNCTION): Delete macro.
12868 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12869 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12870 * tracepoint.c (_initialize_tracepoint): Ditto.
12871 * cli/cli-decode.c (add_set_cmd): Ditto.
12872 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12873
76b79d6e
DJ
128742002-02-01 Daniel Jacobowitz <drow@mvista.com>
12875
12876 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12877 Update ``this'' pointer when calling virtual functions.
12878
799f9e91
MS
128792002-02-01 Michael Snyder <msnyder@redhat.com>
12880
c7bd442c 12881 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12882 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12883
3cf384d4
DJ
128842002-02-01 Daniel Jacobowitz <drow@mvista.com>
12885
12886 * regformats/reg-arm.dat: New file.
12887 * regformats/reg-i386.dat: New file.
12888 * regformats/reg-ia64.dat: New file.
12889 * regformats/reg-m68k.dat: New file.
12890 * regformats/reg-mips.dat: New file.
12891 * regformats/reg-ppc.dat: New file.
12892 * regformats/reg-sh.dat: New file.
12893 * regformats/regdef.h: New file.
12894 * regformats/regdat.sh: New file.
12895
0defa245
RE
128962002-02-01 Richard Earnshaw <reanrsha@arm.com>
12897
12898 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12899 (arm_frame_args_address, arm_frame_locals_address): New functions.
12900 (arm_frame_num_args): New function.
12901 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12902 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12903 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12904
405f26e6
MS
129052002-01-31 Michael Snyder <msnyder@redhat.com>
12906
502fd408
MS
12907 * breakpoint.c (break_at_finish_command): Export.
12908 (break_at_finish_at_depth_command): Export.
12909 (tbreak_at_finish_command): Export.
d6020d45 12910 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12911 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12912 "txbreak" commands, which are HPPA specific.
502fd408 12913
7d35e135
MS
12914 * printcmd.c (disassemble_command): Remove an ancient
12915 artifact of an old merge.
12916
aaa38bb5 12917 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12918 Define enum constant values for overlay mode.
12919 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12920 (overlay_is_mapped, overlay_auto_command,
12921 overlay_manual_command): Ditto.
d874f1e2 12922
aaa38bb5
AJ
12923 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12924 breakpoint_here_p, breakpoint_inserted_here_p,
12925 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12926 describe_other_breakpoints, check_duplicates, clear_command):
12927 Coding standard fixes.
12928
8add0441 12929 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12930 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12931 code: check bfd SEC_READONLY flag for section.
12932
e351066e
AC
129332002-01-31 Andrew Cagney <ac131313@redhat.com>
12934
7d35e135 12935 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 12936
8a48e967
DJ
129372002-01-30 Daniel Jacobowitz <drow@mvista.com>
12938
12939 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12940 data symbols, since we search based on textlow and texthigh.
12941 (find_pc_sect_symtab): Likewise.
12942
f5a96129
AC
129432002-01-30 Andrew Cagney <ac131313@redhat.com>
12944
12945 * defs.h (vwarning): Declare.
f5a96129
AC
12946 * utils.c (vwarning): New function.
12947 (warning): Call vwarning.
12948 (warning_begin): Delete function.
12949
12950 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12951 the warning message.
12952 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12953 warning_begin.
12954
cefd4ef5
MS
129552002-01-30 Michael Snyder <msnyder@redhat.com>
12956
1a703748
MS
12957 * NEWS: Mention "set trust-readonly-sections" command.
12958 Mention generate-core-file command.
cefd4ef5 12959
3a11626d
MS
129602002-01-15 Michael Snyder <msnyder@redhat.com>
12961
12962 * target.c: New command, "set trust-readonly-sections on".
12963 (do_xfer_memory): Honor the suggestion to trust readonly sections
12964 by reading them from the object file instead of from the target.
12965 (initialize_targets): Register command "set trust-readonly-sections".
12966
d1c7e53b
AC
129672002-01-29 Andrew Cagney <ac131313@redhat.com>
12968
12969 * parse.c (target_map_name_to_register): Simplify, search regs and
12970 pseudo-regs using a single loop.
12971
e2c9a72c
AC
129722002-01-30 Andrew Cagney <ac131313@redhat.com>
12973
12974 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12975
69824b4e
MK
129762002-01-15 Rodney Brown <rbrown64@csc.com.au>
12977
12978 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12979 * config/i386/i386v42mp.mh: Add i387-nat.o .
12980 * i386v4-nat.c: Include i387-nat.h.
12981 (supply_fpregset): Use i387_supply_fsave.
12982 (fill_fpregset): Use i387_fill_fsave.
12983
6eb69eab
RE
129842002-01-30 Richard Earnshaw <rearnsha@arm.com>
12985
12986 * arm-tdep.c (arm_call_dummy_words): Define.
12987 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12988 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12989 (CALL_DUMMY_WORDS): Define.
12990 (arm_call_dummy_words): Declare.
12991 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12992 (arm_linux_call_dummy_words): Declare.
12993
9852326a
AS
129942002-01-30 Andreas Schwab <schwab@suse.de>
12995
12996 * m68klinux-nat.c: Fix last change to use regcache_collect
12997 instead of referencing registers[] directly.
12998
977a3030
AC
129992002-01-29 Andrew Cagney <ac131313@redhat.com>
13000
13001 * parse.c (target_map_name_to_register): Delete code wrapped in
13002 #ifdef REGISTER_NAME_ALIAS_HOOK.
13003
2076c72b
MS
130042002-01-28 Michael Snyder <msnyder@redhat.com>
13005
13006 * regcache.c (legacy_read_register_gen): Need to be able to
13007 read pseudo-register as well as real register.
13008 (legacy_write_register_gen): Ditto.
13009
8fcc723b
AC
130102002-01-28 Andrew Cagney <ac131313@redhat.com>
13011
13012 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13013 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13014 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13015 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13016 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13017 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13018 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13019 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13020 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13021 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13022 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13023 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13024 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13025 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13026 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13027 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13028 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13029 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13030 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13031 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13032
afe64c1a
AC
130332002-01-28 Andrew Cagney <ac131313@redhat.com>
13034
13035 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13036 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13037 (initialize_current_architecture): Update target_byte_order using
13038 information from BFD.
aaa38bb5 13039 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
13040 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13041
75bc7ddf
AC
130422002-01-28 Andrew Cagney <ac131313@redhat.com>
13043
13044 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13045 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13046
13047 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13048 #ifdef INVALID_FLOAT.
13049 * infcmd.c (do_registers_info): Ditto.
13050 * values.c (unpack_double): Ditto. Add comment.
13051
13052 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13053 already commented out.
13054
0280a90a
AS
130552002-01-26 Andreas Schwab <schwab@suse.de>
13056
13057 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13058 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13059 registers and add support for PTRACE_GETREGS.
13060
7072a954
AC
130612002-01-24 Andrew Cagney <ac131313@redhat.com>
13062
13063 GDB 5.1.1 released from 5.1 branch.
13064 * NEWS: Add 5.1.1 news.
13065 * README: Sync with 5.1 branch.
13066
86f902e0
FF
130672002-01-23 Fred Fish <fnf@redhat.com>
13068
13069 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13070 stabstring on initial malloc. Reallocing will copy it for us,
13071 if necessary.
13072
8af51c36
EZ
130732002-01-23 Elena Zannoni <ezannoni@redhat.com>
13074
aaa38bb5 13075 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
13076 (HFILES_NO_SRCDIR): Remove hpread.h.
13077 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13078 (hpread.o): Update dependencies.
13079 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13080
13081 * hp-psymtab-read.c: Remove file.
13082 * hp-symtab-read.c: Remove file.
13083 * hpread.h: Remove file.
13084
13085 * hpread.c: Merge all contents of hp-psymtab-read.c,
13086 hp-symtab-read.c and hpread.h into this file, as it was prior to
13087 January 1999.
13088
13089 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 13090 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
13091 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13092 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13093
dc5cfeb6
EZ
130942002-01-23 Elena Zannoni <ezannoni@redhat.com>
13095
13096 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13097 fill_gregset): Call gdbarch_tdep() just once, assign result to
13098 variable and use that, instead of calling the function several
13099 times.
13100
ea87b71b
AO
131012002-01-24 Alexandre Oliva <aoliva@redhat.com>
13102
13103 * configure.host: Accept sparcv9 as alias for sparc64.
13104 * configure.tgt: Likewise.
13105
13fc0c2f
KB
131062002-01-22 Kevin Buettner <kevinb@redhat.com>
13107
13108 * solib-aix5.c (build_so_list_from_mapfile)
13109 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13110 arguments is not reversed.
13111 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13112 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 13113
7bd872fe
EZ
131142002-01-22 Elena Zannoni <ezannoni@redhat.com>
13115
13116 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13117 modified version of obsolete sh_fetch_pseudo_register.
13118 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13119 (sh4_register_read): New function.
13120 (sh_pseudo_register_write): New function. Renamed and modified
13121 version of obsolete sh_store_pseudo_register.
13122 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13123 (sh4_register_write): New function.
13124 (sh_gdbarch_init): Remove setting of gdbarch function
13125 fetch_pseudo_register and store_pseudo_register. Remove setting of
13126 register_convert_to_raw, register_convert_to_virtual,
13127 register_convertible.
13128 (sh_sh4_register_convertible): Delete. No longer needed. All is
13129 taken care by architecture specific functions
13130 register_read/register_write.
13131 (sh_sh4_register_convert_to_virtual): Make static.
13132 (sh_sh4_register_convert_to_raw): Ditto.
13133
069e84fd
AC
131342002-01-22 Andrew Cagney <ac131313@redhat.com>
13135
13136 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13137 (floatformat_is_nan, floatformat_mantissa): Ditto.
13138
13139 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13140 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13141 builtin_type_ieee_double_little,
13142 builtin_type_ieee_double_littlebyte_bigword,
13143 builtin_type_m68881_ext, builtin_type_i960_ext,
13144 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13145 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13146 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13147 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13148
211a4f69
CV
131492002-01-22 Corinna Vinschen <vinschen@redhat.com>
13150
13151 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13152 parameter. Set frameless flag if it exists and depended of
13153 whether the scanned function is frameless or not.
13154 (xstormy16_skip_prologue): If function is frameless, return
13155 result of xstormy16_scan_prologue().
13156 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13157 call.
13158
f81353e4
EZ
131592002-01-21 Elena Zannoni <ezannoni@redhat.com>
13160
13161 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13162 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13163 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13164 sh_sh4_register_byte, sh_sh4_register_raw_size,
13165 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13166 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13167 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13168 sh_store_pseudo_register, sh_do_pseudo_register): Call
13169 gdbarch_tdep() just once, assign result to variable and use that,
13170 instead of calling the function several times.
13171
63c73a17
MK
131722002-01-20 Mark Kettenis <kettenis@gnu.org>
13173
13174 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13175 macros instead of LAST_FPU_CTRL_REGNUM.
13176 (store_register): Likewise.
13177
39ad761d
JB
131782002-01-21 Jim Blandy <jimb@redhat.com>
13179
13180 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13181 is up-to-date before running the program, not just when a program
13182 exits.
13183
3d74b771
FF
131842002-01-21 Fred Fish <fnf@redhat.com>
13185
13186 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13187 when we have found all instructions we are looking for.
13188
966fbf70
RE
131892002-01-21 Richard Earnshaw <rearnsha@arm.com>
13190
13191 * arm-tdep.c (arm_register_name): New function.
13192 (arm_registers_names): Make static.
13193 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13194 (arm_register_name): Declare.
13195 (REGISTER_NAME): Use it.
13196
c3b4394c
RE
131972002-01-21 Richard Earnshaw <rearnsha@arm.com>
13198 Kevin Buettner <kevinb@redhat.com>
13199
13200 Convert arm targets to new FRAME interface.
13201 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13202 (arm_frame_find_save_regs): Delete.
13203 (arm_frame_init_saved_regs): New.
13204 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13205 Allocate extra_info as required. Convert all uses of fsr.regs
13206 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13207 to use extra_info.
13208 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13209 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13210 (check_prologue_cache, save_prologue_cache): Likewise.
13211 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13212 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13213 (FRAME_FIND_SAVED_REGS): Delete.
13214 (arm_frame_find_saved_regs): Delete prototype.
13215 (arm_frame_init_saved_regs): New prototype.
13216 (FRAME_INIT_SAVED_REGS): Define.
13217
61d99182
AC
132182002-01-20 Andrew Cagney <ac131313@redhat.com>
13219
13220 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13221
6aaea291
AC
132222002-01-20 Andrew Cagney <ac131313@redhat.com>
13223
13224 From Jeff Law <law@redhat.com>:
13225 * infttrace.c: Include <sys/pstat.h>.
13226 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13227 exec file if the ttrace equivalent fails.
13228
15f698d2
AC
132292002-01-20 Andrew Cagney <ac131313@redhat.com>
13230
13231 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13232 (closeLogFile): Ditto.
13233
f86ddd7c
MC
132342002-01-20 Michael Chastain <mec@shout.net>
13235
13236 * top.c (print_gdb_version): Bump copyright year to 2002.
13237
904507ce
AC
132382002-01-20 Andrew Cagney <ac131313@redhat.com>
13239
13240 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13241 Zannoni and Eli Zaretskii.
13242
d7f0b9ce
DJ
132432002-01-20 Daniel Jacobowitz <drow@mvista.com>
13244
13245 * buildsym.c: Update copyright years.
13246 * c-typeprint.c: Likewise.
13247 * dwarf2read.c: Likewise.
13248 * f-typeprint.c: Likewise.
13249 * gdbtypes.c: Likewise.
13250 * gdbtypes.h: Likewise.
13251 * hp-symtab-read.c: Likewise.
13252 * hpread.c: Likewise.
13253 * mdebugread.c: Likewise.
13254 * p-typeprint.c: Likewise.
13255
3fd3d7d2
AC
132562002-01-20 Andrew Cagney <ac131313@redhat.com>
13257
13258 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13259 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13260 byte-order selectable.
13261 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13262 * arch-utils.c: Ditto.
13263 (set_endian): Ditto.
13264 (set_endian_from_file): Ditto.
13265 * gdbserver/low-sim.c (create_inferior): Ditto.
13266 * gdbarch.sh: Ditto.
13267 * gdbarch.h: Re-generate.
aaa38bb5
AJ
13268 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13269 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13270 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13271 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13272 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13273 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13274 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
13275 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13276 macro definition.
13277 * config/mips/tm-wince.h: Remove #undef of macro
13278 TARGET_BYTE_ORDER_SELECTABLE.
13279 * config/sh/tm-wince.h: Ditto.
13280
b02dede2
DJ
132812002-01-20 Daniel Jacobowitz <drow@mvista.com>
13282
13283 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13284 member function fields. Add accessor macro
13285 TYPE_FN_FIELD_ARTIFICIAL.
13286 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13287 * c-typeprint.c (c_type_print_base): Skip artificial member
13288 functions.
13289
c3643761
DJ
132902002-01-20 Daniel Jacobowitz <drow@mvista.com>
13291
13292 * f-typeprint.c: Delete unused function f_type_print_args.
13293 * p-typeprint.c: Delete unused function pascal_type_print_args.
13294
8176bb6d
DJ
132952002-01-20 Daniel Jacobowitz <drow@mvista.com>
13296
13297 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13298 comment. Add ``artificial'' to ``union field_location''.
13299
13300 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13301
13302 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13303 * mdebugread.c (parse_symbol): Likewise.
13304 * stabsread.c (define_symbol): Likewise.
13305 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13306 initializing TYPE_FIELD_BITPOS to n (obsolete).
13307 (hpread_doc_function_type): Likewise.
13308 * hpread.c (hpread_function_type): Likewise.
13309
7fd60527
AC
133102002-01-20 Andrew Cagney <ac131313@redhat.com>
13311
13312 * configure.in (host_makefile_frag): Only require a host makefile
13313 fragment when a native build.
13314 * configure: Re-generate.
13315
c2f05ac9
AC
133162002-01-20 Andrew Cagney <ac131313@redhat.com>
13317
13318 * doublest.h (floatformat_from_type): Declare.
13319 * doublest.c (floatformat_from_type): New function.
13320 (convert_typed_floating): Use.
13321
13322 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13323 call to function floatformat_from_type.
13324
13325 * gdbarch.sh (IEEE_FLOAT): Delete.
13326 * gdbarch.h, gdbarch.c: Re-generate.
13327 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13328 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13329 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13330 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13331 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13332 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13333 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13334 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13335 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13336 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13337 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
13338 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13339
13340 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13341 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13342 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13343 * sh-tdep.c (sh_gdbarch_init): Ditto.
13344 * mips-tdep.c (mips_gdbarch_init): Ditto.
13345 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13346 * cris-tdep.c (cris_gdbarch_init): Ditto.
13347
abf22e64
AJ
133482002-01-20 Jiri Smid <smid@suse.cz>
13349
13350 * configure.host, configure.tgt: Support x86-64.
13351 * NEWS: Note new target x86-64.
13352
b7c4cbf8
AJ
13353 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13354 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13355 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13356 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13357 x86-64-linux-nat.o): Fix dependencies.
13358
82600034
AC
133592002-01-19 Andrew Cagney <ac131313@redhat.com>
13360
13361 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13362 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13363 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13364 * config/sparc/xm-sun4os4.h: Delete file.
13365 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 13366
bbe5c628
AC
133672002-01-19 Andrew Cagney <ac131313@redhat.com>
13368
13369 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13370 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13371 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13372 * config/i386/i386lynx.mh (XM_FILE): Delete.
13373 * config/rs6000/xm-rs6000ly.h: Delete file.
13374 * config/sparc/xm-sparclynx.h: Delete file.
13375 * config/m68k/xm-m68klynx.h: Delete file.
13376 * config/i386/xm-i386lynx.h: Delete file.
13377 * config/xm-lynx.h: Delete file.
13378 * config/djgpp/fnchange.lst: Update.
13379
f8453e34
JT
133802002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13381
13382 * alpha-tdep.c (alpha_register_byte): New function.
13383 (alpha_register_raw_size): Ditto.
13384 (alpha_register_virtual_size): Ditto.
13385 (alpha_skip_prologue_internal): Renamed from
13386 alpha_skip_prologue.
13387 (alpha_skip_prologue): New version that calls
13388 alpha_skip_prologue_internal.
13389 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13390 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13391 second argument from alpha_skip_prologue.
13392 (REGISTER_BYTE): Use alpha_register_byte.
13393 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13394 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13395 (FRAMELESS_FUNCTION_INVOCATION): Use
13396 generic_frameless_function_invocation_not.
13397 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13398 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13399
52d9e613
AC
134002002-01-19 Andrew Cagney <ac131313@redhat.com>
13401
13402 * config/mips/xm-news-mips.h: Delete file.
13403 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13404
13405 * config/m88k/xm-m88k.h: Delete file.
13406 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13407 * config/m88k/xm-delta88v4.h: Ditto.
13408 * config/m88k/xm-delta88.h: Ditto.
13409
13410 * config/alpha/xm-fbsd.h: Delete file.
13411 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13412
13413 * config/sparc/xm-sparc.h: Delete file.
13414 * Makefile.in (xm-sun4os4.h): Delete dependency.
13415 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13416 * config/sparc/xm-sun4os4.h: Ditto.
13417 * config/sparc/xm-linux.h: Ditto.
13418
13419 * config/i386/xm-windows.h: Delete file.
13420
2d1b2124
AC
134212002-01-19 Andrew Cagney <ac131313@redhat.com>
13422
13423 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13424 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13425
ee1f65f0
JT
134262002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13427
13428 * alpha-tdep.c (alpha_call_dummy_words): New.
13429 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13430 (CALL_DUMMY_P): Define.
13431 (CALL_DUMMY_WORDS): Define.
13432 (SIZEOF_CALL_DUMMY_WORDS): Define.
13433
98081e55
PB
134342002-01-19 Per Bothner <per@bothner.com>
13435
13436 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13437 isn't NULL, which can happen with some gcj-3.x-produced code.
13438
0d056799
JT
134392002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13440
13441 * alpha-tdep.c (alpha_register_virtual_type): New function.
13442 (alpha_init_frame_pc_first): Ditto.
13443 (alpha_fix_call_dummy): Ditto.
13444 (alpha_store_struct_return): Ditto.
13445 (alpha_extract_struct_value_address): Ditto.
13446 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13447 alpha_register_virtual_type.
13448 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13449 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13450 alpha_extract_struct_value_address.
13451 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13452 (INIT_FRAME_PC): Use init_frame_pc_noop.
13453 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13454
4604bcad
MK
134552002-01-19 Mark Kettenis <kettenis@gnu.org>
13456
13457 * i386gnu-nat.c: Include "i386-tdep.h".
13458 (fetch_fpregs): Simplify code dealing with uninitialized floating
13459 point states such that it doesn't require FP7_REGNUM.
13460
140f9984
JT
134612002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13462
abf22e64
AJ
13463 * alpha-tdep.c (frame_extra_info): New.
13464 (alpha_find_saved_regs): Make static. Use
140f9984
JT
13465 frame->extra_info.
13466 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
13467 (alpha_frame_saved_pc): Use frame->extra_info.
13468 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13469 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
13470 (init_extra_frame_info): Rename to...
13471 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 13472 (alpha_print_extra_frame_info): New function.
140f9984
JT
13473 (alpha_frame_locals_address): Ditto.
13474 (alpha_frame_args_address): Ditto.
abf22e64 13475 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
13476 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13477 alpha_frame_args_address.
abf22e64 13478 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 13479 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
13480 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13481 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
13482 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13483 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13484
d734c450
JT
134852002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13486
13487 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13488 (alpha_cannot_fetch_register): Ditto.
13489 (alpha_cannot_store_register): Ditto.
13490 (alpha_register_convertible): Ditto.
13491 (alpha_use_struct_convention): Ditto.
13492 * config/alpha/tm-alpha.h: Update copyright years.
13493 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13494 (INNER_THAN): Use core_addr_lessthan.
13495 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13496 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13497 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13498 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13499 (FRAME_CHAIN): Remove unnecessary cast.
13500
b4ceaee6
AC
135012002-01-18 Andrew Cagney <ac131313@redhat.com>
13502
13503 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13504 obsolete.
13505
0a65a603
AC
135062002-01-18 Andrew Cagney <ac131313@redhat.com>
13507
13508 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13509 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13510 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13511 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13512 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13513 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13514 * x86-64-linux-nat.c: Ditto.
13515
636a6dfc
JT
135162002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13517
abf22e64 13518 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
13519 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13520 (REGISTER_NAME): Define.
13521
acceddb6
JT
135222002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13523
13524 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13525
ec32e4be
JT
135262002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13527
13528 * alpha-tdep.c: Update copyright years.
13529 (alpha_next_pc): New function.
13530 (alpha_software_single_step): Ditto.
13531 * config/alpha/tm-alpha.h: Add prototype for
13532 alpha_software_single_step.
13533
e771a871
JT
135342002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13535
13536 * alphabsd-nat.c: Update copyright years.
13537 (fill_gregset): Use regcache_collect.
13538 (fill_fpregset): Likewise.
13539 (fetch_inferior_registers): Only fetch integer registers
13540 if requested to do so.
13541 (store_inferior_registers): Only store integer registers
13542 if requested to do so.
13543
7708fa01
AC
135442002-01-17 Andrew Cagney <ac131313@redhat.com>
13545
13546 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13547 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13548 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13549 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13550 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13551 * config/arm/linux.mh (XDEPFILES): Delete.
13552 * config/arm/nbsd.mh (XDEPFILES): Delete.
13553 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13554 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13555 * config/i386/i386m3.mh (XDEPFILES): Delete.
13556 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13557 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13558 * config/i386/fbsd.mh (XDEPFILES): Delete.
13559 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13560 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13561 * config/i386/i386v4.mh (XDEPFILES): Delete.
13562 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13563 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13564 * config/i386/i386aix.mh (XDEPFILES): Delete.
13565 * config/i386/go32.mh (XDEPFILES): Delete.
13566 * config/i386/cygwin.mh (XDEPFILES): Delete.
13567 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13568 * config/i386/i386mach.mh (XDEPFILES): Delete.
13569 * config/i386/i386v32.mh (XDEPFILES): Delete.
13570 * config/i386/linux.mh (XDEPFILES): Delete.
13571 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13572 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13573 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13574 * config/i386/i386sco.mh (XDEPFILES): Delete.
13575 * config/i386/i386v.mh (XDEPFILES): Delete.
13576 * config/i386/nbsd.mh (XDEPFILES): Delete.
13577 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13578 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13579 * config/i386/symmetry.mh (XDEPFILES): Delete.
13580 * config/i386/obsd.mh (XDEPFILES): Delete.
13581 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13582 * config/ia64/linux.mh (XDEPFILES): Delete.
13583 * config/ia64/aix.mh (XDEPFILES): Delete.
13584 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13585 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13586 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13587 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13588 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13589 * config/m68k/linux.mh (XDEPFILES): Delete.
13590 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13591 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13592 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13593 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13594 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13595 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13596 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13597 * config/m88k/delta88.mh (XDEPFILES): Delete.
13598 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13599 * config/m88k/m88k.mh (XDEPFILES): Delete.
13600 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13601 * config/mips/linux.mh (XDEPFILES): Delete.
13602 * config/mips/irix6.mh (XDEPFILES): Delete.
13603 * config/mips/irix5.mh (XDEPFILES): Delete.
13604 * config/mips/irix4.mh (XDEPFILES): Delete.
13605 * config/mips/irix3.mh (XDEPFILES): Delete.
13606 * config/mips/decstation.mh (XDEPFILES): Delete.
13607 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13608 (NATDEPFILES): Move core-aout.o to here.
13609 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13610 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13611 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13612 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13613 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13614 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13615 * config/pa/hpux11.mh (XDEPFILES): Delete.
13616 * config/powerpc/aix.mh (XDEPFILES): Delete.
13617 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13618 * config/powerpc/linux.mh (XDEPFILES): Delete.
13619 * config/romp/rtbsd.mh: Rename XDEPFILES.
13620 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13621 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13622 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13623 * config/s390/s390.mh (XDEPFILES): Delete.
13624 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13625 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13626 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13627 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13628 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13629 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13630 * config/sparc/linux.mh (XDEPFILES): Delete.
13631 * config/vax/vaxult.mh (XDEPFILES): Delete.
13632 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13633 * Makefile.in (DEPFILES): Remove XDEPFILES.
13634
375fc983
AC
136352002-01-17 Andrew Cagney <ac131313@redhat.com>
13636
13637 * utils.c (internal_verror): Fix comments, default is yes not no.
13638 Update queries to match. Default to quit and dump core.
13639
8926118c
AC
136402002-01-17 Andrew Cagney <ac131313@redhat.com>
13641
13642 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13643 copyright.
13644 * defs.h, event-top.c, gdbcmd.h: Ditto.
13645 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13646 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13647 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13648 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13649 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13650 * mi/mi-main.c:Ditto.
13651
13652 * stack.c, symfile.c: Update copyright.
13653
45b7b345
DJ
136542002-01-17 Daniel Jacobowitz <drow@mvista.com>
13655
db728ff7
DJ
13656 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13657 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13658 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13659 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 13660
db728ff7
DJ
136612002-01-17 Daniel Jacobowitz <drow@mvista.com>
13662
13663 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13664 * gdbserver/low-lynx.c (myattach): Likewise.
13665 * gdbserver/low-nbsd.c (myattach): Likewise.
13666 * gdbserver/low-sim.c (myattach): Likewise.
13667 * gdbserver/low-sparc.c (myattach): Likewise.
13668 * gdbserver/low-sun3.c (myattach): Likewise.
13669
13670 * gdbserver/low-linux.c (myattach): New function.
45b7b345 13671
db728ff7 13672 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
13673 (main): Handle "--attach".
13674
8de3c354
AC
136752002-01-16 Andrew Cagney <ac131313@redhat.com>
13676
13677 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13678 maintainer.
13679
b0129042
DJ
136802002-01-15 Daniel Jacobowitz <drow@mvista.com>
13681
13682 * c-typeprint.c (is_type_conversion_operator): Add additional
13683 check for non-conversion operators.
13684
ba8679fb 136852002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
13686
13687 * linux-proc.c: Add "info proc" command, a la procfs.c.
13688 (read_mapping): New function, abstract and re-use code.
13689 (linux_find_memory_regions): Use new func read_mapping.
13690 (linux_info_proc_cmd): New function, implement "info proc".
13691 (_initialize_linux_proc): Add new command "info proc".
13692
e4f9b4d5
MS
136932002-01-15 Michael Snyder <msnyder@redhat.com>
13694
13695 * symfile.c (generic_load): Use bfd_map_over_sections method
13696 instead of manipulating bfd structure members directly.
13697 (add_section_size_callback): New function, bfd sections callback
13698 used by generic_load.
13699 (load_sections_callback): New function, bfd sections callback
13700 used by generic_load.
13701
08cf96df
EZ
137022002-01-15 Elena Zannoni <ezannoni@redhat.com>
13703
abf22e64 13704 [Based on work by Jim Blandy]
08cf96df
EZ
13705 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13706 (builtin_type_vec128): Export.
13707 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13708 types.
13709 (builtin_type_vec128): New builtin type for 128 bit vector
13710 registers.
13711 (build_gdbtypes): Initialize builtin_type_v16qi and
13712 builtin_type_v8hi. Create the vec128 register builtin type
13713 structure.
13714 (build_builtin_type_vec128): New function.
abf22e64 13715 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13716 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13717 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13718 AltiVec register to new builtin type.
13719
d7242108
DJ
137202001-01-15 Daniel Jacobowitz <drow@mvista.com>
13721
13722 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13723 to make_cv_type.
13724
4ee3352d
AC
137252002-01-14 Andrew Cagney <ac131313@redhat.com>
13726
13727 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13728 CLEAN_UP_REGISTER_VALUE.
13729 * regcache.c (supply_register): Update only call.
13730
f015b2e7
AC
137312002-01-14 Andrew Cagney <ac131313@redhat.com>
13732
13733 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13734 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13735 a29k-*-vxworks* targets as obsolete.
13736
356ae49d
MS
137372002-01-14 Michael Snyder <msnyder@redhat.com>
13738
13739 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13740 until we can resolve portability issues.
13741 * gregset.h: Remove references to fpxregs.
13742 * gcore.c (gcore_command): Initialize note_sec to NULL.
13743
ade8f45e
AC
137442002-01-13 Andrew Cagney <ac131313@redhat.com>
13745
13746 * signals.c (target_signal_to_name): Rewrite. Only use
13747 signals[].name when in bounds and non-NULL.
abf22e64 13748
89c49e7a
AC
137492002-01-13 Andrew Cagney <ac131313@redhat.com>
13750
13751 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13752 * signals.c (target_signal_to_name): Verify that SIG is within the
13753 bounds of the signals array.
13754
4daa9f9f
AC
137552002-01-13 Andrew Cagney <ac131313@redhat.com>
13756
13757 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13758
ba4bbdcb
KS
137592002-01-13 Keith Seitz <keiths@redhat.com>
13760
13761 * stack.c (print_frame_info_base): Print the frame's pc
13762 only if when print_frame_info_listing_hook is not defined.
13763
575bbeb6
KS
137642002-01-13 Keith Seitz <keiths@redhat.com>
13765
13766 * varobj.c (varobj_set_value): Make sure that there were no
13767 errors evaluating the object before attempting to set its
13768 value.
13769 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13770 so this offset adjustment is no longer necessary.
13771 (create_child): Don't set the error flag if the child is
13772 a CPLUS_FAKE_CHILD.
13773 (value_of_child): If value_fetch_lazy fails, return NULL
13774 so that callers will be notified that an error occurred.
13775 (c_value_of_variable): Delay check of variable's validity
13776 until later. We actually want all structs and unions to have
13777 the value "{...}".
13778 Do not return "???" for variables which could not be evaluated.
13779 This error condition must be returned to the caller so that it
13780 can get the error condition from gdb.
13781 (cplus_name_of_child): Adjust index for vptr before figuring
13782 out the name of the child.
13783 (cplus_value_of_child): If a child's (real) parent is not valid,
13784 don't even bother trying to give a value for it. Just return
13785 an error. Change all instances in this function.
13786 (cplus_type_of_child): If our parent is one of the "fake"
13787 parents, we need to get at the type of the real parent, and
13788 derive the child's true type using this information.
13789
b76898ab
AC
137902002-01-13 Andrew Cagney <ac131313@redhat.com>
13791
13792 From 2002-01-09 John Marshall <johnm@falch.net>:
13793 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13794 sources.redhat.com, and tweak some related URLs which had
13795 suffered from linkrot.
13796
b6649e88
AC
137972002-01-13 Andrew Cagney <ac131313@redhat.com>
13798
13799 From Jeff law:
13800 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13801 structures passed in registers.
13802
82cc5033
EZ
138032002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13804
13805 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13806 white space which prevented compilation. Reported by DSK
13807 <dsk@student.unsw.edu.au>.
13808
ba5f2f8a
MS
138092002-01-11 Michael Snyder <msnyder@redhat.com>
13810
fbd35540
MS
13811 * symfile.c (build_section_addr_info_from_section_tab):
13812 Use bfd access method instead of manipulating bfd directly.
13813 (syms_from_objfile): Ditto.
13814 (simple_overlay_update_1): Ditto.
13815 (simple_overlay_update): Ditto.
13816 (generic_load): Ditto.
13817 (overlay_unmapped_address): FIXME comment, bfd access methods.
13818 (sections_overlap): FIXME comment, bfd access methods.
13819 (pc_in_mapped_range): FIXME comment, bfd access methods.
13820 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13821 (section_is_mapped): FIXME comment, bfd access methods.
13822 (section_is_overlay): FIXME comment, bfd access methods.
13823
ba5f2f8a
MS
13824 * symfile.c (generic_load): Whitespace and long line cleanups.
13825 Remove duplicate variable, change several local variables to
13826 more appropriate data types.
13827 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13828
17df2af6
AC
138292002-01-12 Andrew Cagney <ac131313@redhat.com>
13830
13831 From Peter Schauer:
13832 * language.c (longest_local_hex_string_custom): Use phex_nz to
13833 convert NUM to a hex string.
13834
ec920329
EZ
138352002-01-12 Elena Zannoni <ezannoni@redhat.com>
13836
13837 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13838 the function.
538a76d6 13839 Update Copyright year.
ec920329 13840
3abd2e01
AC
138412002-01-12 Andrew Cagney <ac131313@redhat.com>
13842
13843 * language.c (longest_raw_hex_string): Delete unused function.
13844
b21b22e0
PS
138452002-01-11 Petr Sorfa <petrs@caldera.com>
13846
13847 * MAINTAINERS (write-after-approval): Add myself.
13848 * dwarf2read.c (read_tag_string_type): Handling of
13849 DW_AT_byte_size.
13850 (read_tag_string_type): FORTRAN fix to prevent propagation of
13851 first string size.
13852 (set_cu_language): Handling of DW_LANG_Fortran95
13853
747fe712
RE
138542002-01-11 Richard Earnshaw <rearnsha@arm.com>
13855
13856 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13857 GETPID(inferior_ptid).
13858 (store_inferior_registers): Likewise.
13859
f1bea926
JM
138602002-01-10 Jason Merrill <jason@redhat.com>
13861
13862 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13863 Fix DW_OP_minus.
13864
ae940673
AC
138652002-01-10 Andrew Cagney <ac131313@redhat.com>
13866
13867 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13868 and bfd/elf32-sh-nbsd.c.
13869
00546b04
MS
138702002-01-10 Michael Snyder <msnyder@redhat.com>
13871
352ed7b4
MS
13872 * NEWS: Mention --pid and corefile/proc-id behavior change.
13873
c18be923
MS
13874 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13875 * gcore.c: Include cli/cli-decode.h instead of command.h.
13876
00546b04
MS
13877 * main.c (captured_main): Add new command line option "--pid".
13878 If the second command line argument (following the symbol-file)
13879 begins with a digit, try to attach to it before trying to open
13880 it as a corefile.
13881 (print_gdb_help): Document the "--pid" argument.
13882
db60ec62
EZ
138832002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13884
13885 * completer.c (command_completer): New function.
13886
13887 * completer.h <command_completer>: Add prototype.
13888
13889 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13890 completer for the "help" command.
13891
39c22d1a
JM
138922002-01-09 Jason Merrill <jason@redhat.com>
13893
13894 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13895
c564377f
MS
138962002-01-09 Michael Snyder <msnyder@redhat.com>
13897
975aec09
MS
13898 * i386-linux-nat.c (fill_fpxregset): Make global.
13899 (store_fpxregset): Ditto.
13900
db4a10fa
MS
13901 * gregset.h (gdb_fpxregset_t): Define.
13902 (supply_fpxregset): Prototype.
13903 (fill_fpxregset): Prototype.
13904
c564377f
MS
13905 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13906
c3d45d70
RE
139072002-01-09 Richard Earnshaw <rearnsha@arm.com>
13908
13909 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13910 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13911 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13912
fcc87af1
AC
139132002-01-09 Andrew Cagney <ac131313@redhat.com>
13914
13915 * MAINTAINERS: Update target maintainer rules so that any
13916 Maintainer can approve a tested patch for a maintenance-only
13917 target.
13918
dd96c05b
RE
139192002-01-09 Richard Earnshaw <rearnsha@arm.com>
13920
d4297db9 13921 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13922
d4297db9 13923 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13924 IN_SIGTRAMP.
13925
145fdc6e
MS
139262002-01-08 Michael Snyder <msnyder@redhat.com>
13927
13928 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13929 real name of the executable, rather than the /proc name.
13930
be4d1333
MS
139312002-01-03 Michael Snyder <msnyder@redhat.com>
13932
13933 Implement a "generate-core-file" command in gdb, save target state.
13934 * gcore.c: New file. Implement new command 'generate-core-file'.
13935 Save a corefile image of the current state of the inferior.
13936 * linux-proc.c: Add linux-specific code for saving corefiles.
13937 * target.h (struct target_ops): Add new target vectors for saving
13938 corefiles; to_find_memory_regions and to_make_corefile_notes.
13939 (target_find_memory_regions): New macro.
13940 (target_make_corefile_notes): New macro.
13941 * target.c (update_current_target): Inherit new target methods.
13942 (dummy_find_memory_regions): New place-holder method.
13943 (dummy_make_corefile_notes): New place-holder method.
13944 (init_dummy_target): Initialize new dummy target vectors.
13945 * exec.c (exec_set_find_memory_regions): New function.
13946 Allow the exec_ops vector for memory regions to be taken over.
13947 (exec_make_note_section): New function, target vector method.
13948 * defs.h (exec_set_find_memory_regions): Export prototype.
13949 * procfs.c (proc_find_memory_regions): New function, corefile method.
13950 (procfs_make_note_section): New function, corefile method.
13951 (init_procfs_ops): Set new target vector pointers.
13952 (find_memory_regions_callback): New function.
13953 (procfs_do_thread_registers): New function.
13954 (procfs_corefile_thread_callback): New function.
13955 * sol-thread.c (sol_find_memory_regions): New function.
13956 (sol_make_note_section): New function.
13957 (init_sol_thread_ops): Initialize new target vectors.
13958 * inftarg.c (inftarg_set_find_memory_regions): New function.
13959 Allow to_find_memory_regions vector to be taken over.
13960 (inftarg_set_make_corefile_notes): New function.
13961 Allow to_make_corefile_notes vector to be taken over.
13962 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13963 interface layer if not target_has_execution (may be a corefile).
13964 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13965 * config/sparc/sun4sol2.mh: Ditto.
13966 * config/alpha/alpha-linux.mh: Ditto.
13967 * config/arm/linux.mh: Ditto.
13968 * config/i386/x86-64linux.mh: Ditto.
13969 * config/ia64/linux.mh: Ditto.
13970 * config/m68k/linux.mh: Ditto.
13971 * config/mips/linux.mh: Ditto.
13972 * config/powerpc/linux.mh: Ditto.
13973 * config/sparc/linux.mh: Ditto.
13974
c6b92abd
MS
139752002-01-07 Michael Snyder <msnyder@redhat.com>
13976
13977 * arm-linux-nat.c: Remove references to regcache.c internal data
13978 (registers[] and register_valid[]).
13979
4b09dc8c
MS
139802002-01-07 Michael Snyder <msnyder@redhat.com>
13981
abf22e64
AJ
13982 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13983 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
13984 symbol file and shlibs.
13985 * Makefile.in: Add rule for linux-proc.o.
13986 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13987 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13988 * config/arm/linux.mh: Ditto.
13989 * config/i386/linux.mh: Ditto.
13990 * config/i386/x86-64linux.mh: Ditto.
13991 * config/ia64/linux.mh: Ditto.
13992 * config/m68k/linux.mh: Ditto.
13993 * config/mips/linux.mh: Ditto.
13994 * config/powerpc/linux.mh: Ditto.
13995 * config/sparc/linux.mh: Ditto.
13996
c25b74ac
PM
139972002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13998
13999 * win32-nat.c: Add i386-tdep.h dependency.
14000
94cd915f
MS
140012002-01-07 Michael Snyder <msnyder@redhat.com>
14002
c7cccb76
MS
14003 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14004 instead of bfd_get_arch_size. Don't bail out just because
14005 there's no exec_bfd.
abf22e64 14006
34c0bd93
MS
14007 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14008 * p-valprint.c (pascal_object_print_value): Ditto.
14009 * somread.c (som_symtab_read): Ditto.
14010 * symfile.c (simple_free_overlay_region_table): Ditto.
14011 * valops.c (value_assign): Ditto.
14012
21c1c920
MS
14013 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14014 use tilde_expand and strerror for opening save-tracepoints file.
14015
5bbd998e
MS
14016 * thread-db.c (thread_db_new_objfile): Indendation fix.
14017
94cd915f
MS
14018 * infptrace.c (GDB_MAX_ALLOCA): New define.
14019 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 14020 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
14021 can be overridden with whatever value is appropriate to the host).
14022 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14023 alloca to allocate potentially large buffer.
14024 * rs6000-nat.c (child_xfer_memory): Ditto.
14025 * symm-nat.c (child_xfer_memory): Ditto.
14026 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14027
494e8a93
JSC
140282002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14029
14030 From Nick Clifton <nickc@redhat.com>
14031 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14032
d0e1d48e
MS
140332002-01-07 Michael Snyder <msnyder@redhat.com>
14034
abf22e64 14035 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
14036 Don't use exec_bfd if it's NULL.
14037
290b2c7a
MK
140382002-01-06 Mark Kettenis <kettenis@gnu.org>
14039
abf22e64 14040 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 14041
aef21287
AC
140422002-01-06 Andrew Cagney <ac131313@redhat.com>
14043
14044 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14045 * gnu-nat.c: Ditto.
14046
30efa627
AC
140472002-01-06 Andrew Cagney <ac131313@redhat.com>
14048
14049 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14050 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14051 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14052 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14053 z8k-coff have not been multi-arched. Update z8k-coff build
14054 status.
14055
9b4ff276
AC
140562002-01-06 Andrew Cagney <ac131313@redhat.com>
14057
14058 * MAINTAINERS: Mark a29k target as obsolete.
14059 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14060 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14061 comments.
14062 * NEWS: Note that a29k targets are obsolete.
14063 * a29k-tdep.c: Mark as obsolete.
14064 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14065 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14066 a29k-*-vxworks* targets as obsolete.
14067 * remote-adapt.c: Obsolete.
14068 * remote-eb.c: Obsolete.
14069 * remote-mm.c: Obsolete.
14070 * remote-udi.c: Obsolete.
14071 * config/a29k/a29k-udi.mt: Obsolete.
14072 * config/a29k/a29k.mt: Obsolete.
14073 * config/a29k/tm-a29k.h: Obsolete.
14074 * config/a29k/tm-vx29k.h: Obsolete.
14075 * config/a29k/vx29k.mt: Obsolete.
14076
a9011d31
AC
140772002-01-05 Andrew Cagney <ac131313@redhat.com>
14078
14079 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14080 with BFD_ENDIAN_BIG.
14081
9299404e
AC
140822002-01-05 Andrew Cagney <ac131313@redhat.com>
14083
14084 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14085 * configure, config.in: Re-generate.
14086 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14087 * defs.h: Do not include <endian.h>.
14088
7e89e357
JT
140892002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14090
14091 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14092 * config.in: Regenerate.
14093 * configure.in: Update copyright years.
14094 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14095 * configure: Regenerate.
14096 * i386bsd-nat.c: Update copyright years.
14097 (fill_gregset): Use regcache_collect.
14098 (fetch_inferior_registers): Only fetch integer registers
14099 if requested to do so. Add support for XMM registers
14100 using PT_GETXMMREGS.
14101 (store_inferior_registers): Only store integer registers
14102 if requested to do so. Add support for XMM registers
14103 using PT_SETXMMREGS.
14104 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14105 (store_inferior_registers): Remove.
14106 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14107 (fetch_elfcore_registers): New function.
14108 (i386nbsd_elfcore_fns): New.
14109 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14110 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14111 i386bsd-nat.o.
14112 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14113 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14114 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14115 * config/i386/tm-nbsd.h: Update copyright years.
14116 (HAVE_SSE_REGS): Define.
14117 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14118 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14119 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14120 (SIGCONTEXT_PC_OFFSET): Remove.
14121 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14122
a752853e
AC
141232002-01-05 Andrew Cagney <ac131313@redhat.com>
14124
14125 * configure.tgt: Remove powerpc-*-macos* target.
14126 * config/m68k/xm-mpw.h: Delete file.
14127 * config/xm-mpw.h: Delete file.
14128 * ser-mac.c: Delete file.
14129 * mpw-make.sed: Delete file.
14130 * mpw-config.in: Delete file.
14131 * mac-xdep.c: Delete file.
14132 * mac-gdb.r: Delete file.
14133 * mac-defs.h: Delete file.
14134 * mac-nat.c: Delete file.
14135 * config/powerpc/macos.mh: Delete file.
14136 * config/powerpc/macos.mt: Delete file.
14137 * config/powerpc/nm-macos.h: Delete file.
14138 * config/powerpc/tm-macos.h: Delete file.
14139 * source.c (openp, open_source_file): Remove obsolete code.
14140 * top.c (gdb_readline): Ditto.
14141 * utils.c (query): Ditto.
14142 * event-top.c (display_gdb_prompt): Ditto.
14143 * Makefile.in (ser-mac.o): Delete obsolete target.
14144 * NEWS: Update.
14145
d7449b42
AC
141462002-01-04 Andrew Cagney <ac131313@redhat.com>
14147
14148 * defs.h (BIG_ENDIAN): Delete macro definition.
14149 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14150 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14151 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14152 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14153 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14154 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14155 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14156 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14157 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14158 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14159 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14160 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14161 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14162 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14163 * gdbarch.c: Re-generate.
14164
356374e8
DJ
141652002-01-04 Daniel Jacobowitz <drow@mvista.com>
14166
14167 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14168 for core files.
14169
a2b8f8f8
JT
141702002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14171
14172 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14173
12466af9
AC
141742002-01-04 Andrew Cagney <ac131313@redhat.com>
14175
14176 * value.h (value_ptr): Delete typedef.
14177
3549ab40
JT
141782002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14179
14180 * i386nbsd-nat.c: Update copyright years.
14181 Include i386-tdep.h.
14182
fedbd091
EZ
141832002-01-04 Elena Zannoni <ezannoni@redhat.com>
14184
14185 * stabsread.c: Update copyright years.
14186
14187 From Debashis Mahata <debashis.mahata@wipro.com>:
14188 (read_struct_fields): Deal with Sun C compiler erroneous stab
14189 output for structs and unions.
fec8b34f 14190 Fix PR gdb/269.
fedbd091 14191
eb43544b
DJ
141922002-01-04 Daniel Jacobowitz <drow@mvista.com>
14193
14194 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14195 prototype.
14196
1514d34e
DJ
141972002-01-04 Daniel Jacobowitz <drow@mvista.com>
14198
14199 * cp-abi.c: Fix whitespace.
14200 (baseclass_offset): New wrapper function.
14201 * cp-abi.h (baseclass_offset): Add prototype.
14202 (struct cp_abi_ops): Add baseclass_offset pointer.
14203
14204 * valops.c (vb_match): Move to...
14205 * gnu-v2-abi.c (vb_match): here.
14206 * valops.c (baseclass_offset): Move to...
14207 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14208
14209 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14210
14211 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14212 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14213 * hpacc-abi.c (init_hpacc_ops): Likewise.
14214
7f8c9282
DJ
142152002-01-04 Daniel Jacobowitz <drow@mvista.com>
14216
14217 * valops.c (find_overload_match): Accept obj as a
14218 reference parameter. Update it before returning.
14219 * value.h (find_overload_match): Update prototype.
14220 * eval.c (evaluate_subexp_standard): Pass object to
14221 find_overload_match by reference.
14222
f23631e4
AC
142232002-01-03 Andrew Cagney <ac131313@redhat.com>
14224
14225 * valarith.c: Replace value_ptr with struct value pointer. Remove
14226 register attribute from value declarations.
14227 * valops.c: Ditto.
14228 * value.h: Ditto.
14229 * scm-lang.c (scm_lookup_name): Ditto.
14230
79e10fab 142312002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 14232
79e10fab
AC
14233 Abstract the functionality of iterating over mapped memory
14234 regions into a general purpose iterator function.
abf22e64 14235 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
14236 iterator for memory sections.
14237 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14238 (solib_mappings_callback): New function, callback for above.
14239 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14240 (info_mappings_callback): New function, callback for above.
14241
14242 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14243
c5ad026a
MK
142442002-01-01 Mark Kettenis <kettenis@gnu.org>
14245
d2a7c97a
MK
14246 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14247 * i386-tdep.c: Include "elf-bfd.h".
14248 (process_note_abi_tag_sections): New function.
14249 (i386_gdbarch_init): Add code to recognize various OS/ABI
14250 combinations.
14251
c5ad026a
MK
14252 * maint.c (_initialize_maint_cmds): Add missing \ in
14253 string-literal.
14254
a1a5b71e 14255For older changes see ChangeLog-2001
c906108c
SS
14256\f
14257Local Variables:
14258mode: change-log
14259left-margin: 8
14260fill-column: 74
14261version-control: never
14262End:
This page took 1.009771 seconds and 4 git commands to generate.