2002-12-10 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a5afb99f
AC
12002-12-10 Andrew Cagney <cagney@redhat.com>
2
3 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
4 Change to a function with predicate.
5 * gdbarch.h, gdbarch.c: Re-generate.
6 * frame.c (get_prev_frame): Update. Test
7 DEPRECATED_INIT_FRAME_PC_P.
8 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
9 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
10 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
11 * alpha-tdep.c (alpha_gdbarch_init): Update.
12 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
13 * mips-tdep.c (mips_gdbarch_init): Update.
14 * i386-interix-tdep.c (i386_interix_init_abi): Update.
15 * arm-tdep.c: Update comments.
16 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
17 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
18 * frv-tdep.c (frv_gdbarch_init): Ditto.
19 * x86-64-tdep.c (x86_64_init_abi): Ditto.
20 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
21 * s390-tdep.c (s390_gdbarch_init): Ditto.
22 * v850-tdep.c (v850_gdbarch_init): Ditto.
23 * vax-tdep.c (vax_gdbarch_init): Ditto.
24 * sh-tdep.c (sh_gdbarch_init): Ditto.
25 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
26 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
27 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
28 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
29 * i386-tdep.c (i386_gdbarch_init): Ditto.
30 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
31 * cris-tdep.c (cris_gdbarch_init): Ditto.
32 * avr-tdep.c (avr_gdbarch_init): Ditto.
33 * arm-tdep.c (arm_gdbarch_init): Ditto.
34 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
35 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
36
6604731b
DJ
372002-12-10 Daniel Jacobowitz <drow@mvista.com>
38
39 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
40 CHILD_FOLLOW_FORK.
41 * hppah-nat.c (saved_vfork_pid): Add.
42 (child_post_follow_vfork): Remove.
43 (child_follow_fork): New function.
44 (child_wait): Call detach_breakpoints after receiving the child vfork.
45 Call child_resume directly instead of going through resume ().
46 Make sure we have the exec before reporting the vfork.
47 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
48 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
49 (follow_fork): New function. Call target_follow_fork.
50 (follow_inferior_reset_breakpoints): New function broken out from
51 old follow_inferior_fork.
52 (resume): Remove hack to follow exec after vfork.
53 * inftarg.c (child_post_follow_vfork): Remove.
54 (child_follow_fork): New function.
55 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
56 * target.c (cleanup_target): Replace to_post_follow_vfork with
57 to_follow_fork.
58 (update_current_target): Likewise.
59 (setup_target_debug): Likewise.
60 (debug_to_post_follow_vfork): Remove.
61 (debug_to_follow_fork): New function.
62 * target.h (struct target_ops): Replace to_post_folow_vfork with
63 to_follow_fork.
64 (child_post_follow_vfork): Remove prototype.
65 (child_follow_fork): Add prototype.
66 (target_post_follow_vfork): Remove macro.
67 (target_follow_fork): Add macro.
68
7d2830a3
DJ
692002-12-10 Daniel Jacobowitz <drow@mvista.com>
70
71 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
72 (child_post_follow_vfork): Cancel pending exec event if we follow
73 the parent.
74 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
75 events have been processed. Return a fake TARGET_WAITKIND_EXECD
76 event at the following wait call if necessary.
77 * infrun.c (follow_vfork): Don't follow_exec here.
78 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
79 case about HP/UX 10.20. Remove code pushed down to
80 hppah-nat.c:child_wait.
81 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
82 vfork_in_flight is set.
83
842002-12-10 Daniel Jacobowitz <drow@mvista.com>
8e7d2c16
DJ
85
86 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
87 for the parent's fork event.
88 * infrun.c (handle_inferior_event): Only expect one fork event.
89 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
90 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
91
50631d4f
AC
922002-12-10 Andrew Cagney <ac131313@redhat.com>
93
bc124bd3
AC
94 * PROBLEMS: Delete reference to PR gdb/725.
95
50631d4f
AC
96 * MAINTAINERS (gdb.c++): Add David Carlton.
97
808013d1
DC
982002-12-09 David Carlton <carlton@math.stanford.edu>
99
100 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
101 * cli/cli-cmds.c: Ditto.
102
31deffe5
AC
1032002-12-09 Andrew Cagney <cagney@redhat.com>
104
6cbda714
AC
105 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
106 function address in <>.
31deffe5
AC
107 * gdbarch.c: Re-generate.
108
2692ddb3
DC
1092002-12-09 David Carlton <carlton@math.stanford.edu>
110
111 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
112
f3c39e76
DC
1132002-12-09 David Carlton <carlton@math.stanford.edu>
114
115 * linespec.c (symtab_from_filename): New function.
116 (decode_line_1): Move code into symtab_from_filename.
117
1b84163e
KB
1182002-12-09 Kevin Buettner <kevinb@redhat.com>
119
120 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
121
bdd78e62
AC
1222002-12-07 Andrew Cagney <ac131313@redhat.com>
123
124 * f-valprint.c (info_common_command): Use get_frame_pc.
125 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
126 * ax-gdb.c (agent_command): Ditto.
127 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
128 (rs6000_pop_frame): Ditto.
129 (rs6000_frameless_function_invocation): Ditto.
130 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
131 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
132 * macroscope.c (default_macro_scope): Ditto.
133 * stack.c (print_frame_info_base): Ditto.
134 (print_frame, frame_info, print_frame_label_vars): Ditto.
135 (return_command, func_command, get_frame_language): Ditto.
136 * infcmd.c (finish_command): Ditto.
137 * dummy-frame.c (cached_find_dummy_frame): Ditto.
138 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
139 (break_at_finish_at_depth_command_1): Ditto.
140 (break_at_finish_command_1): Ditto.
141 (until_break_command, get_catch_sals): Ditto.
142 * blockframe.c (func_frame_chain_valid): Ditto.
143 (frameless_look_for_prologue): Ditto.
144 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
145
408400e7
AC
1462002-12-08 Andrew Cagney <ac131313@redhat.com>
147
148 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
149 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
150
97f46953
AC
1512002-12-08 Andrew Cagney <ac131313@redhat.com>
152
153 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
154 to pure functions.
155 * gdbarch.h, gdbarch.c: Re-generate.
156 * frame.c (get_prev_frame): Explictly assign prev's pc with value
157 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
158
159 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
160 declaration to a function returning a CORE_ADDR.
161 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
162 * arch-utils.c (init_frame_pc_noop): Return the PC value.
163 (init_frame_pc_default): Ditto.
164 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
165 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
166 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
167 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
168 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
169 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
170
171 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
172 to init_frame_pc_noop.
173 (i386_interix_init_frame_pc): Delete function.
174 * z8k-tdep.c (init_frame_pc): Delete function.
175 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
176 (INIT_FRAME_PC_FIRST): Ditto.
177 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
178 (INIT_FRAME_PC_FIRST): Ditto.
179 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
180 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
181 init_frame_pc_noop.
182 (INIT_FRAME_PC_FIRST): Convert to an expression.
183 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
184
8b36eed8
AC
1852002-12-08 Andrew Cagney <ac131313@redhat.com>
186
187 * blockframe.c: Use get_frame_base instead of directly accessing
188 the `struct frame_info' member frame.
189 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
190 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
191
aeeccc89
EZ
1922002-12-08 Elena Zannoni <ezannoni@redhat.com>
193
194 * Makefile.in (readline_h): Define.
195 (completer.o): Depend on readline_h.
196 (corelow.o): Ditto.
197 (event-top.o): Ditto.
198 (exec.o): Ditto.
199 (solib.o): Ditto.
200 (source.o): Ditto.
201 (symfile.o): Ditto.
202 (symmisc.o): Ditto.
203 (top.o): Ditto.
204 (tracepoint.o): Ditto.
205 (utils.o): Ditto.
206 (cli-dump.o): Ditto.
207 (tui-hooks.o): Ditto.
208 (tuiWin.o): Ditto.
209
38017ce8
EZ
2102002-12-08 Elena Zannoni <ezannoni@redhat.com>
211
212 More cleanup from import of readline 4.3.
213 * completer.h (complete_line, readline_line_completion_function):
214 Update prototypes.
215 (line_completion_function): Removed, not used outside of completer.c.
216 * completer.c (readline_line_completion_function,
217 complete_function, line_completion_function): Use const for first
218 parameter.
219 (line_completion_function): Make static.
220 (filename_completer): filename_completion_function is now called
221 rl_filename_completion_function
222 * corelow.c: Include <readline/readline.h>.
223 * exec.c: Ditto.
224 * solib.c: Ditto.
225 * source.c: Ditto.
226 * symfile.c: Ditto.
227 * symmisc.c: Ditto.
228 * top.c (init_main): No need to coerce
229 readline_line_completion_function anymore.
230 * cli/cli-dump.c: Include <readline/readline.h>.
231
75e3c1f9
AC
2322002-12-08 Andrew Cagney <ac131313@redhat.com>
233
234 * stack.c (frame_info): Use get_prev_frame.
235 * blockframe.c (frame_address_in_block): Ditto.
236 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
237 (rs6000_frameless_function_invocation): Ditto.
238 (rs6000_frame_saved_pc): Ditto.
239 (rs6000_frame_chain): Ditto.
240 * arch-utils.c (init_frame_pc_default): Ditto.
241
0d2b8049
AC
2422002-12-08 Andrew Cagney <ac131313@redhat.com>
243
244 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
245 Delete redundant definition.
246
9255ee31
EZ
2472002-12-08 Elena Zannoni <ezannoni@redhat.com>
248
249 Import of readline 4.3:
250 * cli/cli-cmds.c: Include readline/tilde.h.
251 * cli/cli-setshow.c: Ditto.
252 * defs.h: Don't declare tilde_expand anymore, since readline
253 exports it.
254
3442dad6 2552002-12-08 Elena Zannoni <ezannoni@redhat.com>
57725d84
EZ
256
257 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
258 -Werror on this file.
259
52f87c51
AC
2602002-12-07 Andrew Cagney <ac131313@redhat.com>
261
262 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
263 the format name.
264 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
265 * gdbarch.c: Regenerate.
266
2ca6c561
AC
2672002-12-06 Andrew Cagney <ac131313@redhat.com>
268
269 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
270 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
271 provide a default value.
272 * gdbarch.h, gdbarch.c: Regenerate.
273 * frame.c (get_prev_frame): Update. Check
274 DEPRECATED_INIT_FRAME_PC_FIRST_P.
275 * s390-tdep.c (s390_gdbarch_init): Update.
276 * mips-tdep.c (mips_gdbarch_init): Update.
277 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
278 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
279 * alpha-tdep.c (alpha_gdbarch_init): Update.
280
e162d11b
EZ
2812002-12-06 Elena Zannoni <ezannoni@redhat.com>
282
283 * ia64-linux-nat.c: Include gdb_string.h.
284 * alpha-nat.c: Ditto.
2b298b5d
EZ
285 * ppc-linux-nat.c: Ditto.
286 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
287 Update dependencies.
e162d11b 288
aa0cd9c1
AC
2892002-12-05 Andrew Cagney <ac131313@redhat.com>
290
291 * gdbthread.h: Include "frame.h".
292 (struct thread_info): Replace step_frame_address with
293 step_frame_id.
294 * inferior.h: Include "frame.h".
295 (step_frame_id): Replace external variable step_frame_address.
296 * gdbthread.h (save_infrun_state): Replace step_frame_address
297 parameter with step_frame_id parameter.
298 (load_infrun_state): Ditto.
299 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
300 * infcmd.c (step_frame_id, step_1, step_once): Update.
301 * thread.c (load_infrun_state, save_infrun_state): Update.
302 * infrun.c (clear_proceed_status, save_inferior_status): Update.
303 (handle_inferior_event, step_over_function): Update.
304 (normal_stop, context_switch, restore_inferior_status): Update.
305 (struct inferior_status): Replace step_frame_address with
306 step_frame_id.
307
a9a9bd0f
DC
3082002-12-05 David Carlton <carlton@math.stanford.edu>
309
310 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
311 DW_TAG_member as well as a declaration as being a C++ static data
312 member.
313 (read_structure_scope): Combine tests for DW_TAG_member and
314 DW_TAG_variable.
315
614b3b14
DC
3162002-12-05 David Carlton <carlton@math.stanford.edu>
317
318 * linespec.c (decode_compound): New function.
319 (decode_line_1): Move code into decode_compound.
320
e4051eeb
DC
3212002-12-05 David Carlton <carlton@math.stanford.edu>
322
323 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
324 argument.
325 (lookup_symbol_aux): Do the 'field_of_this' check before checking
326 the static block. See PR gdb/804.
327
f61e8913
DC
3282002-12-05 David Carlton <carlton@math.stanford.edu>
329
330 * symtab.c (lookup_symbol_aux_block): New function.
331 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
332
1e9f55d0
AC
3332002-12-05 Andrew Cagney <ac131313@redhat.com>
334
335 * gdbarch.sh: Dump the predicate function and macro values.
336 (read): Print error on standard error.
337 * gdbarch.c: Regenerate.
338
d1973055
KB
3392002-12-04 Kevin Buettner <kevinb@redhat.com>
340
341 * Makefile.in (mips_tdep_h): Define.
342 (mips-tdep.o): Add mips_tdep_h to dependency list.
343 * mips-tdep.h: New file.
344 * mips-tdep.c (mips-tdep.h): Include.
345 (enum mips_abi): Move to mips-tdep.h.
346 (mips_abi): New function.
347
f1253c7b
DC
3482002-12-04 David Carlton <carlton@math.stanford.edu>
349
350 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
351
406bc4de
DC
3522002-12-04 David Carlton <carlton@math.stanford.edu>
353
354 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
355 function.
356 (lookup_symbol_aux_minsyms): New function.
357
2a3750c5
JB
3582002-12-04 J. Brobecker <brobecker@gnat.com>
359
360 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
361
961d8652
JB
3622002-12-04 J. Brobecker <brobecker@gnat.com>
363
364 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
365 which is an obsolete macro name.
366
38c52d5a
DJ
3672002-12-04 Daniel Jacobowitz <drow@mvista.com>
368
369 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
370 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
371
d8ef46f5
DJ
3722002-12-03 H.J. Lu (hjl@gnu.org)
373
374 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
375 (create_breakpoints): Make sure the addr_string field is not
376 NULL.
377
02ae7771
AC
3782002-12-03 Andrew Cagney <ac131313@redhat.com>
379
380 * sparc-nat.c (fetch_inferior_registers)
381 (store_inferior_registers): Add comment on problem of LWP vs
382 threads.
383
384 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
385 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
386 (lin_lwp_store_registers): Remove.
387 (init_lin_lwp_ops): Use fetch_inferior_registers
388 and store_inferior_registers directly.
389 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
390 (store_inferior_registers): Likewise.
391 Fix PR gdb/725.
392
7a424e99
AC
3932002-12-03 Andrew Cagney <ac131313@redhat.com>
394
395 * frame.h (get_frame_id): Convert to a function.
396 (null_frame_id, frame_id_p): Declare.
397 (frame_id_eq, frame_id_inner): Declare.
398 (frame_id_build): New function.
399 * frame.c (get_frame_id): Update. Use null_frame_id.
400 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
401 frame_id_inner.
402 (null_frame_id, frame_id_p): Define.
403 (frame_id_eq, frame_id_inner): Define.
404 (frame_id_build): New function.
405 * varobj.c (varobj_create): Update.
406 (varobj_update): Update.
407 * valops.c (value_assign): Update.
408 (new_root_variable): Update.
409 * infrun.c (save_inferior_status): Update.
410 * breakpoint.c (watch_command_1): Update.
411
891c7f5f
JB
4122002-12-03 J. Brobecker <brobecker@gnat.com>
413
414 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
415 (SNAP2): Likewise.
416
144da3c1
AC
4172002-12-03 Andrew Cagney <cagney@redhat.com>
418
46248966
AC
419 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
420 patch.
421
144da3c1
AC
422 * PROBLEMS: Mention PR gdb/725.
423
03c6228e
AS
4242002-12-03 Andreas Schwab <schwab@suse.de>
425
426 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
427
36e53c63
AF
4282002-12-02 Adam Fedor <fedor@gnu.org>
429 Klee Dienes <kdienes@apple.com>
430
431 * objc-lang.c (objc_printstr): Add width arg to match
432 printstr prototype.
433 (compare_selectors): Add 'const' to arg types.
434 (compare_classes): Likewise.
435 (find_imps): Cast msym pointer to avoid compiler warning.
436 (print_object_command): Validate the address before
437 passing it to the print routine.
438 (find_objc_msgcall_submethod): Change function argument to
439 return an int.
440 * objc-lang.h: Add 'extern' to all function declarations.
441 (value_nsstring): Add declaration.
442
504d5c7e
JB
4432002-12-02 J. Brobecker <brobecker@gnat.com>
444
445 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
446 Fixes a build failure on HP/UX.
447
448 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
449 failure on HP/UX.
450 (hpread_has_name): Advance declaration to avoid a compilation warning.
451 (pst_syms_count): Add missing variable type. By change, the compiler
452 was defaulting to int, which seems a good choice. Fixes a compilation
453 warning.
454 (pst_syms_size): Likewise.
455
59623e27
JB
4562002-12-02 J. Brobecker <brobecker@gnat.com>
457
458 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
459 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
460 later to set the proper gdbarch methods depending on the osabi.
461 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
462
a09a320d
JB
4632002-12-02 J. Brobecker <brobecker@gnat.com>
464
465 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
466 * osabi.c (gdb_osabi_name): Add strings images for the two new
467 enum values.
468 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
469
8a81a99e
AC
4702002-12-02 Andrew Cagney <ac131313@redhat.com>
471
472 * MAINTAINERS (Java): Global maintainers are responible for Java.
473 (Past Maintainers): Mention both Anthony Green and Per Bothner as
474 part Java maintainers.
475
7af35dad
JB
4762002-12-02 J. Brobecker <brobecker@gnat.com>
477
478 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
479 Fixes a compilation failure on AiX.
480
f4ede9bc
JB
4812002-12-02 J. Brobecker <brobecker@gnat.com>
482
483 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
484 why aix-thread.o is not listed.
485
ae45cd16
AC
4862002-12-01 Andrew Cagney <ac131313@redhat.com>
487
488 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
489 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
490 * gdbarch.h, gdbarch.c: Re-generate.
491 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
492 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
493 * config/pa/tm-hppa.h, frame.h: Update.
494 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
495 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
496 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
497 * cris-tdep.c, alpha-tdep.c: Update.
498 * frame.c (set_unwind_by_pc, create_new_frame): Use either
499 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
500 (get_prev_frame): Ditto.
501
020cc13c
AC
5022002-11-30 Andrew Cagney <cagney@redhat.com>
503
504 * exec.c (xfer_memory): Replace boolean with int.
505 * p-exp.y: Use 0 instead of false.
506 * corelow.c (gdb_check_format): Change return type to int from
507 boolean.
508 * utils.c: Don't include <curses.h> or <term.h> first.
509
1d9b2aa8
SC
5102002-11-29 Stephane Carrez <stcarrez@nerim.fr>
511
512 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
513 (m68hc11_register_byte): Remove.
514 (m68hc11_gdbarch_init): Don't set the above.
515
a193e397
AC
5162002-11-29 Andrew Cagney <cagney@redhat.com>
517
518 * remote-mips.c (mips_initialize): Force a selected frame rebuild
519 by calling get_selected_frame.
520 * ocd.c (ocd_start_remote): Use get_selected frame instead of
521 set_current_frame, create_new_frame, select_frame and
522 get_current_frame.
523 * remote-e7000.c (e7000_start_remote): Ditto.
524 * remote-mips.c (common_open): Ditto
525 * remote-rdp.c (remote_rdp_open): Ditto.
526
b5fc49aa
AS
5272002-11-29 Andreas Schwab <schwab@suse.de>
528
529 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
530 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
531 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
532 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
533 read_memory_unsigned_integer instead of read_memory_integer when
534 dealing with addresses and instruction opcodes.
535 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
536 (m68k_linux_frame_saved_pc): Likewise.
537
6e7f8b9c
AC
5382002-11-29 Andrew Cagney <ac131313@redhat.com>
539
540 * stack.c (selected_frame, select_frame): Move from here ...
541 * frame.c (selected_frame, select_frame): ... to here. Include
542 "language.h".
543 * Makefile.in (frame.o): Update dependencies.
544 * frame.c (get_selected_frame): New function.
545 * frame.h (get_selected_frame): Declare.
546 (deprecated_selected_frame): Rename selected_frame.
547 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
548 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
549 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
550 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
551 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
552 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
553 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
554 * z8k-tdep.c, cli/cli-cmds.c: Update.
555
805e2818
AC
5562002-11-29 Andrew Cagney <ac131313@redhat.com>
557
558 * frame.h (get_selected_block): Add comments.
559
1058bca7
AC
5602002-11-28 Andrew Cagney <ac131313@redhat.com>
561
562 * frame.c (pc_notcurrent): New function.
563 (find_frame_sal): New function.
564 * frame.h (find_frame_sal): Declare.
565 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
566 * stack.c (print_frame_info_base): Use find_frame_sal instead of
567 find_pc_line.
1058bca7
AC
568 (frame_info): Ditto.
569 * ada-lang.c (find_printable_frame): Ditto.
570
d92419e5
JB
5712002-11-28 J. Brobecker <brobecker@gnat.com>
572
573 * configure.in: Check that the pthdebug library is recent enough
574 before enabling thread support on native AiX.
575 * configure: Regenerate.
576
577 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
578 from the list of object files as it is now appended by configure
579 if thread support is enabled.
580 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
581 if thread support is enabled.
582
8c69fc49
AC
5832002-11-28 Andrew Cagney <cagney@redhat.com>
584
585 * stack.c (get_selected_block): In-line get_current_block.
586 * frame.h (get_current_block): Delete declaration.
587 * blockframe.c (get_current_block): Delete function.
588
07555a72
AC
5892002-11-28 Andrew Cagney <ac131313@redhat.com>
590
591 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
592 USE_GENERIC_DUMMY_FRAMES.
593 * gdbarch.h, gdbarch.c: Regenerate.
594 * valops.c, frame.c: Update.
595 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
596 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
597 * config/pa/tm-hppa.h, blockframe.c: Update.
598 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
599 * m68k-tdep.c, alpha-tdep.c: Ditto.
600
601 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
602 * mips-tdep.c: Ditto.
603
b99fa2d2
AC
6042002-11-27 Andrew Cagney <ac131313@redhat.com>
605
606 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
607 (USE_GENERIC_DUMMY_FRAMES): Default to true.
608 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
609 * gdbarch.c, gdbarch.h: Re-generate.
610 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
611 (CALL_DUMMY_LOCATION): Delete macro definition.
612 (PC_IN_CALL_DUMMY): Delete macro definitions.
613
614 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
615 default is already generic_pc_in_call_dummy.
616 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
617 * v850-tdep.c (v850_gdbarch_init): Ditto.
618 * sh-tdep.c (sh_gdbarch_init): Ditto.
619 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
620 * mips-tdep.c (mips_gdbarch_init): Ditto.
621 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
622 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
623 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
624 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
625 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
626 * avr-tdep.c (avr_gdbarch_init): Ditto.
627
628 * arm-tdep.c (arm_gdbarch_init): Do not set
629 use_generic_dummy_frames, default is already 1.
630 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
631 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
632 * v850-tdep.c (v850_gdbarch_init): Ditto.
633 * sh-tdep.c (sh_gdbarch_init): Ditto.
634 * s390-tdep.c (s390_gdbarch_init): Ditto.
635 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
636 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
637 * mips-tdep.c (mips_gdbarch_init): Ditto.
638 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
639 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
640 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
641 * i386-tdep.c (i386_gdbarch_init): Ditto.
642 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
643 * frv-tdep.c (frv_gdbarch_init): Ditto.
644 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
645 * cris-tdep.c (cris_gdbarch_init): Ditto.
646 * avr-tdep.c (avr_gdbarch_init): Ditto.
647
648 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
649 call_dummy_location, default is already AT_ENTRY_POINT.
650 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
651 * v850-tdep.c (v850_gdbarch_init): Ditto.
652 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
653 * sh-tdep.c (sh_gdbarch_init): Ditto.
654 * s390-tdep.c (s390_gdbarch_init): Ditto.
655 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
656 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
657 * mips-tdep.c (mips_gdbarch_init): Ditto.
658 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
659 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
660 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
661 * i386-tdep.c (i386_gdbarch_init): Ditto.
662 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
663 * frv-tdep.c (frv_gdbarch_init): Ditto.
664 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
665 * cris-tdep.c (cris_gdbarch_init): Ditto.
666 * avr-tdep.c (avr_gdbarch_init): Ditto.
667 * arm-tdep.c (arm_gdbarch_init): Ditto.
668 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
669
abc0af47
AC
6702002-11-28 Andrew Cagney <cagney@redhat.com>
671
672 * frame.h: Update comments on set_current_frame, create_new_frame,
673 flush_cached_frames, reinit_frame_cache, select_frame and
674 selected_frame.
675
ed5cedc5
AC
6762002-11-27 Andrew Cagney <cagney@redhat.com>
677
678 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
679 deprecated pc_in_call_dummy function.
680 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
681 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
682 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
683 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
684 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
685
b2a1bd4f
MH
6862002-11-26 Martin M. Hunt <hunt@redhat.com>
687
688 * Makefile.in: Remove Tix dependencies.
689 * acinclude.m4: Ditto.
690 * aclocal.m4: Ditto.
691 * configure.in: Ditto.
692 * configure: Regenerated.
693
f09cffaa
AC
6942002-11-26 Andrew Cagney <ac131313@redhat.com>
695
696 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
697 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
698 * gdbarch.c: Re-generate.
699
e92b0cc9
AC
7002002-11-26 Andrew Cagney <ac131313@redhat.com>
701
702 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
703 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
704 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
705 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
706 pc_in_call_dummy_at_entry_point.
707 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
708 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
709 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
710 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
711 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
712 pc_in_call_dummy_on_stack.
713 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
714 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
715 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
716 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
717 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
718
b4b88177
AC
7192002-11-26 Andrew Cagney <ac131313@redhat.com>
720
721 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
722 pc_in_call_dummy_before_text_end
723 (deprecated_pc_in_call_dummy_after_text_end): Rename
724 pc_in_call_dummy_after_text_end.
725 (deprecated_pc_in_call_dummy_on_stack): Rename
726 pc_in_call_dummy_on_stack.
727 (deprecated_pc_in_call_dummy_at_entry_point): Rename
728 pc_in_call_dummy_at_entry_point.
729 * m68k-tdep.c (m68k_gdbarch_init): Update.
730 * s390-tdep.c (s390_gdbarch_init): Update.
731 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
732 * vax-tdep.c (vax_gdbarch_init): Update.
733 * sparc-tdep.c (sparc_gdbarch_init): Update.
734 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
735 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
736 * i386-tdep.c (i386_gdbarch_init): Update.
737 * frv-tdep.c (frv_gdbarch_init): Update.
738 * cris-tdep.c (cris_gdbarch_init): Update.
739 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
740 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
741 (deprecated_pc_in_call_dummy_after_text_end)
742 (deprecated_pc_in_call_dummy_on_stack)
743 (deprecated_pc_in_call_dummy_at_entry_point): Update.
744 * alpha-tdep.c (alpha_gdbarch_init): Update.
745
eb784848
DJ
7462002-11-25 Daniel Jacobowitz <drow@mvista.com>
747
748 * acconfig.h (HAVE_PREAD64): Add.
749 * configure.in: Check for pread64.
750 * config.in: Regenerated.
751 * configure: Regenerated.
752 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
753 * linux-proc.c (linux_proc_xfer_memory): New function.
754 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
755
933c6fe4
DC
7562002-11-25 David Carlton <carlton@math.stanford.edu>
757
758 * dwarf2read.c (scan_partial_symbols): Descend into namespace
759 pdi's with no name.
760
158a8022
AC
7612002-11-25 Andrew Cagney <ac131313@redhat.com>
762
763 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
764 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
765
481d0f41
JB
7662002-11-25 Jim Blandy <jimb@redhat.com>
767
e8289572
JB
768 * symfile.c (init_objfile_sect_indices): New function.
769 (default_symfile_offsets): Move the section-index-initializing
770 stuff into init_objfile_sect_indices, and call that.
771
b29c9944
JB
772 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
773 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
774
13de58df
JB
775 * symfile.c (syms_from_objfile): Adjust indentation.
776
481d0f41
JB
777 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
778 || info_verbose isn't true.
779
7d6a26a7
AC
7802002-11-24 Andrew Cagney <ac131313@redhat.com>
781
782 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
783 default to get_frame_base.
784 * gdbarch.h, gdbarch.c: Regenerate.
785 * arch-utils.c (default_frame_address): Delete function.
786 * arch-utils.h (default_frame_address): Delete declaration
787
6abe1021
PM
7882002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
789
790 * varobj.c (find_frame_addr_in_frame_chain):
791 Use get_frame_base instead of FRAME_FP,
792 obvious fix.
793
c193f6ac
AC
7942002-11-19 Andrew Cagney <ac131313@redhat.com>
795
796 * frame.h (FRAME_FP): Delete macro.
797 (get_frame_base): New function declaration.
798 * frame.c (get_frame_base): New function.
799 (get_frame_id): Use ->frame.
800 (frame_find_by_id): Rewrite to use get_frame_id.
801 * blockframe.c: Use get_frame_base instead of FRAME_FP.
802 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
803 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
804 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
805 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
806 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
807 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
808
e5d2af14
AC
8092002-11-24 Andrew Cagney <ac131313@redhat.com>
810
811 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
812
931d12c6
AC
8132002-11-24 Andrew Cagney <ac131313@redhat.com>
814
815 * frame.c (set_unwind_by_pc): Revert change below, use
816 PC_IN_CALL_DUMMY.
817 (get_prev_frame): Ditto.
818
5e0f933e
AC
8192002-11-24 Andrew Cagney <ac131313@redhat.com>
820
821 * dummy-frame.c (pc_in_dummy_frame): New function.
822 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
823 (find_dummy_frame): Update comment.
824 (generic_pop_current_frame): Use get_frame_type.
825 * dummy-frame.h (pc_in_dummy_frame): Declare.
826 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
827 (create_new_frame): Use pc_in_dummy_frame.
828 (get_prev_frame): Use pc_in_dummy_frame.
829 (frame_saved_regs_register_unwind): Use get_prev_frame.
830 (deprecated_generic_get_saved_register): Use get_prev_frame.
831
7d8547c9
AC
8322002-11-23 Andrew Cagney <ac131313@redhat.com>
833
834 * blockframe.c (find_frame_addr_in_frame_chain): Move function
835 from here ...
836 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
837 (varobj_create): Note that frame ID should be used.
838 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
839
0225421b
AC
8402002-11-23 Andrew Cagney <ac131313@redhat.com>
841
842 * breakpoint.c: Include "gdb_assert.h".
843 (deprecated_frame_in_dummy): Assert that generic dummy frames are
844 not being used.
845 * Makefile.in (breakpoint.o): Update dependencies.
846 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
847 deprecated_frame_in_dummy.
848 * stack.c (print_frame_info_base): Ditto.
849 (frame_info): Ditto.
850 (print_frame_info_base): Ditto. Delete dead code.
851
32eeb91a
AS
8522002-11-23 Andreas Schwab <schwab@suse.de>
853
854 * Makefile.in (m68k_tdep_h): Define.
855 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
856 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
857 * m68k-tdep.c: Move register number enum ...
858 * m68k-tdep.h: ... to this new file and rename the constants from
859 E_* to M68K_*. All uses changed.
860 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
861 * abug-rom.c: Include "m68k-tdep.h". Use
862 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
863 * cpu32bug-rom.c: Likewise.
864 * dbug-rom.c: Likewise.
865 * m68k-tdep.c: Likewise.
866 * m68klinux-nat.c: Likewise.
867 * remote-est.c: Likewise.
868 * rom68k-rom.c: Likewise.
869 * config/m68k/tm-linux.h: Likewise.
870
9648bac8
AC
8712002-11-23 Andrew Cagney <ac131313@redhat.com>
872
873 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
874 dummy frame initialization code.
875 * mips-tdep.c (mips_gdbarch_init): Ditto.
876
91a175b3
CF
8772002-11-22 Christopher Faylor <cgf@redhat.com>
878
879 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
880 attach will hang.
881
f4ded5b1
AC
8822002-11-22 Andrew Cagney <ac131313@redhat.com>
883
884 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
885 to default_frame_address.
886 * gdbarch.h, gdbarch.c: Re-generate.
887
888 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
889 or frame_locals_address to default_frame_address.
890 * m68k-tdep.c (m68k_gdbarch_init): Update.
891 * i386-tdep.c (i386_gdbarch_init): Update.
892 * frv-tdep.c (frv_gdbarch_init): Update.
893 * sh-tdep.c (sh_gdbarch_init): Update.
894 * v850-tdep.c (v850_gdbarch_init): Update.
895 * sparc-tdep.c (sparc_gdbarch_init): Update.
896 * mips-tdep.c (mips_gdbarch_init): Update.
897 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
898 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
899 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
900
901 * cris-tdep.c (cris_frame_args_address): Delete function.
902 (cris_frame_locals_address): Delete function.
903 (cris_gdbarch_init): Do not set frame_args_address or
904 frame_locals_address.
905
f7c1e0f3
MS
9062002-11-22 Michael Snyder <msnyder@redhat.com>
907
908 * thread-db.c (thread_db_load): Tell the user what's going on
909 if dlopen fails on libthread_db.
910
03dac896
AS
9112002-11-23 Andreas Schwab <schwab@suse.de>
912
913 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
914 invariant return values.
915
7a67d0fe
AS
9162002-11-22 Andreas Schwab <schwab@suse.de>
917
918 * valops.c (value_slice): Move declaration of `offset' to avoid
919 warning.
920
5633f842
CF
9212002-11-22 Christopher Faylor <cgf@redhat.com>
922
923 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
924 (struct so_stuff): Add end_addr field.
925 (register_loaded_dll): Calculate and store end address of loaded dll.
926 (solib_address): New function.
927 (child_solib_loaded_library_pathname): Pass carefully constructed
928 section info to safe_symbol_file_add rather than ignoring it.
929 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
930 DLL is loaded.
931 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
932 (child_create_inferior): Fix a compiler warning.
933 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
934 (solib_address): Declare new function.
935
d85fe7f7
AS
9362002-11-22 Andreas Schwab <schwab@suse.de>
937
938 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
939 and FPS registers.
940
8308e54c
DJ
9412002-11-21 Daniel Jacobowitz <drow@mvista.com>
942
943 * maint.c (_initialize_maint_cmds): Fix typo. From
944 Francesco Potorti` <pot@gnu.org>.
945
8997bd5e
AC
9462002-11-21 Andrew Cagney <cagney@redhat.com>
947
948 * mips-tdep.c (mips_dump_tdep): Delete references to
949 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
950 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
951 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
952 * printcmd.c (build_address_symbolic): Delete calls to
953 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
954 (address_info): Ditto.
955 Fix PR gdb/773.
956
4e87b832
KD
9572002-11-19 Klee Dienes <kdienes@apple.com>
958 Adam Fedor <fedor@gnu.org>
959
960 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
961 the ability to explicitly specify the quote characters and word
962 break characters; if NULL is specified for either, use the old
963 behavior of using the characters used by the completer.
964 (skip_chars): New function. Convenience wrapper around
965 skip_quoted_chars to provide the original skip_chars behavior.
966 * completer.h (skip_quoted_chars): Add prototype.
967
9ba8d803
AC
9682002-11-19 Andrew Cagney <ac131313@redhat.com>
969
970 Problems reported by Paul Eggert.
971 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
972
0a595803
AS
9732002-11-19 Andreas Schwab <schwab@suse.de>
974
975 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
976 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
977 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
978 (m68k_linux_frame_saved_pc): Move to ...
979 * m68klinux-tdep.c: ... here. New file.
980 * Makefile.in (m68klinux-tdep.o): Add dependencies.
981 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
982
e8afa4d7
AF
9832002-11-19 Adam Fedor <fedor@gnu.org>
984
985 * objc-exp.y: Revert to old skip_quoted usage.
986
a76c9d72
AF
9872002-11-19 Adam Fedor <fedor@gnu.org>
988
989 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
990 (objc_lang_h): Define.
991 (YYFILES): Add objc-exp.tab.c.
992 (local-maintainer-clean): Remove objc-exp.tab.c.
993 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
994
fd0e9d45
PM
9952002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
996
997 * p-exp.y (typecast rule): Add automatic dereference of
998 pascal classes if needed.
999 (THIS): Set current_type.
1000 Automatically dereference pascal classes.
1001 (typebase rule): Add ^typebase recognition.
1002
82eeeb94
AF
10032002-11-18 Adam Fedor <fedor@gnu.org>
1004
1005 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1006 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1007 (op_name): Handle OP_OBJC_SELF.
1008 * Makefile.in (expprint.o): Add additional depends.
1009
646df18d
AF
10102002-11-18 Adam Fedor <fedor@gnu.org>
1011
1012 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1013 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1014 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1015 * objc-exp.y: Likewise.
1016
379b85df
AF
10172002-11-18 Adam Fedor <fedor@gnu.org>
1018
1019 * gdb/parser-defs.h: (struct objc_class_str): New structure
1020 for parsing ObjC classes.
1021
85cf597a
AC
10222002-11-18 Andrew Cagney <ac131313@redhat.com>
1023
1024 * stack.c (frame_relative_level): Copy function from here ...
1025 * frame.c (frame_relative_level): ...to here.
1026
5a203e44
AC
10272002-11-18 Andrew Cagney <ac131313@redhat.com>
1028
1029 * frame.h (enum frame_type): Define.
1030 (get_frame_type): Declare.
1031 (struct frame_info): Add field `type'. Delete field
1032 signal_handler_caller.
1033 (deprecated_set_frame_signal_handler_caller): Declare.
1034 * frame.c (get_frame_type): New function.
1035 (deprecated_set_frame_type): New function.
1036 (create_new_frame): Set the frame's type.
1037 (get_prev_frame): Similar.
1038 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1039 * s390-tdep.c: Ditto.
1040 * m68klinux-nat.c: Ditto.
1041 * ns32k-tdep.c: Ditto.
1042 * x86-64-linux-tdep.c: Ditto.
1043 * vax-tdep.c: Ditto.
1044 * rs6000-tdep.c: Ditto.
1045 * ppc-linux-tdep.c: Ditto.
1046 * i386-interix-tdep.c: Ditto.
1047 * mips-tdep.c: Ditto.
1048 * m68k-tdep.c: Ditto.
1049 * hppa-tdep.c: Ditto.
1050 * ia64-tdep.c: Ditto.
1051 * cris-tdep.c: Ditto.
1052 * arm-tdep.c: Ditto.
1053 * alpha-tdep.c: Ditto.
1054 * i386-tdep.c: Ditto.
1055 * stack.c: Ditto.
1056 * ada-lang.c: Ditto.
1057 * blockframe.c: Update.
1058 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1059 deprecated_set_frame_type instead of signal_handler_caller.
1060 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1061 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1062 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1063
bf4ae8b2
KD
10642002-11-18 Klee Dienes <kdienes@apple.com>
1065
1066 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1067
a672ef13
KD
10682002-11-18 Klee Dienes <kdienes@apple.com>
1069
1070 * buildsym.c (pop_context): Add comment.
1071
0c5e171a
KD
10722002-11-18 Klee Dienes <kdienes@apple.com>
1073
1074 * buildsym.h (pop_context): Convert to function, defined in
1075 buildsym.c.
1076 * buildsym.c: Include gdb_assert.h.
1077 (pop_context): Implement as C function. Add check for stack
1078 underflow.
1079 * dbxread.c (process_one_symbol): Complain and stop processing
1080 that symbol if we are already at the top of the context stack for
1081 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1082 when processing N_RBRAC.
1083
8a1f4c4c
DJ
10842002-11-16 Daniel Jacobowitz <drow@mvista.com>
1085
1086 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1087 define.
1088 (struct target_waitstatus): Add opaque definition.
1089 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1090 * exec.c (init_exec_ops): Likewise.
1091 * fork-child.c (clone_and_follow_inferior): Remove.
1092 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1093 * inferior.h (clone_and_follow_inferior): Remove prototype.
1094 * infrun.c (follow_fork_mode_both): Remove.
1095 (follow_fork_mode_kind_names): Remove commented out "both".
1096 (follow_inferior_fork): Remove follow_fork_mode_both support.
1097 * inftarg.c (child_clone_and_follow_inferior): Remove.
1098 (child_post_follow_inferior_by_clone): Remove.
1099 (init_child_ops): Don't set to_clone_and_follow_inferior
1100 or to_post_follow_inferior_by_clone.
1101 * target.c (default_clone_and_follow_inferior): Remove.
1102 (cleanup_target): Don't set to_clone_and_follow_inferior
1103 or to_post_follow_inferior_by_clone.
1104 (find_default_clone_and_follow_inferior): Remove.
1105 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1106 (debug_to_clone_and_follow_inferior): Remove.
1107 (debug_to_post_follow_inferior_by_clone): Remove.
1108 (setup_target_debug): Don't set to_clone_and_follow_inferior
1109 or to_post_follow_inferior_by_clone.
1110 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1111 and to_post_follow_inferior_by_clone.
1112 (child_clone_and_follow_inferior): Remove prototype.
1113 (child_post_follow_inferior_by_clone): Remove prototype.
1114 (target_clone_and_follow_inferior): Remove macro.
1115 (target_post_follow_inferior_by_clone): Remove macro.
1116 (find_default_clone_and_follow_inferior): Remove prototype.
1117
47932f85
DJ
11182002-11-16 Daniel Jacobowitz <drow@mvista.com>
1119
1120 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1121 inferior_has_vforked, and inferior_has_execd instead of
1122 target_has_forked, target_has_vforked, and target_has_execd.
1123 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1124 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1125 (CHILD_WAIT): Define.
1126 (child_wait): Add prototype.
1127 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1128 Add prototype.
1129 (hpux_has_vforked): Likewise, from child_has_vforked.
1130 (hpux_has_execd): Likewise, from child_has_execd.
1131 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1132 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1133 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1134 and hpux_has_syscall_event instead of the target hooks.
1135 * infrun.c (inferior_has_forked, inferior_has_vforked)
1136 (inferior_has_execd): New functions.
1137 * inftarg.c (not_same_real_pid): Remove.
1138 (child_wait): Remove references to not_same_real_pid,
1139 target_has_forked, target_has_vforked, target_has_execd,
1140 and target_has_syscall_event.
1141 (child_has_forked, child_has_vforked, child_has_execd)
1142 (child_has_syscall_event): Remove.
1143 (init_child_ops): Remove references to child_has_forked,
1144 child_has_vforked, child_has_execd, and child_has_syscall_event.
1145 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1146 (hpux_has_vforked): Likewise, from child_has_vforked.
1147 (hpux_has_execd): Likewise, from child_has_execd.
1148 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1149 * target.c (cleanup_target): Remove references to
1150 to_has_forked, to_has_vforked, to_has_execd, and
1151 to_has_syscall_event.
1152 (update_current_target): Likewise.
1153 (setup_target_debug): Likewise.
1154 (debug_to_has_forked): Remove.
1155 (debug_to_has_vforked): Remove.
1156 (debug_to_has_execd): Remove.
1157 (debug_to_has_syscall_event): Remove.
1158 * target.h (struct target_ops): Remove to_has_forked.
1159 to_has_vforked, to_has_execd, and to_has_syscall_event.
1160 (child_has_forked, child_has_vforked, child_has_execd)
1161 (child_has_syscall_event): Remove prototypes.
1162 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1163 prototypes.
1164 (target_has_forked, target_has_vforked, target_has_execd)
1165 (target_has_syscall_event): Remove macros.
1166
4088142a
DJ
11672002-11-16 Daniel Jacobowitz <drow@mvista.com>
1168
1169 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1170 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1171 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1172 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1173 * target.c (cleanup_target): Remove reference to
1174 to_can_follow_vfork_prior_to_exec.
1175 (update_current_target): Likewise.
1176 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1177 (setup_target_debug): Remove reference to
1178 to_can_follow_vfork_prior_to_exec.
1179 * target.h (struct target_ops): Remove
1180 to_can_follow_vfork_prior_to_exec.
1181 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1182 (target_can_follow_vfork_prior_to_exec): Remove definition.
1183 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1184 define.
1185 * infrun.c (follow_vfork_when_exec): Remove.
1186 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1187 (follow_exec): Likewise.
1188 (handle_inferior_event): Likewise.
1189 (keep_going): Likewise.
1190
18cde8d5
AC
11912002-11-15 Andrew Cagney <cagney@redhat.com>
1192
1193 * frame.c (generic_unwind_get_saved_register): Make static.
1194 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1195 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1196 defaults to generic_unwind_get_saved_register.
1197 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1198 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1199 * frv-tdep.c (frv_gdbarch_init): Ditto.
1200 * i386-tdep.c (i386_gdbarch_init): Ditto.
1201 * s390-tdep.c (s390_gdbarch_init): Ditto.
1202 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1203 * v850-tdep.c (v850_gdbarch_init): Ditto.
1204 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1205 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1206 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1207
a6b063af
AC
12082002-11-15 Andrew Cagney <cagney@redhat.com>
1209
1210 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1211 i386-tdep.c.
1212
f407986f
AC
12132002-11-15 Andrew Cagney <cagney@redhat.com>
1214
1215 * frame.h (sigtramp_saved_pc): Delete declaration.
1216 * blockframe.c (sigtramp_saved_pc): Delete function.
1217 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1218 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1219 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1220 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1221
f18c5a73
AC
12222002-11-15 Andrew Cagney <ac131313@redhat.com>
1223
1224 * frame.c (frame_pc_unwind): New function.
1225 (frame_saved_regs_pc_unwind): New function.
1226 (frame_register_unwind): Pass unwind_cache instead of
1227 register_unwind_cache.
1228 (set_unwind_by_pc): Add unwind_pc parameter, set.
1229 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1230 (get_prev_frame): Ditto.
1231 * frame.h (frame_pc_unwind_ftype): Declare.
1232 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1233 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1234 (frame_pc_unwind): Declare.
1235 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1236 (struct dummy_frame): Add comment mentioning that values are for
1237 previous frame.
1238 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1239 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1240 (generic_file_frame_chain_valid): Ditto.
1241 * stack.c (frame_info): Ditto.
1242
d9285969 12432002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
1244
1245 * linespec.c (locate_first_half): New function.
1246 (decode_line_1): Move code into locate_first_half.
1247
d741b867
AC
12482002-11-15 Andrew Cagney <ac131313@redhat.com>
1249
1250 * complaints.h: Add comment explaining how to eliminate a
1251 deprecated_complain call.
24382c5c 1252 * complaints.h: Fix spelling errors.
d741b867 1253
82d03c99
DC
12542002-11-15 David Carlton <carlton@math.stanford.edu>
1255
1256 * printcmd.c: Remove #include "disasm.h".
1257
c97eb5d9
AC
12582002-11-14 Andrew Cagney <ac131313@redhat.com>
1259
1260 * frame.h: Move the most relevant interface functions to the start
1261 of the file.
1262
524d7c18
AC
12632002-11-14 Andrew Cagney <ac131313@redhat.com>
1264
1265 * regcache.h (deprecated_registers): Rename registers.
1266 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1267 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1268 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1269 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1270 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1271 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1272 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1273 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1274 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1275 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1276 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1277 * v850ice.c: Update.
1278
6411e720
AC
1279Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1280
1281 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1282 NULL buffer.
1283
73937e03
AC
12842002-11-13 Andrew Cagney <cagney@redhat.com>
1285
1286 * regcache.h (deprecated_read_register_bytes): Rename
1287 read_register_bytes.
1288 (deprecated_write_register_bytes): Rename write_register_bytes.
1289 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1290 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1291 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1292 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1293 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1294 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1295 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1296 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1297 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1298 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1299 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1300 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1301 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1302 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1303
fb0cd46e
JB
13042002-11-13 Jim Blandy <jimb@redhat.com>
1305
1306 * findvar.c (read_var_value): Doc fix.
1307
2d28509a
AC
13082002-11-13 Andrew Cagney <cagney@redhat.com>
1309
1310 * regcache.c (struct regcache): Replace passthough_p with
1311 readonly_p.
1312 (regcache_xmalloc): Initialize readonly_p.
1313 (build_regcache): Initialize readonly_p.
1314 (regcache_save): New function.
1315 (regcache_restore): New function.
1316 (regcache_cpy): Re-implement using regcache_save and
1317 regcache_restore.
1318 (regcache_raw_read): Update.
1319 (regcache_cooked_read): When a read-only cache, checked for cached
1320 pseudo register values.
1321 (regcache_raw_write): Assert that the cache is not read-only.
1322 Remove code handling a non-passthrough cache.
1323 * regcache.h (regcache_save): Declare.
1324 (regcache_restore): Declare.
1325
067df2e5
AC
13262002-11-13 Andrew Cagney <cagney@redhat.com>
1327
1328 * regcache.c (struct regcache_descr): Add fields
1329 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1330 (init_legacy_regcache_descr): Compute the size of a cooked
1331 register cache and then assign that to sizeof_raw_registers. Set
1332 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1333 (init_legacy_regcache_descr): Ditto.
1334
51b1fe4e
AC
13352002-11-13 Andrew Cagney <cagney@redhat.com>
1336
1337 * regcache.c (register_buffer): Move to near start of file, update
1338 description.
1339 (regcache_raw_read): Use.
1340 (regcache_raw_write): Use.
1341 (struct regcache): Rename raw_registers to registers and
1342 raw_register_valid_p to register_valid_p.
1343 (regcache_xmalloc): Update.
1344 (regcache_xfree): Update.
1345 (register_buffer): Update.
1346 (regcache_cpy): Update.
1347 (regcache_cpy_no_passthrough): Update.
1348 (regcache_valid_p): Update.
1349 (deprecated_grub_regcache_for_registers): Update.
1350 (deprecated_grub_regcache_for_register_valid): Update.
1351 (set_register_cached): Update.
1352 (regcache_raw_write): Update.
1353
80b4c677
PM
13542002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1355
1356 * p-exp.y (name_not_typename): Use copy_name to
1357 set current_type variable for fields of THIS.
1358
0f3fafde
DJ
13592002-11-12 Daniel Jacobowitz <drow@mvista.com>
1360
1361 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1362 * monitor.c (init_base_monitor_ops): Likewise.
1363 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1364 * remote-array.c (init_array_ops): Likewise.
1365 * remote-e7000.c (init_e7000_ops): Likewise.
1366 * remote-es.c (init_es1800_ops): Likewise.
1367 (init_es1800_child_ops): Likewise.
1368 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1369 * remote-sim.c (init_gdbsim_ops): Likewise.
1370 * remote-st.c (init_st2000_ops): Likewise.
1371 * sol-thread.c (init_sol_core_ops): Likewise.
1372 (init_sol_thread_ops): Likewise.
1373 * v850ice.c (init_850ice_ops): Likewise.
1374 * win32-nat.c (init_child_ops): Likewise.
1375 * wince.c (init_child_ops): Likewise.
1376
82c0260e
AC
13772002-11-12 Andrew Cagney <ac131313@redhat.com>
1378
1379 * utils.c (gdb_realpath): Make rp a constant pointer.
1380
70d35819
AC
13812002-11-12 Andrew Cagney <ac131313@redhat.com>
1382
1383 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1384 a constant buffer; cannonicalize_file_name(); realpath() with a
1385 pathconf() defined buffer, xstrdup().
1386
9835a8b0
AC
13872002-11-12 Andrew Cagney <ac131313@redhat.com>
1388
1389 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1390 to hang2.C; hang3.c to hang3.C.
1391
3f47be5c
EZ
13922002-11-11 Elena Zannoni <ezannoni@redhat.com>
1393
1394 * findvar.c (read_var_value): Reenable TLS code.
1395
13962002-11-11 Elena Zannoni <ezannoni@redhat.com>
1397 Jim Blandy <jimb@redhat.com>
1398
1399 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1400 * target.c (update_current_target): Add
1401 to_get_thread_local_address.
1402 * target.h (to_get_thread_local_address): Export.
1403 (target_get_thread_local_address): Define.
1404 (target_get_thread_local_address_p): Define.
1405 * thread-db.c: Include solib-svr4.h.
1406 (td_thr_tls_get_addr_p): Define.
1407 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1408 (thread_db_get_thread_local_address): New function.
1409 (init_thread_db_ops): Initialize to_get_thread_local_address.
1410 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1411 * configure: Regenerate.
1412 * config.in: Regenerate.
1413
636b1a6d
DC
14142002-11-11 David Carlton <carlton@math.stanford.edu>
1415
1416 * linespec.c (set_flags): New function.
1417 (decode_line_1): Move code into set_flags.
1418
44fe14ab
DC
14192002-11-11 David Carlton <carlton@math.stanford.edu>
1420
1421 * linespec.c (decode_line_1): Move chunks of code to separate
1422 functions.
1423 (initialize_defaults): New function.
1424 (decode_indirect): New function.
1425
e6f181f5
AC
14262002-11-11 Andrew Cagney <ac131313@redhat.com>
1427
8971b011
AC
1428 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1429 instead of void_code_ptr.
1430 (sigtramp_saved_pc): Ditto.
1431
e6f181f5
AC
1432 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1433 i386_fp_regnum_p.
1434
01ad7f36
DJ
14352002-11-10 Daniel Jacobowitz <drow@mvista.com>
1436
1437 * gdbtypes.h (struct main_type): Move artificial flag out of
1438 loc. New member of ``struct field'' named static_kind. Reduce
1439 overloaded meaning of bitsize.
1440 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1441 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1442 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1443
1444 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1445 new fields.
1446 (template_to_fixed_record_type, template_to_static_fixed_type)
1447 (to_record_with_fixed_variant_part): Likewise.
1448 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1449 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1450 * dwarfread.c (struct_type, enum_type): Likewise.
1451 * hpread.c (hpread_read_enum_type)
1452 (hpread_read_function_type, hpread_read_doc_function_type)
1453 (hpread_read_struct_type): Likewise.
1454 * mdebugread.c (parse_symbol): Likewise.
1455
bf1e52be
AC
14562002-11-10 Andrew Cagney <ac131313@redhat.com>
1457
1458 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1459 * stack.c (print_frame_info_base): Update.
1460 (print_frame_info_base, frame_info): Update.
1461 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1462 (sparc_frame_saved_pc): Update.
1463 * ada-lang.c (find_printable_frame): Update.
1464 * breakpoint.c (deprecated_frame_in_dummy): Update.
1465
ce556f85
MK
14662002-11-09 Mark Kettenis <kettenis@gnu.org>
1467
1468 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1469 defined.
1470 (regmap): Extend to cover all registers.
1471 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1472 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1473 definitions.
1474 (fetch_register, sore_register): Simplify.
1475 (old_fetch_inferior_registers, old_store_inferior_registers):
1476 Remove functions.
1477 (cannot_fetch_register, cannot_store_register): Change
1478 implementation to use regmap array to decide which registers
1479 cannot be fetched/stored. This removes $orig_eax from the
1480 registers that cannot be fetched/stored.
1481 (fetch_inferior_registers): Call fetch_register directly instead
1482 of calling old_fetch_inferior_registers.
1483 (store_inferior_registers): Call store_register directly instead
1484 of calling old_store_inferior_registers.
1485 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1486 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1487 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1488
932bb524
KD
14892002-11-09 Klee Dienes <kdienes@apple.com>
1490
1491 * i387-tdep.c (i387_supply_register): When called with NULL as a
1492 buffer, mark the register as not provided (to mirror the behavior
1493 of supply_register).
1494 (i387_supply_fxsave): Ditto.
1495 (i387_supply_fsave): Ditto (inherits the behavior from
1496 i387_supply_register).
1497
ebe68b27
KD
14982002-11-09 Klee Dienes <kdienes@apple.com>
1499
1500 * blockframe.c (sigtramp_saved_pc): Use
1501 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1502 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1503 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1504
15220c65
AC
15052002-11-09 Andrew Cagney <ac131313@redhat.com>
1506
1507 * frame.c (get_prev_frame): Test prev_p to identify a previously
1508 unwound frame. Initialize prev_p.
1509 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1510 comment.
1511
95adb866
AC
15122002-11-09 Andrew Cagney <ac131313@redhat.com>
1513
1514 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1515 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1516 more comments. Zap dead code.
1517
e71ecd70
MK
15182002-11-09 Mark Kettenis <kettenis@gnu.org>
1519
1520 * infcmd.c (print_vector_info, print_float_info): Move code that
1521 checks whether the target has any registers and whether there is a
1522 selected frame up, such that it is also used if a target provides
1523 multi-arch definitions of these functions.
1524
c525330d
AC
15252002-11-08 Andrew Cagney <ac131313@redhat.com>
1526
72bdd927
AC
1527 * Makefile.in (DESTDIR): Define.
1528 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1529 prefix.
1530
c525330d
AC
1531 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1532 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1533
38c968cf
AC
15342002-11-08 Andrew Cagney <ac131313@redhat.com>
1535
1536 * i386-linux-tdep.c: Include "reggroups.h".
1537 (i386_linux_register_reggroup_p): New function.
1538 (i386_linux_init_abi): Set register_reggroup_p to
1539 i386_linux_register_reggroup_p.
1540 * i386-tdep.h (i386_register_reggroup_p): Declare.
1541 * i386-tdep.c: Include "reggroups.h".
1542 (i386_init_reggroups): New function.
1543 (i386_add_reggroups): New function.
1544 (i386_register_reggroup_p): New function.
1545 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1546 (_initialize_i386_tdep): Call i386_init_reggroups.
1547 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1548 specific reggroups.
1549
19e33363
MK
15502002-11-09 Mark Kettenis <kettenis@gnu.org>
1551
371a6e84
MK
1552 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1553 request that's available in *BSD.
1554
94ba925a
MK
1555 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1556
19e33363
MK
1557 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1558 FDOFF_REGNUM.
1559
8779790c
AC
15602002-11-08 Andrew Cagney <ac131313@redhat.com>
1561
1562 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1563 * dummy-frame.c (find_dummy_frame): Rename
1564 generic_find_dummy_frame, make static. Return the dummy frame
1565 instead of the regcache.
1566 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1567 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1568 (dummy_frame_register_unwind): Rename
1569 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1570 * dummy-frame.h (dummy_frame_register_unwind): Rename
1571 generic_call_dummy_register_unwind.
1572
8674b74f
MK
15732002-11-08 Mark Kettenis <kettenis@gnu.org>
1574
1575 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1576 except the inclusion of "i386/tm-i386.h", to...
1577 * config/i386/nm-i386v42mp.h: ...here.
1578 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1579
4c1e7e9d
AC
15802002-11-08 Andrew Cagney <ac131313@redhat.com>
1581
1582 * Makefile.in (frame.o): Update dependencies.
1583 * blockframe.c (current_frame, frame_obstack_alloc)
1584 (frame_saved_regs_zalloc, get_current_frame)
1585 (set_current_frame, create_new_frame)
1586 (set_unwind_by_pc, get_next_frame)
1587 (flush_cached_frames, reinit_frame_cache)
1588 (frame_saved_regs_register_unwind)
1589 (deprecated_generic_get_saved_register)
1590 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1591 (_initialize_blockframe): Move frame code from here...
1592 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1593 "annotate.h" and "dummy-frame.h".
1594 (_initialize_frame): New function.
1595
921e78cf
JB
15962002-11-08 Jim Blandy <jimb@redhat.com>
1597
1598 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1599 when we finish a function a context.
1600 * buildsym.h (outermost_context_p): New macro.
1601 (Bug analyzed by David Edelsohn.)
1602
9c1412c1
AC
16032002-11-08 Andrew Cagney <ac131313@redhat.com>
1604
1605 * blockframe.c: Include "dummy-frame.h".
1606 (struct dummy_frame, dummy_frame_stack)
1607 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1608 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1609 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1610 (generic_save_call_dummy_addr, generic_pop_current_frame)
1611 (generic_pop_dummy_frame, generic_fix_call_dummy)
1612 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1613 dummy frame code from here...
1614 * dummy-frame.c: ...to here. New file.
1615 * dummy-frame.h: New file.
1616 (generic_call_dummy_register_unwind): Declare.
1617 (generic_find_dummy_frame): Declare.
1618 * Makefile.in (SFILES): Add dummy-frame.c.
1619 (dummy-frame.o): Specify dependencies.
1620 (dummy_frame_h): Define.
1621 (COMMON_OBS): Add dummy-frame.o.
1622 (blockframe.o): Update dependencies.
1623
208d8187
JB
16242002-11-08 Jim Blandy <jimb@redhat.com>
1625
1626 * dwarf2read.c (read_func_scope): Restore local_symbols and
1627 param_symbols after we finish the function context. (Based on a
1628 patch from David Edelsohn.)
1629
413dad4d
DC
16302002-11-08 David Carlton <carlton@math.stanford.edu>
1631
1632 * linespec.c (symbol_found): New function.
1633 (minsym_found): New function.
1634 (decode_line_1): Separate out some code into separate functions.
1635
5512c44a
JB
16362002-11-08 Joel Brobecker <brobecker@gnat.com>
1637
1638 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1639 the benefit of the interix target.
1640 * i386-tdep.h (i386_frameless_signal_p): Declare.
1641
1b33ef47
AC
16422002-11-08 Andrew Cagney <ac131313@redhat.com>
1643
1644 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1645 declaration that snuck in from change below.
1646
23a34459
AC
16472002-11-06 Andrew Cagney <cagney@redhat.com>
1648
1649 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1650 all callers.
1651 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1652 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1653 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1654 (i386_mxcsr_regnum_p): new function. Use instead of
1655 MXCSR_REGNUM_P.
1656 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1657 (i386_sse_regnum_p): Declare.
1658 (i386_mxcsr_regnum_p): Declare.
1659 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1660 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1661 (IS_FP_REGNUM): Update definition.
1662 (IS_FPU_CTRL_REGNUM): Update definition..
1663 (IS_SSE_REGNUM): Update definition..
1664 * i386v-nat.c (register_u_addr): Update.
1665 * go32-nat.c (fetch_register): Update.
1666 (store_register): Update.
1667
d709c020
JB
16682002-11-07 Joel Brobecker <brobecker@gnat.com>
1669
1670 Preparation work to convert the hppa targets to multiarch partial.
1671
1672 * hppa-tdep.c: Add new functions replacing macro bodies from
1673 config/pa/tm-hppa.h. These function will be used to initialize
1674 the gdbarch structure. Import some comments from tm-hppa.h,
1675 and place them where appropriate, to avoid loosing them when
1676 we cleanup this file.
1677 (hppa_reg_struct_has_addr): New function.
1678 (hppa_inner_than): New function.
1679 (hppa_stack_align): New function.
1680 (hppa_pc_requires_run_before_use): New function.
1681 (hppa_instruction_nullified): New function.
1682 (hppa_register_byte): New function.
1683 (hppa_register_virtual_type): New function.
1684 (hppa_store_struct_return): New function.
1685 (hppa_cannot_store_register): New function.
1686 (hppa_frame_args_address): New function.
1687 (hppa_frame_locals_address): New function.
1688 (hppa_smash_text_address): New function.
1689 (hppa_coerce_float_to_double): New function. Requires the inclusion
1690 of "language.h".
1691
1692 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1693
1694 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1695 gdbarch-eligible macro to a call to the new associated function
1696 created in hppa-tdep.c.
1697 (INNER_THAN): Likewise.
1698 (STACK_ALIGN): Likewise.
1699 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1700 (INSTRUCTION_NULLIFIED): Likewise.
1701 (REGISTER_BYTE): Likewise.
1702 (REGISTER_VIRTUAL_TYPE): Likewise.
1703 (STORE_STRUCT_RETURN): Likewise.
1704 (CANNOT_STORE_REGISTER): Likewise.
1705 (FRAME_ARGS_ADDRESS): Likewise.
1706 (FRAME_LOCALS_ADDRESS): Likewise.
1707 (SMASH_TEXT_ADDRESS): Likewise.
1708 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1709 (ABOUT_TO_RETURN): Delete, as no longer used.
1710
83c31e7d
FN
17112002-11-07 Fernando Nasser <fnasser@redhat.com>
1712
1713 * printcmd.c (disassemble_command): Remove obsolete function.
1714 (_initialize_printcmd): Do not create disassemble command here.
1715 * cli/cli-cmds.c (disassemble_command): New function. Implements
1716 disassemble command.
1717 (init_cli_cmds): Create disassemble command here instead.
1718
0ec30a36
AC
17192002-11-07 Andrew Cagney <ac131313@redhat.com>
1720
1721 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1722
e600bd34
AC
17232002-11-07 Andrew Cagney <ac131313@redhat.com>
1724
1725 * regcache.h (regcache_cooked_read_using_offset_hack)
1726 (regcache_cooked_write_using_offset_hack): Delete declarations.
1727 (register_changed): Delete declaration.
1728 * regcache.c (regcache_cooked_read_using_offset_hack)
1729 (regcache_cooked_write_using_offset_hack): Delete functions.
1730 (cooked_xfer_using_offset_hack): Delete function.
1731 (register_changed): Delete function.
1732
568f8739
JB
17332002-11-07 Jim Blandy <jimb@redhat.com>
1734
1735 * macroscope.c: #include "complaints.h".
1736 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1737 but not in the macro table.
1738 * Makefile.in (macroscope.o): Record dependency.
1739
b0718b7b
JB
17402002-11-07 Joel Brobecker <brobecker@gnat.com>
1741
1742 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1743
2b9e5f3f
AC
17442002-11-07 Andrew Cagney <ac131313@redhat.com>
1745
1746 * regcache.c (deprecated_registers_fetched): Update.
1747 * regcache.h (deprecated_registers_fetched): Rename
1748 registers_fetched.
1749 * remote-vxsparc.c (vx_read_register): Update.
1750 * remote-vxmips.c (vx_read_register): Update.
1751 * remote-vx68.c (vx_read_register): Update.
1752 * irix5-nat.c (fetch_core_registers): Update.
1753 * mipsm3-nat.c (fetch_inferior_registers): Update.
1754 * sun3-nat.c (fetch_inferior_registers): Update.
1755 * symm-nat.c (fetch_inferior_registers): Update.
1756 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1757 (fetch_core_registers): Update.
1758 (fetch_kcore_registers): Update.
1759 * mips-nat.c (fetch_inferior_registers): Update.
1760 * corelow.c (get_core_registers): Update.
1761 * a68v-nat.c (fetch_inferior_registers): Update.
1762
e6e68f1f
JB
17632002-11-06 Joel Brobecker <brobecker@gnat.com>
1764
1765 Put in place the framework necessary for multiarching the hppa targets.
1766 * hppa-tdep.c (hppa_gdbarch_init): New function.
1767 (hppa_dump_tdep): New function.
1768 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1769 tdep structure dumper.
1770 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1771 until the multi-arching conversion has partially been completed.
1772
492254e9
AC
17732002-11-06 Andrew Cagney <ac131313@redhat.com>
1774
1775 * valops.c (value_assign): Merge lval_register case into
1776 lval_reg_frame_relative. Use frame_register and
1777 regcache_cooked_write instead of get_saved_register and
1778 write_register_bytes. After flushing the register cache, try to
1779 re-select the selected frame.
1780
8262ee23
AC
17812002-11-06 Andrew Cagney <ac131313@redhat.com>
1782
1783 * regcache.h (deprecated_register_valid): Rename register_valid.
1784 * regcache.c: Update.
1785 * ia64-aix-nat.c: Update.
1786 * i386gnu-nat.c: Update.
1787 * alpha-nat.c: Update.
1788 * sparc-nat.c: Update.
1789 * lynx-nat.c: Update.
1790 * remote-mips.c: Update.
1791
4facf7e8
JB
17922002-11-06 Joel Brobecker <brobecker@gnat.com>
1793
1794 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1795 to end of file, to be more consistent with the pratice followed
1796 by other targets.
1797
f9418c0f
AC
17982002-11-06 Andrew Cagney <ac131313@redhat.com>
1799
1800 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1801 (print_float_info): Print registers in float_reggroup.
1802 (print_vector_info): Print registers in vector_reggroup.
1803 (default_print_registers_info): When all, print registers in
1804 all_reggroup. Otherwize, print registers in general_reggroup.
1805 (registers_info): Rewrite. Add support for register groups.
1806 Eliminate a goto.
1807
3fe235a7
EZ
18082002-11-06 Elena Zannoni <ezannoni@redhat.com>
1809
1810 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1811 ages.
1812 (symtab_symbol_info): Remove eons old ifdeffed out code.
1813 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1814 command.
1815
ef944135
TR
18162002-11-06 Theodore A. Roth <troth@openavr.org>
1817
1818 * c-exp.y: Add missing semi-colons.
1819 * f-exp.y: Add missing semi-colons.
1820 * m2-exp.y: Add missing semi-colons.
1821 * p-exp.y: Add missing semi-colons.
1822 Add empty action to start rule to avoid a type clash error when
1823 building with bison >= 1.50.
1824
f8302a57
JB
18252002-11-06 Jim Blandy <jimb@redhat.com>
1826
1827 * macrotab.h (struct macro_source_file): Doc fix.
1828
6e382aa3
JJ
18292002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1830
1831 * varobj.c (child_exists, cplus_number_of_children): Change
1832 STREQ macro references to strcmp.
1833 (cplus_name_of_child): Change code to handle the fact that
1834 fields are not necessarily contiguous with regards to their
1835 access control. This is a fix for PR gdb/792.
1836
a216a322
AC
18372002-11-05 Andrew Cagney <ac131313@redhat.com>
1838
1839 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1840 * gdbarch.h, gdbarch.c: Regnerate.
1841 * frame.h (frame_register): Declare.
1842 * frame.c (frame_register): New function.
1843 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1844 GET_SAVED_REGISTER, otherwize call
1845 generic_unwind_get_saved_register.
1846 (frame_register_read): Use frame_register instead of
1847 get_saved_register.
1848
7d5b6fdd
EZ
18492002-11-05 Elena Zannoni <ezannoni@redhat.com>
1850
1851 From Jim Ingham <jingham@apple.com>:
1852 * event-top.c (gdb_disable_readline): New function.
1853 (_initialize_event_loop): Move comment.
1854
b7c64260
EZ
18552002-11-05 Elena Zannoni <ezannoni@redhat.com>
1856
1857 * event-loop.c (start_event_loop): Add comment.
1858 Update copyright.
1859
c2e1b8f2
AC
18602002-11-05 Andrew Cagney <ac131313@redhat.com>
1861
1862 * infcmd.c (default_print_registers_info): Do not call
1863 PRINT_REGISTER_HOOK.
1864
87647bb0
AC
18652002-11-05 Andrew Cagney <ac131313@redhat.com>
1866
1867 * sparc-tdep.c (sparc_print_register_hook): Make static.
1868 (sparc_print_registers_info): New function.
1869 (sparc_do_registers_info): New function.
1870 (sparclet_print_registers_info): New function.
1871 (sparclet_do_registers_info): New function.
1872 (do_sparc_print_registers_info): New function.
1873 (sparc_print_registers): New static function, clone of infcmd.c's
1874 default_print_registers_info.
1875 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1876 (sparclet_do_registers_info): Declare.
1877 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1878 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1879 Re-define.
1880 (sparc_do_registers_info): Declare.
1881 (PRINT_REGISTER_HOOK): Delete macro.
1882 (sparc_print_register_hook): Delete declaration.
1883
8155455b
DC
18842002-11-05 David Carlton <carlton@math.stanford.edu>
1885
1886 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1887 functions.
1888 (lookup_symbol_aux_local): New function.
1889 (lookup_symbol_aux_symtabs): New function.
1890 (lookup_symbol_aux_psymtabs): New function.
1891
29924310
DC
18922002-11-05 David Carlton <carlton@math.stanford.edu>
1893
1894 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1895 previous values of 'objfile' and 'block'.
1896
cc303028
PM
18972002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1898
1899 * values.c (value_change_enclosing_type): Set
1900 enclosing_type field correctly also for the case where
1901 more memory needs to be allocated.
1902
1d70089a
MK
19032002-11-03 Mark Kettenis <kettenis@gnu.org>
1904
f16a25ae
MK
1905 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1906 of puts_filtered.
1907
1d70089a
MK
1908 * i387-tdep.c (i387_print_float_info): Replace calls to
1909 register_read and deprecated_read_register_gen with calls to
1910 frame_register_read, and make the necessary adjustments to the
1911 surrounding code.
1912
7e20f3fb
AC
19132002-11-02 Andrew Cagney <ac131313@redhat.com>
1914
1915 * gdbarch.sh (register_reggroup_p): Allow default value.
1916 * gdbarch.h, gdbarch.c: Regenerate.
1917
192dbe33
AC
19182002-11-02 Andrew Cagney <ac131313@redhat.com>
1919
1920 * regcache.h: Add coment indicating replacements for deprecated
1921 functions.
1922
b59ff9d5
AC
19232002-11-02 Andrew Cagney <cagney@redhat.com>
1924
1925 * reggroups.h, reggroups.c: New files.
1926 * regcache.c: Include "reggroups.h".
1927 (enum regcache_dump_what): Add `regcache_dump_groups'.
1928 (regcache_dump): Contract size of the "Type" column. When
1929 specified, dump the register's groups.
1930 (maintenance_print_register_groups): New function.
1931 (_initialize_regcache): Add command `maint print register-groups'.
1932 * Makefile.in (COMMON_OBS): Add reggroups.o
1933 (SFILES): Add reggroups.c.
1934 (reggroups_h): Define.
1935 (regcache.o, gdbarch.o): Update dependencies.
1936 (reggroups.o): Specify dependencies.
1937 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1938 Add opaque declaration for `struct reggroup' in generated .h file.
1939 Include "reggroups.h" in generated .c file.
1940 gdbarch.h, gdbarch.c: Re-generate.
1941
4caf0990
AC
19422002-11-02 Andrew Cagney <cagney@redhat.com>
1943
1944 * regcache.h (deprecated_read_register_gen): Rename
1945 read_register_gen.
1946 (deprecated_write_register_gen): Rename write_register_gen.
1947 * i387-tdep.c: Update.
1948 * x86-64-linux-nat.c: Update
1949 * wince.c: Update.
1950 * thread-db.c: Update.
1951 * win32-nat.c: Update.
1952 * mips-tdep.c: Update.
1953 * d10v-tdep.c: Update.
1954 * cris-tdep.c: Update.
1955 * remote-sim.c: Update.
1956 * remote-rdi.c: Update.
1957 * remote-rdp.c: Update.
1958 * frame.c: Update.
1959 * target.c: Update.
1960 * blockframe.c: Update.
1961 * x86-64-tdep.c: Update.
1962 * xstormy16-tdep.c: Update.
1963 * sh-tdep.c: Update.
1964 * s390-tdep.c: Update.
1965 * rs6000-tdep.c: Update.
1966 * sparc-tdep.c: Update.
1967 * i386-tdep.c: Update.
1968 * dwarf2cfi.c: Update.
1969 * regcache.c: Update.
1970
7a7adcdf
JB
19712002-11-01 Joel Brobecker <brobecker@gnat.com>
1972
1973 New interix-specific files:
1974 * config/i386/nm-interix.h: New file.
1975 * config/i386/interix.mh: New file.
1976 * config/i386/interix.mt: New file.
1977 * i386-interix-nat.c: New file.
1978 * i386-interix-tdep.c: New file.
1979
bdcdd535
AC
19802002-11-01 Andrew Cagney <cagney@redhat.com>
1981
1982 * frame.h (deprecated_generic_get_saved_register): Rename
1983 generic_get_saved_register.
1984 * blockframe.c (deprecated_generic_get_saved_register): Update.
1985 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1986 (xstormy16_frame_saved_register): Update.
1987 * sh-tdep.c (sh_gdbarch_init): Update.
1988 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1989 * ia64-tdep.c (ia64_get_saved_register): Update.
1990 * cris-tdep.c (cris_gdbarch_init): Update.
1991 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1992 * arm-tdep.c (arm_gdbarch_init): Update.
1993
2a4b7c45
DJ
19942002-10-31 Daniel Jacobowitz <drow@mvista.com>
1995
1996 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1997
ef17e74b
DJ
19982002-10-31 Daniel Jacobowitz <drow@mvista.com>
1999
2000 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2001 trampolines in sigaction.
2002
4904ba5b
AC
20032002-10-31 Andrew Cagney <cagney@redhat.com>
2004
2005 * h8300-tdep.c: Include "gdb_assert.h".
2006 (h8300_print_register): Add gdbarch, file and frame parameters.
2007 Use frame_read_unsigned_register to read the register's value.
2008 Use fprintf_filtered to display output.
2009 (h8300_print_registers_info): Replace h8300_do_registers_info.
2010 (h8300_gdbarch_init): Set print_registers_info.
2011
f908a0eb
AC
20122002-10-31 Andrew Cagney <cagney@redhat.com>
2013
2014 * frame.c (frame_read_unsigned_register): New function.
2015 (frame_read_signed_register): New function.
2016 * frame.h (frame_read_unsigned_register): Declare.
2017 (frame_read_signed_register): Declare.
2018
c5646e11
AC
20192002-10-31 Andrew Cagney <cagney@redhat.com>
2020
2021 * h8500-tdep.c (h8500_print_registers_info): New static function,
2022 clone of infcmd.c's default_print_registers_info.
2023 (h8500_do_registers_info): New funtion.
2024 (h8500_print_register_hook): Rename print_register_hook, make
2025 static.
2026
2027 * config/h8500/tm-h8500.h: Update copyright.
2028 (DEPRECATED_DO_REGISTERS_INFO): Define.
2029 (h8500_do_registers_info: Declare.
2030 (PRINT_REGISTER_HOOK): Delete macro.
2031 (print_register_hook): Delete function.
2032
0bdd672b
AC
20332002-10-31 Andrew Cagney <cagney@redhat.com>
2034
2035 * z8k-tdep.c (z8k_print_register_hook): Make static.
2036 (z8k_print_registers_info): New static function, clone of
2037 infcmd.c's default_print_registers_info.
2038 (z8k_do_registers_info): New function. Wrap
2039 z8k_print_registers_info.
2040 * config/z8k/tm-z8k.h: Update copyright.
2041 (PRINT_REGISTER_HOOK): Delete macro.
2042 (z8k_print_register_hook): Delete declaration.
2043 (DEPRECATED_DO_REGISTERS_INFO): Define.
2044 (z8k_do_registers_info): Declare.
2045
bf9c25dc
JB
20462002-10-30 Joel Brobecker <brobecker@gnat.com>
2047
2048 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2049 as this is already provided by value.h, and was actually causing
2050 a compilation error because of a conflict in parameter type
2051 declaration due to a missing const keyword.
2052 (low_text_segment_addres): Fix a compilation warning.
2053
2c665b51
DJ
20542002-10-29 Daniel Jacobowitz <drow@mvista.com>
2055
2056 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2057 registers without a name.
2058 (mips_linux_cannot_store_register): Don't store registers without
2059 a name.
2060
e70ea697
DC
20612002-10-28 David Carlton <carlton@math.stanford.edu>
2062
2063 * symtab.c (find_addr_symbol): Delete. (It was already commented
2064 out.)
2065 * symtab.h: Delete prototype for find_addr_symbol.
2066
903ad3a6
AC
20672002-10-26 Andrew Cagney <cagney@redhat.com>
2068
2069 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2070 DO_REGISTERS_INFO.
2071 gdbarch.h, gdbarch.c: Re-generate.
2072 * infcmd.c (default_print_registers_info): Update reference.
2073 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2074 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2075 * sh-tdep.c (sh_gdbarch_init): Ditto.
2076 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2077 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2078
ab91194c
MK
20792002-10-26 Mark Kettenis <kettenis@gnu.org>
2080
e3033f15
MK
2081 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2082 cfi_init_extra_frame_info.
2083 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2084 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2085
b83b026c
MK
2086 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2087 target where necessary. Add more comments and remove the ones
2088 that don't provide any useful information.
2089
267bf4bb
MK
2090 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2091 deprecated_read_register_dummy with
2092 frame_unwind_unsigned_register.
2093
751f1375
MK
2094 * i386-tdep.c (i386_extract_struct_value_address): Use
2095 regcache_raw_read_unsigned instead of
2096 regcache_cooked_read_unsigned since we know that the register
2097 we're reading isn't a pseudo register. Rename variable 'val' into
2098 the more descriptive 'addr'.
2099
26abbdc4
MK
2100 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2101 (x86_64_push_return_address): Add comment.
2102 (x86_64_pop_frame): Make static.
2103 (examine_argument): Clarify comment.
2104 (x86_64_skip_prologue): Make prolog_expact variable static.
2105
9f1549cc
MK
2106 * dwarf2cfi.c: Fix some formatting problems.
2107 (context_cpy, read_encoded_pointer): Clarify comments.
2108
ab91194c
MK
2109 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2110 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2111 i386 target back into x86_64_gdbarch_init. Add some comments and
2112 remove meaningless ones.
2113
72367fb4
AC
21142002-10-25 Andrew Cagney <cagney@redhat.com>
2115
2116 * complaints.h (struct deprecated_complaint): Rename `struct
2117 complaint'.
2118 * complaints.c (complain): Update.
2119 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2120 incorrect comment indicating that "symfile.h" was being included
2121 for the `struct complaint' definition.
2122 * remote-vx.c: Update.
2123 * objc-lang.c: Update.
2124 * xcoffread.c: Update.
2125 * hpread.c: Update.
2126 * mdebugread.c: Update.
2127 * stabsread.c: Update.
2128 * dwarf2read.c: Update.
2129 * dwarfread.c: Update.
2130 * elfread.c: Update.
2131 * coffread.c: Update.
2132 * stabsread.h: Update.
2133 * dbxread.c: Update.
2134 * buildsym.c: Update.
2135 * gdbtypes.c: Update.
2136 * macrotab.c: Update.
2137
1f2baacc
MK
21382002-10-25 Mark Kettenis <kettenis@gnu.org>
2139
0c1a73d6
MK
2140 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2141 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2142 (x86_64_init_abi): ...new function.
2143
6aee4d54 2144 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
2145 * i386v-nat.c: Include "i386-tdep.h".
2146
8f9cbe01
AC
21472002-10-25 Andrew Cagney <cagney@redhat.com>
2148
5f11f355
AC
2149 * gdbtypes.c (address_space_name_to_int): Update.
2150 (address_space_int_to_name): Update.
2151 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2152 multi-arch predicate.
2153 (address_class_name_to_type_flags): Ditto.
2154 * gdbarch.h, gdbarch.c: Re-generate.
2155
8f9cbe01
AC
2156 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2157
e8d96a5d
MH
21582002-10-24 Martin M. Hunt <hunt@redhat.com>
2159
2160 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2161
fe39c653
EZ
21622002-10-24 Elena Zannoni <ezannoni@redhat.com>
2163
2164 * symtab.h (INIT_SAL): Delete macro.
2165 (init_sal): Export.
2166 * symtab.c (init_sal): New function.
2167
2168 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2169 to init_sal function call.
2170 (find_sal_from_funcs_and_line): Ditto.
2171 (all_sals_for_line): Ditto.
2172 * breakpoint.c (create_internal_breakpoint): Ditto.
2173 (create_fork_vfork_event_catchpoint): Ditto.
2174 (create_exec_event_catchpoint): Ditto.
2175 (parse_breakpoint_sals): Ditto.
2176 (watch_command_1): Ditto.
2177 (handle_gnu_4_16_catch_command): Ditto.
2178 (clear_command): Ditto.
2179 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2180 * infcmd.c (run_stack_dummy): Ditto.
2181 * infrun.c (process_event_stop_test): Ditto.
2182 (check_sigtramp2): Ditto.
2183 (step_over_function): Ditto.
2184 * linespec.c (decode_line_2): Ditto.
2185 (decode_line_1): Ditto.
2186 * source.c (line_info): Ditto.
2187 * symtab.c (find_pc_sect_line): Ditto.
2188
baed091b
ML
21892002-10-24 Michal Ludvig <mludvig@suse.cz>
2190
2191 * dwarf2cfi.c (struct context)
2192 (struct context_reg): Moved to dwarf2cfi.h
2193 (context_alloc, frame_state_alloc, context_cpy):
2194 Made extern instead of static, removed prototypes.
2195 * dwarf2cfi.h (struct context)
2196 (struct context_reg): New, moved from dwarf2cfi.c
2197 (context_alloc, frame_state_alloc, context_cpy):
2198 New prototypes.
2199 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2200 Changed from static to extern.
2201 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2202 (LINUX_SIGCONTEXT_FP_OFFSET)
2203 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2204 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2205 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2206 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2207 set_gdbarch_*() calls now use x86-64 specific functions
2208 instead of DWARF2 CFI ones.
2209 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2210 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2211 (x86_64_init_extra_frame_info): New prototypes.
2212
c38da1af
DC
22132002-10-23 David Carlton <carlton@math.stanford.edu>
2214
2215 * linespec.c: #include "parser-defs.h".
2216 Delete prototype for find_template_name_end.
2217 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2218
fb9b6b35
JJ
22192002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2220
2221 * NEWS: add recent mi fixes.
2222 * varobj.c (struct varobj): Add new "updated" flag.
2223 (new_variable): Default "updated" flag to 0.
2224 (varobj_set_value): Set "updated" flag to 1 if value
2225 changes.
2226 (varobj_update): Check varobj "updated" flag before
2227 comparing old and refreshed values. Fix for
2228 PR gdb/702.
2229
8da065d5
DC
22302002-10-23 David Carlton <carlton@math.stanford.edu>
2231
2232 * parse.c (parse_exp_1): Use BLOCK_START.
2233 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2234 SYMBOL_BLOCK_VALUE.
2235 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2236
87f2f08c
DC
22372002-10-23 David Carlton <carlton@math.stanford.edu>
2238
2239 * symtab.c: Delete cplusplus_hint.
2240 Delete prototype for find_template_name_end.
2241
88cda038
EZ
22422002-10-23 Elena Zannoni <ezannoni@redhat.com>
2243
2244 * symtab.h: Update comment.
2245
2625d86c
MS
22462002-10-23 Michael Snyder <msnyder@redhat.com>
2247
2248 * printcmd.c (address_info): Restore quotes in output.
2249 * valops.c (value_of_local): Restore quotes in error message.
2250
9cc0d196
EZ
22512002-10-23 Elena Zannoni <ezannoni@redhat.com>
2252
2253 * symtab.c (symbol_demangled_name): New function.
2254 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2255 turning most of it into a function.
2256 (symbol_demangled_name): Export.
2257
19de93d0
MS
22582002-10-23 Michael Snyder <msnyder@redhat.com>
2259
2260 * valops.c (value_of_local): Restore quotes in error message.
2261
89aad1f9
EZ
22622002-10-23 Elena Zannoni <ezannoni@redhat.com>
2263
2264 * symtab.c (symbol_init_language_specific): New function.
2265 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2266 turning most of it into a function.
2267 (symbol_init_language_specific): Export.
2268
d9fa45fe
DC
22692002-10-23 David Carlton <carlton@math.stanford.edu>
2270
2271 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2272 (dwarf_attr_name): Ditto.
2273 (dwarf_type_encoding_name): Ditto.
2274 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2275 (process_die): Handle DW_TAG_namespace,
2276 DW_TAG_imported_declaration, DW_TAG_imported_module.
2277 (read_namespace): New function.
2278
1045b512
JB
22792002-10-22 Joel Brobecker <brobecker@gnat.com>
2280
2281 * configure.in: Define NEW_PROC_API on Interix too.
2282 * configure: Regenerate.
2283
22842002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
2285
2286 * configure: Regenerate using the proper version of autoconf.
2287
3987b9d4
EZ
22882002-10-21 Elena Zannoni <ezannoni@redhat.com>
2289
2290 * findvar.c (read_var_value): Temporarily disable TLS code, until
2291 complete TLS support is added.
2292
9d774e44
EZ
22932002-10-21 Jim Blandy <jimb@redhat.com>
2294 Elena Zannoni <ezannoni@redhat.com>
2295
2296 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2297 for thread local storage locations.
2298 (struct symbol): Add objfile field.
2299 (SYMBOL_OBJFILE): Define.
2300 * dwarf2read.c (is_thread_local): New static variable.
2301 (new_symbol): If variable is in thread local fill in address class
2302 and objfile appropriately.
2303 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2304 stack operation.
2305 * printcmd.c (address_info): Print the information for thread
2306 local storage variable.
2307 * findvar.c (read_var_value): In case of thread local variable,
2308 defer to the target vector code to compute address.
2309
bc4a16ae
EZ
23102002-10-21 Elena Zannoni <ezannoni@redhat.com>
2311
2312 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2313 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2314
407caf07
EZ
23152002-10-21 Elena Zannoni <ezannoni@redhat.com>
2316
2317 * symtab.h (address_class): Rename
2318 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2319 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2320 * printcmd.c (address_info): Ditto.
2321 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2322
005328e3
MK
23232002-10-20 Mark Kettenis <kettenis@gnu.org>
2324
afdb036a
MK
2325 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2326 DBREG_DRX macro to acces debug registers.
2327
ca02e098
MK
2328 * Makefile.in (i386obsd-tdep.o): New target.
2329
03cc47f7
MK
2330 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2331 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2332
005328e3
MK
2333 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2334 * config/i386/obsd.mt: New file.
2335 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2336 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2337 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2338 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2339 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2340 * i386obsd-tdep.c: New file.
2341
9c96f9f2
AF
23422002-10-19 Adam Fedor <fedor@gnu.org>
2343
2344 * objc-exp.y (name_not_typename): Fix invalid comment.
2345
ce1ed485
MK
23462002-10-20 Mark Kettenis <kettenis@gnu.org>
2347
2348 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2349 to allocate partial syms and macro byte caches.
2350
1efc7aaa
DC
23512002-10-18 David Carlton <carlton@math.stanford.edu>
2352
2353 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2354
7e1d63ec
AF
23552002-10-18 Adam Fedor <fedor@gnu.org>
2356
2357 * stabsread.c (find_name_end): New function.
2358 (define_symbol): Use it.
2359
6e8d29a9
DJ
23602002-10-18 Daniel Jacobowitz <drow@mvista.com>
2361
2362 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2363 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2364 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2365 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2366
1efc7aaa 23672002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
2368
2369 * symfile.h: Add opaque declaration for struct obstack.
2370 Declare obsavestring to take a const char *.
2371 * symfile.c (obsavestring): Make first argument a const char *.
2372
1aeae86e
AF
23732002-10-16 Adam Fedor <fedor@gnu.org>
2374
2375 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2376 names when matching breakpoints in current file.
2377
8b2dbe47
KB
23782002-10-16 Kevin Buettner <kevinb@redhat.com>
2379
2380 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2381 (read_tag_pointer_type): Add address class support.
2382 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2383 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2384 New methods.
2385 * gdbarch.h, gdbarch.c: Regenerate.
2386 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2387 (make_type_with_address_space, recursive_type_dump): Add address
2388 class support.
2389 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2390 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2391 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2392
74451869
KD
23932002-10-16 Klee Dienes <kdienes@apple.com>
2394
2395 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2396 to get the last character of a char[] buffer, not
2397 name[sizeof(vptr_name)-1].
2398
ff4cb3e8
AF
23992002-10-14 Adam Fedor <fedor@gnu.org>
2400
2401 * symtab.h: New objc_specific struct.
2402 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2403 (SYMBOL_DEMANGLED_NAME): Likewise.
2404
da2cf7e0
AF
24052002-10-14 Adam Fedor <fedor@gnu.org>
2406
2407 * symfile.c (init_filename_language_table): Add ObjC file extension.
2408
4a351cef
AF
24092002-10-14 Adam Fedor <fedor@gnu.org>
2410
2411 * utils.c (puts_filtered_tabular): New function.
2412 (fprintf_symbol_filtered): Get ObjC demangled name.
2413 * defs.h (puts_filtered_tabular): Declared.
2414
9750e763
KB
24152002-10-14 Kevin Buettner <kevinb@redhat.com>
2416
2417 * c-lang.h (c_type_print_varspec_prefix): Delete.
2418 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2419 ``need_post_space'' parameter. Adjust all callers.
2420
eee771c1
DJ
24212002-10-14 Daniel Jacobowitz <drow@mvista.com>
2422
2423 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2424 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2425 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2426 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2427
46c82446
AF
24282002-10-13 Adam Fedor <fedor@gnu.org>
2429
2430 * source.c (print_source_lines): Update comments.
2431
d069f99d
AF
24322002-10-13 Adam Fedor <fedor@gnu.org>
2433
2434 * valops.c (value_of_local): New function.
2435 (value_of_this): Use it.
2436 * value.h (value_of_local): Declared.
2437
53c551b7
AF
24382002-10-13 Adam Fedor <fedor@gnu.org>
2439
2440 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2441 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2442
eb392fbf
AF
24432002-10-12 Adam Fedor <fedor@gnu.org>
2444
2445 * language.c (binop_result_type): Add language_objc to case.
2446 (integral_type): Likewise.
2447 (character_type): Likewise.
2448 (string_type): Likewise.
2449 (boolean_type): Likewise.
2450 (structured_type): Likewise.
2451 (binop_type_check): Likewise.
2452
e2b23ee9
AF
24532002-10-11 Adam Fedor <fedor@gnu.org>
2454
2455 * printcmd.c (address_info): Print 'self' for ObjC.
2456
b01ab485
AF
24572002-10-11 Adam Fedor <fedor@gnu.org>
2458
2459 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2460 OP_SELF.
2461
806e6073
AF
24622002-10-11 Adam Fedor <fedor@gnu.org>
2463
2464 * language.h (CAST_IS_CONVERSION): Add language_objc.
2465
50f85cdf
AF
24662002-10-11 Adam Fedor <fedor@gnu.org>
2467
2468 * defs.h (enum language): Add language_objc.
2469
0d540cdf
KD
24702002-10-11 Klee Dienes <kdienes@apple.com>
2471
69266111 2472 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
2473 * gdbcore.h (read_memory_typed_address): Add prototype.
2474 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2475 to read a value destined for a CORE_ADDR, not read_memory_integer.
2476 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2477 (f77_get_dynamic_lowerbound): Ditto.
2478
d5dc7960
MH
24792002-10-11 Martin M. Hunt <hunt@redhat.com>
2480
2481 * utils.c (string_to_core_addr): After turning string into
2482 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2483 which will do necessary sign-extension, etc.
2484
8343f86c
DJ
24852002-10-11 Daniel Jacobowitz <drow@mvista.com>
2486
2487 * c-exp.y (THIS): Delete token and grammar rule.
2488 (yylex): Don't return THIS.
2489 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2490 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2491 * demangle.c (cplus_markers): Update comment. Put '$'
2492 first. Remove CPLUS_MARKER.
2493 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2494 * jv-exp.y (THIS): Delete token and grammar rule.
2495 (yylex): Don't return THIS.
2496 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2497 * objc-exp.y (THIS): Delete token and grammar rule.
2498 (yylex): Don't return THIS.
2499 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2500 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2501 (read_member_functions): Likewise for opname.
2502 (read_tilde_fields): Use is_cplus_marker.
2503
2504 * defs.h (CPLUS_MARKER): Don't define.
2505 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2506 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2507 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2508 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2509 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2510
2511 * config/i386/tm-i386v4.h: Delete file.
2512 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2513 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2514 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2515 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2516 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2517 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2518 * config/i386/i386v4.mt (TM_FILE): Likewise.
2519 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2520
967c0d83
MM
25212002-10-10 Marko Mlinar <markom@opencores.org>
2522
2523 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2524 accidentially not commited 2002-10-09
2525 * gdbarch.h, gdbarch.c: Re-generate.
2526
f74fa174
MM
25272002-10-09 Marko Mlinar <markom@opencores.org>
2528
2529 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2530 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2531 * gdbarch.h, gdbarch.c: Re-generate.
2532
57349743
JB
25332002-10-08 Petr Sorfa <petrs@caldera.com>
2534
2535 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2536
2537 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2538 so we can work on more than one compilation unit at a time. This
2539 helps prepare GDB to handle inter-CU die references.
2540 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2541 the code to be defined before struct comp_unit_head.
2542 (comp_unit_head): Added new members - offset, cu_head,
2543 begin_die, next and dwarf2_abbrevs.
2544 (dwarf2_abbrevs): Removed single static var; now member of
2545 struct comp_unit_head.
2546 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2547 members.
2548 (psymtab_to_symtab_1): Changed to work with the new
2549 struct comp_unit_head.
2550 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2551 constructs the dwarf2_abbrevs[] inside the cu_header.
2552 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2553 dwarf2_abbrev table to clean up.
2554 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2555 handling of dwarf2_abbrevs inside the cu_header.
2556 (read_partial_die): Now supports the call to the new
2557 dwarf2_lookup_abbrev.
2558 (read_full_die): Now supports the call to the new
2559 dwarf2_lookup_abbrev.
2560
4092aadb
CF
25612002-10-06 Christopher Faylor <cgf@redhat.com>
2562
2563 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2564 insure that shell variables, such as "transformed_name" are propagated
2565 to later shell statements in rule.
2566
af0b2512
MK
25672002-10-06 Mark Kettenis <kettenis@gnu.org>
2568
2569 * config/i386/nm-i386sco.h: Add protection against
2570 multiple-inclusion. Include "i386/nm-i386v.h".
2571 (REGISTER_U_ADDR): Remove define.
2572 (i386_register_u_addr): Remove prototype.
2573
d6020d45
MS
25742002-10-04 Michael Snyder <msnyder@redhat.com>
2575
2576 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2577 before treating it as a single-step event.
2578
7248f48e
AF
25792002-10-03 Adam Fedor <fedor@gnu.org>
2580
2581 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2582 (objc_demangle): Remove assignment in if statements, Replace
2583 free with xfree.
2584 (add_msglist): Likewise.
2585 (end_msglist): Likewise.
2586 (complare_selectors): Likewise.
2587 (selectors_info): Likewise.
2588 (compare_classes): Likewise.
2589 (classes_info): Likewise.
2590 (print_object_command): Likewise.
2591 (find_objc_msgcall_submethod): Replace PTR with void *.
2592 * objc-lang.h: Remove check for __STDC__.
2593
52c6a6ac
JJ
25942002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2595
2596 * ui-out.h (ui_out_field_fmt_int): New prototype.
2597 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2598 of field width and alignment.
2599 * stack.c (print_frame_info_base): When printing frame level, use
2600 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2601 PR gdb/192
2602
7e3cec17
JJ
26032002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2604
2605 * MAINTAINERS: Add self to Write After Approval list.
2606
a58dd373
EZ
26072002-10-02 Elena Zannoni <ezannoni@redhat.com>
2608
2609 * infcmd.c (interrupt_target_command_wrapper): Delete.
2610 (interrupt_target_command): Make non static.
2611 (nofp_registers_info): Make static.
2612 * stack.c (return_command_wrapper): Delete.
2613 (return_command): Make non static.
2614
cee6ddeb
EZ
26152002-10-02 Elena Zannoni <ezannoni@redhat.com>
2616
2617 * event-top.c (gdb_setup_readline): New function. Code moved from
2618 _initialize_event_loop().
2619 (_initialize_event_loop): Call gdb_setup_readline().
2620
c4ed33b9
AC
26212002-10-02 Andrew Cagney <ac131313@redhat.com>
2622
2623 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2624 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2625 * gdbarch.h, gdbarch.c: Re-generate.
2626
cef4f5dd
DJ
26272002-10-02 Daniel Jacobowitz <drow@mvista.com>
2628
2629 Fix PR gdb/778
2630 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2631 before recursing.
2632 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2633 of fill_in_vptr_fieldno.
2634
36dc181b 26352002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 2636
36dc181b
EZ
2637 * inferior.h (registers_info, stepi_command, nexti_command,
2638 continue_command, interrupt_target_command): Export from infcmd.c.
2639 * frame.h (args_info, selected_frame_level_changed_hook,
2640 return_command): Export from stack.c.
2641 * v850ice.c (stepi_command, nexti_command, continue_command): use
2642 prototypes from inferior.h.
2643 * tracepoint.c (registers_info, args_info, locals_info): Use
2644 prototypes from frame.h and inferior.h.
2645 * Makefile.in (mi-main.o): Add dependency on frame.h.
2646
6f99cb26
AC
26472002-10-02 Andrew Cagney <ac131313@redhat.com>
2648
da3eff49
AC
2649 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2650 value in register 3 adjusted by ppc_gp0_regnum.
2651
6f99cb26
AC
2652 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2653
da615bee
MM
26542002-10-02 Marko Mlinar <markom@opencores.org>
2655
2656 * MAINTAINERS: Add myself to the Write After Approval list.
2657
d154bee2
AO
26582002-10-01 Alexandre Oliva <aoliva@redhat.com>
2659
62a49b2c
AO
2660 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2661 of the section for the N64 ABI, fixed.
2662
d154bee2
AO
2663 * config/mips/tm-irix6.h: Include solib.h.
2664
ed348acc
EZ
26652002-10-01 Elena Zannoni <ezannoni@redhat.com>
2666
2667 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2668 GNU operators.
2669
da0f9dcd
AC
26702002-10-01 Andrew Cagney <ac131313@redhat.com>
2671
2672 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2673 and that "mi0" syntax has been removed.
2674
bdf64bac
DC
26752002-09-30 David Carlton <carlton@math.stanford.edu>
2676
2677 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2678 * ppc-sysv-tdep.c: #include "gdb_string.h".
2679 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2680 pacify GCC.
2681
54c2a1e6
AC
26822002-10-01 Andrew Cagney <ac131313@redhat.com>
2683
2684 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2685 "vrsave"'s register number.
2686
cedea778
AC
26872002-09-30 Andrew Cagney <ac131313@redhat.com>
2688
2689 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2690 use frame_unwind_signed_register to obtain the PC.
2691 (mips_frame_chain): Handle a generic dummy frame.
2692 (mips_init_extra_frame_info): When a generic dummy frame, don't
2693 re-compute the frame base.
2694 (mips_pop_frame): Handle generic dummy frames.
2695 (mips_gdbarch_init): When generic dummy frames, set
2696 use_generic_dummy_frames, push_dummy_frame to
2697 generic_push_dummy_frame, pc_in_call_dummy to
2698 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2699 generic_save_dummy_frame_tos.
2700
68315eb8
AC
27012002-09-30 Andrew Cagney <ac131313@redhat.com>
2702
2703 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2704 against TOP when TOP was explictly set.
2705 (generic_push_dummy_frame): Set TOP to zero.
2706
3b8630c3
EZ
27072002-09-30 Elena Zannoni <ezannoni@redhat.com>
2708
2709 * event-loop.c (start_event_loop): Rename variable 'result' to
2710 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2711
28ee05e9
KS
27122002-09-30 Keith Seitz <keiths@redhat.com>
2713
2714 * gdb-events.sh (selected_thread_changed): New event.
2715 * gdb-events.c: Regenerated.
2716 * gdb-events.h: Regenerated.
2717
6eecb1c8
HPN
27182002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2719
2720 * MAINTAINERS: Add self to Write After Approval list.
2721
92df71f0
FN
27222002-09-30 Fernando Nasser <fnasser@redhat.com>
2723
3b8630c3
EZ
2724 * disasm.c: New file.
2725 * disasm.h: New file.
92df71f0
FN
2726 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2727 (compare_lines): Ditto.
2728 (dump_insns): Ditto.
3b8630c3
EZ
2729 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2730 argument.
92df71f0 2731 (do_assembly_only): Ditto.
3b8630c3
EZ
2732 (do_disassembly): Renamed to gdb_disassembly and moved to
2733 disasm.c. Sdded uiout argument.
2734 * Makefile.in: Add new files. Reorder SFILES list. Update
2735 dependencies. Include libgdb.a later in the insight executable.
92df71f0 2736
0c22854d
AC
27372002-09-29 Andrew Cagney <ac131313@redhat.com>
2738
2739 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2740 bfd/elf64-alpha-fbsd.c.
2741
e67f2023
AC
27422002-09-29 Andrew Cagney <ac131313@redhat.com>
2743
2744 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2745 i386gnu-tdep.c.
2746
89396210
AC
27472002-09-29 Andrew Cagney <ac131313@redhat.com>
2748
2749 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2750 __FUNCTION__.
2751 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2752 function name.
2753 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2754 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2755 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2756 (S_msg_sig_post_reply): Ditto.
2757
7079c36c
CV
27582002-09-28 Corinna Vinschen <vinschen@redhat.com>
2759
89396210
AC
2760 * sh-tdep.c (sh_use_struct_convention): Use definition according
2761 to ABI.
7079c36c
CV
2762 (sh_push_arguments): Store in register with correct endianess.
2763 (sh_default_store_return_value): Ditto.
2764 (sh_gdbarch_init): Set sizeof long double to 8.
2765
975ac915
MK
27662002-09-27 Mark Kettenis <kettenis@gnu.org>
2767
2768 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2769 Fix some whitespace problems.
2770
9bbe19fb
DC
27712002-09-27 David Carlton <carlton@math.stanford.edu>
2772
2773 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2774 (mcore-tdep.o): Ditto.
2775 (ns32k-tdep.o): Ditto.
2776 (ns32knbsd-tdep.o): Ditto.
2777 (sh3-rom.o): Ditto.
2778 (vax-tdep.o): Ditto.
2779 * cris-tdep.c: #include "gdb_string.h"
2780 * mcore-tdep.c: Ditto.
2781 * ns32k-tdep.c: Ditto.
2782 * ns32knbsd-tdep.c: Ditto.
2783 * sh3-rom.c: Ditto.
2784 * vax-tdep.c: Ditto.
2785
43b2fdc7
DC
27862002-09-27 David Carlton <carlton@math.stanford.edu>
2787
2788 * config/djgpp/fnchange.lst: Add entries for
2789 gdb/testsuite/gdb.c++/m-static files.
2790
e8cfbbd9
JW
27912002-09-27 Jim Wilson <wilson@redhat.com>
2792
2793 * MAINTAINERS: Add myself to the Write After Approval list.
2794
43b2fdc7 27952002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2796
2797 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2798
2799
9f3b7f07
AC
28002002-09-26 Andrew Cagney <ac131313@redhat.com>
2801
2802 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2803 frame.
2804
11269d7e
AC
28052002-09-26 Andrew Cagney <ac131313@redhat.com>
2806
2807 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2808 (rs6000_struct_return_address): Delete variable.
2809 (rs6000_store_struct_return): Update.
2810 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2811 deprecated_extract_struct_value_address.
2812 (rs6000_frame_align): New function.
2813 (rs6000_gdbarch_init): Set frame_align.
2814
f15ab4a7
AC
28152002-09-26 Andrew Cagney <ac131313@redhat.com>
2816
2817 From Grace Sainsbury <graces@redhat.com>:
2818 * Makefile.in (gdbtk-main.o): New target.
2819 (gdb.o): New target.
2820 (main_h): Define.
2821 (main.o): Update dependencies.
2822 (gdb$(EXEEXT)): Add gdb.o.
2823 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2824 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2825 (SUBDIR_GDBTK_CLEAN): Set.
2826 (install-gdbtk): Install the insight binary.
2827 (uninstall-gdbtk): New target.
2828 (all-gdbtk, clean-gdbtk): New rule.
2829 * top.c (use_windows): Default to zero.
2830 * main.c: Include "main.h".
2831 (main): Delete.
2832 (struct captured_main_args): Delete.
2833 (gdb_main): New function.
2834 * main.h: New file.
2835 * gdb.c: New File.
2836
e36180d7
AC
28372002-09-25 Andrew Cagney <cagney@redhat.com>
2838
2839 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2840 (frame_map_regnum_to_name): New function.
2841 (frame_map_name_to_regnum): New function.
2842 * frame.h (frame_map_name_to_regnum): Declare.
2843 (frame_map_regnum_to_name): Declare.
2844 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2845 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2846 * parse.c: Do not include "builtin-regs.h".
2847 (target_map_name_to_register): Delete function.
2848 (write_dollar_variable): Use frame_map_name_to_regnum.
2849 * parser-defs.h (target_map_name_to_register): Delete declaration.
2850 * expprint.c: Include "frame.h".
2851 (print_subexp): Use frame_map_regnum_to_name.
2852 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2853 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2854
8b69000d
AC
28552002-09-25 Andrew Cagney <ac131313@redhat.com>
2856
2857 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2858 wasn't saved, and the next innermost frame is a dummy, return the
2859 dummy frame's link register.
2860
046ca86a
JB
28612002-09-24 Jim Blandy <jimb@redhat.com>
2862
2863 Fix from Paul Breed:
2864 * main.c (captured_main): Add a `break' after the case for 'b'.
2865
94b66fa7
KS
28662002-09-24 Keith Seitz <keiths@redhat.com>
2867
2868 * varobj.c (c_type_of_child): Use get_target_type instead
2869 of TYPE_TARGET_TYPE.
2870
c214a6fd
FN
28712002-09-22 Fernando Nasser <fnasser@redhat.com>
2872
53cb0458
FN
2873 * source.c (get_current_or_default_source_symtab_and_line): Remove
2874 function.
2875 (set_default_source_symtab_and_line): New function. Attempts to
2876 determine a source file to list lines from if one is not currently
2877 defined.
2878 (get_current_source_symtab_and_line): Initialize sal.pc and
2879 sal.end fields.
2880 (set_current_source_symtab_and_line): Mark argument as const.
2881 * source.h: Update declarations and comments.
2882 * linespec.c (decode_line_1): Replace call to removed routine above.
2883 * stack.c (print_frame_info_base): Ditto.
2884 * cli/cli-cmds.c (edit_command): Ditto.
2885 (list_command): Ditto.
2886
28872002-09-22 Fernando Nasser <fnasser@redhat.com>
2888
d6020d45 2889 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2890 sal.pc and sal.end fields.
c214a6fd
FN
2891 (get_current_or_default_source_symtab_and_line): Ditto.
2892 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2893 so we do not cause a new source symtab to be searched for (reverting an
2894 unintentional change from the 2002-09-20 patch).
2895 * scm-lang.c (scm_unpac): Ditto.
2896
cc3b68a5
AC
28972002-09-21 Andrew Cagney <cagney@redhat.com>
2898
2899 * complaints.c (symfile_explanations): Remove new-line from
2900 ``isolated_message''.
2901 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2902 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2903
5835abe7
NC
29042002-09-20 Nick Clifton <nickc@redhat.com>
2905
2906 * NEWS: Announce that V850EA ISA is no longer supported.
2907 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2908
a15ef5f5
DC
29092002-09-20 David Carlton <carlton@math.stanford.edu>
2910
06ba1b39
DC
2911 * Makefile.in (c-lang.o): Correct dependencies.
2912 (utils.o): Gather dependencies.
2913 (charset.o): Move.
a15ef5f5
DC
2914 * c-lang.c: #include "gdb_string.h"
2915
87885426
FN
29162002-09-20 Fernando Nasser <fnasser@redhat.com>
2917
2918 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2919 * cli/cli-cmds.c (list_command): New function. Implements the new
2920 cli edit command.
2921 (_init_cli_cmds): Add new command definition.
2922 * gdb.1: Document edit command.
2923 * doc/gdb.texinfo: Document edit command.
2924
29252002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2926
2927 * source.c: Make global variables current_source_symtab and
2928 current_source_line static.
2929 (list_command): Moved to cli/cli-cmds.c.
2930 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2931 (get_first_line_listed): New accessor function.
2932 (get_lines_to_list): New accessor function.
2933 (get_current_source_symtab_and_line): New function. Retrieves the
2934 position in the source code that we consider current.
2935 (get_current_or_default_source_symtab_and_line): New function.
2936 Like the above but attempts to determine a default position if one
2937 is not currently defined.
2938 (set_current_source_symtab_and_line): New function. Sets the source
2939 code position considered current and returns the previously set one.
2940 (clear_current_source_symtab_and_line): Reset stored information about
2941 a current source line.
2942 (_initialize_source): Remove registration for the "list" command and
2943 its alias.
2944 * source.h: Add declarations for the new functions above.
2945 * symtab.h: Remove declarations for the global variables mentioned
2946 above.
2947 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2948 obtain current source line.
2949 * linespec.c (decode_line_1): Ditto.
2950 * macroscope.c (default_macro_scope): Ditto.
2951 * scm-lang.c (scm_unpac): Ditto.
2952 * stack.c (print_frame_info_base): Ditto.
2953 * symfile.c (clear_symtab_users): Ditto.
2954 * symtab.c (decode_line_spec): Ditto.
2955 * cli/cli-cmds.c (list_command): Moved here from source.c.
2956 (ambiguous_line_spec): Moved here from source.c.
2957 (_init_cli_cmds): Add definition for "list" and its alias.
2958 * Makefile.in: Update dependencies.
2959
ddd216ea
CV
29602002-09-20 Corinna Vinschen <vinschen@redhat.com>
2961
2962 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2963 with what gcc thinks is correct.
2964
6d305052
CV
29652002-09-20 Corinna Vinschen <vinschen@redhat.com>
2966
2967 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2968 multiple register push instruction.
2969
234b45d4
KB
29702002-09-19 Jim Blandy <jimb@redhat.com>
2971
2972 Add support for distinct host and target character sets.
2973 * charset.c, charset.h: New files.
2974 * c-exp.y: #include "charset.h".
2975 (yylex): Convert character and string literals to the target
2976 character set, before returning them as the semantic value of the
2977 token.
2978 * c-lang.c: #include "charset.h".
2979 (c_emit_char): Use charset-specific methods to recognize
2980 characters with backslash escape forms, to decide which characters
2981 to print literally and which to print using numeric escape
2982 sequences, and to convert target characters to host characters
2983 before printing.
2984 * utils.c: #include "charset.h".
2985 (no_control_char_error): New function.
2986 (parse_escape): Use charset-specific methods to recognize
2987 backslash escapes, parse `control character' notation, and convert
2988 characters from the host character set to the target character set.
2989 * configure.in: Set the default host character set.
2990 Check where to find iconv, and what its argument types might be.
2991 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2992 * Makefile.in (SFILES): List charset.c.
2993 (COMMON_OBS): List charset.o.
2994 (charset.o): New rule.
2995 (charset_h): New header dependency variable.
2996 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2997 (LIBICONV): New variable, set by configure.
2998 (CLIBS): Include $(LIBICONV) here.
2999 * aclocal.m4, config.in, configure: Regenerated.
3000
525d6a61
JB
30012002-09-19 Joel Brobecker <brobecker@gnat.com>
3002
3003 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3004 bison 1.35 warning.
3005
3ed93867
RE
30062002-09-19 Richard Earnshaw <rearnsha@arm.com>
3007
3008 * gdb_mbuild.sh: New file.
3009
437666f8
AC
30102002-09-19 Andrew Cagney <ac131313@redhat.com>
3011
3012 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3013
389e51db
AC
30142002-09-18 Andrew Cagney <ac131313@redhat.com>
3015
3016 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3017 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3018 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3019 valops.c, value.h: Revert previous change.
3020
3b4efeaa
MS
30212002-09-18 Michael Snyder <msnyder@redhat.com>
3022
3023 Preliminary support for Objective-C:
3024 * defs.h (language_objc): New enum value.
3025 (puts_filtered_tabular): Declaration only, exported from utils.c.
3026 (skip_quoted): Delete, declared in completer.h.
3027 * c-exp.y: Include completer.h.
3028 * p-exp.y: Ditto.
3029 * jv-exp.y: Ditto.
3030 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3031 New operator enum values.
3032 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3033 * language.c (binop_result_type): Handle language_objc case.
3034 (integral_type, character_type, string_type, boolean_type,
3035 structured_type, binop_type_check): Ditto.
3036 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3037 (struct objc_specific): Add to general_symbol_info.
3038 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3039 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3040 * parser-defs.h (struct objc_class_str): New struct type.
3041 (start_msglist, end_msglist, add_msglist): Declaration only,
3042 exported from objc-lang.c.
3043 * value.h (value_of_local, value_nsstring,
3044 call_function_by_hand_expecting_type): Exported from valops.c.
3045 * valops.c (find_function_addr): Export.
3046 (call_function_by_hand_expecting_type): New function.
3047 (value_of_local): New function.
3048 * symfile.c (init_filename_language_table): Add ".m" extension
3049 for Objective-C.
3050 * utils.c (puts_filtered_tabular): New function.
3051 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3052 (set/show demangle): Extend help-string to refer to ObjC.
3053 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3054 * stabsread.c (symbol_reference_defined): Objective-C symbols
3055 may contain colons: make allowances when scanning stabs strings
3056 for colons.
3057 (objc_find_colon): New function.
3058 * printcmd.c (address_info): If language == objc then print
3059 "self" instead of "this".
3060 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3061 OP_NSSTRING, and OP_SELF.
3062 (prefixify_subexp): Ditto.
3063 * source.c (print_source_lines): Mention objc in comment.
3064 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3065 method names.
3066
b9caf505
AC
30672002-09-18 Andrew Cagney <ac131313@redhat.com>
3068
3069 * complaints.h: Update copyright.
3070 (struct complaints): Declare.
3071 (struct complaint): Make `message' constant.
3072 (internal_complaint): Declare.
3073 (complaint): Declare.
3074 (complaint_root): Delete declaration.
3075 (symfile_complaints): Delete declaration.
3076 (struct complaints): Add opaque declaration.
3077 (clear_complaints): Add a complaints parameter.
3078 * complaints.c: Update copyright.
3079 (enum complaint_series): Define.
3080 (complaint_root): Delete.
3081 (struct complaints): Define.
3082 (complaint_sentinel, symfile_complaint_book): New variables.
3083 (symfile_explanations, symfile_complaints): New variables.
3084 New variables.
3085 (get_complaints): New function.
3086 (vcomplaint): New function.
3087 (complaint): New function.
3088 (internal_complaint): New function.
3089 (complain): Call vcomplain with symfile_complaint.
3090 (clear_complaints): Rewrite.
3091 (_initialize_complaints): Use add_setshow_command.
3092 * Makefile.in (complaints.o): Update dependencies.
3093 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3094 to call to clear_complaints.
3095 (new_symfile_objfile, reread_symbols): Ditto.
3096 (oldsyms_complaint): Delete.
3097 (empty_symtab_complaint, unknown_option_complaint): Delete.
3098 (free_named_symtabs): Use complaint instead of complain.
3099
d2e6263c
MS
31002002-09-18 Michael Snyder <msnyder@redhat.com>
3101
5fb2031a
AC
3102 Contributed by Apple Computer, Inc. Merged with current sources
3103 by Adam Fedor <fedor@doc.com> [cagney].
3104
d2e6263c
MS
3105 * objc-lang.c: First clean-up round: comments, indentation.
3106 * objc-lang.h: Ditto.
3107 * objc-lang.y: Ditto.
3108
dec43320
AC
31092002-09-18 Andrew Cagney <ac131313@redhat.com>
3110
3111 * maint.c (maintenance_internal_error): Print the parameter as the
3112 error message.
3113 (maintenance_internal_warning): New function.
3114 (_initialize_maint_cmds): Add command `maint internal-warning'.
3115
3116 * defs.h (internal_warning, internal_vwarning): Declare.
3117 * utils.c (struct internal_problem): Define.
3118 (internal_vproblem): New function.
3119 (internal_warning): New function.
3120 (internal_vwarning): New function.
3121 (internal_warning_problem, internal_error_problem): New variables.
3122 (internal_verror): Just call internal_vproblem.
3123
b81654f1
MS
31242002-09-18 Michael Snyder <msnyder@redhat.com>
3125
3126 * objc-lang.c: New file, support for Objective-C.
3127 Preliminary check-in, not yet integrated into gdb.
3128 * objc-lang.h: New file.
3129 * objc-exp.y: New file.
3130
0542c381
AC
31312002-09-18 Andrew Cagney <ac131313@redhat.com>
3132
7bda5e4a
AC
3133 * infrun.c (signal_stop_update): Convert definition to ISO C.
3134 (signal_print_update): Ditto.
3135 (signal_pass_update): Ditto.
3136 * inflow.c (terminal_save_ours): Ditto.
3137
5247b418
AC
3138 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3139 comments.
3140
fc60962c
AC
3141 * config/djgpp/fnchange.lst: Handle name clashes between
3142 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3143 bfd/coff-tic80.c.
3144
0542c381
AC
3145 * i386-linux-tdep.h: Fix tipo.
3146
5b924b9b
AF
31472002-09-18 Adam Fedor <fedor@gnu.org>
3148
3149 * MAINTAINERS: Add myself to the Write After Approval list.
3150
5afc051b
JB
31512002-09-18 Jim Blandy <jimb@redhat.com>
3152
3153 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3154 texthigh and textlow to reader-specific structs caused
3155 objfile_relocate to miss them. This is fixable, but the work that
3156 the change was supposed to prepare GDB for never got done anyway.
3157
eb944380
DC
31582002-09-18 David Carlton <carlton@math.stanford.edu>
3159
3160 * MAINTAINERS: Alphabetize Write After Approval list.
3161
948e66d9
DJ
31622002-09-18 Daniel Jacobowitz <drow@mvista.com>
3163
3164 Fix PR gdb/709
3165 * values.c (value_static_field): Call read_var_value.
3166
dc604539
AC
31672002-09-18 Andrew Cagney <ac131313@redhat.com>
3168
3169 * valops.c (hand_function_call): Align the initial stack pointer
3170 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3171 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3172 return value.
3173 * mips-tdep.c (mips_frame_align): New function.
3174 (mips_gdbarch_init): Set frame_align.
3175 * gdbarch.sh (FRAME_ALIGN): New method.
3176 * gdbarch.h, gdbarch.c: Re-generate.
3177
cb7e422f
ML
31782002-09-18 Michal Ludvig <mludvig@suse.cz>
3179
3180 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3181 registers.
3182
a094c6fb
AC
31832002-09-17 Andrew Cagney <ac131313@redhat.com>
3184
3185 * NEWS: Mention that MIPS $fp behavior changed.
3186 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3187 reference to FP_REGNUM.
3188 (mipsnbsd_cannot_store_register): Ditto.
3189 * mips-linux-nat.c: Update copyright.
3190 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3191 (mips_linux_cannot_store_register): Ditto.
3192 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3193 * config/mips/tm-mips.h: Update copyright.
3194 (FP_REGNUM): Delete macro.
3195 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3196 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3197 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3198 (mips_r3041_reg_names, mips_r3051_reg_names)
3199 (mips_r3081_reg_names): Replace "fp" with "".
3200 Fix PR gdb/480.
3201
45cf40d1
TR
32022002-09-17 Theodore A. Roth <troth@verinet.com>
3203
3204 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3205 generic_read_register_dummy() (PR gdb/703).
3206 (avr_push_return_address): #if 0 out unused vars.
3207 (avr_gdbarch_init): Enable use of avr_push_return_address().
3208
c7e701b5
MS
32092002-09-17 Michael Snyder <msnyder@redhat.com>
3210
d76ba2a5 3211 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
3212 RTE will take care of it.
3213
20bcf01c
AC
32142002-09-17 Andrew Cagney <ac131313@redhat.com>
3215
3216 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3217 invalid, return SP_REGNUM.
3218
009a9971 32192002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
3220
3221 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3222 point registers without sign extension.
3223
135c175f
AC
32242002-09-17 Andrew Cagney <cagney@redhat.com>
3225
3226 * blockframe.c (deprecated_read_register_dummy): Rename
3227 generic_read_register_dummy.
3228 * frame.c (frame_unwind_signed_register): New function.
3229 (frame_unwind_unsigned_register): New function.
3230 * frame.h (frame_unwind_signed_register): Declare.
3231 (frame_unwind_unsigned_register): Declare.
3232 (deprecated_read_register_dummy): Rename
3233 generic_read_register_dummy.
3234
3235 * h8300-tdep.c (h8300_frame_chain): Update.
3236 (h8300_frame_saved_pc): Update.
3237 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3238 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3239 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3240 (s390_frame_chain): Update.
3241 * v850-tdep.c (v850_find_callers_reg): Update.
3242 (v850_frame_saved_pc): Update.
3243 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3244 (m32r_find_callers_reg): Update.
3245 (m32r_frame_saved_pc): Update.
3246 * sh-tdep.c (sh_find_callers_reg): Update.
3247 (sh64_get_saved_pr): Update.
3248 (sh_init_extra_frame_info): Update.
3249 (sh_init_extra_frame_info): Update.
3250 (sh64_init_extra_frame_info): Update.
3251 (sh64_init_extra_frame_info): Update.
3252 * mcore-tdep.c (mcore_find_callers_reg): Update.
3253 (mcore_frame_saved_pc): Update.
3254 (mcore_init_extra_frame_info): Update.
3255 * i386-tdep.c (i386_frame_saved_pc): Update.
3256 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3257 (ia64_init_extra_frame_info): Update.
3258 (ia64_init_extra_frame_info): Update.
3259 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3260 * cris-tdep.c (cris_init_extra_frame_info): Update.
3261 * avr-tdep.c (avr_frame_chain): Update.
3262 (avr_init_extra_frame_info): Update.
3263 (avr_frame_saved_pc): Update.
3264 * arm-tdep.c (arm_find_callers_reg): Update.
3265 (arm_init_extra_frame_info): Update.
3266 (arm_frame_saved_pc): Update.
3267
a741e514
TT
32682002-09-17 Tom Tromey <tromey@redhat.com>
3269
3270 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3271 is "'".
3272
d1a8e808
CV
32732002-09-17 Corinna Vinschen <vinschen@redhat.com>
3274
3275 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3276 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3277 NEXT_PROLOGUE_INSN.
3278 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3279 NEXT_PROLOGUE_INSN.
3280
d9025a18
JB
32812002-09-16 Joel Brobecker <brobecker@gnat.com>
3282
3283 * osfsolib.c: Remove file, replaced by solib-osf.c.
3284 * Makefile.in: Remove compilation rules for osfsolib.c.
3285
1b2ef1b6
DC
32862002-09-16 David Carlton <carlton@math.stanford.edu>
3287
3288 * cp-valprint.c (cp_print_class_method): Correct args to
3289 check_stub_method_group.
3290
928e48af
CV
32912002-09-16 Corinna Vinschen <vinschen@redhat.com>
3292
3293 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3294 `set architecture'. Unify naming convention of functions.
3295 (h8300_skip_prologue): Improve prologue analysis.
3296 (h8300_push_arguments): Rewritten to more closely match GCC's
3297 bizarre argument-passing behavior, along with the comment describing
3298 said behavior.
3299 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3300 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3301 sim, remote-e7000.c, remote-hms.c and remote.c
3302
5e3397bb
MK
33032002-09-15 Mark Kettenis <kettenis@gnu.org>
3304
3305 * i386-tdep.c (gdb_print_insn_i386): Removed.
3306 (i386_print_insn): New function.
3307 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3308 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3309 tm_print_insn_info.
3310
f710f4fc
MK
33112002-09-14 Mark Kettenis <kettenis@gnu.org>
3312
3313 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3314 zero.
3315
db54fef4
CV
33162002-09-14 Corinna Vinschen <vinschen@redhat.com>
3317
3318 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3319 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3320 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3321
2becadee
CF
33222002-09-13 Christopher Faylor <cgf@redhat.com>
3323
3324 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3325
de17c821
DJ
33262002-09-13 Daniel Jacobowitz <drow@mvista.com>
3327
3328 * gdbtypes.c (check_stub_method): Make static.
3329 (check_stub_method_group): New function.
3330 * gdbtypes.h: Update prototypes.
3331 * cp-support.c: New file.
3332 * cp-support.h: New file.
3333
3334 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3335 (update_method_name_from_physname): New function.
3336 (read_member_functions): Correct method names for operators
3337 and v3 constructors/destructors. Separate v2 constructors and
3338 destructors.
3339 * Makefile.in (stabsread.o): Update dependencies.
3340 (SFILES): Add cp-support.c.
3341 (COMMON_OBS): Add cp-support.o.
3342 (cp_support_h, cp-support.o): Add.
3343
3344 * cp-valprint.c (cp_print_class_method): Call
3345 check_stub_method_group instead of check_stub_method. Remove
3346 extraneous QUITs.
3347 * p-valprint.c (pascal_object_print_class_method): Likewise.
3348 * valops.c (search_struct_method): Likewise.
3349 (find_method_list, value_struct_elt_for_reference): Likewise.
3350
e76cff22
AC
33512002-09-13 Andrew Cagney <cagney@redhat.com>
3352
3353 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3354 * gdbarch.h, gdbarch.c: Regenerate.
3355
905abb3f
AC
33562002-09-13 Andrew Cagney <ac131313@redhat.com>
3357
3358 * frame.c (find_saved_register): Delete function.
3359 * frame.h (find_saved_register): Delete declaration.
3360 Fix PR gdb/631.
3361
64159455
AC
3362Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3363
3364 * mips-tdep.c (read_next_frame_reg): Re-hack using
3365 frame_register_unwind.
3366
795e1e11
AC
3367Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3368
3369 * mips-tdep.c (mips_get_saved_register): Re-hack using
3370 frame_register_unwind.
3371
5720643c
JB
33722002-09-12 Joel Brobecker <brobecker@gnat.com>
3373
3374 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3375 vector. Will be useful for Interix.
3376 * gdbarch.h, gdbarch.c: Regenerate.
3377
3378 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3379 name of the malloc function by NAME_OF_MALLOC.
3380
3bada2a2
JB
33812002-09-12 Joel Brobecker <brobecker@gnat.com>
3382
3383 * value.h (find_function_in_inferior): Add const keyword to
3384 one of the parameters. Allows us to invoke this function with
3385 a const char *.
3386 * valops.c (find_function_in_inferior): Likewise.
3387
3db26b01
JB
33882002-09-12 Joel Brobecker <brobecker@gnat.com>
3389
3390 * exec.c (xfer_memory): Fix compilation warning with old versions
3391 of GCC.
3392 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3393
17c5ed2c
DC
33942002-09-12 David Carlton <carlton@math.stanford.edu>
3395
3396 * symtab.h: Run through gdb_indent.h.
3397 Add 2002 to Copyright year list.
3398
ecd1107e
AM
33992002-09-12 Alan Modra <amodra@bigpond.net.au>
3400
3401 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3402 mach constants.
3403 * MAINTAINERS: Add myself to write after approval list.
3404
e64f66d1
JB
34052002-09-11 J. Brobecker <brobecker@gnat.com>
3406
3407 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3408
f9395794
JB
34092002-09-11 J. Brobecker <brobecker@gnat.com>
3410
3411 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3412 Interix.
3413
1a303dec
MS
34142002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3415
3416 * procfs.c (do_detach): Clear current signal, not just fault.
3417 Corrects problem with breakpoint trap signal leaking to detached
3418 process on Tru64.
3419
c0219d42
MS
34202002-09-10 Michael Snyder <msnyder@redhat.com>
3421
3422 * buildsym.c (finish_block): Protect against null pointer.
3423
9d84ac84
AC
34242002-09-10 Andrew Cagney <cagney@redhat.com>
3425
3426 * infcmd.c (default_print_registers_info): Send all output to
3427 ``file'' instead of ``gdb_stdout''.
3428
77d8f2b4
MS
34292002-09-10 Michael Snyder <msnyder@redhat.com>
3430
3431 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3432 LONGEST, and use signed register read (addresses are sign-
3433 extended for mips).
3434
99656a61
SC
34352002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3436
3437 * event-loop.c (gdb_do_one_event): Make public.
3438 * event-loop.h (gdb_do_one_event): Declare.
3439
da12f4d8
JL
34402002-09-10 Jeff Law <law@redhat.com>
3441
3442 * infttrace.c (child_resume): Simplify and rework to avoid
3443 TT_PROC_CONTINUE.
3444
d0aee0c4
FF
34452002-09-09 Fred Fish <fnf@intrinsity.com>
3446
3447 * printcmd.c (print_scalar_formatted): "len" is the number of
3448 target bytes, NOT the number of target bits.
3449
7cb3ec5e
EZ
34502002-09-09 Elena Zannoni <ezannoni@redhat.com>
3451
3452 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3453 * top.c (init_main): Set rl_terminal_name.
3454
4dc81987
AS
34552002-09-08 Aidan Skinner <aidan@velvet.net>
3456
3457 * ada-lang.c (ada_array_bound, ada_type_match,
3458 _initialize_ada_language): Fix K&R definitions.
3459 * ada-tasks.c (get_current_task): Fix K&R definitions.
3460 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3461
842330b4
CF
34622002-09-07 Christopher Faylor <cgf@redhat.com>
3463
3464 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3465 Add XP.
3466
43156d82
MK
34672002-09-06 Mark Kettenis <kettenis@gnu.org>
3468
66da5fd8
MK
3469 * i386-tdep.c (i386_register_virtual_type,
3470 i386_register_convertible, i386_register_convert_to_virtual,
3471 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3472 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3473 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3474 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3475 Don't set push_arguments twice.
3476
4b218c18
MK
3477 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3478 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3479 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3480 sigtramp_end to NULL.
3481 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3482 defines.
3483 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3484
4cc314d5
MK
3485 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3486 whitespace.
3487
43156d82
MK
3488 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3489 * gdbarch.h, gdbarch.c: Re-generate.
3490 * blockframe.c (find_pc_sect_partial_function): Convert to use
3491 SIGTRAMP_START_P predicate.
3492
6672060b
MS
34932002-09-05 Michael Snyder <msnyder@redhat.com>
3494
a90c3637
MS
3495 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3496 generic_dummy_frame method and old method. Also distinguish
3497 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 3498 (arm_extract_return_value): Use new regcache method.
a90c3637 3499
6672060b
MS
3500 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3501 adjustment that doesn't conform to the ABI.
3502 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3503 saved regcache, not from current regcache.
3504
299ffc64
AC
35052002-09-05 Andrew Cagney <ac131313@redhat.com>
3506
3507 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3508 * README: Update.
3509
a3a2ee65
JT
35102002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3511
3512 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3513 if arm_apcs_32 is false.
3514
2bc7eea9
AC
35152002-09-04 Andrew Cagney <ac131313@redhat.com>
3516
3517 GDB 5.3 branch created.
3518
8a55a7c5
TR
35192002-09-03 Theodore A. Roth <troth@verinet.com>
3520
3521 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3522 generic_unwind_get_saved_register.
3523
e26fb1d7
DC
35242002-09-03 David Carlton <carlton@math.stanford.edu>
3525
3526 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3527 argument (PR gdb/653). Update call to smash_to_method_type.
3528 (read_structure_scope): Update call to dwarf2_add_member_fn.
3529
30d52491
ML
35302002-09-03 Michal Ludvig <mludvig@suse.cz>
3531
3532 * x86-64-linux-tdep.c: Include gdb_string.h
3533 * x86-64-linux-nat.c: Ditto.
3534
06891d83
JT
35352002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3536
3537 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3538 when YYDEBUG is set to 1.
3539 * c-exp.y: Likewise.
3540 * f-exp.y: Likewise.
3541 * jv-exp.y: Likewise.
3542 * m2-exp.y: Likewise.
3543 * p-exp.y: Likewise.
3544
7d400e77
JT
35452002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3546
3547 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3548 dependency list.
3549 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3550 solib_svr4_fetch_link_map_offsets to
3551 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3552 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3553 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3554 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3555 solib-svr4.o, and solib-legacy.o.
3556 * config/i386/tm-nbsd.h: Include solib.h.
3557
704a27c4
JT
35582002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3559
3560 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3561 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3562 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3563 comment noting that this needs its own target configuration.
3564 * config/i386/nbsd.mt: New file.
3565 * config/i386/nbsdaout.mt: Remove.
3566 * config/i386/nbsdelf.mt: Ditto.
3567 * config/i386/tm-nbsdaout.h: Ditto.
3568
d66198e1
JT
35692002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3570
3571 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3572 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3573 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3574 tdep->sigtramp_end.
3575 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3576 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3577 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3578
3cac699e
JT
35792002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3580
3581 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3582 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3583 * i386-tdep.h (i386bsd_init_abi): New prototype.
3584 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3585 function declaration.
3586 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3587 for NetBSD-a.out or NetBSD-ELF.
3588 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3589 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3590 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3591 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3592 and nbsd-tdep.h.
3593 (i386nbsd_pc_in_sigtramp): New function.
3594 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3595 i386nbsd_pc_in_sigtramp.
3596 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3597 and i386nbsdelf_init_abi OS ABI handlers.
3598 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3599 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3600
7010ca0a
MK
36012002-09-02 Mark Kettenis <kettenis@gnu.org>
3602
3603 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3604 registers if the target really has them.
3605
6dd93b72
JT
36062002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3607
3608 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3609 than nbsd-tdep.h.
3610
2ca8ae21
JT
36112002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3612
3613 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3614 list.
3615 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3616 (alphanbsd_skip_sigtramp_frame): New functions.
3617 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3618 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3619 to alphanbsd_sigcontext_addr.
3620
3d9b49b0
JT
36212002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3622
3623 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3624 list.
3625 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3626 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3627 nbsd_pc_in_sigtramp.
3628 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3629 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3630 * nbsd-tdep.c: Include gdb_string.h.
3631 (nbsd_pc_in_sigtramp): New function.
3632 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3633 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3634 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3635 ppcnbsd_pc_in_sigtramp.
3636 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3637 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3638 shnbsd_pc_in_sigtramp.
3639 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3640 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3641 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3642
c860120c
PM
36432002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3644
3645 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3646 watchpoints to NULL.
3647 (insert_breakpoints): set val field of watchpoints if NULL.
3648
3649
c7612d53
JB
36502002-08-29 Jim Blandy <jimb@redhat.com>
3651
3652 * symtab.c (lookup_symbol_aux): In the cases where we find a
3653 minimal symbol of an appropriate name and use its address to
3654 select a symtab to read and search, use `name' (as passed to us)
3655 as the demangled name when searching the symtab's global and
3656 static blocks, not the minsym's name.
3657
66609862
KS
36582002-08-29 Keith Seitz <keiths@redhat.com>
3659
3660 * stack.c (print_frame_info_base): Always set current_source_symtab
3661 and current_source_line.
3662
151fefe2
JB
36632002-08-29 Donn Terry <donnte@microsoft.com>
3664
3665 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3666
bfb3754e
KS
36672002-08-28 Keith Seitz <keiths@redhat.com>
3668
3669 * stack.c (select_frame): Add FIXME concerning selected-frame
3670 events.
3671 (select_frame_command): Send selected-frame-level-changed
3672 event notification, but only if the level actually changed.
3673 (up_silently_base): Add selected-frame-level-changed event
3674 notification.
3675 (down_silently_base): Likewise.
3676
e822a2a0
AC
36772002-08-28 Andrew Cagney <ac131313@redhat.com>
3678
3679 * Makefile.in: Update dependencies for all gdb/*.c files.
3680
309367d4
TT
36812002-08-27 Tom Tromey <tromey@redhat.com>
3682
3683 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3684 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3685 Update dependencies.
3686 * i387-tdep.c: Include gdb_string.h.
3687 * osabi.c: Likewise.
3688 * i386-linux-nat.c: Likewise.
3689 * lin-lwp.c: Likewise.
3690 * ax-gdb.c: Likewise.
3691 * signals/signals.c: Likewise.
3692 * jv-valprint.c: Likewise.
3693 * p-lang.c: Likewise.
3694 * c-valprint.c: Likewise.
3695 * cp-abi.c: Likewise.
3696
e1507482
EZ
36972002-08-27 Elena Zannoni <ezannoni@redhat.com>
3698
3699 * cli/cli-script.h (copy_command_lines): Export.
3700 * breakpoint.c: Include cli/cli-script.h.
3701 * Makefile.in (breakpoint.o): Update dependencies.
3702
c6510018
MS
37032002-08-26 Michael Snyder <msnyder@redhat.com>
3704
3705 * breakpoint.c (insert_breakpoints): Protect all references
3706 to 'process_warning'. Shorten long lines.
3707
c2b8ed2c
MS
37082002-08-26 Joel Brobecker <brobecker@gnat.com>
3709
3710 * cli/cli-script.c (copy_command_lines): New function.
3711 * defs.h (copy_command_lines): Export.
3712 * testsuite/gdb.base/commands.exp: New tests for commands
3713 attached to a temporary breakpoint, and for commands that
3714 delete the breakpoint they are attached to.
3715
37162002-08-26 Michael Snyder <msnyder@redhat.com>
3717
3718 * breakpoint.c (bpstat_stop_status): Instead of copying the
3719 pointer to the breakpoint commands struct, make a new copy
3720 of the struct and point to that.
3721 (bpstat_clear): Free the commands struct.
3722 (bpstat_clear_actions): Free the commands struct.
3723 (bpstat_do_actions): Free the command actions. Also execute
3724 the local cleanups, instead of deleting them.
3725 (delete_breakpoint): Leave the commands field of the bpstat
3726 chain alone -- it will be freed later.
3727
64b84175
KB
37282002-08-26 Kevin Buettner <kevinb@redhat.com>
3729
3730 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3731 deleted in 2002-08-20 commit. This function is still used by
3732 ppc-linux-nat.c.
3733
55970da6
KS
37342002-08-26 Keith Seitz <keiths@redhat.com>
3735
3736 * gdb-events.sh: Add selected-frame-level-changed event.
3737 * gdb-events.c: Regenerated.
3738 * gdb-events.h: Regenerated.
3739
a790ad35
SC
37402002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3741
3742 Fix PR gdb/393:
3743 * inflow.c (terminal_save_ours): New function to save terminal
3744 settings.
3745 * inferior.h (terminal_save_ours): Declare.
3746 * target.c (debug_to_terminal_save_ours): New function.
3747 (cleanup_target): Defaults to_terminal_save_ours.
3748 (update_current_target): Inherit to_terminal_save_ours.
3749 (setup_target_debug): Set to_terminal_save_ours.
3750 * target.h (target_terminal_save_ours): New to save terminal settings.
3751 (target_ops): New member to_terminal_save_ours.
3752 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3753 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3754 * inftarg.c (init_child_ops): Likewise.
3755 * m3-nat.c (init_m3_ops): Likewise.
3756 * procfs.c (init_procfs_ops): Likewise.
3757 * wince.c (init_child_ops): Likewise.
3758 * win32-nat.c (init_child_ops): Likewise.
3759 * sol-thread.c (init_sol_thread_ops): Likewise.
3760
c00dcbe9
MK
37612002-08-26 Mark Kettenis <kettenis@gnu.org>
3762
3d7f4f49
MK
3763 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3764 use regcache_* functions.
3765 (i386_gdbarch_init): Set store_return_value instead of
3766 deprecated_store_return_value.
3767
c00dcbe9
MK
3768 * regcache.c (regcache_raw_write_signed,
3769 regcache_raw_write_unsigned): New functions.
3770 * regcache.h (regcache_raw_write_signed,
3771 regcache_raw_write_unsigned): New prototypes.
3772
0e0d15ca
AC
37732002-08-25 Andrew Cagney <ac131313@redhat.com>
3774
3775 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3776 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3777 source file dependencies. Cleanup corresponding generator rules.
3778
d3b22ed5
AC
37792002-08-25 Andrew Cagney <ac131313@redhat.com>
3780
3781 * regcache.h (register_offset_hack): Declare.
3782 (regcache_cooked_read_using_offset_hack): Declare.
3783 (regcache_cooked_write_using_offset_hack): Declare.
3784
3785 * regcache.c (register_offset_hack): New function.
3786 (regcache_cooked_read_using_offset_hack): New function.
3787 (regcache_cooked_write_using_offset_hack): New function.
3788 (regcache_dump): Check that the registers, according to their
3789 offset, are packed hard against each other.
3790 (cooked_xfer_using_offset_hack): New function.
3791
bb425013
AC
37922002-08-25 Andrew Cagney <ac131313@redhat.com>
3793
3794 * regcache.c (struct regcache_descr): Add field register_type.
3795 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3796 in as a parameter
3797 (init_regcache_descr): Initialize register_type. Pass the descr
3798 to init_legacy_regcache_descr. Use register_type instead of
3799 REGISTER_VIRTUAL_TYPE.
3800 (register_type): New function.
3801 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3802 * regcache.h (register_type): Declare.
3803
d0403e00
AC
38042002-08-25 Andrew Cagney <ac131313@redhat.com>
3805
3806 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3807 instead of deprecated_store_return_value. Fix fallout from
3808 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3809
0ed04cce
AC
38102002-08-25 Andrew Cagney <ac131313@redhat.com>
3811
3812 * regcache.c (max_register_size): New function.
3813 (init_legacy_regcache_descr): Ensure that max_register_size is
3814 large enough for REGISTER_VIRTUAL_SIZE.
3815 * regcache.h (max_register_size): Declare.
3816
46d79c04
AC
38172002-08-24 Andrew Cagney <ac131313@redhat.com>
3818
3819 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3820 store_return_value.
3821 (e500_extract_return_value): Change type of valbuf pointer to
3822 void.
3823
853c7bd0
MK
38242002-08-24 Mark Kettenis <kettenis@gnu.org>
3825
cd87e769
MK
3826 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3827 workaround.
3828
853c7bd0
MK
3829 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3830 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3831 long long) to prevent compiler warning on 64-bit systems.
3832
ebba8386
AC
38332002-08-23 Andrew Cagney <cagney@redhat.com>
3834
3835 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3836 (DEPRECATED_STORE_RETURN_VALUE): New method.
3837 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3838 * gdbarch.h, gdbarch.c: Re-generate.
3839
3840 * values.c (set_return_value): Pass current_regcache to
3841 STORE_RETURN_VALUE.
3842 * arch-utils.h (legacy_store_return_value): Declare.
3843 * arch-utils.c (legacy_store_return_value): New function.
3844 (legacy_extract_return_value): Update parameters.
3845
3846 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3847 STORE_RETURN_VALUE.
3848 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3849 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3850 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3851 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3852 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3853 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3854 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3855 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3856 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3857 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3858
3859 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3860 * i386-tdep.c (i386_extract_return_value): Update.
3861 * arch-utils.c (legacy_extract_return_value): Update.
3862 * frv-tdep.c (frv_gdbarch_init): Update.
3863 * cris-tdep.c (cris_gdbarch_init): Update.
3864 * d10v-tdep.c (d10v_gdbarch_init): Update.
3865 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3866 * m68k-tdep.c (m68k_gdbarch_init): Update.
3867 * mcore-tdep.c (mcore_gdbarch_init): Update.
3868 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3869 * s390-tdep.c (s390_gdbarch_init): Update.
3870 * sparc-tdep.c (sparc_gdbarch_init): Update.
3871 * sh-tdep.c (sh_gdbarch_init): Update.
3872 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3873 * v850-tdep.c (v850_gdbarch_init): Update.
3874 * avr-tdep.c (avr_gdbarch_init): Update.
3875 * ia64-tdep.c (ia64_gdbarch_init): Update.
3876 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3877 * vax-tdep.c (vax_gdbarch_init): Update.
3878 * alpha-tdep.c (alpha_gdbarch_init): Update.
3879 * arm-tdep.c (arm_gdbarch_init): Update.
3880 * mips-tdep.c (mips_gdbarch_init): Update.
3881 * i386-tdep.c (i386_gdbarch_init): Update.
3882
5bd8c6d0
AC
38832002-08-23 Andrew Cagney <ac131313@redhat.com>
3884
3885 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3886 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3887
e73e1724
MK
38882002-08-24 Mark Kettenis <kettenis@gnu.org>
3889
3890 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3891 problems.
3892
3e6564e1
JB
38932002-08-23 Joel Brobecker <brobecker@gnat.com>
3894
3895 * infrun.c (handle_inferior_event): Move a comment outside of a
3896 function call, in order to avoid indent reformatting this part
3897 of the code in an unreadable way.
3898
81d0cc19
GS
38992002-08-23 Grace Sainsbury <graces@redhat.com>
3900
3901 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3902 when breakpoints fail. Move general breakpoint error messages to
3903 insert_breakpoints.
3904 * breakpoint.c (insert_breakpoints): Change warnings when
3905 breakpoints are nto inserted to specify the type. Remove call to
3906 memory_error when hardware breakpoints can't be inserted. Remove
3907 multiple calls to warning so all messages are sent to the user at
3908 once.
3909 (delete_breakpoints): Make insert error messsages more explicit.
3910
17574093
DJ
39112002-08-23 Daniel Jacobowitz <drow@mvista.com>
3912
3913 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3914 gdbserver/ChangeLog.
3915
8acc2935
MK
39162002-08-23 Mark Kettenis <kettenis@gnu.org>
3917
dfe01d39
MK
3918 * i386-tdep.c: Include "objfiles.h".
3919 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3920 skip_trampoline_code.
3921 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3922 (CPLUS_MARKER): Define to '.'.
3923
8acc2935
MK
3924 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3925 member.
3926 (linux_corefile_thread_callback): Increase args->num_notes.
3927 (linux_make_note_section): Initialize thread_args.num_notes, and
3928 use it to determine whether notes for any threads were created.
3929
151fefe2 39302002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3931
3932 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3933 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3934 and PCUNKILL.
3935 (write_with_trace): Conditionalize out the switch branch handling
3936 PCSHOLD if the corresponding macro is not defined. Likewise for
3937 PRSABORT and PRSTOP.
3938 This change will be needed by the Interix port.
3939
e1507482
EZ
39402002-08-22 Elena Zannoni <ezannoni@redhat.com>
3941
3942 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3943 write_register wherever possible instead of manipulating the
3944 register bytes directly.
3945 Assign VALUE_CONTENTS to a variable and use that.
3946 The GPR numbers are now dependent on the architecture.
3947
96ff0de4
EZ
39482002-08-22 Elena Zannoni <ezannoni@redhat.com>
3949
3950 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3951 ev_offset fields.
3952 (skip_prologue): Add support for BookE/e500 instructions.
3953 (e500_extract_return_value): New function.
3954 (frame_get_saved_regs): Add support for saving ev registers and
3955 pseudo gpr's.
3956 (e500_store_return_value): New function.
3957 (rs6000_gdbarch_init): Move up default intializations of
3958 deprecated_extract_return_value and store_return_value. Overwrite
3959 init of store_return_value with e500 specific version.
3960 Set extract_return_value for e500.
3961
fbefca5b
EZ
39622002-08-22 Elena Zannoni <ezannoni@redhat.com>
3963
3964 * blockframe.c (generic_call_dummy_register_unwind): Use
3965 regcache_cooked_read to catch cases in which the variable is
3966 stored in a pseudo register.
3967
4d210288
AC
39682002-08-22 Andrew Cagney <cagney@redhat.com>
3969
3970 * NEWS: Mention that the i960 has been made obsolete.
3971 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3972 i960-tdep.c
3973 (remote-nrom.o): Obsolete target.
3974 (remote-nindy.o, i960-tdep.o): Ditto.
3975 * remote-nrom.c: Make file obsolete.
3976 * remote-nindy.c, remote-vx960.c: Ditto.
3977 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3978 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3979 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3980 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3981 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3982 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3983 i960-*-vxworks* obsolete.
3984 * MAINTAINERS: Note that the i960 is obsolete.
3985
6c0c456d
CV
39862002-08-21 Corinna Vinschen <vinschen@redhat.com
3987
3988 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3989 detach to allow reinitialization.
3990
9f9d12b3
AC
39912002-08-22 Andrew Cagney <ac131313@redhat.com>
3992
3993 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3994 attempt).
3995
ebeb39fe
JB
39962002-08-22 Jim Blandy <jimb@redhat.com>
3997
3998 * coffread.c (coff_symfile_read): Don't try to read the line
3999 number table from disk if the image file doesn't have a symbol
4000 table; we'll never actually look at the info anyway, and Windows
4001 ships DLL's with bogus file offsets for the line number data.
4002
5bf1c677
EZ
40032002-08-21 Elena Zannoni <ezannoni@redhat.com>
4004
4005 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4006 an e500 executable.
4007
71b8ef93
MS
40082002-08-21 Michael Snyder <msnyder@redhat.com>
4009
4010 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4011 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
4012 (DEFAULT_MIPS_TYPE): Delete unused macro.
4013 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4014 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 4015
d174216d
JB
40162002-08-21 Jim Blandy <jimb@redhat.com>
4017
4018 * valops.c (value_cast): Simplify and correct logic for doing a
4019 static cast from a pointer to a base class to a pointer to a
4020 derived class.
4021
0ab7a791
AC
40222002-08-21 Andrew Cagney <ac131313@redhat.com>
4023
4024 * infcmd.c (default_print_registers_info): Replace
4025 do_registers_info.
4026 (registers_info): Use gdbarch_print_registers_info instead of
4027 DO_REGISTERS_INFO.
4028 * inferior.h (default_print_registers_info): Replace
4029 do_registers_info.
4030 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4031 (DO_REGISTERS_INFO): Change to a predicate function.
4032 * gdbarch.h, gdbarch.c: Regenerate.
4033
e23792cc
KS
40342002-08-21 Keith Seitz <keiths@redhat.com>
4035
4036 * gdb-events.sh: Add target-changed event.
4037 * gdb-events.c: Regenerated.
4038 * gdb-events.c: Regenerated.
4039 * valops.c (value_assign): Add target-changed event notification
4040 to inlval_register, lval_memory, and lval_reg_frame_relative.
4041
9fb14e79
JB
40422002-08-21 Joel Brobecker <brobecker@gnat.com>
4043
4044 * NEWS: Add an entry regarding the improvement of the next/step
4045 operation on Alpha Tru64 multi-processor machines.
4046
6d39a69f
AC
40472002-08-21 Andrew Cagney <ac131313@redhat.com>
4048
72acd513
AC
4049 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4050 directores.
342af04b 4051 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
4052 * Makefile.in (install-gdbtk): Move to install section.
4053 (rdi-share/libangsd.a): Move to end of file.
4054
fa5f27c7
AC
40552002-08-19 Andrew Cagney <ac131313@redhat.com>
4056
4057 * frame.c (frame_register_unwind): When a register, set addrp to
4058 the register's byte.
4059
5a89d8aa
MS
40602002-08-20 Michael Snyder <msnyder@redhat.com>
4061
4062 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4063 used locally, so move them from the target machine header to here.
4064 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4065 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4066 Make static.
4067 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4068
822e978b
AC
40692002-08-20 Andrew Cagney <cagney@redhat.com>
4070
4071 * NEWS: Mention that the Apollo line was made obsolete.
4072 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4073 m68*-hp-hpux* obsolete.
4074 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4075 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4076 * buildsym.c (make_blockvector): Make static.
4077 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4078 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4079 (ALLDEPFILES): Remove dstread.c.
4080 (dstread.o): Obsolete make rule.
4081 * dstread.c: Makefile obsolete.
4082 * dst.h: Ditto.
4083 * config/m68k/hp300hpux.mt: Ditto.
4084 * config/m68k/hp300hpux.mh: Ditto.
4085 * config/m68k/hp300bsd.mt: Ditto.
4086 * config/m68k/hp300bsd.mh: Ditto.
4087 * config/m68k/apollo68b.mt: Ditto.
4088 * config/m68k/apollo68v.mh: Ditto.
4089 * config/m68k/apollo68b.mh: Ditto.
4090
e41b17f0
MS
40912002-08-20 Michael Snyder <msnyder@redhat.com>
4092
4093 * mips-tdep.c (mips_in_return_stub): Make static.
4094 (mips_gdbarch_init): Set in_solib_return_trampoline.
4095 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4096
d50355b6
MS
40972002-08-20 Michael Snyder <msnyder@redhat.com>
4098
4099 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4100 * gdbarch.c, gdbarch.h: Regenerate.
4101 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4102 Add.
4103 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4104
757a7cc6
MS
41052002-08-20 Michael Snyder <msnyder@redhat.com>
4106
4107 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4108 (mips_gdbarch_init): Set skip_trampoline_code,
4109 in_solib_call_trampoline.
4110 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4111 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4112
c8001721
EZ
41132002-08-20 Elena Zannoni <ezannoni@redhat.com>
4114
4115 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4116
4117 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4118 vector type for ev registers.
4119 (e500_pseudo_register_read): New function.
4120 (e500_pseudo_register_write): New function.
4121 (e500_dwarf2_reg_to_regnum): New function.
4122 (PPC_UISA_NOFP_SPRS): New macro.
4123 (PPC_EV_REGS): New macro.
4124 (PPC_GPRS_PSEUDO_REGS): New macro.
4125 (registers_e500): New register set for e500.
4126 (variants): Add e500 variant.
4127 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4128 before setting architectural dependent variations. Initialize ev
4129 registers numbers. Add case for e500 architecture. Set the
4130 number of pseudo registers.
4131
64366f1c
EZ
41322002-08-20 Elena Zannoni <ezannoni@redhat.com>
4133
4134 * rs6000-tdep.c: Clean up comments.
4135
7e78f0ca
AC
41362002-08-20 Andrew Cagney <cagney@redhat.com>
4137
4138 * h8300-tdep.c: Re-indent file.
4139
697f7479
JB
41402002-08-20 Jim Blandy <jimb@redhat.com>
4141
4142 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4143 default for this.
697f7479 4144
e86ae29f
KS
41452002-08-20 Keith Seitz <keiths@redhat.com>
4146
4147 * breakpoints.c (watch_command_1): Use internal breakpoint
4148 when setting a watchpoint_scope breakpoint.
4149
216b504f
EZ
41502002-08-20 Elena Zannoni <ezannoni@redhat.com>
4151
4152 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4153 (build_builtin_type_vec64i): Ditto.
4154 (build_builtin_type_vec128): Ditto.
4155 (build_builtin_type_vec128i): Ditto.
4156
f7ab6ec6
MS
41572002-08-19 Michael Snyder <msnyder@redhat.com>
4158
4159 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4160 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4161 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4162 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4163 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4164 CALL_DUMMY_ADDRESS): Delete.
4165 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4166 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4167 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4168 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4169 push_return_address.
4170 (mips_register_raw_size, mips_eabi_use_struct_convention,
4171 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4172 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4173 mips_init_extra_frame_info, mips_eabi_push_arguments,
4174 mips_n32n64_push_arguments, mips_push_return_address,
4175 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4176 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4177
b5d1566e
MS
41782002-08-19 Michael Snyder <msnyder@redhat.com>
4179
4180 * mips-tdep.c (mips_frame_num_args): New function.
4181 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4182 frame_saved_pc, frame_args_address, frame_locals_address,
4183 frame_num_args, and frame_args_skip.
4184 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4185 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4186 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4187 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4188
2f1488ce
MS
41892002-08-20 Michael Snyder <msnyder@redhat.com>
4190
4191 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4192 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4193 * mips-tdep.c (mips_store_struct_return): New function.
4194 (mips_extract_struct_value_address): New function.
4195 (mips_gdbarch_init): Set store_struct_return and
4196 extract_struct_value_address.
4197
41ff2da1
DC
41982002-08-20 David Carlton <carlton@math.stanford.edu>
4199
4200 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4201 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4202 (read_file_scope): Check that line_header is nonzero before
4203 decoding macro information.
4204
e5451d58
MK
42052002-08-20 Mark Kettenis <kettenis@gnu.org>
4206
4207 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4208 flag the general-purpose registers as floating-point on targets
4209 that don't support the floating-point registers.
4210
4a6daafa
EZ
42112002-08-20 Elena Zannoni <ezannoni@redhat.com>
4212
4213 * rs6000-tdep.c (altivec_register_p): Delete.
4214 (rs6000_do_altivec_registers): Delete.
4215 (rs6000_altivec_registers_info): Delete.
4216 (rs6000_do_registers_info): Delete.
4217 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4218 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4219
ab4327e0
EZ
42202002-08-20 Elena Zannoni <ezannoni@redhat.com>
4221
4222 * infcmd.c (do_registers_info): Print vector registers in hex
4223 format only.
4224 (print_vector_info): Check that printing registers
4225 makes sense.
4226 (print_float_info): Ditto.
4227
cb1d2653
AC
42282002-08-20 Andrew Cagney <ac131313@redhat.com>
4229
4230 * mips-tdep.c (mips_gdbarch_init): Update.
4231 (mips_o32_extract_return_value): Rewrite.
4232 (mips_o32_store_return_value): Rewrite.
4233 (mips_o32_xfer_return_value): New function.
4234 (mips_xfer_register): Tweak debug print message. Allow for
4235 buf_offset when dumping the value transfered.
4236
dfc3d9b2
AC
42372002-08-20 Andrew Cagney <ac131313@redhat.com>
4238
4239 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4240 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4241 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4242 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4243 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4244
7807aa61
MS
42452002-08-14 Michael Snyder <msnyder@redhat.com>
4246
4247 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4248
489461e2
EZ
42492002-08-19 Elena Zannoni <ezannoni@redhat.com>
4250
4251 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4252 register.
4253 (P): New macro to define a register as a pseudo register.
4254 (R, R4, R8, R16, FR32, R64, R0): Updated.
4255 (struct variant): Add new fields for number of pseudo registers
4256 and number of total registers.
4257 (tot_num_registers): New macro replacing....
4258 (num_registers): ...deleted macro.
4259 (num_registers): New function.
4260 (num_pseudo_registers): New function.
4261 (variants): Update all variants to intialize new fields correctly.
4262 Postpone initialization of number of pseudo regs and real regs.
4263 (init_variants): New function.
4264 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4265 registers offsets.
4266
fcaffe4c
DC
42672002-08-19 David Carlton <carlton@math.stanford.edu>
4268
2c2738a0
DC
4269 * valops.c (search_struct_field): Change error message to treat
4270 return value of 0 from value_static_field as meaning that field is
4271 optimized out.
4272 (value_struct_elt_for_reference): Ditto.
4273 * values.c (value_static_field): Treat an unresolved location the
4274 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
4275 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4276 enclosed. Fix PR gdb/574.
fcaffe4c
DC
4277 * MAINTAINERS: Add self to Write After Approval list.
4278
88658117
AC
42792002-08-19 Andrew Cagney <ac131313@redhat.com>
4280
4281 * mips-tdep.c (mips_xfer_register): New function.
4282 (mips_n32n64_extract_return_value): Rewrite.
4283 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4284 instead of deprecated_extract_return_value.
4285
21283beb
EZ
42862002-08-19 Elena Zannoni <ezannoni@redhat.com>
4287
4288 * rs6000-tdep.c (TDEP): Delete macro.
4289 (branch_dest): Replace use of TDEP macro with its body.
4290 (rs6000_pop_frame): Ditto.
4291 (rs6000_push_arguments): Ditto.
4292 (rs6000_skip_trampoline_code): Ditto.
4293 (rs6000_frame_saved_pc): Ditto.
4294 (rs6000_frame_chain): Ditto.
4295 (rs6000_register_name): Ditto.
4296 (rs6000_register_byte): Ditto.
4297 (rs6000_register_raw_size): Ditto.
4298 (rs6000_register_virtual_type): Ditto.
4299 (rs6000_register_convertible): Ditto.
4300 (rs6000_convert_from_func_ptr_addr): Ditto.
4301
bf072999
DJ
43022002-08-19 Daniel Jacobowitz <drow@mvista.com>
4303
4304 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4305 conditionally.
4306 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4307 MIPS_LINUX_JB_ELEMENT_SIZE.
4308 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4309 for MAX_REGISTER_RAW_SIZE arrays.
4310 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4311 MIPS_LINUX_JB_ELEMENT_SIZE.
4312
9b949a49
PM
43132002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4314
4315 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4316
6d3e79c6
AS
43172002-08-19 Aidan Skinner <aidan@velvet.net>
4318
4319 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4320 ada-valprint.c ada-tasks.c.
4321 (YYFILES): Add ada-exp.y.
4322 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4323 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4324 (ada-exp.tab.o): New target.
4325
06c0b04e
AC
43262002-08-18 Andrew Cagney <ac131313@redhat.com>
4327
4328 * regcache.c (regcache_xfer_part): New function.
4329 (regcache_raw_read_part): New function.
4330 (regcache_raw_write_part): New function.
4331 (regcache_cooked_read_part): New function.
4332 (regcache_cooked_write_part): New function.
4333 * regcache.h (regcache_raw_read_part): Declare.
4334 (regcache_raw_write_part): Declare.
4335 (regcache_cooked_read_part): Declare.
4336 (regcache_cooked_write_part): Declare.
4337
92d1e331
DJ
43382002-08-18 Daniel Jacobowitz <drow@mvista.com>
4339
4340 * remote.c (remote_open_1): Add async_p.
4341 (remote_async_open_1): Delete.
4342 (open_remote_target): Delete.
4343 (remote_open, extended_remote_open): Update calls to remote_open_1.
4344 (remote_async_open, extended_remote_async_open): Call
4345 remote_open_1 instead of remote_async_open_1.
4346
247055de
MK
43472002-08-19 Mark Kettenis <kettenis@gnu.org>
4348
4349 * blockframe.c: Fix a few coding standard violations.
4350
641eda39
MK
43512002-08-19 Mark Kettenis <kettenis@gnu.org>
4352
0b717710
MK
4353 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4354 here from ...
4355 * config/i386/tm-i386sco5.h: ... here. File removed.
4356 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4357
26d28e12 4358 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
4359 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4360 (TM_FILE): Set to tm-i386.h.
4361 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4362 * config/i386/tm-i386v.h: Remove file.
4363 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4364 instead of "i386/tm-i386v.h".
4365 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4366 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4367 "i386/tm-i386v.h".
4368 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4369 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4370 "i386/tm-i386.h".
4371
d4e0bab4
MK
43722002-08-18 Mark Kettenis <kettenis@gnu.org>
4373
4374 * config/i386/nm-i386v.h: Add protection against
4375 multiple-inclusion.
4376 (i386_register_u_addr): Remove prototype.
4377 (register_u_addr): New prototype.
4378 (REGISTER_U_ADDR): Redefine accordingly.
4379 * i386v-nat.c: Improve several comments.
4380 (i386_register_u_addr): Change signature and rename to
4381 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4382 ubase variable.
4383
46cac009
AC
43842002-08-18 Andrew Cagney <ac131313@redhat.com>
4385
4386 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4387 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4388 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4389 deprecated_extract_return_value.
4390 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4391 rename mips_o32o64_push_arguments.
4392 (mips_gdbarch_init): Update.
4393 (mips_extract_return_value): Delete.
4394 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4395 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4396 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4397 (mips_n32n64_extract_return_value): Clone
4398 mips_extract_return_value.
4399 (mips_store_return_value): Delete.
4400 (mips_o32_store_return_value): Clone mips_store_return_value.
4401 (mips_o64_store_return_value): Clone mips_store_return_value.
4402 (mips_eabi_store_return_value): Clone mips_store_return_value.
4403 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4404
d2e4a39e
AS
44052002-08-18 Aidan Skinner <aidan@velvet.net>
4406
0c30c098
AS
4407 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4408 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4409
44102002-08-18 Aidan Skinner <aidan@velvet.net>
4411
4412 * ada-lang.c: Run through gdb_indent.sh.
4413 * ada-lang.h: Run through gdb_indent.sh.
4414 * ada-tasks.c: Run through gdb_indent.sh.
4415 * ada-typeprint.c: Run through gdb_indent.sh.
4416 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 4417
01fc4e33
AC
44182002-08-18 Andrew Cagney <ac131313@redhat.com>
4419
4420 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4421 ABI.
4422
d8ee244c
MK
44232002-08-18 Mark Kettenis <kettenis@gnu.org>
4424
c38d8261
MK
4425 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4426
222db64c
MK
4427 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4428 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4429
c2848c82
MK
4430 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4431 write_register_gen instead of write_register_bytes.
4432
d8ee244c
MK
4433 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4434 i[3456]-*-osf1mk* configurations have been made obsolete.
4435 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4436 i[3456]86-*-osf1mk* hosts obsolete.
4437 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4438 targets obsolete.
4439 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4440 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4441 config/i386/i386m3.mt, config/i386/nm-m3.h,
4442 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4443 config/i386/i386mk.mh, config/i386/i386mk.mt,
4444 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4445 obsolete.
4446 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4447 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4448 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4449
61d8d407
AC
44502002-08-18 Andrew Cagney <ac131313@redhat.com>
4451
4452 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4453 (hppa_value_returned_from_stack): Declare.
4454 (hppa_extract_return_value): Declare.
4455 * config/pa/hppa.mt: New file.
4456 * configure.tgt: Recognize hppa*-*-*.
4457 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4458
0c52bd59
MK
44592002-08-18 Mark Kettenis <kettenis@gnu.org>
4460
4461 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4462 comment.
4463
b5686e99
MK
44642002-08-17 Mark Kettenis <kettenis@gnu.org>
4465
4466 * top.c (gdb_rl_operate_and_get_next): Make sure
4467 operate-and-get-next functions correctly even when the history
4468 list is completely filled.
4469
c1bab85b
AC
44702002-08-18 Andrew Cagney <ac131313@redhat.com>
4471
4472 * MAINTAINERS (Target Instruction Set Architectures): Rename
4473 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4474 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4475 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4476 already listed under Host/Native.
4477
4478 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4479 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4480 mips*-*-*.
4481
32089c7c
AC
44822002-08-17 Andrew Cagney <ac131313@redhat.com>
4483
4484 * config/ia64/ia64.mt: New file.
4485 * config/alpha/alpha.mt: New file.
4486 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4487 ia64-linux-gnu. Mention that ia64-elf is broken.
4488 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4489
b4671f85
MK
44902002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4491
4492 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4493 generic_func_frame_valid instead of func_frame_valid.
4494
c8edd8b4
JB
44952002-08-16 Joel Brobecker <brobecker@gnat.com>
4496
4497 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4498 procfs appears to be broken when debugging on multi-processor
4499 machines. So enable software single stepping in order to avoid
4500 using the procfs interface to do next/step operations, using
4501 internal breakpoints instead.
4502
4503 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4504 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4505 make this pc address equal to the value it would have if the
4506 system stepping capability was used. Also set a new flag used
4507 to ensure that we don't readjust the PC one more time later.
4508
4509 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4510 address by DECR_PC_AFTER_BREAK when software single step is
4511 in use for this architecture, as this has already been taken
4512 care of in handle_inferior_event().
4513
238617f6
JB
45142002-08-16 Joel Brobecker <brobecker@gnat.com>
4515
4516 * infrun.c (handle_inferior_event): Minor reformatting, to make
4517 a rather long condition expression easier to read.
4518
541a7aac
AC
45192002-08-16 Andrew Cagney <ac131313@redhat.com>
4520
4521 * Makefile.in (gdbtk.o): Move to end of file.
4522 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4523 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4524 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4525 (gdbtk-wrapper.o, gdbres.o): Ditto.
4526
f92d4a7b
AC
45272002-08-16 Andrew Cagney <ac131313@redhat.com>
4528
4529 * Makefile.in (copying.o): Separate out compile rule.
4530 (hpux-thread.o, procfs.o, signals.o): Ditto.
4531 (v850ice.o, z8k-tdep.o): Ditto.
4532 (tui-file.o): Move to TUI section.
4533 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4534 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4535
1cce71eb
JB
45362002-08-16 Joel Brobecker <brobecker@gnat.com>
4537
4538 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4539 skip_trampoline_code, for better namespace-proofing.
4540
4541 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4542
0851f23d
JB
45432002-08-16 Joel Brobecker <brobecker@gnat.com>
4544
4545 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4546
f8d40ec8
JB
45472002-08-16 Joel Brobecker <brobecker@gnat.com>
4548
4549 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4550 signal, check whether we hit a breakpoint before checking for a
4551 single step breakpoint. Otherwise, GDB fails to notice that a
4552 breakpoint has been hit when stepping onto a breakpoint.
4553
63d022e0
KS
45542002-08-16 Keith Seitz <keiths@redhat.com>
4555
4556 * gdb-events.sh (clear_gdb_event_hooks): New function.
4557 * gdb-events.c: Regenerate.
4558 * gdb-events.h: Regenerate.
4559
6e31adb3
AC
45602002-08-16 Andrew Cagney <ac131313@redhat.com>
4561
4562 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4563 not_a_sw_breakpoint.
4564 * breakpoint.h (bpstat_stop_status): Add parameter names.
4565
c8189ed1
GS
45662002-08-16 Grace Sainsbury <graces@redhat.com>
4567
4568 * remote.c (remote_insert_hw_breakpoint)
4569 (remote_remove_hw_breakpoint): Fix calculation of length field
4570 for Z-packet.
4571
d05285fa
MS
45722002-08-15 Michael Snyder <msnyder@redhat.com>
4573
466d7106
MS
4574 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4575 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4576 (supply_fpregset): Ditto.
4577
d05285fa
MS
4578 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4579 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4580 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 4581 (TARGET_READ_SP): Delete.
bf1f5b4c 4582 (DO_REGISTERS_INFO): Delete.
102182a9
MS
4583 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4584 Delete.
4585 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4586 from macros to functions.
bf1f5b4c 4587
d05285fa
MS
4588 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4589 (mips_register_convertible, mips_register_convert_to_virtual,
4590 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
4591 (mips_read_sp): New function.
4592 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
4593 (mips_do_registers_info): Make static.
4594 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
4595 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4596 (mips_register_convert_from_type, mips_register_convert_to_type):
4597 New functions.
4598 (mips_gdbarch_init): Set up function_start_offset,
4599 register_virtual_size, pc_in_sigtramp.
d05285fa 4600
e76f1f2e
AC
46012002-08-15 Andrew Cagney <ac131313@redhat.com>
4602
4603 * infcmd.c (vector_info): New function.
4604 (_initialize_infcmd): Add command "info vector".
4605 (print_vector_info): New function.
4606
4607 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4608 * gdbarch.h, gdbarch.c: Regenerate.
4609
4782dc19
AC
46102002-08-15 Andrew Cagney <ac131313@redhat.com>
4611
4612 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4613 ``print_all''. Only print vector registers when ``print_all''.
4614
23e3a7ac
AC
46152002-08-15 Andrew Cagney <ac131313@redhat.com>
4616
8e186fd6
AC
4617 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4618 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4619
23e3a7ac
AC
4620 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4621 Add `args' parameter.
4622 * gdbarch.h, gdbarch.c: Regenerate.
4623
4624 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4625
4626 * infcmd.c (float_info): Call print_float_info.
4627 (print_float_info): New function. By default, print the
4628 floating-point registers.
4629
4630 * arch-utils.h (default_print_float_info): Delete declaration.
4631 * arch-utils.c (default_print_float_info): Delete function.
4632
e0ca2bb9
MK
46332002-08-16 Mark Kettenis <kettenis@gnu.org>
4634
3f733acc
MK
4635 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4636 out define.
4637
7d8d2918
MK
4638 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4639 FRAME.
4640
1c7cc583
MK
4641 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4642 * configure.host: Make i[3456]86-*-aix host obsolete.
4643 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4644 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4645 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4646 config/i386/xm-i386aix.h: Make files obsolete.
4647 * i386aix-nat.c: Make file obsolete.
4648 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4649 (i386aix-nat.o): Make target obsolete.
4650
e0ca2bb9
MK
4651 * config/i386/nm-gnu.h: Removed.
4652 * config/i386/nm-i386gnu.h: New file.
4653 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4654 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4655 Moved here from ...
4656 * config/i386/tm-i386gnu.h: ... here. Removed.
4657 * config/i386/xm-i386gnu.h: Removed.
4658 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4659 (NAT_FILE): Set to nm-i386gnu.h.
4660 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4661 * i386-tdep.c: New file.
4662 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4663 (i386gnu-tdep.o): Specify dependencies.
4664
16057ec7 46652002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 4666
6b99ee2e
MK
4667 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4668 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4669 Adjust a few comments to reflect reality a bit closer.
4670 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4671 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4672 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4673 target_insert_watchpoint, target_remove_watchpoint):
4674 Move defines to ...
4675 * config/i386/nm-i386sco5.h: ... here.
4676 (kernel_u_size): Add prototype. Improve a few comments and add
4677 protection against multiple inclusion.
4678
d9a6f65c
MK
4679 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4680 out define.
4681
047eff6a
MK
4682 * uw-thread.c (SP_ARG0): Define if not already defined.
4683 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4684
dcdb1290
MK
4685 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4686
5d2d0b2a
MK
4687 * config/i386/tm-i386.h: Don't include "regcache.h".
4688
61113f8b
MK
4689 * i387-tdep.h (i387_print_float_info): New prototype.
4690 * i387-tdep.c (print_i387_value, print_i387_ext,
4691 print_i387_status_word, print_i387_control_word): Add `struct
4692 ui_file *' argument and use it for output.
4693 (i387_print_float_info): Renamed from i387_float_info. Add
4694 `struct gdbarch *' and `struct ui_file *' arguments and use the
4695 latter for output.
4696 * i386-tdep.c: Include "i387-tdep.h".
4697 (i386_gdbarch_init): Set print_float_info.
4698 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4699 (FLOAT_INFO): Remove define.
4700
46e0f506
MS
47012002-08-13 Michael Snyder <msnyder@redhat.com>
4702
4703 * mips-tdep.c (mips_push_arguments): Rename to
4704 mips_eabi_push_arguments, and tune for EABI.
4705 (MIPS_REGS_HAVE_HOME_P): Delete.
4706 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4707 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4708 Delete references to mips_regs_have_home_p.
4709
409268de
KS
47102002-08-14 Keith Seitz <keiths@redhat.com>
4711
4712 * Makefile.in (install-gdbtk): Create insight plugin directory.
4713 Install plugins.tcl file.
4714
ffc6a242
KS
47152002-08-14 Keith Seitz <keiths@redhat.com>
4716
4717 * configure.in: Move SUBDIRS to near top of the file so that
4718 --enable options may add things to it.
4719 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4720 * configure: Regenerate.
4721
ebafbe83
MS
47222002-08-13 Michael Snyder <msnyder@redhat.com>
4723
4724 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4725 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4726 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4727
32f6f25d
AC
47282002-08-13 Andrew Cagney <ac131313@redhat.com>
4729
4730 * vax-tdep.c (vax_get_saved_register): Delete function.
4731 (vax_gdbarch_init): Update.
4732 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4733 (ns32k_gdbarch_init): Update.
4734 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4735 (alpha_gdbarch_init): Update.
4736
53826de9
AC
47372002-08-13 Andrew Cagney <cagney@redhat.com>
4738
4739 * regcache.c (init_regcache_descr): Overallocate the
4740 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4741 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4742 nr_raw_registers.
4743 (set_register_cached): Add range checking assertions. Use
4744 current_regcache.
4745
16057ec7 47462002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
4747
4748 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4749 numbers for MMX registers.
4750
7b4c2dce
AC
47512002-08-13 Andrew Cagney <cagney@redhat.com>
4752
4753 * i386-tdep.c (i386_gdbarch_init): Use
4754 generic_unwind_get_saved_register.
4755
1e03ad20
KB
47562002-08-13 Kevin Buettner <kevinb@redhat.com>
4757
4758 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4759 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4760 target vector.
4761 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4762 Delete. Add comment regarding this now-deleted target method.
4763
548bcbec
SC
47642002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4765
4766 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4767 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4768 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4769 real PC and the page number (if it's within the memory bank window).
4770 (m68hc11_pseudo_register_write): Likewise when saving.
4771 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4772 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4773 (m68hc11_register_raw_size): And use 32-bit for it.
4774 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4775 16K memory bank is used by the prog; also use the virtual pc.
4776
7df11f59
SC
47772002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4778
4779 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4780 (m68hc11_gdbarch_init): Install it in gdbarch.
4781 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4782 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4783 (MSYMBOL_SIZE): New for documentation.
4784 (insn_return_kind): Enum to specify how a function returns.
4785 (frame_extra_info): Cleanup and record the return mode.
4786 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4787 register in address computation.
4788 (m68hc11_get_return_insn): New to obtain the return instruction used
4789 by the function.
4790 (m68hc11_frame_init_saved_regs): Take into account the return
4791 instruction used by the function for far and interrupt functions.
4792 (m68hc11_init_extra_frame_info): Take into account page register.
4793 (m68hc11_frame_args_address): Adjust according to the return mode.
4794 (show_regs): Print page register only when it's used.
4795
5706502a
SC
47962002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4797
4798 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4799 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4800 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4801 registers.
4802 (m68hc11_register_raw_size): Likewise.
4803
28fc6740
AC
48042002-08-13 Andrew Cagney <cagney@redhat.com>
4805
4806 * i386-tdep.c (i386_register_name): Handle mmx registers.
4807 (mmx_regnum_p): New function.
4808 (i386_mmx_names): New array.
4809 (mmx_num_regs): New variable.
4810 (i386_pseudo_register_read): New function.
4811 (i386_pseudo_register_write): New function.
4812 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4813
4814 * regcache.c (regcache_raw_read_unsigned): New function.
4815 (regcache_raw_read_signed): New function.
4816 * regcache.h (regcache_raw_read_unsigned): Declare.
4817 (regcache_raw_read_signed): Declare.
4818
a378f419
AC
48192002-08-13 Andrew Cagney <cagney@redhat.com>
4820
4821 * regcache.c (regcache_raw_read_as_address): Delete function.
4822 (regcache_cooked_read_signed): New function.
4823 (regcache_cooked_read_unsigned): New function.
4824 * regcache.h (regcache_cooked_read_signed): Declare.
4825 (regcache_cooked_read_unsigned): Declare.
4826 (regcache_raw_read_as_address): Delete declaration.
4827
4828 * blockframe.c (generic_read_register_dummy): Use
4829 regcache_cooked_read_unsigned.
4830 * i386-tdep.c (i386_extract_struct_value_address): Use
4831 regcache_cooked_read_unsigned.
4832
81967506
SC
48332002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4834
4835 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4836 double sizes according to ELF ABI flags.
4837 (gdbarch_tdep): Record elf_flags.
4838
ffe1f3ee
SC
48392002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4840
4841 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4842 (m6812_prolog): They can appear in 68HC12 function prologue.
4843 (m68hc11_frame_chain): Cleanup.
4844
98216c5d
AC
48452002-08-12 Andrew Cagney <cagney@redhat.com>
4846
4847 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4848 declarations.
4849 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4850 (i386_linux_register_raw_size): Delete function.
4851 (i386_linux_init_abi): Update.
4852 * i386-tdep.c (i386_register_raw_size): Delete function.
4853 (i386_register_byte): Delete function.
4854 (i386_gdbarch_init): Update.
4855 (i386_register_size): Delete array.
4856 (i386_register_offset): Delete array.
4857
4858 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4859 (REGISTER_RAW_SIZE): Delete macro.
4860 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4861 (REGISTER_BYTE): Delete macro.
4862
3b19021e
AS
48632002-08-11 Aidan Skinner <aidan@velvet.net>
4864
4865 * ada-lang.c (ada_lookup_partial_symbol)
4866 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4867 prototype names so that grep ^func works properly.
4868
4869 * ada-lang.c (ada_array_element_type)
4870 (ada_lookup_partial_symbol): Fix typos in parameter list.
4871
4872 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4873 Fix prototype names so that grep ^func works properly.
4874
b063e7a2
AC
48752002-08-10 Andrew Cagney <cagney@redhat.com>
4876 Elena Zannoni <ezannoni@redhat.com>
4877 Martin M. Hunt <hunt@redhat.com>
4878
4879 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4880 (build_builtin_type_vec128i): Set the vector bit.
4881 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4882 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4883 (build_builtin_type_vec64): New function.
4884 (build_builtin_type_vec64i): New function.
4885 (build_gdbtypes): Initialize builtin_type_vec64 and
4886 builtin_type_vec64i.
4887
a7e3c2ad
AC
48882002-08-09 Andrew Cagney <cagney@redhat.com>
4889
4890 * regcache.c (regcache_dump): Compare the register offset
4891 with REGISTER_BYTE.
4892 * arch-utils.c (generic_register_byte): New function.
4893 * arch-utils.h (generic_register_byte): Declare.
4894 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4895 * gdbarch.h, gdbarch.c: Regenerate.
4896
af030b9a
AC
48972002-08-09 Andrew Cagney <cagney@redhat.com>
4898
4899 * regcache.c: Include "gdbcmd.h"
4900 (_initialize_regcache): Add commands "maintenance print
4901 registers", "maintenance print raw-registers" and "maintenance
4902 print cooked-registers".
4903 (enum regcache_dump_what): Define.
4904 (dump_endian_bytes): New function.
4905 (regcache_dump): New function.
4906 (regcache_print): New function.
4907 (maintenance_print_registers): New function.
4908 (maintenance_print_raw_registers): New function.
4909 (maintenance_print_cooked_registers): New function.
4910 * Makefile.in (regcache.o): Update dependencies.
4911
cb3d25d1
MS
49122002-08-09 Michael Snyder <msnyder@redhat.com>
4913
4914 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4915 (mips_push_arguments): Correct some comments. Use paddr_nz
4916 for printing addresses in debug output. Replace static
4917 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4918 (mips_n32n64_push_arguments): New function, cloned from
4919 mips_push_arguments and tuned for the n32/n64 ABI.
4920 (mips_push_register): Buffer needs dynamic allocation.
4921 (mips_print_register): Ditto.
4922 (do_gp_register_row): Ditto.
4923 (mips_store_return_value): Ditto.
4924 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4925
2163ab9d
DH
49262002-08-09 Don Howard <dhoward@redhat.com>
4927
4928 * memattr.c (mem_info_command): Print special case of upper bound
4929 as max CORE_ADDR + 1.
4930
b78bcb18
MS
49312002-08-08 Michael Snyder <msnyder@redhat.com>
4932
4933 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4934 returns structs by ref if they're too big to fit in two registers.
4935
ffabd70d
KB
49362002-08-09 Kevin Buettner <kevinb@redhat.com>
4937
4938 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4939 saved regs value.
4940 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4941 mips_find_saved_regs().
4942 (mips_pop_frame): Likewise.
4943
fbcdb4a3
KB
49442002-08-09 Kevin Buettner <kevinb@redhat.com>
4945
4946 * blockframe.c (frame_saved_regs_register_unwind): Revise
4947 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4948 frames are in use.
4949
3c3bea1c
GS
49502002-08-09 Grace Sainsbury <graces@redhat.com>
4951
4952 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4953 T-packets; the 'a' is not taken as a register number.
4954 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4955 (remote_stopped_data_address): New functions; add to target
4956 vector.
4957 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4958 prototypes to match other implementations of this
4959 function. replace integer argument with pointer -- the length
4960 field in the Z-packet is the length of what is pointed to or 1 if
4961 pointer is null. Add to target vector.
4962 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4963 target vector.
4964
4965 From Mark Salter:
4966 * remote.c (remote_wait): Add support to extract optional
4967 watchpoint information from T-packet. Ignore unrecognized
4968 optional info in T-packet.
4969 (remote_async_wait): Ditto.
4970
5d1d95de
CV
49712002-08-09 Corinna Vinschen <vinschen@redhat.com>
4972
4973 * cli/cli-dump.c: Change fopen modes to use binary open modes
4974 as defined in include/fopen-bin.h throughout.
4975
c86b5b38
MS
49762002-08-08 Michael Snyder <msnyder@redhat.com>
4977
4978 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4979
b30590dc
KB
49802002-08-08 Kevin Buettner <kevinb@redhat.com>
4981
4982 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4983 assertion failure by returning early after a warning.
4984
498868ed
KB
49852002-08-08 Kevin Buettner <kevinb@redhat.com>
4986
4987 * mips-tdep.c (mips_find_saved_regs): Make static.
4988 (mips_frame_init_saved_regs): New function.
4989 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4990 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4991 (mips_find_saved_regs): Delete declaration.
4992
b2dd6311
GS
49932002-08-08 Grace Sainsbury <graces@redhat.com>
4994
3c3bea1c
GS
4995 * remote.c (remote_wait, remote_async_wait): Change
4996 thread_num from int to ULONGEST.
4997 (unpack_varlen_hex): Change result parameter from
4998 int * to ULONGEST *.
b2dd6311 4999
ea47855f
AC
50002002-08-08 Andrew Cagney <ac131313@redhat.com>
5001
5002 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5003 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5004 powerpc*-*-*.
5005 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5006
69db8bae
AC
50072002-08-08 Andrew Cagney <cagney@redhat.com>
5008
5009 * gcore.c (override_derive_stack_segment): Delete variable.
5010 (preempt_derive_stack_segment): Delete function.
5011 (derive_stack_segment): Delete function.
5012 (default_derive_stack_segment): Renamed to derive_stack_segment.
5013 (override_derive_heap_segment): Delete variable.
5014 (preempt_derive_heap_segment): Delete function.
5015 (derive_heap_segment): Delete function.
5016 (default_derive_heap_segment): Rename to derive_heap_segment.
5017
cb811fe7
MS
50182002-08-06 Michael Snyder <msnyder@redhat.com>
5019
5020 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5021 * mips-tdep.c (mips_EABI_use_struct_convention,
5022 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5023 New functions. (mips_use_struct_convention): Delete.
5024 (mips_gdbarch_init): set use_gdbarch_convention.
5025
8b389c40
MS
50262002-08-06 Michael Snyder <msnyder@redhat.com>
5027
5028 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5029 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5030 mips_o32_reg_struct_has_addr): New functions.
5031 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5032
5c27f28a
AC
50332002-08-07 Andrew Cagney <ac131313@redhat.com>
5034
5035 * regcache.c (pseudo_register): Delete function.
5036 (fetch_register): Delete function.
5037 (store_register): Delete function.
5038 (regcache_raw_read, legacy_read_register_gen): Use
5039 target_fetch_registers instead of fetch_register.
5040 (legacy_write_register_gen, regcache_raw_write): Use
5041 target_store_register instead of store_register.
5042 (write_register_bytes): Ditto.
5043
5044 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5045 (STORE_PSEUDO_REGISTER): Delete.
5046 * gdbarch.h, gdbarch.c: Regenerate.
5047
5b331675
CV
50482002-08-06 Corinna Vinschen <vinschen@redhat.com>
5049
5050 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5051 write dump file binary.
5052
6acdf5c7
MS
50532002-08-05 Michael Snyder <msnyder@redhat.com>
5054
5055 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5056 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5057 (mips_gdbarch_init): Set N32 target to be mips64.
5058
b2f01c35
KB
50592002-08-06 Kevin Buettner <kevinb@redhat.com>
5060
5061 * frame.c (find_saved_register): Break out of loop once saved
5062 register address is found. Don't mention sparc in loop comment
5063 anymore.
5064
63db5580
KB
50652002-08-06 Kevin Buettner <kevinb@redhat.com>
5066
5067 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5068 mips_default_saved_regsize to 8.
5069
5e34e75e
AC
50702002-08-06 Andrew Cagney <ac131313@redhat.com>
5071
5072 * gcore.c: Do not include <sys/procfs.h>.
5073 * Makefile.in (gcore.o): Update dependencies.
5074
eb4c54a2
AC
50752002-08-06 Andrew Cagney <cagney@redhat.com>
5076
5077 * configure.tgt: Make arc-*-* obsolete.
5078 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5079 * MAINTAINERS: Make arc-elf obsolete.
5080 * arc-tdep.c: Make file obsolete.
5081 * config/arc/arc.mt: Ditto.
5082 * config/arc/tm-arc.h: Ditto.
5083
ced15480
TR
50842002-08-05 Theodore A. Roth <troth@verinet.com>
5085
c1bab85b 5086 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 5087
b4743822
AC
50882002-08-05 Andrew Cagney <ac131313@redhat.com>
5089
5090 * mcore-tdep.c (mcore_gdbarch_init): Use
5091 generic_unwind_get_saved_register instead of
5092 generic_get_saved_register.
5093 * v850-tdep.c (v850_gdbarch_init): Ditto.
5094 * frv-tdep.c (frv_gdbarch_init): Ditto.
5095 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5096 * s390-tdep.c (s390_gdbarch_init): Ditto.
5097 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5098 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5099 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5100
3956d554
JB
51012002-08-05 Joel Brobecker <brobecker@gnat.com>
5102
5103 * objfiles.h: Add missing #include "symfile.h"
5104
5105 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5106
8249c0d6
AC
51072002-08-04 Andrew Cagney <ac131313@redhat.com>
5108
5109 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5110 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5111 of FIELD_BITSIZE.
5112
b9d14705
DJ
51132002-08-04 Daniel Jacobowitz <drow@mvista.com>
5114
5115 * NEWS: Cleanup and nitpick.
5116
dd73b9bb
AC
51172002-08-03 Andrew Cagney <ac131313@redhat.com>
5118
5119 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5120
043a27f8
AC
51212002-08-03 Andrew Cagney <ac131313@redhat.com>
5122
5123 * Makefile.in (gdbtk-bp.o): Update dependencies.
5124 (gdbtk-register.o): Ditto.
5125 (gdbtk-varobj.o): Ditto.
5126
46ce284d
AC
51272002-08-03 Andrew Cagney <cagney@redhat.com>
5128
5129 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5130 m68hc11_fetch_pseudo_register.
5131 (m68hc11_pseudo_register_write): Replace
5132 m68hc11_store_pseudo_register.
5133 (m68hc11_gdbarch_init): Update.
5134
b66d6d2e
AC
5135Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5136
5137 * gdbarch.sh: Include "gdb_string.h".
5138 * gdbarch.c: Regenerate.
5139
5140 * regcache.c: Include "gdb_string.h".
5141 * ax-general.c: Ditto.
5142 * varobj.c: Ditto.
5143 * std-regs.c: Ditto.
5144 * fbsd-proc.c: Ditto.
5145 * thread.c: Ditto.
5146
5147 * Makefile.in (regcache.o): Update dependencies.
5148 (thread.o, gdbarch.o): Ditto.
5149 (ax-general.o, gdbarch.o): Ditto.
5150 (varobj.o, std-regs.o): Ditto.
5151 (fbsd-proc.o): Specify dependencies.
5152
29e1842b
AC
51532002-08-02 Andrew Cagney <cagney@redhat.com>
5154
5155 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5156 regnum.
5157 (regcache_cooked_write): Ditto.
5158
68365089
AC
51592002-08-02 Andrew Cagney <ac131313@redhat.com>
5160
5161 * regcache.c (regcache_cooked_read): New function.
5162 (regcache_cooked_write): New function.
5163 (read_register_gen): Rewrite using regcache_cooked_read.
5164 (write_register_gen): Rewrite using regcache_cooked_write.
5165
5166 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5167 Declare.
5168
d8124050
AC
51692002-08-02 Andrew Cagney <cagney@redhat.com>
5170
5171 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5172 Replace the architecture methods register_read and register_write.
5173 * gdbarch.h, gdbarch.c: Regenerate.
5174 * regcache.c (init_regcache_descr): Update.
5175 (read_register_gen): Update.
5176 (write_register_gen): Update.
5177 (supply_register): Update comment.
5178
5179 * sh-tdep.c (sh_gdbarch_init): Update.
5180 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5181 `regcache' and `gdbarch' parameters. Make `buffer' a void
5182 pointer. Update code.
5183 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5184 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5185 void pointer. Update code.
5186 (sh64_register_write): Delete.
5187 (sh4_register_read): Delete.
5188 (sh64_register_read): Delete.
5189 (sh4_register_write): Delete.
5190 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5191 void pointer, `to' parameter a void pointer.
5192 (sh_sh64_register_convert_to_raw): Ditto.
5193
a6425924
KB
51942002-08-01 Kevin Buettner <kevinb@redhat.com>
5195
5196 * mips-tdep.c (mips_register_virtual_type): Use architecture
5197 invariant return values.
5198
ff5922b5
AC
51992002-08-01 Andrew Cagney <cagney@redhat.com>
5200
5201 * linux-proc.c: Include "gdb_string.h".
5202 * Makefile.in (linux-proc.o): Update dependency list.
5203
32a6503c
KB
52042002-08-01 Kevin Buettner <kevinb@redhat.com>
5205
5206 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5207 comment.
5208
ccaa32c7
GS
52092002-08-01 Grace Sainsbury <graces@redhat.com>
5210
5211 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5212 to_insert_watchpoint, to_remove_watchpoint,
5213 to_stopped_by_watchpoint, to_stopped_data_address,
5214 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5215 target vecctor. Define their corresponding macros so they call
5216 them.
5217
5218 * target.c: Add default and debug versions of for
5219 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5220 to_insert_watchpoint, to_remove_watchpoint,
5221 to_stopped_by_watchpoint, to_stopped_data_address,
5222 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5223
78fde5f8
KB
52242002-08-01 Kevin Buettner <kevinb@redhat.com>
5225
5226 * mips-tdep.c (mips_register_virtual_type): New function.
5227 (mips_gdbarch_init): Register mips_register_virtual_type()
5228 with gdbarch machinery.
5229 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5230 this file instead of tm-bigmips.h.
5231 (MIPS_REGSIZE): Delete this macro.
5232 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5233 multiarch version in mips-tdep.c will be found.
5234
db034ac5
AC
52352002-08-01 Andrew Cagney <cagney@redhat.com>
5236
5237 * NEWS: Menion that CHILL has been made obsolete.
5238
5239 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
5240 * stabsread.c (read_range_type): Ditto.
5241 * gdbtypes.h: Ditto.
5242 * language.c (binop_type_check): Ditto.
5243 (binop_result_type): Ditto.
5244 (integral_type): Ditto.
5245 (character_type): Ditto.
5246 (string_type): Ditto.
5247 (boolean_type): Ditto.
5248 (structured_type): Ditto.
5249 (lang_bool_type): Ditto.
5250 (binop_type_check): Ditto.
5251 * language.h (_LANG_chill): Ditto.
5252 * dwarfread.c (set_cu_language): Ditto.
5253 * dwarfread.c (CHILL_PRODUCER): Ditto.
5254 * dwarfread.c (handle_producer): Ditto.
5255 * expression.h (enum exp_opcode): Ditto.
5256 * eval.c: Ditto for comments.
5257 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5258 * expprint.c (print_subexp): Ditto.
5259 (print_subexp): Ditto.
5260 * valops.c (value_cast): Ditto.
5261 (search_struct_field): Ditto.
5262 * value.h (COERCE_VARYING_ARRAY): Ditto.
5263 * symfile.c (init_filename_language_table): Ditto.
5264 (add_psymbol_with_dem_name_to_list): Ditto.
5265 * valarith.c (value_binop): Ditto.
5266 (value_neg): Ditto.
5267 * valops.c (value_slice): Ditto.
5268 * symtab.h (union language_specific): Ditto.
5269 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5270 (SYMBOL_DEMANGLED_NAME): Ditto.
5271 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5272 * defs.h (enum language): Ditto.
5273 * symtab.c (got_symtab): Ditto.
5274 * utils.c (fprintf_symbol_filtered): Ditto.
5275
5276 * ch-typeprint.c: Make file obsolete.
5277 * ch-valprint.c: Make file obsolete.
5278 * ch-lang.h: Make file obsolete.
5279 * ch-exp.c: Make file obsolete.
5280 * ch-lang.c: Make file obsolete.
5281
5282 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5283 CHILL_LIB.
5284 (TARGET_FLAGS_TO_PASS): Ditto.
5285 (CHILLFLAGS): Obsolete.
5286 (CHILL): Obsolete.
5287 (CHILL_FOR_TARGET): Obsolete.
5288 (CHILL_LIB): Obsolete.
5289 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5290 ch-valprint.c.
5291 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5292 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5293 ch-lang.o.
5294 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5295 targets.
5296
8aaf0b47
JB
52972002-07-31 Joel Brobecker <brobecker@gnat.com>
5298
5299 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5300 This does not change anything at the moment, but will be helpful
5301 later when full Ada support is integrated.
5302
f3a7b3a5
KB
53032002-07-31 Kevin Buettner <kevinb@redhat.com>
5304
5305 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5306 help message.
5307
fb850278
KB
53082002-07-31 Kevin Buettner <kevinb@redhat.com>
5309
5310 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5311 and save it in a local variable. Use variable in later test.
5312
e3bddbfa
KB
53132002-07-31 Kevin Buettner <kevinb@redhat.com>
5314
5315 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5316 test. (Thanks to Daniel Jacobowitz.)
5317
28d169de
KB
53182002-07-31 Kevin Buettner <kevinb@redhat.com>
5319
5320 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5321 (mips_abi_strings): Add "n64".
5322 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5323
7fe7e44e
KB
53242002-07-31 Kevin Buettner <kevinb@redhat.com>
5325
5326 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5327 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5328
c6caf090
KB
53292002-07-31 Kevin Buettner <kevinb@redhat.com>
5330
5331 * utils.c (host_pointer_to_address, address_to_host_pointer):
5332 Use gdb_assert() instead of explicit call to internal_error().
5333
c41669e0
KB
53342002-07-30 Kevin Buettner <kevinb@redhat.com>
5335
5336 * Makefile.in (rs6000-nat.o): Update dependencies.
5337
5338 From Nicholas Duffek:
5339 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5340 (aix-thread.o): New rule.
5341 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5342 * config/powerpc/aix432.mh: New file.
5343
2fda4977
DJ
53442002-07-30 Daniel Jacobowitz <drow@mvista.com>
5345
5346 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5347 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5348 (fetch_core_registers, ppc_linux_supply_gregset)
5349 (ppc_linux_supply_fpregset): New functions.
5350 (ppc_linux_regset_core_fns): New.
5351 (_initialize_ppc_linux_tdep): Call add_core_fns.
5352 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5353 and ppc_linux_supply_gregset.
5354 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5355 (supply_fpregset): Call ppc_linux_supply_fpregset.
5356 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5357 corelow.o.
5358 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5359
729051e6
DJ
53602002-07-30 Daniel Jacobowitz <drow@mvista.com>
5361
5362 * symtab.c (lookup_symbol): Demangle before lowercasing.
5363
5f8a3188
AC
53642002-07-30 Andrew Cagney <ac131313@redhat.com>
5365
5366 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5367 declaration.
5368 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5369 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5370 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5371 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5372 "gdb_string.h".
5373 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5374 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5375 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5376 (avr-tdep.o, mon960-rom.o): Ditto.
5377 (aout_stabs_gnu_h): Define.
5378 (symtab_h): Remove $(gdb_obstack_h).
5379
67f07146
JB
53802002-07-30 Jim Blandy <jimb@redhat.com>
5381
5382 Patch from David Carlton <carlton@math.stanford.edu>:
5383 * gdbinit.in: Move the `dir' commands that add GDB's own source
5384 directory to the search path to the end, so that the `gdb' source
5385 directory will be searched first.
5386
04ea0df1
AC
53872002-07-29 Andrew Cagney <ac131313@redhat.com>
5388
5389 * gdb_obstack.h: New file.
5390 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5391 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5392 * objfiles.h: Include "gdb_obstack.h".
5393 * Makefile.in (gdb_obstack_h): Define.
5394 (symtab_h): Add $(gdb_obstack_h).
5395 (objfiles_h): Add $(gdb_obstack_h).
5396
5397 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5398 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5399 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5400 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5401 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5402 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5403 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5404 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5405
5406 * Makefile.in (bcache.o): Update dependencies.
5407 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5408 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5409 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5410 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5411 (stabsread.o, symfile.o, symmisc.o): Ditto.
5412 (symtab.o, typeprint.o, macroexp.o): Ditto.
5413 (macrotab.o, mdebugread.o): Ditto.
5414 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5415 (coff_ecoff_h, aout_aout64_h): Define.
5416 (aout_stabs_gnu_h, libaout_h): Define.
5417
d138e37a
AC
54182002-07-29 Andrew Cagney <cagney@redhat.com>
5419
5420 * regcache.c (struct regcache_descr): Rename nr_registers to
5421 nr_cooked_registers. Revise comments describing the structure
5422 member fields.
5423 (init_regcache_descr): Update.
5424 (init_legacy_regcache_descr): Update.
5425 (read_register_gen, write_register_gen): When a cooked register in
5426 the raw register range, directly access the value from the raw
5427 register cache.
5428
460e6ec3
AC
54292002-07-29 Andrew Cagney <ac131313@redhat.com>
5430
5431 * z8k-tdep.c: Do not include "obstack.h".
5432 * h8300-tdep.c, h8500-tdep.c: Ditto.
5433 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5434 * valprint.c, v850-tdep.c: Ditto.
5435 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5436 * mn10200-tdep.c: Ditto.
5437
5438 * Makefile.in (z8k-tdep.o): Update dependencies.
5439 (m68hc11-tdep.o, valprint.o): Ditto.
5440 (v850-tdep.o, d10v-tdep.o): Ditto.
5441 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5442 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5443 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5444 (sh_opc_h, gdb_sim_sh_h): Define.
5445 (elf_sh_h, elf_bfd_h): Define.
5446 (opcode_m68hc11_h): Define.
5447 (OPCODES_SRC, OPCODES_DIR): define.
5448 (OPCODES): Use $(OPCODES_DIR).
5449 (gdb_sim_d10v_h): Rename sim_d10v_h.
5450 (gdb_sim_arm_h): Rename sim_arm_h.
5451
790c9cf0
KB
54522002-07-26 Kevin Buettner <kevinb@redhat.com>
5453
5454 * utils.c (host_pointer_to_address, address_to_host_pointer):
5455 Change internal_error() message to indicate function responsible
5456 for the error.
5457
9647fa49
KB
54582002-07-26 Kevin Buettner <kevinb@redhat.com>
5459
5460 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5461 calls to local_hex_string_custom().
5462
dabbe2c0
KB
54632002-07-26 Kevin Buettner <kevinb@redhat.com>
5464
5465 * irix5-nat.c: Move IRIX shared library support from here...
5466 * solib-irix.c: ...to here. Revised substantially to work with
5467 generic solib framework.
5468
b96d0a4e
KB
5469 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5470 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5471 * mips-irix-tdep.c: New file.
5472
313fb2f6
KB
5473 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5474 (mips-irix-tdep.o, solib-irix.o): New rules.
5475 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5476 solib-irix.o.
5477 * config/mips/irix6.mt (TDEPFILES): Likewise.
5478 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5479
ab2eaf26
KB
54802002-07-26 Kevin Buettner <kevinb@redhat.com>
5481
177e4768 5482 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
5483 disabled (via ``#if 0'') includes.
5484
7244546a
KB
54852002-07-26 Kevin Buettner <kevinb@redhat.com>
5486
5487 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5488 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5489 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5490 Add support for the fpscr register.
5491 * rs6000-nat.c (regmap, fetch_inferior_registers)
5492 (store_inferior_registers, fetch_core_registers): Likewise.
5493
dd7be90a
KB
54942002-07-26 Kevin Buettner <kevinb@redhat.com>
5495
5496 * rs6000-nat.c (language.h): Include.
5497 (special_regs): Delete this array.
5498 (regmap): New function.
5499 (fetch_register, store_register): Use regmap() to map gdb
5500 register numbers to ptrace register numbers. Also, use
5501 outputs from regmap() to make decisions regarding type of
5502 ptrace() call to make. In particular, don't compare against
5503 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5504 (fetch_inferior_registers, store_inferior_registers): Where
5505 possible, obtain register numbers from tdep struct. Don't
5506 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5507 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5508 (LAST_UISA_SP_REGNUM): Delete.
5509
11bf77db
KB
55102002-07-25 Kevin Buettner <kevinb@redhat.com>
5511
5512 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
5513 (fetch_registers, store_register, fetch_core_registers): Don't
5514 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
5515 regcache_collect() as appropriate.
5516 (find_toc_address): Format hex address with local_hex_string().
5517
06afebeb
AC
55182002-07-25 Andrew Cagney <ac131313@redhat.com>
5519
5520 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5521 bfd/elf32-frv.c.
5522
8c554d79
TT
55232002-07-24 Tom Tromey <tromey@redhat.com>
5524
5525 * jv-exp.y: Marked all strings with _().
5526 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5527 internal_error.
5528 (MethodInvocation, CastExpression, parse_number, yyerror,
5529 java_type_from_name, push_expression_name, yylex): Typo fixes.
5530
e4c242d9
DJ
55312002-07-24 Daniel Jacobowitz <drow@mvista.com>
5532
5533 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5534 (tee_file_flush, tee_file_write, tee_file_fputs)
5535 (tee_file_isatty): New.
5536 * ui-file.h (tee_file_new): Add prototype.
5537
ebf56fd3
AS
55382002-07-24 Aidan Skinner <aidan@velvet.net>
5539
5540 * ada-lang.c: Change k&r style function definitions to prototyped
5541 form.
5542 * ada-typeprint.c: Change k&r style function definitions to prototyped
5543 form.
5544 * ada-valprint.c: Change k&r style function definitions to prototyped
5545 form.
5546
7fb623f7
AC
55472002-07-24 Andrew Cagney <cagney@redhat.com>
5548
5549 * README: Remove reference to remote-bug.
5550 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5551 remote-bug.c.
5552 (m88k-nat.o): Delete rule.
5553 (m88k-tdep.o): Delete rule.
5554 (remote-bug.o): Delete rule.
5555 * MAINTAINERS: Mark as obsolete.
5556 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5557 * m88k-tdep.c: Make file obsolete.
5558 * config/m88k/m88k.mh: Ditto.
5559 * config/m88k/delta88v4.mh: Ditto.
5560 * config/m88k/delta88v4.mt: Ditto.
5561 * config/m88k/delta88.mt: Ditto.
5562 * config/m88k/delta88.mh: Ditto.
5563 * remote-bug.c: Ditto.
5564 * config/m88k/tm-delta88.h: Ditto.
5565 * config/m88k/nm-delta88v4.h: Ditto.
5566 * config/m88k/xm-delta88.h: Ditto.
5567 * config/m88k/xm-dgux.h: Ditto.
5568 * config/m88k/tm-m88k.h: Ditto.
5569 * config/m88k/nm-m88k.h: Ditto.
5570 * config/m88k/tm-delta88v4.h: Ditto.
5571 * m88k-nat.c: Ditto.
5572 * cxux-nat.c: Ditto.
5573 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5574 and m88*-*-* obsolete.
5575 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5576 m88*-*-* obsolete.
5577
37611a2b
AC
55782002-07-24 Andrew Cagney <cagney@redhat.com>
5579
5580 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5581 constant. Same for local pointer variables.
5582 (extract_signed_integer): Ditto.
5583 * defs.h (extract_unsigned_integer): Update.
5584 (extract_signed_integer): Update.
5585
1aaa5f99
AC
55862002-07-24 Andrew Cagney <cagney@redhat.com>
5587
5588 * regcache.c (regcache_raw_write): Change buf parameter to a
5589 constant void pointer.
5590 (regcache_raw_read): Change buf parameter to a void pointer.
5591 (legacy_write_register_gen): Change myaddr parameter a constant
5592 void pointer.
5593 (supply_register): Change val parameter to a const void pointer.
5594 * regcache.h (regcache_raw_write): Update declaration.
5595 (regcache_raw_read): Update declaration.
5596 (supply_register): Update declaration.
5597
b4f5539f
TT
55982002-07-24 Tom Tromey <tromey@redhat.com>
5599
5600 * defs.h (gdb_readline_wrapper): Declare.
5601 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5602 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5603 * top.c (gdb_readline_wrapper): New function.
5604 (command_line_input): Use it.
5605
0818c12a
AC
56062002-07-24 Andrew Cagney <cagney@redhat.com>
5607
5608 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5609 regcache_read and regcache_write.
5610 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5611 * regcache.c: Update.
5612 * sh-tdep.c (sh64_push_arguments): Update comment.
5613 (sh_pseudo_register_read): Update.
5614 (sh_pseudo_register_write): Update.
5615 (sh4_register_read): Update.
5616 (sh4_register_write): Update.
5617 (sh64_pseudo_register_read): Update.
5618 (sh64_pseudo_register_write): Update.
5619 (sh64_register_read): Update.
5620 (sh64_register_write): Update.
5621 * i386-tdep.c (i386_extract_return_value): Update.
5622 (i386_extract_struct_value_address): Update.
5623 (i386_extract_return_value): Update.
5624 * blockframe.c (generic_read_register_dummy): Update.
5625 (generic_call_dummy_register_unwind): Update
5626 * infrun.c (write_inferior_status_register): Update.
5627
f7321c06
JB
56282002-07-23 Jim Blandy <jimb@redhat.com>
5629
5630 * parser-defs.h (expression_context_pc): Make this extern.
5631 (Thanks to Michael Snyder.)
5632
2037aebb
AC
56332002-07-23 Andrew Cagney <ac131313@redhat.com>
5634
5635 GDB 5.2.1 released from 5.2 branch.
5636 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5637 * README: Update to mention 5.2.1.
5638
66504d44
MS
56392002-07-23 Mark Salter <msalter@redhat.com>
5640
5641 * remote.c (remote_read_bytes): Fix check for error.
5642
27bae383
KB
56432002-07-22 Kevin Buettner <kevinb@redhat.com>
5644
5645 * aix-thread.c (language.h): Include.
5646 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5647 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5648 Print newlines at end of debug messages.
5649 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5650 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5651
56522002-07-22 Kevin Buettner <kevinb@redhat.com>
5653
5654 * aix-thread.c (ppc-tdep.h): Include.
5655 (special_register_p): New function.
5656 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5657 (store_regs_user_thread): Use register number information from
5658 gdbarch_tdep struct instead of hardcoded offsets relative to
5659 FIRST_UISA_SP_REGNUM.
5660 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5661 special_register_p() instead of using FPLAST_REGNUM and
5662 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5663 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5664 will be MQ's register number.
5665
56662002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
5667
5668 * aix-thread.c (ops): Rename to aix_thread_ops.
5669 (base_ops): Rename to base_target.
5670 (ops_attach): Rename to aix_thread_attach.
5671 (ops_detach): Rename to aix_thread_detach.
5672 (ops_resume): Rename to aix_thread_detach.
5673 (ops_wait): Rename to aix_thread_wait.
5674 (ops_kill): Rename to aix_thread_kill.
5675 (init_ops): Rename to init_aix_thread_ops.
5676 (ops_fetch_register): Rename to aix_thread_fetch_register.
5677 (ops_store_register): Rename to aix_thread_store_register.
5678 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5679 (ops_thread_alive): Rename to aix_thread_thread_alive.
5680 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5681 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5682 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5683 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5684 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5685 (store_regs_lib): Rename to store_regs_user_thread.
5686 (store_regs_kern): Rename to store_regs_kernel_thread.
5687
27bae383 56882002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
5689
5690 * aix-thread.c (ops_prepare_to_store): Eliminate.
5691 (init_ops): Don't initialize ops.prepare_to_store.
5692 (store_regs_kern): Pre-fetch register buffers from child,
5693 because some registers may not be in the cache. Copy
5694 regs from register cache only if they are cached.
5695 (store_regs_lib): Copy regs from register cache only
5696 if they are cached.
5697 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5698 fill_gprs64): Ditto.
5699
61c5da0b
KB
57002002-07-22 Kevin Buettner <kevinb@redhat.com>
5701
5702 * aix-thread.c (gdb_assert.h): Include.
5703 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5704 register sizes (from register cache) match size of buffer holding
5705 register data.
5706 (fill_sprs32): Change parameter types to match those in the ptrace()
5707 buffer.
5708 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5709 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5710
57112002-07-22 Michael Snyder <msnyder@redhat.com>
5712
5713 * aix-thread.c (supply_sprs64): Cosmetic change.
5714 (supply_sprs32): Cosmetic change.
5715 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5716 (fill_sprs64): Use regcache_collect instead of read_register.
5717 (store_regs_lib): Use regcache_collect instead of
5718 read_register. Use fill_sprs32 instead of fill_sprs64,
5719 if debugging a 32-bit architecture.
5720 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5721 out of the register cache, instead of passing a pointer into
5722 the register cache directly to ptrace. Use regcache_collect
5723 insteaad of read_register.
5724 (ops_prepare_to_store): Use target_read_registers instead
5725 of read_register_bytes.
5726
36479eb1
AS
57272002-07-20 Aidan Skinner <aidan@velvet.net>
5728
5729 * MAINTAINERS: Add self under write after approval.
5730
80ae6ee2
AS
57312002-07-20 Aidan Skinner <aidan@velvet.net>
5732
5733 * ada-tasks.c: Change k&r style function definitions to prototyped
5734 form.
5735
8a8ab2b9
AC
57362002-07-19 Andrew Cagney <ac131313@redhat.com>
5737
5738 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5739 * x86-64-tdep.c: Include "objfiles.h".
5740 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5741 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5742
fb16b900
ML
57432002-07-17 Michal Ludvig <michal@suse.cz>
5744
5745 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5746 (update_context): Initialise cfa variable.
5747
0fe7bf7b
MS
57482002-07-17 Michael Snyder <msnyder@redhat.com>
5749
5750 * aix-thread.c: Shorten some long lines.
5751 Bring comments into line with code spec.
5752
488f131b
JB
57532002-07-18 Joel Brobecker <brobecker@gnat.com>
5754
5755 * infrun.c: Re-indent using gdb_indent.sh.
5756
46c415d2
JB
57572002-07-18 Joel Brobecker <brobecker@gnat.com>
5758
5759 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5760 Leave the indentation temporarily untouched, to minimize the diffs.
5761
cdecafbe
EZ
57622002-07-18 Elena Zannoni <ezannoni@redhat.com>
5763
5764 * stabsread.c: Make os9k sections of the code obsolete,
5765 for real this time.
5766 * stabsread.h: Make os9k sections of the code obsolete.
5767
7b6aa020
ML
57682002-07-18 Michal Ludvig <mludvig@suse.cz>
5769
09ec9b38
ML
5770 * linux-low.c (regsets_store_inferior_registers): Add free()
5771 at the end of a loop to prevent memory leak.
5772 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5773 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5774 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5775 line a comment.
4894ac5d 5776 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5777
233282cd
JB
57782002-07-17 Jim Blandy <jimb@redhat.com>
5779
5780 * macrocmd.c (info_macro_command): Remove newline from error
5781 message.
5782
7b6aa020 57832002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5784
5785 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5786 (sh_gdbarch_init): Use it for sh-dsp.
5787
f7ef9339
KB
57882002-07-16 Kevin Buettner <kevinb@redhat.com>
5789
5790 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5791 64-bit DWARF2 format.
5792
8dd72958
JB
57932002-07-16 Joel Brobecker <brobecker@gnat.com>
5794
5795 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5796 <sys/proc.h> when not available.
5797
a99a9e1b
AC
57982002-07-16 Andrew Cagney <ac131313@redhat.com>
5799
5800 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5801 * stabsread.c: Make os9k sections of the code obsolete.
5802 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5803 * config/i386/i386os9k.mt: Make file obsolete.
5804 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5805 (COMMON_OBS): Remove os9kread.o
5806 (SFILES): Remove os9kread.c.
5807 (os9kread.o, remote-os9k.o): Make target obsolete.
5808 * remote-os9k.c: Make file obsolete.
5809 * os9kread.c: Make file obsolete.
5810 * Makefile.in
5811
7a3085c1
AC
58122002-07-16 Andrew Cagney <ac131313@redhat.com>
5813
5814 * NEWS: Mention that the FR30 has been made obsolete.
5815 * fr30-tdep.c: Make file obsolete.
5816 * config/fr30/tm-fr30.h: Ditto.
5817 * config/fr30/fr30.mt: Ditto.
5818 * configure.tgt: Make fr30-*-elf obsolete.
5819 * MAINTAINERS: Make fr30-elf obsolete.
5820
28a93f5a
PM
58212002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5822
5823 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5824 found is not inside a section.
5825
be006b8b
KB
58262002-07-15 Kevin Buettner <kevinb@redhat.com>
5827
5828 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5829 strerror().
5830 (pdc_realloc): Use xrealloc() instead of realloc().
5831
14fa3751
KB
58322002-07-15 Kevin Buettner <kevinb@redhat.com>
5833
5834 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5835 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5836 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5837 macros.
5838
42cc437f
KB
58392002-07-15 Kevin Buettner <kevinb@redhat.com>
5840
5841 * aix-thread.c (ptrace_check): Eliminate goto.
5842 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5843 problem.
5844
8e2c28d4
KB
58452002-07-15 Kevin Buettner <kevinb@redhat.com>
5846
5847 * aix-thread.c (gdbcmd.h): Include.
5848 (DEBUG, DBG, DBG2, dbg): Eliminate.
5849 (debug_aix_thread): New static global.
5850 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5851 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5852 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5853 invocations to DBG and DBG2 macros to test against
5854 ``debug_aix_thread'' and call fprintf_unfiltered().
5855 (_initialize_aix_thread): Add new command "set debug aix-thread".
5856
30413464
AC
58572002-07-15 Andrew Cagney <ac131313@redhat.com>
5858
5859 From Gerhard Tonn <TON@de.ibm.com>:
5860 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5861 instead of supply_register.
5862
7c43edc1
AC
58632002-07-15 Andrew Cagney <ac131313@redhat.com>
5864
5865 * dwarf2cfi.c: Include "gdb_assert.h".
5866 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5867 non-NULL.
5868 (update_context): Do not use __func__. Add missing ``break''.
5869 (update_context): Do not use __func__.
5870
9364a0ef
EZ
58712002-07-15 Elena Zannoni <ezannoni@redhat.com>
5872
5873 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5874 and its setting. Set gdbarch instruction printing functions
5875 directly. For non-rs6000 case use new function
5876 gdb_print_insn_powerpc.
5877 (gdb_print_insn_powerpc): New function.
5878
3fbeef0b
AC
58792002-07-13 Andrew Cagney <ac131313@redhat.com>
5880
92eb23c5 5881 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5882 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5883 * configure.tgt: Mark d30v-*-* as obsolete.
5884 * d30v-tdep.c: Mark file as obsolete.
5885 * config/d30v/d30v.mt: Ditto.
5886 * config/d30v/tm-d30v.h: Ditto.
5887
aacb1f0a
AS
58882002-07-13 Aidan Skinner <aidan@velvet.net>
5889
5890 * ada-tasks.c (add_task_entry): replace calls to
5891 malloc() with xmalloc
5892 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5893
5894 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5895 ada_finish_decode_line_1, all_sals_for_line
5896 ada_breakpoint_rewrite): replace calls to free() with xfree()
5897
c11d79f2
KB
58982002-07-12 Kevin Buettner <kevinb@redhat.com>
5899
5900 From Nicholas Duffek (with minor changes by Martin Hunt,
5901 Louis Hamilton, and Kevin Buettner):
5902 * aix-thread.c: New file.
5903
8e19ed76
PS
59042002-07-12 Petr Sorfa <petrs@caldera.com>
5905
5906 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5907 complaint for invalid attribute class or form.
5908 (read_func_scope): DW_AT_frame_base
5909 better handling of DW_AT_block*.
5910 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5911 better handling of DW_AT_block*.
5912 (read_common_block): DW_AT_location
5913 better handling of DW_AT_block*.
5914 (read_partial_die): DW_AT_location better handling
5915 of DW_AT_block*.
5916 (new_symbol): DW_AT_external better handling of
5917 DW_AT_block*. Proper initialization of variable
5918 "addr".
5919 (attr_form_is_block): New function that returns true
5920 if the attribute's form is of DW_FORM_block*.
5921
295401f7
DJ
59222002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5923
5924 * valops.c (find_method_list): Remove comment about
5925 removed STATIC_MEMFUNCP argument.
5926 (value_find_oload_method_list): Likewise.
5927
e42dc924
KB
59282002-07-12 Kevin Buettner <kevinb@redhat.com>
5929
5930 From Nicholas Duffek:
5931 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5932 target_new_objfile_hook.
5933
6904b546
KB
59342002-07-12 Kevin Buettner <kevinb@redhat.com>
5935
5936 From Nicholas Duffek:
5937 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5938 csect.
5939
53fe9346
AC
59402002-07-12 Andrew Cagney <cagney@redhat.com>
5941
5942 * MAINTAINERS: Mention --enable-sim-build-warnings.
5943 (m68hc11-elf): Disable sim build warnings.
5944 (m32r-elf): Mark as broken obsolete candidate.
5945 (x86_64-linux-gnu): Mark as buildable with -Werror.
5946 (arm-elf): Change -w to ``,'' which enables warnings but not
5947 -Werror.
5948
af5f3db6
AC
59492002-07-12 Andrew Cagney <ac131313@redhat.com>
5950
5951 * bcache.h: Update copyright.
5952 (struct bstring, struct bcache): Move definition to "bcache.c".
5953 Replaced by opaque declaration.
5954 (bcache_xfree): Replace free_bcache.
5955 (bcache_xmalloc, bcache_memory_used): Declare.
5956
5957 * bcache.c: Update copyright.
5958 (struct bstring, struct bcache): Moved to here from "bcache.h".
5959 Update comments.
5960 (bcache_xmalloc, bcache_memory_used): New functions.
5961 (bcache_xfree): Replace function free_bcache.
5962
5963 * Makefile.in (objfiles.o): Add $(bcache_h).
5964 (objfiles_h): Remove $(bcache_h).
5965 (symfile.o): Add $(bcache_h).
5966
5967 * symmisc.c: Update copyright.
5968 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5969 (print_objfile_statistics): Use bcache_memory_used.
5970
5971 * symfile.c: Include "bcache.h".
5972 (reread_symbols): Use bcache_xfree.
5973 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5974 (add_psymbol_to_list): Pass psymbol_cache by value.
5975 (add_psymbol_with_dem_name_to_list): Ditto.
5976
5977 * objfiles.h: Update copyright.
5978 (struct bcache): Declare opaque. Do not include "bcache.h".
5979 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5980 bcache'' pointers.
5981 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5982
5983 * objfiles.c: Include "bcache.h". Update copyright.
5984 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5985 macro_cache.
5986 (free_objfile): Use bcache_xfree.
5987
444199e7
GS
59882002-07-11 Grace Sainsbury <graces@redhat.com>
5989
5990 * monitor.c (monitor_fetch_register): Make name a constant.
5991 (monitor_store_register): Same.
5992
261397f8
DJ
59932002-07-11 Daniel Jacobowitz <drow@mvista.com>
5994
5995 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5996 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5997 (finish_block) For non-function blocks, hash the symbol table. For
5998 function blocks, mark the symbol table as unhashed.
5999 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6000 (msymbol_hash_iw): Likewise.
6001 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6002 value.
6003 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6004 (lookup_minimal_symbol): Likewise for both.
6005 * symtab.h (struct block): Add `hashtable' flag. Comment the
6006 hashtable.
6007 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6008 (ALL_BLOCK_SYMBOLS): Update.
6009 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6010 (struct symbol): Add `hash_next' pointer.
6011 * symtab.c (lookup_block_symbol): Search using the hash table when
6012 possible.
6013 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6014 (search_symbols, find_addr_symbol): Likewise.
6015
6016 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6017 (read_dst_symtab): Likewise.
6018 * jv-lang.c (get_java_class_symtab): Likewise.
6019 * mdebugread.c: Include "gdb_assert.h".
6020 (shrink_block): Assert that the block being modified is not hashed.
6021 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6022 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6023 symbols.
6024 (dump_symtab): Recognize hashed blocks.
6025 * printcmd.c (print_frame_args): Assert that function blocks do not
6026 have hashed symbol tables.
6027 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6028 (fill_in_ada_prototype, debug_print_block): Likewise.
6029 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6030
6f0eaa01
CV
60312002-07-11 Corinna Vinschen <vinschen@redhat.com>
6032
6033 * stack.c (print_frame): Use result of frame_address_in_block()
6034 instead of fi->pc when evaluating symbols.
6035 (backtrace_command_1): Ditto.
6036
a208b0cb
AC
60372002-07-11 Andrew Cagney <cagney@redhat.com>
6038
6039 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6040 Make static.
6041
6042 * arm-tdep.c (arm_register_name): Make return type constant.
6043
a6b6b089
AC
60442002-07-10 Andrew Cagney <ac131313@redhat.com>
6045
5ae5f592
AC
6046 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6047 prototype.
6048 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6049 * s390-tdep.c (s390_fp_regnum): Ditto.
6050 (s390_read_fp): Ditto.
6051 (s390_pop_frame): Ditto.
6052 (_initialize_s390_tdep): Ditto.
6053 * remote.c (get_remote_state): Ditto.
6054 * procfs.c (mappingflags): Ditto.
6055 * memattr.c (_initialize_mem): Ditto.
6056 * mcore-tdep.c (mcore_pop_frame): Ditto.
6057 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6058 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6059 * language.c (set_case_str): Ditto.
6060 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6061 * frv-tdep.c (new_variant): Ditto.
6062 (frv_stopped_data_address): Ditto.
6063 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6064 (context_alloc): Ditto.
6065 (frame_state_alloc): Ditto.
6066 (unwind_tmp_obstack_init): Ditto.
6067 (unwind_tmp_obstack_free): Ditto.
6068 (cfi_read_fp): Ditto.
6069 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6070 (cris_pop_frame): Ditto.
6071 * c-lang.c (scanning_macro_expansion): Ditto.
6072 (finished_macro_expansion): Ditto.
6073 (c_preprocess_and_parse): Ditto.
6074 * gdbarch.sh: Ditto.
6075 * gdbarch.h, gdbarch.c: Regenerate.
6076 * config/mn10200/tm-mn10200.h: Adjust indentation.
6077 * target.c: Adjust indentation.
6078 * symtab.h: Adjust indentation.
6079 * stabsread.h: Adjust indentation.
6080 * remote-es.c: Adjust indentation.
6081 * os9kread.c: Adjust indentation.
6082
60832002-07-10 Andrew Cagney <ac131313@redhat.com>
6084
a6b6b089
AC
6085 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6086 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6087
a1789893
GS
60882002-07-10 Grace Sainsbury <graces@redhat.com>
6089
6090 * NEWS: Mention m68k, mcore multi-arching.
6091 * MAINTAINERS: Change status of m68k, mcore to reflect
6092 multi-arching.
6093
02f0d45d
DJ
60942002-07-10 Daniel Jacobowitz <drow@mvista.com>
6095
6096 * valops.c (find_overload_match): Free oload_syms.
6097
f15f768e
JB
60982002-07-09 Joel Brobecker <brobecker@gnat.com>
6099
6100 Define HAVE_SYS_PROC_H if sys/proc.h exists
6101 * configure.in: Add check for sys/proc.h
6102 * config.in: Regenerate.
6103 * configure: Regenerate.
6104
902a7139
GS
61052002-07-09 Grace Sainsbury <graces@redhat.com>
6106
6107 * config/m68k/tm-m68k.h: Remove macros wrapped in
6108 #if !GDB_MULTI_ARCH.
6109
a534e424
AC
61102002-07-08 Andrew Cagney <ac131313@redhat.com>
6111
6112 * config.in, configure: Regenerate.
6113
9b94f7bf
MK
61142002-07-08 Mark Kettenis <kettenis@gnu.org>
6115
6116 * dwarf2cfi.c: Include "gcore.h".
6117 (execute_stack_op): Fix implementation of the
6118 DW_OP_deref and DW_OP_deref_size operators by letting do their
6119 lookup in the target.
6120
1d34db41
MK
61212002-07-07 Mark Kettenis <kettenis@gnu.org>
6122
6123 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6124 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6125 tdep->sc_sp_offset.
6126
79d5b63a
DJ
61272002-07-05 Daniel Jacobowitz <drow@mvista.com>
6128
6129 Fix PR gdb/595, gdb/602
6130 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6131 Don't call value_cast, just read the vtable pointer; update comments
6132 to match.
6133
3bb912e8
GS
61342002-07-05 Grace Sainsbury <graces@redhat.com>
6135
6136 * config/mcore/tm-mcore.h: Remove file.
6137 * config/mcore/mcore.mt: Remove definition of TM_FILE
6138 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6139
ca39387d
MK
61402002-07-05 Mark Kettenis <kettenis@gnu.org>
6141
6142 * i386bsd-tdep.c: Include "gdb_string.h".
6143
efdc1108
GS
61442002-07-04 Grace Sainsbury <graces@redhat.com>
6145
6146 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6147 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6148 mcore-tdep.
6149 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6150 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6151 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6152 (RETVAL_REGNUM): Move macros from tm-mcore.h
6153 (mcore_reg_struct_has_addr): New function.
6154 (mcore_gdbarch_init): Added initializations for the macros removed
6155 from tm-mcore.h.
6156
bb21884d
MK
61572002-07-04 Mark Kettenis <kettenis@gnu.org>
6158
6159 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6160 traditonal string branding within the ELF header.
6161
228c6d41
DJ
61622002-07-04 Daniel Jacobowitz <drow@mvista.com>
6163
6164 * symtab.c (remove_params): New function.
6165 (make_symbol_overload_list): Use it instead of cplus_demangle.
6166 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6167
2404952e
MK
61682002-07-04 Mark Kettenis <kettenis@gnu.org>
6169
e5e4acad
MK
6170 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6171
baadce09
MK
6172 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6173 New variables.
6174 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6175 and tdep->sigtramp_end.
6176 * i386obsd-nat.c: New file.
6177 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6178
2404952e
MK
6179 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6180 Don't call get_current_frame().
6181
9b4f1ba7
PM
61822002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6183
6184 * i386-nat.c (child_post_startup_inferior): New function
6185 calling i386_cleanup_dregs if
6186 I386_USE_GENERIC_WATCHPOINTS is defined.
6187 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6188 conditional to acknowledge that i386-nat.c has its
6189 own child_post_startup_inferior function.
6190
c0d1d883
MK
61912002-07-04 Mark Kettenis <kettenis@gnu.org>
6192
00f8375e
MK
6193 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6194 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6195 instead of MAX_REGISTER_RAW_SIZE.
6196 (i386_extract_return_value, i386_extract_struct_value_address):
6197 Convert to use regcache.
6198 (i386_gdbarch_init): Set max_register_raw_size and
6199 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6200 Set extract_return_value and extract_struct_value_address instead
6201 of their deprecated variants.
6202
c0d1d883
MK
6203 Convert i386 target to generic dummy frames.
6204 * i386-tdep.c: Include "symfile.h".
6205 (i386_frameless_signal_p): Consider a function to be frameless if
6206 the pc points at the first instruction of the function.
6207 (i386_frame_chain): Handle (generic) call dummies.
6208 (i386_frame_saved_pc): Likewise.
6209 (i386_frame_init_saved_regs): Remove code dealing with call
6210 dummies on the stack.
6211 (i386_push_dummy_frame): Removed.
6212 (i386_call_dummy_words): Removed.
6213 (i386_fix_call_dummy): Removed.
6214 (i386_push_return_address): New function.
6215 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6216 parameter, and don't call get_current_frame.
6217 (i386_pop_frame): New function.
6218 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6219 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6220 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6221 call_dummy_length to 0, set call_dummy_words to NULL, set
6222 sizeof_call_dummy_words to 0, set fix_call_dummy to
6223 generic_fix_call_dummy, set pc_in_call_dummy to
6224 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6225 generic_push_dummy_frame, set push_return_address to
6226 i386_push_return_address and set frame_chain_valid to
6227 generic_file_frame_chain_valid.
6228
049ee0e4
AC
62292002-07-03 Andrew Cagney <ac131313@redhat.com>
6230
6231 * gdbarch.sh (struct regcache): Add opaque declaration.
6232 (EXTRACT_RETURN_VALUE): New architecture method.
6233 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6234 * gdbarch.h, gdbarch.c: Regenerate.
6235 * arch-utils.c (legacy_extract_return_value): New function.
6236 * arch-utils.h (legacy_extract_return_value): Declare.
6237 * values.c (value_being_returned): Re-enable code handling
6238 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6239 deprecated_grub_regcache_for_registers call to block handling
6240 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6241 (EXTRACT_RETURN_VALUE): Do not define.
6242
4e0d9804
GS
62432002-07-03 Grace Sainsbury <graces@redhat.com>
6244
6245 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6246 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6247 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6248 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6249 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6250 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6251 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6252 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6253 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6254 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6255 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6256 argument so the function fits the prototype in the architecture
6257 vector.
6258 (mcore_pop_frame): Remove argument so the function fits the
6259 prototype. Use get_current_frame instead of the argument.
6260 (mcore_push_arguments): Change type of struct_return so the
6261 function can be used in the architecture vector.
6262 (mcore_store_struct_return): Add.
6263 (mcore_frame_init_saved_regs): Add.
6264 (mcore_gdbarch_init): Add function calls to replace the macros
6265 removed from tm-mcore.h
6266
36160dc4
AC
62672002-07-03 Andrew Cagney <ac131313@redhat.com>
6268
6269 * infcmd.c (print_return_value): Remove compatibility code calling
6270 deprecated_grub_regcache_for_registers.
6271
6272 * values.c: Include "regcache.h".
6273 (value_being_returned): Update. Use
6274 deprecated_grub_regcache_for_registers to extract the register
6275 buffer address.
6276 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6277 ``struct regcache''.
6278 * Makefile.in (values.o): Add dependency on $(regcache_h).
6279
6280 * inferior.h (run_stack_dummy): Change type of second parameter to
6281 a ``struct regcache''.
6282 * valops.c (hand_function_call): Change type of retbuf to ``struct
6283 regcache''. Allocate using regcache_xmalloc, clean using
6284 make_cleanup_regcache_xfree.
6285 * infcmd.c (run_stack_dummy): Update. Use
6286 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6287
6288 * regcache.c (do_regcache_xfree): New function.
6289 (make_cleanup_regcache_xfree): New function.
6290 * regcache.h (make_cleanup_regcache_xfree): Declare.
6291
e64d9b3d
MH
62922002-07-03 Martin M. Hunt <hunt@redhat.com>
6293
4dd79c29
MH
6294 * event-top.c (command_line_handler): Don't read past
6295 beginning of buffer.
e64d9b3d 6296
4dd79c29
MH
62972002-07-03 Martin M. Hunt <hunt@redhat.com>
6298
e64d9b3d
MH
6299 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6300 struct frame_id.
6301 (varobj_create): Store frame_id for root.
6302 (varobj_gen_name): Use xasprintf.
6303 (varobj_update): Save and restore frame using get_frame_id() and
6304 frame_find_by_id().
6305 (create_child): Use xasprintf.
6306 (new_root_variable): Initialize frame_id.
6307 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6308 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6309 to prevent memory leak.
6310
26e6c56a
AC
63112002-07-03 Andrew Cagney <ac131313@redhat.com>
6312
6313 * valops.c (hand_function_call): Move declaration of retbuf to
6314 start of function, allocate using malloc, add a cleanup but before
6315 the inf_status cleanup, cleanup the buffer. Rename local variable
6316 old_chain to inf_status_cleanup.
6317
f436dd25
MH
63182002-07-03 Martin M. Hunt <hunt@redhat.com>
6319
6320 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6321
6322 * cli/cli-decode.c (cmd_func_p): New function.
6323 (cmd_func): New function.
6324
6325 * command.h: Add cmd_func() and cmd_func_p().
6326
4cfe2084
GS
63272002-07-03 Grace Sainsbury <graces@redhat.com>
6328
6329 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6330 (REGISTER_SIZE): Remove.
6331 (MAX_REGISTER_RAW_SIZE): Remove.
6332 (REGISTER_VIRTUAL_TYPE): Remove.
6333 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6334 (REGISTER_NAME): Remove.
6335 (USE_GENERIC_DUMMY_FRAMES): Remove.
6336 (CALL_DUMMY): Remove.
6337 (CALL_DUMMY_START_OFFSET): Remove.
6338 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6339 (CALL_DUMMY_LOCATION): Remove.
6340 (FIX_CALL_DUMMY): Remove.
6341 (CALL_DUMMY_ADDRESS): Remove.
6342 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6343 (SAVE_DUMMY_FRAME_TOS): Remove.
6344 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6345 (mcore_register_virtual_type): New function.
6346 (mcore_register_byte): New function.
6347 (mcore_register_size): New function.
6348 (mcore_register_name): New function.
6349 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6350 macros removed from tm-mcore.h.
6351 (mcore_dump_tdep): Add.
6352 (_initialize_mcore_tdep): Add gdbarch_register call.
6353
4fd667e9
MK
63542002-07-03 Mark Kettenis <kettenis@gnu.org>
6355
6356 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6357 frameless_look_for_prologue, such that we actually call this
6358 function.
6359
42f99ac2
JB
63602002-07-02 Joel Brobecker <brobecker@gnat.com>
6361
6362 * frame.h (frame_address_in_block): New function.
6363
6364 * blockframe.c (frame_address_in_block): New function extracted
6365 from get_frame_block().
6366 (get_frame_block): Use frame_address_in_block().
6367 (block_innermost_frame): Use frame_address_in_block() to match
6368 the frame pc address against the block boundaries rather than
6369 the frame pc directly. This prevents a failure when a frame pc
6370 is actually a return-address pointing immediately after the end
6371 of the given block.
6372
103a1597 63732002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
6374
6375 * MAINTAINERS: Add self under write after approval.
6376
63772002-07-02 Grace Sainsbury <graces@redhat.com>
6378
103a1597
GS
6379 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6380 used in architecture vector. The default is
6381 m68k_local_breakpoint_from_pc.
6382 (m68k_local_breakpoint_from_pc): Add.
6383 (enum): Add register numbers from tm-m68k.h.
6384 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6385 vector.
6386 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6387 GDB_MULTI_ARCH_PARTIAL.
6388 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6389 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6390 m68k-tdep.c.
6391 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6392 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6393 to enum in m68k-tdep.c
6394
7a5a0534
JB
63952002-07-02 Joel Brobecker <brobecker@gnat.com>
6396
6397 * solib-osf.c (open_map): Compute the list of shared libraries
6398 loaded by the inferior, rather than the list of libraries loaded
6399 by GDB itself. Otherwise, GDB ends up reading the symbols from
6400 the wrong shared libraries...
6401
6f558d74
MK
64022002-07-02 Mark Kettenis <kettenis@gnu.org>
6403
b7d15bf7
MK
6404 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6405 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6406 macros.
6407 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6408 Remove functions.
6409 (FRAMELESS_SIGNAL): Remove function.
6410 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6411 i386_linux_saved_pc_after_call): Removed.
6412 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6413 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6414 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6415
6bff26de
MK
6416 * i386-tdep.c (i386_frameless_signal_p): New function.
6417 (i386_frame_chain): Deal with frameless signals.
6418 (i386_sigtramp_saved_sp): New function.
6419 (i386_frame_saved_pc): Deal with frameless signals.
6420 (i386_saved_pc_after_call): Make sure the correct value is
6421 returned just after entry into a sigtramp.
6422 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6423 i386fbsd4_sc_sp_offset): New variables.
6424 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6425 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6426 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6427 similiar to what we already did for sc_pc_offset.
6428 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6429 tdep->sc_sp_offset.
6430
6f558d74
MK
6431 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6432
145564b7
ML
64332002-07-02 Michal Ludvig <mludvig@suse.cz>
6434
6435 * config/i386/tm-x86-64linux.h: New.
6436 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6437 definitions.
6438 * config/i386/nm-x86-64.h: Rename to ...
6439 * config/i386/nm-x86-64linux.h: ... this one.
6440 * config/i386/x86-64linux.mh: Reflect the above change.
6441
3a1e71e3
MK
64422002-07-01 Mark Kettenis <kettenis@gnu.org>
6443
21d0e8a4
MK
6444 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6445 with sigcontext_addr. Add sc_sp_offset.
6446 (i386bsd_sigtramp_saved_pc): Remove prototype.
6447 (i386bsd_sicontext_addr): Add prototype.
6448 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6449 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6450 (i386_svr4_sigtramp_saved_pc): Removed.
6451 (i386_svr4_sigcontext_addr): New function.
6452 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6453 Initialize tdep->sigcontext_addr instead. Initialize
6454 tdep->sc_pc_offset and tdep->sc_sp_offset.
6455 (i386_gdbarch_init): Likewise.
6456 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6457 any more.
6458 (i386bsd_sigtramp_saved_pc): Remove function.
6459 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6460 Initialize tdep->sigcontext_addr instead. Initialize
6461 tdep->sc_pc_offset.
6462 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6463 of tdep->sigtramp_saved_pc.
6464 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6465 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6466 instead.
6467
3a1e71e3
MK
6468 * i386-tdep.c (i386_frameless_function_invocation,
6469 i386_frame_num_args, i386_frame_init_saved_regs,
6470 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6471 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6472 i386_extract_return_value, i386_store_return_value,
6473 i386_extract_struct_value_address, i386_register_virtual_type,
6474 i386_register_convertible, i386_register_convert_to_virtual,
6475 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6476 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6477 static.
6478
52e9098c
MK
64792002-07-01 Mark Kettenis <kettenis@gnu.org>
6480
77b13a25
MK
6481 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6482
52e9098c
MK
6483 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6484 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6485 this macro. Include "value.h".
6486
1b372fff
AS
64872002-06-30 Aidan Skinner <aidan@velvet.net>
6488
6489 * ada-exp.tab.c: remove as it's a generated file
6490 * ada-lex.c: remove as it's a generated file
6491
9c5045b5
MK
64922002-06-30 Mark Kettenis <kettenis@gnu.org>
6493
4a93c5bb
MK
6494 * config/i386/tm-i386.h (struct frame_info, struct
6495 frame_saved_regs, struct value, struct type): Remove forward
6496 declarations.
6497
322d4fe0
MK
6498 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6499 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6500 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6501 (FILL_FPXREGSET): Define.
6502
fdd8263d
MK
6503 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6504
482e577b
MK
6505 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6506 i[3456]86-*-netbsd* case.
6507 * config/i386/tm-obsd.h: Removed.
6508 * config/i386/obsd.mt: Removed.
6509 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6510 core-aout.o.
6511 (MH_CFLAGS): Add -DYYDEBUG=0.
6512
6916549a
MK
6513 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6514 i386nbsd_sc_pc_offset on OpenBSD too.
6515
9c5045b5
MK
6516 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6517 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6518 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6519 define.
6520 * i386bsd-tdep.c: Include "arch-utils.h".
6521 (i386bsd_aout_in_solib_call_trampoline): New function.
6522 (i386bsd_init_abi): Set in_solib_call_trampoline to
6523 i386bsd_aout_in_solib_call_trampoline.
6524 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6525 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6526
aa84d1bb
AC
65272002-06-28 Andrew Cagney <ac131313@redhat.com>
6528
6529 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6530 (struct obstack, struct bcache): Add opaque declarations.
6531 * Makefile.in (macrotab_h): Update
6532
b4d83933
AC
65332002-06-28 Andrew Cagney <ac131313@redhat.com>
6534
6535 * blockframe.c (generic_find_dummy_frame): Change return type to
6536 ``struct regcache''.
6537 (struct dummy_frame): Replace field ``registers'' with regcache, a
6538 struct regcache object.
6539 (generic_find_dummy_frame): Update.
6540 (generic_push_dummy_frame): Update. Use regcache_xfree,
6541 regcache_xmalloc and regcache_cpy.
6542 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6543 regcache_xfree.
6544 (deprecated_generic_find_dummy_frame): Update.
6545 (generic_read_register_dummy): Update. Use
6546 regcache_read_as_address.
6547 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6548 (generic_get_saved_register): Update. Use regcache_read.
6549
08c0b5bc
AC
65502002-06-28 Andrew Cagney <ac131313@redhat.com>
6551
6552 * Makefile.in (objfiles_h): Add $(bcache_h).
6553 * objfiles.h: Include "bcache.h".
6554
6555 * Makefile.in (symtab_h): Remove $(bcache_h).
6556 * symtab.h: Do not include "bcache.h".
6557
1f89801a
AC
65582002-06-28 Andrew Cagney <ac131313@redhat.com>
6559
6560 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6561 generic_func_frame_chain_valid.
6562
b9644b58
DB
65632002-06-28 David O'Brien <obrien@FreeBSD.org>
6564
6565 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6566 * config/i386/tm-fbsd.h: Likewise.
6567
dd486634
AC
65682002-06-28 Andrew Cagney <ac131313@redhat.com>
6569
6570 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6571 generic_unwind_get_saved_register.
6572
0b434a00
AC
65732002-06-27 Andrew Cagney <ac131313@redhat.com>
6574
6575 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6576 * regcache.c (supply_register): Add missing argument to
6577 register_buffer call.
6578
f30e5a77
AC
65792002-06-27 Andrew Cagney <ac131313@redhat.com>
6580
6581 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6582 Solaris /bin/grep does not not like it. From Peter Schauer.
6583
9f064c95
TT
65842002-06-26 Tom Tromey <tromey@redhat.com>
6585
6586 * command.h (add_setshow_cmd): Declare.
6587 (add_setshow_cmd_full): Declare.
6588 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6589 returns void. Use add_setshow_cmd_full.
6590 (add_setshow_cmd_full): New function.
6591 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6592 (add_setshow_boolean_cmd): Likewise.
6593
099c7589
JT
65942002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6595
6596 * config/vax/tm-vax.h: Protect from multiple inclusion.
6597 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6598 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6599 * config/vax/tm-vaxbsd.h: ...here. New file.
6600 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6601
1d049c5e
JT
66022002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6603
6604 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6605 (BELIEVE_PCC_PROMOTION): Remove.
6606 (AP_REGNUM): Move to...
6607 * config/vax/nm-vax.h: ...here.
6608 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6609 (vax_breakpoint_from_pc): New function.
6610 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6611 and gdbarch_believe_pcc_promotion.
6612
4791e091
JT
66132002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6614
6615 * Makefile.in (vax_tdep_h): Define.
6616 (vax-tdep.o): Use $(vax_tdep_h).
6617 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6618 (vax_dump_tdep): New function.
6619 (_initialize_vax_tdep): Register vax_dump_tdep.
6620 * vax-tdep.h: Include osabi.h.
6621 (struct gdbarch_tdep): New.
6622
da130f98
AC
66232002-06-26 Andrew Cagney <cagney@redhat.com>
6624
6625 * frame.h (deprecated_generic_find_dummy_frame): Rename
6626 generic_find_dummy_frame.
6627 * blockframe.c (generic_find_dummy_frame): Make static.
6628 (deprecated_generic_find_dummy_frame): New function.
6629 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6630 generic_find_dummy_frame with deprecated_find_dummy_frame.
6631 (sh64_nofp_frame_init_saved_regs): Ditto.
6632 (sh_fp_frame_init_saved_regs): Ditto.
6633 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6634 (s390_frame_chain): Ditto.
6635 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6636
6300c360
GS
66372002-06-26 Grace Sainsbury <graces@redhat.com>
6638
6639 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6640 gdbarch vector are at the top.
6641 (NUM_REGS): Remove.
6642 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6643 (FRAME_ARGS_ADDRESS): Remove.
6644 (FRAME_LOCALS_ADDRESS): Remove.
6645 (FRAME_NUM_ARGS): Remove.
6646 (FRAME_ARGS_SKIP): Remove.
6647 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6648 (m68k_gdbarch_init): Add gdbarch initializations for macros
6649 undefined in tm-m68k.h
6650
1c617db8
GS
66512002-06-26 Grace Sainsbury <graces@redhat.com>
6652
6653 * monitor.h: Add the function regname to monitor_ops
6654 structure. This way NUM_REGS does not have to be a constant.
6655 * monitor.c (monitor_fetch_register): Added support for regname
6656 function. The function is called if the array regnames is NULL.
6657 (monitor_store_register): Same.
da130f98
AC
6658 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6659 regnames array.
1c617db8
GS
6660 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6661 cpu32bug_cmds.regname to point to new function.
6662 * abug-rom.c (abug_regname): Same as above.
6663 (init_abug_cmds): Same.
6664 * dbug-rom.c (dbug_regname): Same as above.
6665 (init_dbug_cmds): Same.
6666 * remote-est.c (est_regname): Same.
6667 (init_est_cmds): Same.
6668 * rom68k-rom.c (rom68k_regname): Same.
6669 (init_rom68k_cmds): Same.
6670
ea9365bb
TT
66712002-06-25 Tom Tromey <tromey@redhat.com>
6672
6673 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6674
72cec141
AC
66752002-06-25 Andrew Cagney <cagney@redhat.com>
6676
6677 * infrun.c (stop_registers): Change variable's type to ``struct
6678 regcache'''.
6679 (xmalloc_inferior_status): Delete function.
6680 (free_inferior_status): Delete function.
6681 (normal_stop): Use regcache_cpy.
6682 (struct inferior_status): Change type of fields ``stop_registers''
6683 and ``registers'' to ``struct regcache''.
6684 (write_inferior_status_register): Use regcache_write.
6685 (save_inferior_status): Instead of calling
6686 xmalloc_inferior_status, allocate the inf_status buffer directly.
6687 Use regcache_dup_no_passthrough and regcache_dup to save the
6688 buffers.
6689 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6690 Replace the stop_registers regcache instead of overriding it. Use
6691 regcache_xfree. Instead of calling free_inferior_status, xfree
6692 the buffer directly.
6693 (discard_inferior_status): Use regcache_xfree. Instead of calling
6694 free_inferior_status, xfree the buffer directly.
6695 (build_infrun): Use regcache_xmalloc.
6696 (_initialize_infrun): Delete redundant call to build_infrun.
6697
6698 * Makefile.in (infcmd.o): Add $(regcache_h).
6699
6700 * infcmd.c: Include "regcache.h".
6701 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6702 obtain the address of `stop_registers' register buffer.
6703 (print_return_value): Ditto.
6704
6705 * inferior.h (struct regcache): Add opaque declaration.
6706 (stop_registers): Change variable's declared type to ``struct
6707 regcache''.
6708
defc6f8c
TT
67092002-06-24 Tom Tromey <tromey@redhat.com>
6710
c0e624e7
TT
6711 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6712 * target.c (initialize_targets): Fixed typo in
6713 trust-readonly-sections `show' documentation.
6714
defc6f8c
TT
6715 * main.c: Marked all strings with _().
6716
2b236d82
DH
67172002-06-24 Don Howard <dhoward@redhat.com>
6718
6719 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6720 that means max CORE_ADDR+1.
6721 (lookup_mem_region): Ditto.
6722 (mem_info_command): Ditto.
6723
942dc0e9
GS
67242002-06-24 Grace Sainsbury <graces@redhat.com>
6725
6726 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6727 (REGISTER_BYTES_OK): Remove.
6728 (REGISTER_BYTES): Remove.
6729 (STORE_STRUCT_RETURN): Remove.
6730 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6731 (STORE_RETURN_VALUE): Remove.
6732 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6733 (FRAME_CHAIN): Remove.
6734 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6735 (FRAME_SAVED_PC): Remove.
6736 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6737 (m68k_store_struct_return): Add.
6738 (m68k_deprecated_extract_return_value): Add.
6739 (m68k_deprecated_extract_struct_value_address): Add.
6740 (m68k_store_return_value): Add.
6741 (m68k_frame_chain): Add.
6742 (m68k_frameless_function_invocation): Add.
6743 (m68k_frame_saved_pc): Add.
6744 (m68k_gdbarch_init): added set_gdbarch calls for new
6745 functions and deleted macros.
6746
03c30d4d
TT
67472002-06-23 Tom Tromey <tromey@redhat.com>
6748
6749 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6750 (ALLDEPFILES): Likewise.
6751 (udiheaders): Removed.
6752 (udip2soc.o): Likewise.
6753 (udi2go32.o): Likewise.
6754 (udr.o): Likewise.
6755 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6756
37e71372
AC
67572002-06-22 Andrew Cagney <ac131313@redhat.com>
6758
06a6ac57
AC
6759 * infrun.c (_initialize_infrun): Delete unnecessary call to
6760 build_infrun.
6761
37e71372
AC
6762 * regcache.h: Update comments describing the regcache_cpy family
6763 of functions.
6764 (regcache_save, regcache_restore): Delete declaration.
6765 (regcache_save_no_passthrough): Delete declaration.
6766 (regcache_restore_no_passthrough): Delete declaration.
6767 * regcache.c (regcache_save): Delete function.
6768 (regcache_save_no_passthrough): Delete function.
6769 (regcache_restore): Delete function.
6770 (regcache_restore_no_passthrough): Delete function.
6771
78f6d055
AC
67722002-06-21 Andrew Cagney <ac131313@redhat.com>
6773
6774 * config/m68k/tm-m68k.h: Fix typo.
6775 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6776 (m68k_frame_init_saved_regs): Declare.
6777
78b119cb
JB
67782002-06-21 Jim Blandy <jimb@redhat.com>
6779
6780 Remove some vestiges of Harris 88k support.
6781 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6782 register numbering quirk.
6783 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6784 odd symbols occurring in Harris 88k ELF targets.
6785
0fbb3da7
TT
67862002-06-21 Tom Tromey <tromey@redhat.com>
6787
6788 * gdb_locale.h: New file.
6789 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6790 (defs_h): Added gdb_locale.h.
6791 * configure, config.in: Rebuilt.
6792 * configure.in (PACKAGE): Define.
6793 * defs.h: Include gdb_locale.h.
6794 * main.c (captured_main): Call setlocale, bindtextdomain,
6795 textdomain.
6796
456f8b9d
DB
67972002-06-21 Dave Brolley <brolley@redhat.com>
6798
6799 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6800 * config/frv/frv.mt: New file.
6801 * config/frv/tm-frv.h: New file.
6802 * configure.tgt: Support frv-*-*.
6803 * Makefile.in (frv-tdep.o): New target.
6804 * frv-tdep.c: New file.
6805 * NEWS: Mention frv.
6806
cdd463f9
DB
68072002-06-21 Dave Brolley <brolley@redhat.com>
6808
6809 * MAINTAINERS: Add self to "Write After Approval" list.
6810
5d3ed2e3
GS
68112002-06-21 Grace Sainsbury <graces@redhat.com>
6812
6813 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6814 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6815 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6816 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6817 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6818
6819 * m68k-tdep.c: Include arch-utils.h
6820 (m68k_register_raw_size): Add.
6821 (m68k_register_virtual_size): Add.
6822 (m68k_register_virtual_type): Add.
6823 (m68k_register_name): Add.
6824 (m68k_stack_align): Add.
6825 (m68k_register_byte): Add.
6826 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6827 tm-m68k.h.
6828
7f8e7424
GS
68292002-06-21 Grace Sainsbury <graces@redhat.com>
6830
a2c6a6d5 6831 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6832 m68k_find_saved_regs.
6833 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6834 references to it with frame->saved_regs.
7f8e7424
GS
6835 (m68k_gdbarch_init): Added function calls to initialize the
6836 gdbarch structure.
a2c6a6d5
GS
6837 (m68k_fix_call_dummy): Add.
6838 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6839 (CALL_DUMMY): Remove.
6840 (CALL_DUMMY_LENGTH): Remove.
6841 (CALL_DUMMY_START_OFFSET): Remove.
6842 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6843 (FIX_CALL_DUMMY): Remove.
6844 (PUSH_DUMMY_FRAME): Remove.
6845 (POP_FRAME): Remove.
7f8e7424 6846
f461f5cf
PM
68472002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6848
6849 * parse.c (parse_fprintf): New function used to avoid calls to
6850 fprintf in bison parser generated debug code.
6851 * parser-defs.h: Declaration of new parse_fprintf function.
6852 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6853 Set YYDEBUG to 1 by default.
6854 Set YYFPRINTF as parse_fprintf.
6855
7f0c12ed
ML
68562002-06-21 Michal Ludvig <mludvig@suse.cz>
6857
6858 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6859 encoding anymore.
6860 (pointer_encoding, enum ptr_encoding): New.
6861 (execute_cfa_program): Take care about pointer encoding.
6862 (dwarf2_build_frame_info): Only call parse_frame_info for
6863 .debug_frame and .eh_frame.
6864 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6865 fixed augmentation handling, added relative addressing,
6866 ignore duplicate FDEs. Added comments.
19d833a2 6867 * dwarf2cfi.c: Reindented.
7f0c12ed 6868
87c4a039
EZ
68692002-06-20 Elena Zannoni <ezannoni@redhat.com>
6870
6871 * event-top.c (command_handler): Don't use space_at_cmd_start
6872 unless there is sbrk() on the host. Assign time and space data
6873 to union fields of the appropriate length.
6874
1cf877ad
ML
68752002-06-20 Michal Ludvig <mludvig@suse.cz>
6876
6877 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6878 x86_64_register_name. Return type changed to 'const char *'.
6879 (x86_64_register_name2nr): Rename to x86_64_register_number.
6880 (x86_64_gdbarch_init): Update to reflect the change.
6881 * x86-64-tdep.h: Ditto.
6882 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6883 (supply_fpregset): Ditto.
6884
3fadccb3
AC
68852002-06-19 Andrew Cagney <cagney@redhat.com>
6886
6887 * regcache.h: Update copyright.
6888 (struct regcache, struct gdbarch): Add opaque declarations.
6889 (current_regcache): Declare global variable.
6890 (regcache_read, regcache_write): Add gdbarch parameter.
6891 (regcache_save, regcache_save_no_passthrough)
6892 (regcache_restore, regcache_restore_no_passthrough)
6893 (regcache_dup, regcache_dup_no_passthrough)
6894 (regcache_cpy, regcache_cpy_no_passthrough)
6895 (deprecated_grub_regcache_for_registers)
6896 (deprecated_grub_regcache_for_register_valid)
6897 (regcache_valid_p): Add function declarations.
6898
6899 * regcache.c: Update copyright.
6900 (regcache_descr_handle): New global variable.
6901 (struct regcache_descr): Define.
6902 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6903 (regcache_descr, xfree_regcache_descr): New functions.
6904 (struct regcache): Define.
6905 (regcache_xmalloc, regcache_xfree): New functions.
6906 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6907 (regcache_dup, regcache_dup_no_passthrough): New functions.
6908 (regcache_valid_p, regcache_read_as_address): New functions.
6909 (deprecated_grub_regcache_for_registers): New function.
6910 (deprecated_grub_regcache_for_register_valid): New function.
6911 (current_regcache): New global variable.
6912 (register_buffer): Add regcache parameter. Update calls.
6913 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6914 (read_register_gen, write_register_gen): Update register_buffer
6915 call. Test for legacy_p instead of gdbarch_register_read_p or
6916 gdbarch_register_write_p.
6917 (regcache_collect): Update register_buffer call.
6918 (build_regcache): Rewrite. Use deprecated grub functions.
6919 (regcache_save, regcache_save_no_passthrough): New functions.
6920 (regcache_restore, regcache_restore_no_passthrough): New
6921 functions.
6922 (_initialize_regcache): Create the regcache_data_handle. Swap
6923 current_regcache global variable.
6924
6925 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6926 parameter to regcache_read and regcache_write calls.
6927 (sh4_register_read): Ditto.
6928 (sh64_pseudo_register_read): Ditto.
6929 (sh64_register_read): Ditto.
6930 (sh_pseudo_register_write): Ditto.
6931 (sh4_register_write): Ditto.
6932 (sh64_pseudo_register_write): Ditto.
6933 (sh64_register_write): Ditto.
6934
6935 * defs.h (XCALLOC): Define.
6936
152d9db6
GS
69372002-06-19 Grace Sainsbury <graces@redhat.com>
6938
6939 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6940 * m68k-tdep.c (m68k_gdbarch_init): Added.
6941 (m68k_dump_tdep): Added.
6942
170911c7
DJ
69432002-06-19 Daniel Jacobowitz <drow@mvista.com>
6944
6945 * ada-lang.c (fill_in_ada_prototype): Update comment.
6946
2e4ebe70
DJ
69472002-06-19 Daniel Jacobowitz <drow@mvista.com>
6948
6949 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6950 MIPS_ABI_LAST.
6951 (mips_abi_string, mips_abi_strings): New.
6952 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6953 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6954 tdep->mips_abi_string. Honor mips_abi_string. Default to
6955 O32 if no ABI is found.
6956 (mips_dump_tdep): Use mips_abi_strings.
6957 (mips_abi_update): New function.
6958 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6959 ``set mips abi'' and ``show mips abi''. Check the size of
6960 mips_abi_strings.
6961
16775908
AC
69622002-06-19 Andrew Cagney <cagney@redhat.com>
6963
6964 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6965 constant.
6966
5051bfa4 69672002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6968
5051bfa4
JB
6969 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6970 current frame using only the first stack size adjustment. All
6971 subsequent size adjustments are not considered to be part of
6972 the "static" part of the current frame.
6973 Compute the address of the saved registers relative to the
6974 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6975 in use in this frame.
6976
56468235
DH
69772002-06-18 Don Howard <dhoward@redhat.com>
6978
6979 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6980 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6981 suggesting this solution.
6982
0b624158
AC
69832002-06-18 Andrew Cagney <ac131313@redhat.com>
6984
6985 * config/romp/xm-rtbsd.h: Delete file.
6986 * config/romp/rtbsd.mh: Delete file.
6987
221ea385
KS
69882002-06-18 Keith Seitz <keiths@redhat.com>
6989
6990 * breakpoint.c (condition_command): Post breakpoint_modify
6991 when a condition is added to an existing breakpoint.
6992 (commands_command): Likewise for commands.
6993 (set_ignore_count): Likewise for ignore counts.
6994 If no tty, do not simply return, still need to send event
6995 notification.
6996 (ignore_command): Only print a newline if the command came
6997 from a tty.
6998 Don't call breakpoints_changed, since this is now properly
6999 handled by set_ignore_count.
7000
5402eed1
AC
70012002-06-18 Andrew Cagney <cagney@redhat.com>
7002
7003 * MAINTAINERS: Note that cris-elf target can be compiled with
7004 -Werror.
7005 * cris-tdep.c (cris_register_name): Make return type constant.
7006 (cris_breakpoint_from_pc): Ditto.
7007
cc22880b
ML
70082002-06-18 Michal Ludvig <mludvig@suse.cz>
7009
7010 * frame.h (struct frame_info): Change type of context to
7011 'struct context'.
7012
fa88f677
AC
70132002-06-17 Andrew Cagney <cagney@redhat.com>
7014
7015 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7016 pointer.
7017 * gdbarch.h, gdbarch.c: Regenerate.
7018 * config/mips/tm-mips.h (mips_register_name): Update.
7019 * i386-tdep.h (i386_register_name): Update.
7020 * mips-tdep.c (mips_register_name): Update
7021 * alpha-tdep.c (alpha_register_name): Update.
7022 * arch-utils.c (legacy_register_name): Update.
7023 * arch-utils.h (legacy_register_name): Update.
7024 * avr-tdep.c (avr_register_name): Update.
7025 * ia64-tdep.c (ia64_register_name): Update.
7026 * i386-tdep.c (i386_register_name): Update.
7027 * sparc-tdep.c (sparc32_register_name): Update.
7028 (sparc64_register_name): Update.
7029 (sparclite_register_name): Update.
7030 (sparclet_register_name): Update.
7031 * sh-tdep.c (sh_generic_register_name): Update.
7032 (sh_sh_register_name): Update.
7033 (sh_sh3_register_name): Update.
7034 (sh_sh3e_register_name): Update.
7035 (sh_sh_dsp_register_name): Update.
7036 (sh_sh3_dsp_register_name): Update.
7037 (sh_sh4_register_name): Update.
7038 (sh_sh64_register_name): Update.
7039 * s390-tdep.c (s390_register_name): Update.
7040 * rs6000-tdep.c (rs6000_register_name): Update.
7041 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7042 (ns32k_register_name_32382): Update.
7043 * d10v-tdep.c (d10v_ts2_register_name): Update.
7044 (d10v_ts3_register_name): Update.
7045 * xstormy16-tdep.c (xstormy16_register_name): Update.
7046 * vax-tdep.c (vax_register_name): Update.
7047 * v850-tdep.c (v850_register_name): Update.
7048 * m68hc11-tdep.c (m68hc11_register_name): Update.
7049 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7050 (am33_register_name): Update.
7051
ea1e7ef6
GS
70522002-06-17 Grace Sainsbury <graces@redhat.com>
7053
7054 * m68k-tdep.c: Reindented.
7055
9b02dd1b
AC
70562002-06-17 Andrew Cagney <ac131313@redhat.com>
7057
7058 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7059 list of predefined types.
7060
8758dec1
MK
70612002-06-16 Mark Kettenis <kettenis@gnu.org>
7062
b6197528
MK
7063 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7064 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7065 REGISTER_CONVERT_TO_RAW): Remove defines.
7066 (i386_register_virtual_type, i386_register_convertible,
7067 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7068 Remove prototypes.
7069 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7070 macros mentioned above.
7071
82b47e62
MK
7072 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7073 (i386lynx_saved_pc_after_call): Remove prototype.
7074 * i386ly-tdep.c: Include "i386-tdep.h".
7075 (i386lynx_saved_pc_after_call): Make static. Use
7076 read_memory_nobpt instead of read_memory. Use
7077 read_memory_unsigned_integer instead of read_memory_integer.
7078 (i386lynx_init_abi): New function.
7079 (i386lynx_coff_osabi_sniffer): New function.
7080 (_initialize_i386bsd_tdep): New function.
7081
8758dec1
MK
7082 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7083 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7084 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7085 (i386_fix_call_dummy): Remove prototype.
7086 * i386-tdep.c (i386_call_dummy_words): New variable.
7087 (i386_gdbarch_init): Adjust for removal of the
7088 macros mentioned above.
7089
e9e68a56
AC
70902002-06-15 Andrew Cagney <ac131313@redhat.com>
7091
7092 * command.h (add_setshow_auto_boolean_cmd): Replace
7093 add_set_auto_boolean_cmd.
7094 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7095 add_set_auto_boolean_cmd.
7096 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7097 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7098 mask-address'' command.
7099 (show_mask_address): Add cmd parameter.
7100 * remote.c (add_packet_config_cmd): Update. Change type of
7101 set_func and show_func to cmd_sfunc_ftype.
7102 (_initialize_remote): Update `set remote Z-packet'
7103 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7104 (show_remote_protocol_e_packet_cmd): Ditto.
7105 (show_remote_protocol_E_packet_cmd): Ditto.
7106 (show_remote_protocol_P_packet_cmd): Ditto.
7107 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7108 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7109 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7110 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7111 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7112 (show_remote_protocol_Z_packet_cmd): Ditto.
7113 (show_remote_protocol_binary_download_cmd): Ditto.
7114 (show_remote_cmd): Pass NULL to all of above.
7115
fc08ec52
MK
71162002-06-15 Mark Kettenis <kettenis@gnu.org>
7117
7118 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7119 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7120 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7121 POP_FRAME): Remove defines.
7122 (i386_push_arguments, i386_store_struct_return,
7123 i386_extract_return_value, i386_store_return_value,
7124 i386_extract_struct_value_address, i386_push_dummy_frame,
7125 i386_pop_frame): Renove prototypes.
7126 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7127 macros mentioned above.
7128
e707bbc2
AC
71292002-06-15 Andrew Cagney <ac131313@redhat.com>
7130
7131 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7132 add_set_boolean_cmd.
7133 (add_setshow_cmd): New function.
7134 * command.h (add_setshow_boolean_cmd): Replace
7135 add_set_boolean_cmd.
7136 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7137 and ``set rdiromatzero''.
7138 * maint.c (_initialize_maint_cmds): Update commented out code.
7139 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7140 * target.c (initialize_targets): Update `set
7141 trust-readonly-sections'.
7142 * remote.c (_initialize_remote): Update `set remotebreak'.
7143
42fdc8df
MK
71442002-06-15 Mark Kettenis <kettenis@gnu.org>
7145
93924b6b
MK
7146 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7147 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7148 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7149 fit into multi-arch framework.
7150 (i386_breakpoint_from_pc): New function.
7151 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7152 above.
7153
42fdc8df
MK
7154 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7155 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7156 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7157 (i386_frameless_function_invocation, i386_frame_num_args,
7158 i386_frame_init_saved_regs): Remove prototypes.
7159 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7160 macros mentioned above.
7161
9773a94b
AC
71622002-06-15 Andrew Cagney <ac131313@redhat.com>
7163
7164 * cli/cli-decode.c (set_cmd_cfunc): Update.
7165 (set_cmd_sfunc): Update.
7166 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7167 (set_cmd_sfunc, set_cmd_cfunc): Update.
7168 * cli/cli-decode.h: Update.
7169
6e157172
MK
71702002-06-15 Mark Kettenis <kettenis@gnu.org>
7171
7172 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7173 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7174
7f19b9a2
AC
71752002-06-15 Andrew Cagney <ac131313@redhat.com>
7176
7177 * defs.h (auto_boolean): Declare enum.
7178 * command.h (cmd_auto_boolean): Delete enum.
7179 * mips-tdep.c (mask_address_var): Update.
7180 (mips_mask_address_p): Update.
7181 (show_mask_address): Update.
7182 * remote.c (struct packet_config): Update.
7183 (update_packet_config): Update.
7184 (show_packet_config_cmd): Update.
7185 (packet_ok): Update.
7186 (add_packet_config_cmd): Update.
7187 (_initialize_remote):
7188 * command.h: Update.
7189 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7190 (do_setshow_command): Update.
7191 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7192 * cli/cli-decode.h: Update.
7193
1cf88de5
MK
71942002-06-15 Mark Kettenis <kettenis@gnu.org>
7195
22ba8cf2
MK
7196 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7197 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7198 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7199 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7200 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7201 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7202
762c5349
MK
7203 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7204 list of DJGPP COFF targets.
7205
091198bb
MK
7206 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7207 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7208 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7209 (FP0_REGNUM): Remove define.
7210 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7211 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7212 (i386_register_virtual_size): Remove protoype.
7213 * i386-tdep.c (i386_register_virtual_size): Removed.
7214 (i386_extract_return_value, i386_store_return_value): Use
7215 FP0_REGNUM instead of NUM_FREGS to determine whether the
7216 floating-point registers are available.
7217 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7218 Adjust for removal of macros mentioned above.
7219
72202002-06-15 Mark Kettenis <kettenis@gnu.org>
7221
fcc9bf01
MK
7222 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7223 comments.
7224 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7225 Remove prototypes.
7226 (supply_gregset, fill_gregset): Remove use of register keyword and
7227 remove declaration for regmap. Use I386_NUM_GREGS instead of
7228 NUM_REGS and NUM_FREGS.
7229 (FPREGSET_FSAVE_OFFSET): Remove.
7230 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7231 NUM_FREGS to determine whether the floating-point registers are
7232 available.
7233
65e78234
MK
7234 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7235 gnu_store_registers): Replace usage of NUM_GREGS with
7236 I386_NUM_GREGS.
7237
98df6387
MK
7238 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7239 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7240 usage of NUM_GREGS with I386_NUM_GREGS.
7241
099a9414
MK
7242 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7243
57976e88
MK
7244 * i386bsd-nat.c: Include "i386-tdep.h".
7245 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7246 I386_NUM_GREGS.
7247
b335f4a6
MK
7248 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7249 and associated comment. They no longer make any sense, since we
7250 don't use this file anymore on Linux.
7251
1cf88de5
MK
7252 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7253 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7254 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7255 elements in these arrays.
7256 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7257 MAX_NUM_REGS.
7258
daa66587
MK
72592002-06-15 Mark Kettenis <kettenis@gnu.org>
7260
7261 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7262 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7263
26e9b323
AC
72642002-06-14 Andrew Cagney <cagney@redhat.com>
7265
7266 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7267 EXTRACT_RETURN_VALUE.
7268 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7269 EXTRACT_STRUCT_VALUE_ADDRESS.
7270 * gdbarch.h, gdbarch.c: Regenerate.
7271
7272 * values.c (value_being_returned): Handle
7273 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7274 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7275
7276 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7277 * arm-tdep.c (arm_gdbarch_init): Update.
7278 * avr-tdep.c (avr_gdbarch_init): Update.
7279 * cris-tdep.c (cris_gdbarch_init): Update.
7280 * d10v-tdep.c (d10v_gdbarch_init): Update.
7281 * ia64-tdep.c (ia64_gdbarch_init): Update.
7282 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7283 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7284 * s390-tdep.c (s390_gdbarch_init): Update.
7285 * sh-tdep.c (sh_gdbarch_init): Update.
7286 * s390-tdep.c (s390_gdbarch_init): Update.
7287 * sparc-tdep.c (sparc_gdbarch_init): Update.
7288 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7289 * v850-tdep.c (v850_gdbarch_init): Update.
7290 * vax-tdep.c (vax_gdbarch_init): Update.
7291 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7292 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7293
7294 * config/arc/tm-arc.h: Update.
7295 * config/d30v/tm-d30v.h: Update.
7296 * config/fr30/tm-fr30.h: Update.
7297 * config/h8300/tm-h8300.h: Update.
7298 * config/h8500/tm-h8500.h: Update.
7299 * config/i386/tm-i386.h: Update.
7300 * config/i386/tm-ptx.h: Update.
7301 * config/i386/tm-symmetry.h: Update.
7302 * config/i960/tm-i960.h: Update.
7303 * config/m32r/tm-m32r.h: Update.
7304 * config/m68k/tm-delta68.h: Update.
7305 * config/m68k/tm-linux.h: Update.
7306 * config/m68k/tm-m68k.h: Update.
7307 * config/m88k/tm-m88k.h: Update.
7308 * config/mcore/tm-mcore.h: Update.
7309 * config/mips/tm-mips.h: Update.
7310 * config/mn10200/tm-mn10200.h: Update.
7311 * config/pa/tm-hppa.h: Update.
7312 * config/pa/tm-hppa64.h: Update.
7313 * config/sparc/tm-sp64.h: Update.
7314 * config/sparc/tm-sparc.h: Update.
7315 * config/sparc/tm-sparclet.h: Update.
7316 * config/z8k/tm-z8k.h: Update.
7317
5179e78f
AC
73182002-06-14 Andrew Cagney <cagney@redhat.com>
7319
7320 * Makefile.in (i386_linux_tdep_h): Define.
7321 (i386_tdep_h, i387_tdep_h): Define.
7322 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7323 $(i386_tdep_h) and $(i387_tdep_h).
7324 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7325
8201327c
MK
73262002-06-14 Mark Kettenis <kettenis@gnu.org>
7327
edf393ac
MK
7328 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7329 Already covered by the default.
7330
896fb97d
MK
7331 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7332 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7333 (i386_gdbarch_init): Initialize long_double_format and long_double
7334 bit.
7335
8201327c
MK
7336 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7337 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7338 Move these to ...
7339 * config/i386/i386sol2.mh: ... here.
7340 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7341 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7342 (SIGCONTEXT_PC_OFFSET): Remove define.
7343 (IN_SIGTRAMP): Remove define.
7344 * i386-sol2-tdep.c: New file.
7345
7346 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7347 * config/i386/tm-i386nw.h: Removed.
7348
7349 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7350 USE_STRUCT_CONVENTION): Remove defines.
7351 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7352 (get_longjmp_target): Remove prototype.
7353 (IN_SIGTRAMP): Remove define.
7354 (i386bsd_in_sigtramp): Remove prototype.
7355 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7356 function. Update comment accordingly
7357 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7358 (FRAME_SAVED_PC): Remove define.
7359 (i386bsd_frame_saved_pc): Remove prototype.
7360 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7361 GET_LONGJMP_TARGET): Remove defines.
7362 (get_longjmp_target): Remove prototype.
7363 (IN_SIGTRAMP): Remove define.
7364 (i386bsd_in_sigtramp): Remove prototype.
7365 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7366 function. Update comment accordingly
7367 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7368 (FRAME_SAVED_PC): Remove define.
7369 (i386bsd_frame_saved_pc): Remove prototype.
7370 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7371 Remove prototype.
7372 (USE_STRUCT_CONVENTION): Remove prototype.
7373 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7374 declaration.
7375 (_initialize_i386bsd_nat): Revise logic to determine some
7376 constants at compile time when compiling a native GDB. Warn if
7377 things don't match up with what we expect.
7378 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7379 Remove variables.
7380 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7381 to use date stored in `struct gdbarch_tdep'.
7382 (i386bsd_sigcontext_offset): Remove varaible.
7383 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7384 stored in `struct gdbarch_tdep'.
7385 (i386bsd_frame_saved_pc): Make static.
7386 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7387 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7388 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7389 i386fbsd4_sc_pc_offset): New variables.
7390 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7391 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7392 functions.
7393 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7394 functions.
7395 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7396 Modify the value of i386fbsd_sigtramp_start and
7397 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7398 i386fbsd_sigtramp_end.
7399 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7400 function.
7401
7402 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7403 define to i386-linux-tdep.h.
7404 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7405 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7406 defines.
7407 (i386_linux_register_name, i386_linux_register_byte,
7408 i386_linux_register_raw_size): Remove prototypes.
7409 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7410 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7411 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7412 TARGET_WRITE_PC): Remove defines.
7413 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7414 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7415 i386_linux_write_pc): Remove prototypes.
7416 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7417 (get_longjmp_target): Remove prototype.
7418 * i386-linux-tdep.h: New file.
7419 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7420 * i386-linux-tdep.c: Include "i386-tdep.h" and
7421 "i386-linux-tdep.h".
7422 (i386_linux_register_name, i386_linux_register_byte,
7423 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7424 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7425 Make static.
7426 (i386_linux_init_abi): New function.
7427 (_initialize_i386_linux_tdep): New function.
7428
7429 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7430 (i386_saved_pc_after_call): Remove prototype.
7431 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7432 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7433 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7434 (i386_register_name, i386_stab_reg_to_regnum,
7435 i386_dwarf_reg_to_regnum): Remove prototypes.
7436 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7437 SIZEOF_SSE_REGS): Remove defines.
7438 (REGISTER_BYTES): Remove define.
7439 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7440 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7441 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7442 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7443 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7444 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7445 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7446 (get_longjmp_target): Remove prototype.
7447 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7448 (sigtramp_saved_pc): Remove define.
7449 (i386v4_sigtramp_saved_pc): Remove prototype.
7450 * config/i386/tm-go32.h (FRAME_CHAIN,
7451 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7452 (i386go32_frame_saved_pc): Remove prototype.
7453 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7454 (get_longjmp_target): Remove prototype.
7455 * i386-tdep.h: Include "osabi.h".
7456 (enum i386_abi): Removed.
7457 (enum struct_return): New enum.
7458 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7459 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7460 sc_pc_offset members.
7461 (i386_gdbarch_register_os_abi): Remove prototype.
7462 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7463 I386_SSE_NUM_REGS): New defines.
7464 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7465 I386_SSE_SIZEOF_REGS): New defines.
7466 (i386_register_name, i386_register_byte, i386_register_raw_size):
7467 New prototypes.
7468 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7469 (i386bsd_sigtramp_saved_pc): New prototype.
7470 * i386-tdep.c: Don't include "elf-bfd.h".
7471 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7472 i386_frame_chain, i386_saved_pc_after_call): Make static.
7473 (i386_frame_saved_pc): Rewrite to call architecture dependent
7474 function to deal with signal handlers. Make static.
7475 (i386go32_frame_saved_pc): Removed.
7476 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7477 Removed.
7478 (i386_get_longjmp_target): New function.
7479 (default_struct_convention, pcc_struct_convention,
7480 reg_struct_convention, valid_conventions, struct_convention): New
7481 variables.
7482 (i386_use_struct_convention): New function.
7483 (i386v4_sigtramp_saved_pc): Renamed to
7484 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7485 (i386_pc_in_sigtramp): New function.
7486 (i386_abi_names): Removed.
7487 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7488 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7489 Removed.
7490 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7491 i386_gdbarch_register_os_abi): Removed.
7492 (struct i386_abi_handler): Removed.
7493 (i386_abi_handler_list): Removed.
7494 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7495 functions.
7496 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7497 i386_nw_init_abi): New functions.
7498 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7499 Use set_gdbarch_xxx() calls instead of relying on macros for a
7500 number of calls.
7501 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7502 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7503 Register the various architecture variants defined in this file.
7504
ad2f7632
DJ
75052002-06-14 Daniel Jacobowitz <drow@mvista.com>
7506
7507 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7508 (struct main_type): Remove arg_types member. Update comments for
7509 struct field.
7510 (TYPE_ARG_TYPES): Remove.
7511 (TYPE_FN_FIELD_ARGS): Update.
7512 (smash_to_method_type): Update prototype.
7513
7514 * c-typeprint.c (cp_type_print_method_args): Take method type
7515 instead of argument list. Use new argument layout. Simplify.
7516 (c_type_print_args): Use new argument layout. Simplify.
7517 (c_type_print_base): Update call to cp_type_print_method_args.
7518 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7519 argument; use die->type instead. Update call to
7520 smash_to_method_type.
7521 (read_structure_scope): Update call to dwarf2_add_member_fn.
7522 * gdbtypes.c (allocate_stub_method): Update comment.
7523 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7524 Use new argument layout.
7525 (check_stub_method): Use new argument layout. Don't count
7526 void as an argument.
7527 (print_arg_types): Update comments. Use new argument layout.
7528 (recursive_dump_type): Don't print arg_types member.
7529 * hpread.c (hpread_read_struct_type): Use new argument layout.
7530 (fixup_class_method_type): Likewise.
7531 (hpread_type_lookup): Likewise.
7532 * stabsread.c (read_type): Update calls to read_args and
7533 smash_to_method_type.
7534 (read_args): Use new argument layout. Simplify.
7535 * valops.c (typecmp): Use new argument layout. Update parameters
7536 and comments. Simplify.
7537 (hand_function_call): Use new argument layout.
7538 (search_struct_method): Update call to typecmp.
7539 (find_overload_match): Use new argument layout.
7540
6da02953
DJ
75412002-06-13 Daniel Jacobowitz <drow@mvista.com>
7542
7543 * NEWS: Mention multithreaded debug support for gdbserver.
7544
519b2366
DJ
75452002-06-13 Daniel Jacobowitz <drow@mvista.com>
7546
7547 * MAINTAINERS: Mention NEWS.
7548
6c0d6680
DJ
75492002-06-13 Daniel Jacobowitz <drow@mvista.com>
7550
7551 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7552 (struct mips_objfile_private, compare_pdr_entries): New.
7553 (non_heuristic_proc_desc): Read the ".pdr" section if it
7554 is present.
7555
6529d2dd
AC
75562002-06-12 Andrew Cagney <ac131313@redhat.com>
7557
7558 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7559 (arm_debug): New static variable.
7560 (_initialize_arm_tdep): Add ``set debug arm'' command.
7561
26216b98
AC
75622002-06-12 Andrew Cagney <ac131313@redhat.com>
7563
7564 * Makefile.in (sim_arm_h): Define.
7565 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7566 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7567 (arm_register_sim_regno): New function, map an internal REGNUM
7568 onto a simulator register number.
7569 (arm_gdbarch_init): Set register_sim_regno.
7570
814b3ba0
AH
75712002-06-09 Aldy Hernandez <aldyh@redhat.com>
7572
7573 * MAINTAINERS: Add self.
7574
475b0867
JB
75752002-06-11 Jim Blandy <jimb@redhat.com>
7576
919d772c
JB
7577 * source.c (source_info): Mention whether the symtab has
7578 information about preprocessor macros.
7579
475b0867
JB
7580 Call the command `info macro', not `show macro'.
7581 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7582 Fix error message.
7583 (_initialize_macrocmd): Register `info_macro_command' in
7584 `infolist', not `showlist'.
7585
9e364162
DJ
75862002-06-11 Daniel Jacobowitz <drow@mvista.com>
7587
7588 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7589 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7590 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7591 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7592 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7593 unconditionally.
7594 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7595 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7596 (_initialize_mips_tdep): Remove dead code.
7597 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7598 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7599 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7600 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7601 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7602 MIPS_LAST_FP_ARG_REGNUM): Remove.
7603
23aa4c72
ML
76042002-06-11 Michal Ludvig <mludvig@suse.cz>
7605
7606 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7607 (unwind_tmp_obstack_free, parse_frame_info)
7608 (update_context, cfi_read_fp, cfi_write_fp)
7609 (cfi_frame_chain, cfi_init_extra_frame_info)
7610 (cfi_virtual_frame_pointer): Use the above function.
264d1763 7611 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 7612
70eb15a4
CV
76132002-06-11 Corinna Vinschen <vinschen@redhat.com>
7614
7615 * v850-tdep.c (v850_type_is_scalar): New function.
7616 (v850_use_struct_convention): Match current gcc implementation
7617 as close as possible.
7618 (v850_push_arguments): Fix stack_offset handling. Don't write
7619 struct_addr into register. This is done by v850_store_struct_return.
7620 (v850_extract_return_value): Care for structs.
7621 (v850_store_return_value): Ditto.
7622 (v850_store_struct_return): Actually write address.
7623
482a4d06
ML
76242002-06-11 Michal Ludvig <mludvig@suse.cz>
7625
7626 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7627 without debug information too.
7628
d855c300
AC
76292002-06-10 Andrew Cagney <ac131313@redhat.com>
7630
7631 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7632 Make multi-arch pure.
7633 * gdbarch.h, gdbarch.c: Re-generate.
7634 * arm-tdep.c (arm_print_float_info): Update.
7635 * arch-utils.h (default_print_float_info): Update.
7636 * arch-utils.c (default_print_float_info): Update.
7637 * infcmd.c (float_info): Update call.
7638
dd12a101
AC
76392002-06-10 Andrew Cagney <ac131313@redhat.com>
7640
7641 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7642 the front of the initialize list.
7643
101dcfbe
AC
76442002-06-10 Andrew Cagney <ac131313@redhat.com>
7645
7646 * infrun.c (struct inferior_status): Replace fields
7647 selected_frame_address and selected_level with field
7648 selected_frame_id.
7649 (save_inferior_status): Update. Use get_frame_id.
7650 (struct restore_selected_frame_args): Delete.
7651 (restore_selected_frame): Update. Use frame_find_by_id.
7652 (restore_inferior_status): Update.
7653
7654 * breakpoint.h (struct breakpoint): Change type of
7655 watchpoint_frame to frame_id.
7656 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7657 call to get_current_frame.
7658 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7659 get_current_frame.
7660 (watchpoint_check): Use frame_find_by_id.
7661
7662 * frame.h (record_selected_frame): Delete declaration.
7663 * stack.c (record_selected_frame): Delete function.
7664
7665 * frame.h (struct frame_id): Define.
7666 (get_frame_id): Declare.
7667 (frame_find_by_id): Declare.
7668 * frame.c (frame_find_by_id): New function.
7669 (get_frame_id): New function.
7670
304270b6
AV
76712002-06-10 Andrey Volkov <avolkov@transas.com>
7672
7673 * ser-e7kpc.c: Fix duplicated define and call of
7674 _initialize_ser_e7000pc
7675
2f2cf184
DJ
76762002-06-09 Daniel Jacobowitz <drow@mvista.com>
7677
7678 * signals/signals.c (target_signal_from_host): Fix #ifdef
7679 SIGRTMIN case.
7680 (do_target_signal_to_host): Likewise.
7681
caaa3122
DJ
76822002-06-09 Daniel Jacobowitz <drow@mvista.com>
7683
7684 * mips-tdep.c (mips_find_abi_section): New function.
7685 (mips_gdbarch_init): Call it.
7686
6ac5df3a
MK
76872002-06-09 Mark Kettenis <kettenis@gnu.org>
7688
7689 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7690 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7691 after Andrew's 2002-06-08 gdbarch change.
7692
82ea117a
MK
76932002-06-09 Mark Kettenis <kettenis@gnu.org>
7694
7695 * i386-linux-nat.c (suppy_gregset): Don't supply
7696 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7697 register cache.
7698 (fill_gregset): Don't fetch it under the same circumstances.
7699
3c25f8c7
AC
77002002-06-09 Andrew Cagney <cagney@redhat.com>
7701
7702 * Makefile.in (callback_h): Define.
7703 (remote_sim_h): Update path to remote-sim.h.
7704 (remote-rdp.o): Add $(callback_h).
7705 (remote-sim.o): Use $(callback_h).
7706 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7707 * remote-rdp.c: Include "gdb/callback.h".
7708
1029b7fa
MK
77092002-06-09 Mark Kettenis <kettenis@gnu.org>
7710
7711 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7712 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7713
616675d3
AC
77142002-06-08 Andrew Cagney <ac131313@redhat.com>
7715
a3efda28
AC
7716 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7717 * rdi-share/serpardr.c: Ditto.
7718 * rdi-share/unixcomm.c: Ditto.
7719 * rdi-share/serdrv.c: Ditto.
7720 * rdi-share/hostchan.h: Ditto.
7721 * rdi-share/hostchan.c: Ditto.
7722 * rdi-share/host.h: Ditto.
7723 * rdi-share/devsw.c: Ditto.
7724
c5f10366
AC
7725 * objfiles.h: Change type of obj_private to void pointer.
7726 * pa64solib.c: Update copyright. Don't include "assert.h", use
7727 strcmp instead of STREQ, use LONGEST, do not use PTR
7728 * somsolib.c: Ditto.
7729
616675d3
AC
7730 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7731 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7732 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7733
e4b415d9
AC
77342002-06-08 Andrew Cagney <ac131313@redhat.com>
7735
7736 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7737 (default_get_saved_register): Delete function.
7738 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7739 generic_unwind_get_saved_register.
7740 * gdbarch.h, gdbarch.c: Re-generate.
7741
ca0d0b52
AC
77422002-06-08 Andrew Cagney <ac131313@redhat.com>
7743
7744 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7745 generic_func_frame_chain_valid.
7746 * gdbarch.h, gdbarch.c: Re-generate.
7747 * blockframe.c (generic_func_frame_chain_valid): Only check
7748 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7749 passing FP to PC_IN_CALL_DUMMY.
7750 Fix PR gdb/360.
7751
76860b5f
AC
77522002-06-08 Andrew Cagney <ac131313@redhat.com>
7753
7754 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7755 (register_gdbarch_data): Initialize init_p.
7756 (gdbarch_data): Initialize data pointer using the init function.
7757 (init_gdbarch_data): Delete function.
7758 (gdbarch_update_p): Update.
7759 (initialize_non_multiarch): Update.
7760 (struct gdbarch): Add field initialized_p.
7761 * gdbarch.h, gdbarch.c: Re-generate.
7762
8dda9770
ML
77632002-06-07 Michal Ludvig <mludvig@suse.cz>
7764
7765 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7766 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7767 better do the things actually here.
7768 * x86-64-tdep.c (x86_64_register_name2nr): New.
7769 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7770 (x86_64_gdbarch_init): Respect the above change.
7771 * x86-64-tdep.h (x86_64_register_name2nr)
7772 (x86_64_register_nr2name): Add prototypes.
7773 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7774
3d79a47c
MS
77752002-06-06 Michael Snyder <msnyder@redhat.com>
7776
7bd91a28
MS
7777 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7778 Delete extra braces and re-indent.
7779 (d10v_store_return_value): Char return values
3d79a47c
MS
7780 must be shifted over by one byte in R0.
7781 (d10v_extract_return_value): Delete extra braces, re-indent.
7782
095a4c96
EZ
77832002-06-06 Elena Zannoni <ezannoni@redhat.com>
7784
7785 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7786 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7787 (d10v_integer_to_address): Rewrite.
7788 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7789 the d10v specific functions which take care of converting to the
7790 correct space.
7791
e8a77ca4
EZ
77922002-06-06 Elena Zannoni <ezannoni@redhat.com>
7793
7794 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7795 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7796
4f2e4a4f
AC
77972002-06-02 Andrew Cagney <ac131313@redhat.com>
7798
7799 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7800 includes.
7801 * config/tm-linux.h: Ditto.
7802 * config/alpha/tm-alphalinux.h: Ditto.
7803 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7804 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7805 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7806 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7807 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7808 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7809 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7810 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7811 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7812 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7813 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7814 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7815 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7816 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7817 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7818 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7819 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7820 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7821 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7822 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7823 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7824 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7825 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7826 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7827 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7828 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7829 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7830 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7831 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7832 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7833 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7834 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7835 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7836 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7837 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7838 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7839 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7840
ae2ab2ce
AS
78412002-05-04 Aidan Skinner <aidan@velvet.net>
7842
7843 * ada-exp.tab.c: New file
7844 * ada-exp.y: New file
7845 * ada-lang.c: New file
7846 * ada-lang.h: New file
7847 * ada-lex.c: New file
7848 * ada-lex.l: New file
7849 * ada-tasks.c: New file
7850 * ada-typeprint.c: New file
7851 * ada-valprint.c: New file
7852
0ddd0135
JT
78532002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7854
7855 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7856 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7857
750fbacc
JT
78582002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7859
7860 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7861 insetead of ppc-linux-tdep.o.
7862 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7863 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7864
df94e18a
AC
78652002-06-02 Andrew Cagney <ac131313@redhat.com>
7866
7867 2002-05-07 Christian Groessler <chris@groessler.org>
7868 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7869 bit register contents for little endian hosts.
7870
1a38ab75
AC
78712002-06-01 Andrew Cagney <ac131313@redhat.com>
7872
7873 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7874 any maintainer.
7875
8b1632ac
AC
78762002-06-01 Andrew Cagney <ac131313@redhat.com>
7877
7878 * gdbarch.h: Regenerate.
7879
627054c8
AC
78802002-06-01 Andrew Cagney <ac131313@redhat.com>
7881
7882 * MAINTAINERS: Add everyone to write-after-approval list.
7883
4f460812
AC
78842002-06-01 Andrew Cagney <ac131313@redhat.com>
7885
7886 * stack.c (frame_info): Use frame_register_unwind instead of
7887 saved_regs. Mention when the SP is on the stack or in a register.
7888
7889 * frame.h (frame_register_unwind_ftype): Define. Document.
7890 (struct frame_info): Add field register_unwind and
7891 register_unwind_cache.
7892 (frame_register_unwind): Declare.
7893 (generic_unwind_get_saved_register): Declare.
7894
7895 * frame.c (frame_register_unwind): New function.
7896 (generic_unwind_get_saved_register): New function.
7897
7898 * blockframe.c (generic_call_dummy_register_unwind): New function.
7899 (frame_saved_regs_register_unwind): New function.
7900 (set_unwind_by_pc): New function.
7901 (create_new_frame): New function.
7902 (get_prev_frame): New function.
7903
de888f76
AC
79042002-05-30 Andrew Cagney <ac131313@redhat.com>
7905
7906 * a29k-share/: Delete directory.
7907 * remote-vx29k.c: Delete file.
7908
2f2c3626
JT
79092002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7910
7911 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7912 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7913
9ce5c36a
JT
79142002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7915
7916 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7917 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7918 (sparc64nbsd-nat.o)
7919 (sparcnbsd-nat.o)
7920 (sparcnbsd-tdep.o): New dependency lists.
7921 * NEWS: Note new UltraSPARC NetBSD native configuration.
7922 * configure.host (sparc64-*-netbsd*): New host.
7923 * configure.tgt (sparc-*-netbsdelf*)
7924 (sparc-*-netbsd*): Set gdb_target to nbsd.
7925 (sparc64-*-netbsd*): New target.
7926 * sparc64nbsd-nat.c: New file.
7927 * sparcnbsd-nat.c: New file.
7928 * sparcnbsd-tdep.c: New file.
7929 * sparcnbsd-tdep.h: New file.
7930 * config/sparc/nbsd.mt: New file.
7931 * config/sparc/nbsd64.mh: New file.
7932 * config/sparc/nbsd64.mt: New file.
7933 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7934 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7935 (HOST_IPC): Remove.
7936 * config/sparc/nbsdaout.mt: Remove.
7937 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7938 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7939 (HOST_IPC): Remove.
7940 * config/sparc/nbsdelf.mt: Remove.
7941 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7942 sparc-nat.c compatiblity defines.
7943 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7944 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7945 * config/sparc/tm-nbsd64.h: New file.
7946 * config/sparc/tm-nbsdaout.h: Remove.
7947 * config/sparc/xm-nbsd.h: Remove.
7948
ef3cf062
JT
79492002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7950
7951 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7952 * sparc-tdep.c: Include osabi.h.
7953 (gdbarch_tdep): Add osabi member.
7954 (_initialize_sparc_tdep): Use gdbarch_register.
7955 (sparc_gdbarch_init): Use generic OS ABI framework.
7956 (sparc_dump_tdep): New function.
7957
ee8ff470
KB
79582002-05-30 Kevin Buettner <kevinb@redhat.com>
7959
7960 * corefile.c (do_captured_read_memory_integer): Return non-zero
7961 result.
7962 (safe_read_memory_integer): Copy result of memory read when
7963 status is non-zero. Also, add comments.
7964
7b112f9c
JT
79652002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7966
7967 * Makefile.in (ppc_tdep_h): Define.
7968 (ppc-linux-nat.o)
7969 (ppc-linux-tdep.o)
7970 (rs6000-tdep.o): Use $(ppc_tdep_h).
7971 (ppc-sysv-tdep.o)
7972 (ppcnbsd-nat.o)
7973 (ppcnbsd-tdep.o): New dependency lists.
7974 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7975 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7976 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7977 (ppc_sysv_abi_broken_use_struct_convention)
7978 (ppc_sysv_abi_use_struct_convention)
7979 (ppc_sysv_abi_push_arguments): Move to...
7980 * ppc-sysv-tdep.c: ...here.
7981 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7982 * rs6000-tdep.c (process_note_abi_tag_sections)
7983 (get_elfosabi): Remove.
7984 (rs6000_gdbarch_init): Use generic OS ABI framework.
7985 (rs6000_dump_tdep): New function.
7986 (_initialize_rs6000_tdep): Use gdbarch_register.
7987 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7988 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7989 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7990 of ppc-linux-tdep.o.
7991 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7992 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7993 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7994 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7995 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7996 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7997
480dd42a
JB
79982002-05-29 Jim Blandy <jimb@redhat.com>
7999
8000 * macroscope.c (default_macro_scope): Put `void' in empty argument
8001 list.
8002
4182591f
AC
80032002-05-29 Andrew Cagney <ac131313@redhat.com>
8004
8005 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8006 * arch-utils.c: Include "sim-regno.h".
8007 * gdbarch.sh: Don't include "sim-regno.h".
8008 * gdbarch.h, gdbarch.c: Regenerate.
8009 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8010 here.
8011 * arch-utils.h (legacy_register_sim_regno): To here.
8012 * remote-sim.c (legacy_register_sim_regno): Move function from
8013 here.
8014 * arch-utils.c (legacy_register_sim_regno): To here.
8015
8238d0bf
AC
80162002-05-28 Andrew Cagney <ac131313@redhat.com>
8017
8018 * sim-regno.h: New file.
8019 * Makefile.in (sim_regno_h): Define.
8020 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8021 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8022 (legacy_register_sim_regno): New function.
8023 (one2one_register_sim_regno): New function.
8024 (gdbsim_fetch_register): Rewrite.
8025 (gdbsim_store_register): Only store a register when
8026 REGISTER_SIM_REGNO is valid.
8027 * d10v-tdep.c: Include "sim-regno.h".
8028 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8029 (d10v_ts3_register_sim_regno): Ditto.
8030 * gdbarch.sh: Include "sim-regno.h".
8031 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8032 * gdbarch.h, gdbarch.c: Regenerate.
8033 * arch-utils.h (default_register_sim_regno): Delete declaration.
8034 * arch-utils.c (default_register_sim_regno): Delete function.
8035
485721b1
JT
80362002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8037
8038 * ppcnbsd-nat.c: Rewrite.
8039 * ppcnbsd-tdep.c: New file.
8040 * ppcnbsd-tdep.h: New file.
8041 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8042 solib.o, and solib-svr4.o.
8043 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8044 nbsd-tdep.o, and corelow.o.
8045
697f244d
AC
80462002-05-28 Andrew Cagney <ac131313@redhat.com>
8047
8048 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8049 `tr' and `sed'. Mention that `broken' targets are not expected to
8050 build.
8051
f08caad1 80522002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
8053
8054 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8055 Let PC point right after the prologue before looking up symbols.
8056
3139facc
MH
80572002-05-27 Martin M. Hunt <hunt@redhat.com>
8058
8059 * i386-tdep.c (i386_register_virtual_type): Return
8060 builtin_type_vec128i for SSE registers.
8061
8062 * gdbtypes.h (builtin_type_vec128i): Declare.
8063
8064 * gdbtypes.c (build_builtin_type_vec128i): New function.
8065 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8066 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8067 (build_gdbtypes): Initialize new builtin vector types.
8068 (_initialize_gdbtypes): Register new vector types with gdbarch.
8069
6e3ba3b8
JT
80702002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8071
8072 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8073 since it has been multi-arch'd.
8074 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8075 Move Alpha and VAX multi-arch news entries to same section
8076 as other multi-arch news.
8077
93d5585d
JT
80782002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8079
8080 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8081 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8082 static. Rename some register numbers to put them in ns32k-tdep
8083 private namespace.
8084 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8085 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8086 functions.
8087 (_initialize_ns32k_tdep): Use gdbarch_register.
8088 * ns32k-tdep.h: New file.
8089 * ns32knbsd-tdep.c: New file.
8090 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8091 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8092 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8093 REGISTER_BYTES, REGISTER_BYTE): Remove.
8094 * config/ns32k/tm-ns32k.h: New file.
8095 * config/ns32k/tm-umax.h: Remove.
8096
efb2c70e
JT
80972002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8098
8099 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8100 ns32k_store_struct_return, ns32k_extract_return_value,
8101 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8102 functions.
8103 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8104 ns32k_saved_pc_after_call.
8105 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8106 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8107 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8108 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8109 ns32k_extract_struct_value_address.
8110
7bcc927b
JT
81112002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8112
8113 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8114 ns32k_fix_call_dummy): New.
8115 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8116 ns32k_call_dummy_words.
8117 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8118 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8119 CALL_DUMMY_NARGS): Remove.
8120 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8121
78f9d765
JT
81222002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8123
8124 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8125 ns32k_frame_saved_pc, ns32k_frame_args_address,
8126 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8127 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8128 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8129 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8130 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8131 (BREAKPOINT): Remove..
8132 (FRAME_CHAIN): Define as ns32k_frame_chain.
8133 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8134 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8135 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8136 (FRAME_FIND_SAVED_REGS): Remove.
8137 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8138 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8139 (POP_FRAME): Define as ns32k_pop_frame.
8140
f2c762e0
JT
81412002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8142
8143 * ns32k-tdep.c (ns32k_register_byte_32082,
8144 ns32k_register_byte_32382, ns32k_register_raw_size,
8145 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8146 functions.
8147 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8148 ns32k_register_byte_32382.
8149 * config/ns32k/tm-umax.h: Update copyright years.
8150 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8151 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8152 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8153 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8154 (ns32k_get_enter_addr): Fix prototype.
8155
af137673
JT
81562002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8157
8158 * ns32k-tdep.c: Update copyright years.
8159 (ns32k_register_name_32082): New function.
8160 (ns32k_register_name_32382): Ditto.
8161 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8162 (REGISTER_NAME): Define as ns32k_register_name_32382.
8163 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8164 (REGISTER_NAME): Define as ns32k_register_name_32082.
8165
a8bc7b56
JB
81662002-05-24 Jim Blandy <jimb@redhat.com>
8167
8168 * dwarf2read.c (free_line_header): Use xfree, not free.
8169
83a45910
JT
81702002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8171
8172 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8173 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8174
0db71247
AC
81752002-05-23 Andrew Cagney <ac131313@redhat.com>
8176
8177 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8178
b9e5e4dd
AC
81792002-05-23 Andrew Cagney <ac131313@redhat.com>
8180
8181 From Ross Alexander at NEC Europe:
8182 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8183
de530e84
MS
81842002-05-23 Michael Snyder <msnyder@redhat.com>
8185
8186 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8187 for input, rather than parse_and_eval_address.
8188
b91b96f4
AC
81892002-05-23 Andrew Cagney <ac131313@redhat.com>
8190
8191 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8192 * Makefile.in (sim_d10v_h): Update definition.
8193
8b279e7a
AC
81942002-05-24 Andrew Cagney <cagney@redhat.com>
8195
8196 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8197 change `2002-05-22 Michael Snyder' below.
8198 (d10v_push_arguments): Ditto.
8199 (d10v_extract_return_value): Ditto.
8200
0a3d0425
JB
82012002-05-23 Jim Blandy <jimb@redhat.com>
8202
8203 * macrotab.c (check_for_redefinition): Don't complain if the new
8204 definition is the same as the previous one. Take more arguments
8205 to allow the comparison.
8206 (macro_define_object, macro_define_function): Pass more arguments
8207 to check_for_redefinition.
8208
78eac43e
MS
82092002-05-22 Michael Snyder <msnyder@redhat.com>
8210
8211 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8212 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8213 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8214 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8215 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8216 Add a temp variable to save a call (and a memory read).
8217 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8218 if possible (so that PC_IN_CALL_DUMMY will work).
8219
9bc1edb8
CV
82202002-05-22 Corinna Vinschen <vinschen@redhat.com>
8221
8222 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8223
005ef3d2
ML
82242002-05-22 Michal Ludvig <mludvig@suse.cz>
8225
8226 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8227 fde->cie_ptr.
8228 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8229 (dwarf2_build_frame_info): Add offset to fde->initial_location
8230 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
8231 (execute_stack_op): Change type of 'result' from ULONGEST to
8232 CORE_ADDR.
005ef3d2 8233
fcf4f891
JT
82342002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8235
8236 * config/alpha/tm-nbsd.h: Include solib.h.
8237
cfef91e4
JT
82382002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8239
8240 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8241 assumptions about the host's byte order.
8242
9964235a
JT
82432002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8244
8245 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8246 to dependency list.
8247 * alphanbsd-tdep.c: Include solib-svr4.h.
8248 * shnbsd-tdep.c: Ditto.
8249
9eeef8ef
JT
82502002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8251
8252 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8253 nbsd-tdep.h to dependency list.
8254 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8255 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8256 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8257 nbsdaout.mh and nbsdelf.mh consistently.
8258 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8259 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8260 nbsdaout.mt and nbsdelf.mh consistently.
8261 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8262 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8263 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8264 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8265 a.out shared library stuff from here...
8266 * config/nm-nbsdaout.h: ...to here.
8267 * config/tm-nbsd.h: Remove.
8268 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8269 * config/arm/nbsd.mh: Remove.
8270 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8271 nbsd-tdep.o.
8272 * config/arm/nbsdaout.mh: New file.
8273 * config/arm/nbsdelf.mh: New file.
8274 * config/arm/nm-nbsdaout.h: New file.
8275 * config/i386/nbsd.mh: Remove.
8276 * config/i386/nbsd.mt: Remove.
8277 * config/i386/nbsdaout.mh: New file.
8278 * config/i386/nbsdaout.mt: New file.
8279 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8280 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8281 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8282 i386_register_u_addr): Remove.
8283 * config/i386/nm-nbsdaout.h: New file.
8284 * config/i386/nm-nbsdelf.h: Remove.
8285 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8286 (USE_STRUCT_CONVENTION): Remove.
8287 * config/i386/tm-nbsdaout.h: New file.
8288 * config/i386/tm-nbsdelf.h: Remove.
8289 * config/m68k/nbsd.mh: Remove.
8290 * config/m68k/nbsd.mt: Remove.
8291 * config/m68k/nbsdaout.mh: New file.
8292 * config/m68k/nbsdaout.mt: New file.
8293 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8294 * config/m68k/nm-nbsdaout.h: New file.
8295 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8296 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8297 * config/ns32k/nbsd.mh: Remove.
8298 * config/ns32k/nbsd.mt: Remove.
8299 * config/ns32k/nbsdaout.mh: New file.
8300 * config/ns32k/nbsdaout.mt: New file.
8301 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8302 * config/ns32k/nm-nbsdaout.h: New file.
8303 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8304 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8305 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8306 (SVR4_SHARED_LIBS): Remove.
8307 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8308 * config/sparc/nbsd.mh: Remove.
8309 * config/sparc/nbsd.mt: Remove.
8310 * config/sparc/nbsdaout.mh: New file.
8311 * config/sparc/nbsdaout.mt: New file.
8312 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8313 * config/sparc/nbsdelf.mt: New file.
8314 * config/sparc/nm-nbsdaout.h: New file.
8315 * config/sparc/nm-nbsdelf.h: Remove.
8316 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8317 * config/sparc/tm-nbsdaout.h: New file.
8318
257ce470
JT
83192002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8320
8321 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8322 mipsnbsd-tdep.c
8323 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8324
76a6d5fe
JT
83252002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8326
8327 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8328 shnbsd-nat.c.
8329 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8330
45888261
JT
83312002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8332
8333 * NEWS: Note new MIPS NetBSD native configuration.
8334 * configure.host (mips*-*-netbsd*): New host.
8335 * configure.tgt (mips*-*-netbsd*): New target.
8336 * mipsnbsd-nat.c: New file.
8337 * mipsnbsd-tdep.c: New file.
8338 * mipsnbsd-tdep.h: New file.
8339 * config/mips/nbsd.mh: New file.
8340 * config/mips/nbsd.mt: New file.
8341 * config/mips/nm-nbsd.h: New file.
8342 * config/mips/tm-nbsd.h: New file.
8343
70f80edf
JT
83442002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8345
8346 * Makefile.in (SFILES): Add osabi.c.
8347 (COMMON_OBS): Add osabi.o.
8348 (osabi.o): New dependency list.
8349 * osabi.c: New file.
8350 * osabi.h: New file.
8351 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8352
8353 * Makefile.in (alpha_tdep_h): Define and use instead of
8354 alpha-tdep.h.
8355 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8356 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8357 Remove.
8358 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8359 * alpha-tdep.h: Include osabi.h.
8360 (alpha_abi): Remove.
8361 (gdbarch_tdep): Use generic OS ABI framework.
8362 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8363 gdbarch_register_osabi.
8364 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8365 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8366 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8367
8368 * Makefile.in (sh_tdep_h): Add osabi.h.
8369 * sh-tdep.h (sh_osabi): Remove.
8370 (gdbarch_tdep): Use generic OS ABI framework.
8371 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8372 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8373 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8374 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8375
8376 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8377 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8378 gdbarch_register_osabi.
8379 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8380 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8381 (get_elfosabi): Rename to...
8382 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8383 ABI framework support routines.
8384 (arm_gdbarch_init): Use generic OS ABI framework.
8385 (arm_dump_tdep): Likewise.
8386 (_initialize_arm_tdep): Likewise.
8387 * arm-tdep.h: Include osabi.h.
8388 (arm_abi): Remove.
8389 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8390 osabi member.
8391 (arm_gdbarch_register_os_abi): Remove prototype.
8392 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8393 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8394
8395 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8396 * mips-tdep.c: Include osabi.h.
8397 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8398 OS ABI framework.
8399
d194345b
KH
84002002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8401
8402 * h8300-tdep.c: Fix formatting.
8403
70c6b0d1
EZ
84042002-05-20 Elena Zannoni <ezannoni@redhat.com>
8405
8406 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8407 printing vector registers.
8408
165b8e33
AC
84092002-05-19 Andrew Cagney <ac131313@redhat.com>
8410
8411 From Fernando Nasser:
8412 * remote.c (remote_async_open_1): Re-throw the exception when the
8413 connection fails.
8414 (remote_cisco_open): Ditto.
8415 (remote_open_1): Ditto.
8416
36918e70
AC
84172002-05-19 Andrew Cagney <ac131313@redhat.com>
8418
8419 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8420 (remote_start_remote): Add uiout parameter. Pass through to
8421 remote_start_remote_dummy.
8422 (remote_open_1): Use catch_exception instead of catch_errors.
8423 (remote_async_open_1): Ditto.
8424 (remote_cisco_open): Ditto.
8425
ae44c0c4
AC
84262002-05-19 Andrew Cagney <ac131313@redhat.com>
8427
8428 * remote.c (remote_start_remote): Replace PTR with void pointer.
8429 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8430 static.
8431
8efe637d
AC
84322002-05-18 Andrew Cagney <ac131313@redhat.com>
8433
8434 * gdb_indent.sh: Allow the script to be run in the sim directory.
8435
2f1b5984
MK
84362002-05-18 Mark Kettenis <kettenis@gnu.org>
8437
f0f625e2
MK
8438 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8439 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8440
2f1b5984
MK
8441 * corelow.c (core_open): Only call set_gdbarch_from_file if
8442 exec_bfd is NULL.
8443
fc974602
AV
84442002-05-17 Andrey Volkov <avolkov@transas.com>
8445
8446 * h8300-tdep.c: Add support of EXR register
8447 * config/h8300/tm-h8300.h: Ditto.
8448
906709f4
AV
84492002-05-17 Andrey Volkov <avolkov@transas.com>
8450
8451 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8452
6e591d68
AV
84532002-05-17 Andrey Volkov <avolkov@transas.com>
8454
8455 * h8300-tdep.c: Change literal regnums to REGNO.
8456
84f0252a
JB
84572002-05-17 Jim Blandy <jimb@redhat.com>
8458
e0e9281e
JB
8459 * NEWS: Note addition of macro support.
8460
84f0252a
JB
8461 Expand preprocessor macros in C expressions.
8462 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8463 (scan_macro_expansion, scanning_macro_expansion,
8464 finished_macro_expansion): New function declarations.
8465 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8466 variable declarations.
8467 * parser-defs.h (expression_context_pc): New declaration.
8468 * parse.c (expression_context_pc): New variable.
8469 (parse_exp_1): Set expression_context_pc, as well as
8470 expression_context_block.
8471 * c-exp.y (yylex): If we're not already reading the result of a
8472 macro expansion, try to macro-expand the next token. When we're
8473 done scanning a macro expansion, switch back to the mainline text.
8474 Commas and `if's in a macro's expansion don't terminate the input.
8475 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8476 (macro_original_text, macro_expanded_text,
8477 expression_macro_lookup_func, expression_macro_lookup_baton): New
8478 variables.
8479 (scan_macro_expansion, scanning_macro_expansion,
8480 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8481 c_preprocess_and_parse): New functions.
8482 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8483 c_preprocess_and_parse, instead of c_parse.
8484 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8485 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8486
1c509ca8
JR
8487Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8488
8489 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8490 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8491 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8492
2250ee0c
CV
84932002-05-17 Corinna Vinschen <vinschen@redhat.com>
8494
8495 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8496
ab3b8126
JT
84972002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8498
8499 * Makefile.in (sh_tdep_h): Define and use.
8500 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8501 register enum): Move to...
8502 * * sh-tdep.h: ...here.
8503 * sh-tdep.c: Include sh-tdep.h.
8504 * sh3-rom.c: Likewise.
8505 * shnbsd-tdep.c: Likewise.
8506
ed9d4749
MS
85072002-05-16 Michael Snyder <msnyder@redhat.com>
8508
8509 * arm-tdep.c: Spelling fix in comment.
8510
2e276125
JB
85112002-05-16 Jim Blandy <jimb@redhat.com>
8512
6821892e
JB
8513 Add commands for manually expanding macros and showing their
8514 definitions.
8515 * macrocmd.c, macroscope.c, macroscope.h: New files.
8516 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8517 (macroscope_h): New variable.
8518 (HFILES_NO_SRCDIR): Add macroscope.h.
8519 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8520 (macroscope.o, macrocmd.o): New rules.
8521
2e276125
JB
8522 Teach the Dwarf 2 reader to read macro information.
8523 * dwarf2read.c: #include "macrotab.h".
8524 (dwarf_macinfo_buffer): New variable.
8525 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8526 dwarf_macinfo_size.
8527 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8528 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8529 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8530 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8531 dwarf2_macro_spaces_in_definition): New complaints.
8532 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8533 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8534 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8535 the partial symbol table.
8536 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8537 from what's recorded in the partial symbol table.
8538 (read_file_scope): If the compilation unit has a
8539 `DW_AT_macro_info' attribute, read its macro information.
8540 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8541
2f53fe6c
DJ
85422002-05-16 Daniel Jacobowitz <drow@mvista.com>
8543
8544 Fix PR gdb/546
8545 * ser-tcp.c: Don't include <netinet/udp.h>.
8546
2be99286
SC
85472002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8548
8549 * MAINTAINERS: Update my email address.
8550
c9af212b 85512002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
8552
8553 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8554 include file of the same name.
8555
bf5f1a52
CV
85562002-05-16 Corinna Vinschen <vinschen@redhat.com>
8557
8558 * configure.tgt: Mark v850 as multi-arched.
8559 * config/v850/tm-v850.h: Remove file.
8560 * config/v850/v850.mt: Eliminate TM_FILE.
8561
435e042a
CV
85622002-05-16 Corinna Vinschen <vinschen@redhat.com>
8563
8564 * v850-tdep.c: Full multi-arch.
8565 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8566 Define GDB_MULTI_ARCH to 2.
8567
9819c6c8
PM
85682002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8569
8570 * p-exp.y (current_type): New static variable.
8571 Carries the type of the expression at the position that is parsed.
8572 (push_current_type, pop_current_type): Two new functions. Used
8573 to store/restore current_type in expression on specific tokens.
c9af212b
RE
8574 (search_field): New static variable. Set to one after parsing a point
8575 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
8576 (FIELDNAME): New token. After a point only a token belonging to
8577 current_type type definition is allowed.
8578 (all over token rules): reset and change current_type according
8579 to rules.
8580 (exp '[' rule): insert implicit array index field if
8581 exp is a pascal string type.
8582
3a06899a
CV
85832002-05-16 Corinna Vinschen <vinschen@redhat.com>
8584
8585 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8586 frame info. Use frame_info's saved_regs instead of matching member
8587 in extra_frame_info throughout.
8588 (v850_frame_init_saved_regs): New function.
8589 (v850_init_extra_frame_info): Move most functionality into
8590 v850_frame_init_saved_regs().
8591 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8592 (v850_frame_find_saved_regs): Remove declaration.
8593 (FRAME_FIND_SAVED_REGS): Remove definition.
8594 (v850_frame_init_saved_regs): Add declaration.
8595 (FRAME_INIT_SAVED_REGS): Add definition.
8596
6ed14b0e
CV
85972002-05-16 Corinna Vinschen <vinschen@redhat.com>
8598
8599 * v850-tdep.c: Begin multi-arch'ing v850.
8600 (v850_target_architecture_hook): Remove function.
8601 (v850_gdbarch_init): New function. Add code previously in
8602 v850_target_architecture_hook().
8603 (_initialize_v850_tdep): Don't set target_architecture_hook.
8604 Call register_gdbarch_init() instead.
8605
42725910
DJ
86062002-05-16 Daniel Jacobowitz <drow@mvista.com>
8607
8608 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8609 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8610 (fixup_class_method_type): Likewise.
8611
99d9066e
JB
86122002-05-15 Jim Blandy <jimb@redhat.com>
8613
8614 Add macro structures to GDB's symbol tables. Nobody puts anything
8615 in them yet.
8616 * symtab.h (struct symtab): New member: `macro_table'.
8617 * buildsym.h (pending_macros): New global variable.
8618 * buildsym.c: #include "macrotab.h".
8619 (buildsym_init): Initialize `pending_macros'.
8620 (end_symtab): If we found macro information while reading a CU's
8621 debugging info, do build a symtab structure for it. Make the
8622 symtab point to the macro information, and clear the
8623 `pending_macros' pointer which held it while we were reading the
8624 debug info.
8625 (really_free_pendings): Free any pending macro table.
8626 * objfiles.h (struct objfile): New member: `macro_cache'.
8627 * objfiles.c (allocate_objfile): Set allocate and free functions
8628 for the macro cache's objstack.
8629 (free_objfile): Empty the macro cache's obstack.
8630 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8631 set new allocate and free functions for it.
8632 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8633 free functions for the macro cache's objstack. (Why is this
8634 function building its own objfile?)
8635 * symmisc.c (print_objfile_statistics): Print statistics on the
8636 macro bcache.
8637 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8638
c899585b
RE
86392002-05-15 Richard Earnshaw <rearnsha@arm.com>
8640
8641 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8642 (REGISTER_U_ADDR): Delete definition.
8643 (arm_register_u_addr): Delete declaration.
8644
a6cdd8c5
RE
86452002-05-15 Richard Earnshaw <rearnsha@arm.com>
8646
8647 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8648 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8649
c97dcfc7
AC
86502002-05-14 Andrew Cagney <ac131313@redhat.com>
8651
8652 * regcache.c (register_valid): Revise comments refering to "Not
8653 available" and "unavailable".
8654 * frame.c (frame_register_read): Ditto.
8655 * findvar.c (value_of_register): Ditto.
8656
93021b7d
AC
86572002-05-15 Andrew Cagney <cagney@redhat.com>
8658
8659 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8660 (remote-sim.o): Update dependencies.
8661 (d10v-tdep.o): Specify dependencies.
8662 (sim_d10v_h): Define.
8663
a86bc61c
JB
86642002-05-14 Jim Blandy <jimb@redhat.com>
8665
8666 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8667 * macrotab.c (macro_lookup_inclusion, find_definition,
8668 new_macro_table): Same.
8669
8670 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8671 not `! strcmp ()'. This is a dubious improvement.
8672 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8673
8674 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8675 although it's not necessary, to avoid a warning.
8676
2fdde8f8
DJ
86772002-05-14 Daniel Jacobowitz <drow@mvista.com>
8678
8679 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8680 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8681 TYPE_INSTANCE_FLAGS.
8682 (struct main_type): New.
8683 (struct type): Move most members to struct main_type. Change
8684 cv_type and as_type to new type_chain member. Add instance_flags.
8685 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8686 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8687 (finish_cv_type): Remove prototype.
8688 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8689 Set TYPE_CHAIN.
8690 (alloc_type_instance): New function.
8691 (smash_type): New function.
8692 (make_pointer_type, make_reference_type, make_function_type)
8693 (smash_to_member_type, smash_to_method_type): Call smash_type.
8694 (make_qualified_type): New function.
8695 (make_type_with_address_space): Call make_qualified_type.
8696 (make_cv_type): Likewise.
8697 (finish_cv_type): Remove unnecessary function.
8698 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8699 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8700 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8701 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8702 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8703 * hpread.c (hpread_read_struct_type): Likewise.
8704 * stabsread.c (read_struct_type): Likewise.
8705
843fedf4
EZ
87062002-05-14 Elena Zannoni <ezannoni@redhat.com>
8707
8708 * configure.tgt: Add a catch all sh* target, for cases like
8709 sh[2,3,4]-elf and sh-hms.
8710
05a6c72c
KS
87112002-05-14 Keith Seitz <keiths@redhat.com>
8712
8713 * event-loop.c (create_file_handler): Don't do anything but
8714 update data when we are given a fd which we are already
8715 monitoring.
8716
5d085aaf
ML
87172002-05-14 Michal Ludvig <mludvig@suse.cz>
8718
8719 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8720 (update_context): Use __func__ in warnings.
8721
9db8d71f
DJ
87222002-05-14 Daniel Jacobowitz <drow@mvista.com>
8723
8724 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8725 and tcp_close to net_open and net_close.
8726 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8727 using UDP if requested. Don't try to disable Nagle on UDP
8728 sockets.
8729 * remote.c (remote_serial_open): New function. Warn about UDP.
8730 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8731
5dbc6baa
EZ
87322002-05-13 Elena Zannoni <ezannoni@redhat.com>
8733
8734 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8735
cc3023f7
EZ
87362002-05-13 Elena Zannoni <ezannoni@redhat.com>
8737
8738 * configure.tgt: Remove sh-hms target.
8739 * MAINTAINERS: Don't list sh-hms as a separate target.
8740
ec2bcbe7
JB
87412002-05-13 Jim Blandy <jimb@redhat.com>
8742
8743 Add first preprocessor macro-expansion files.
8744 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8745 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8746 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8747 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8748 (COMMON_OBS): Add macrotab.o, macroexp.o.
8749 (macroexp.o, macrotab.o): New rules.
8750
6d531722
AC
87512002-05-13 Andrew Cagney <ac131313@redhat.com>
8752
8753 * config/m88k/tm-m88k.h: Update copyright.
8754 (m88k_target_write_pc): Declare
8755 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8756 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8757 (SHIFT_INST_REGS): Update definition.
8758 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8759 using old definition of TARGET_WRITE_PC.
8760 * regcache.c (generic_target_write_pc): Delete code handling
8761 NNPC_REGNUM.
8762 * gdbarch.sh (NNPC_REGNUM): Delete.
8763 * gdbarch.h, gdbarch.c: Regenerate.
8764
3e3f2739
RE
87652002-05-13 Richard Earnshaw <rearnsha@arm.com>
8766
8767 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8768 builtin reg number.
8769
0004e5a2
DJ
87702002-05-13 Daniel Jacobowitz <drow@mvista.com>
8771
8772 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8773 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8774 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8775 access macros.
8776 * c-typeprint.c (cp_type_print_method_args): Likewise.
8777 (c_type_print_args): Likewise.
8778 * d10v-tdep.c (d10v_push_arguments): Likewise.
8779 (d10v_extract_return_value): Likewise.
8780 * expprint.c (print_subexp): Likewise.
8781 * gdbtypes.c (lookup_primitive_typename): Likewise.
8782 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8783 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8784 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8785 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8786 (TYPE_VECTOR): Likewise.
8787 * hpread.c (hpread_read_struct_type)
8788 (fix_static_member_physnames, fixup_class_method_type)
8789 (hpread_type_lookup): Likewise.
8790 * mdebugread.c (parse_symbol, parse_type): Likewise.
8791 * p-lang.c (is_pascal_string_type): Likewise.
8792 * valops.c (hand_function_call): Likewise.
8793 * x86-64-tdep.c (classify_argument): Likewise.
8794
8795 * hpread.c (hpread_read_function_type)
8796 (hpread_read_doc_function_type): Call replace_type.
8797 * dstread.c (create_new_type): Delete.
8798 (decode_dst_structure, process_dst_function): Call alloc_type.
8799 Use type access macros.
8800
dff95cc7
MK
88012002-05-12 Mark Kettenis <kettenis@gnu.org>
8802
8803 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8804 the're not supported by the current architecture.
8805 (i387_fill_fxsave): Likewise.
8806
bbcd32ad
FF
88072002-05-12 Fred Fish <fnf@redhat.com>
8808
8809 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8810 sect_index_xxx members to index the first slot in section_offsets
8811 if all of the section_offsets are zero.
8812
89cf4787
MK
88132002-05-12 Mark Kettenis <kettenis@gnu.org>
8814
8815 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8816 checked in with last change.
8817
1f77ffc5
MK
88182002-05-12 Mark Kettenis <kettenis@gnu.org>
8819
8820 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8821 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8822 config.sub.
8823
89b8b4a9
DJ
88242002-05-12 Daniel Jacobowitz <drow@mvista.com>
8825
8826 * Makefile.in: Update dependencies.
8827
14a5e767
AC
88282002-05-11 Andrew Cagney <ac131313@redhat.com>
8829
8830 * language.c (local_hex_string_custom): Simplify. Do not depend
8831 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8832
8833 * memattr.c (mem_info_command): Replace calls to
8834 longest_local_hex_string and longest_local_hex_string_custom.
8835 * buildsym.c (make_blockvector): Ditto.
8836 * solib.c (info_sharedlibrary_command): Ditto.
8837 * tracepoint.c (tracepoints_info): Ditto.
8838 * symtab.c (print_msymbol_info): Ditto.
8839
8840 * language.c (local_hex_string): Delete.
8841 (local_hex_string_custom): Delete.
8842 (longest_local_hex_string): Rename to local_hex_string.
8843 (longest_local_hex_string_custom): Rename to
8844 local_hex_string_custom.
8845 * language.h (local_hex_string): Change parameter type to LONGEST.
8846 (local_hex_string_custom): Ditto.
8847 (longest_local_hex_string): Delete declaration.
8848 (longest_local_hex_string_custom): Ditto.
8849
8850 * solib.c: Update copyright.
8851 * memattr.c: Update copyright.
8852
13d01224
AC
88532002-05-11 Andrew Cagney <ac131313@redhat.com>
8854
8855 * arch-utils.h (legacy_register_to_value): Declare.
8856 (legacy_value_to_register): Declare.
8857 (legacy_convert_register_p): Declare.
8858 * arch-utils.c (legacy_register_to_value): New function.
8859 (legacy_value_to_register): New function.
8860 (legacy_convert_register_p): New function.
8861
8862 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8863 (VALUE_TO_REGISTER): Define.
8864 (CONVERT_REGISTER_P): Define.
8865 * gdbarch.h, gdbarch.c: Regenerate.
8866
8867 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8868 VALUE_TO_REGISTER.
8869 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8870 CONVERT_REGISTER_P.
8871
4a1970e4
DJ
88722005-05-11 Daniel Jacobowitz <drow@mvista.com>
8873 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8874
8875 * Makefile.in: Update dependencies for valops.c.
8876 * valops.c: Include "gdb_assert.h".
8877 (typecmp): Skip THIS parameter to methods.
8878 (find_method_list): Remove static_memfuncp argument,
8879 update callers. Check for stub methods.
8880 (find_value_oload_method_list): Don't set *static_memfuncp.
8881 (find_overload_match): Don't check for stub methods. Assert
8882 that methods are not stubbed. Handle static methods.
8883 (value_find_oload_method_list): Remove static_memfuncp argument.
8884 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8885 to the argument list for static stub methods.
8886 * value.h (value_find_oload_method_list): Update prototype.
8887
b2e75d78
AC
88882002-05-11 Andrew Cagney <ac131313@redhat.com>
8889
8890 * arch-utils.h (generic_register_size): Declare.
8891 (generic_register_raw_size, generic_register_virtual_size): Delete
8892 declarations.
8893 * arch-utils.c (generic_register_raw_size): Delete.
8894 (generic_register_size): New function.
8895 (generic_register_virtual_size): Delete.
8896
8897 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8898 default generic_register_size.
8899 * gdbarch.h, gdbarch.c: Re-generate.
8900
8901 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8902 register_virtual_size.
8903 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8904 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8905
451fbdda
AC
89062002-05-11 Andrew Cagney <ac131313@redhat.com>
8907
8908 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8909 * gdbarch.h, gdbarch.c: Regenerate.
8910 * gnu-v3-abi.c: Update copyright.
8911 (vtable_address_point_offset): Update.
8912 (gnuv3_rtti_type): Update.
8913 (gnuv3_baseclass_offset): Update.
8914 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8915 (init_fetch_link_map_offsets): Update.
8916 * remote.c (get_remote_state): Update.
8917
6d2f5cea
DJ
89182002-05-11 Daniel Jacobowitz <drow@mvista.com>
8919
8920 * TODO: Remove value_headof/value_from_vtable_info comment.
8921 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8922 * values.c (value_headof, value_from_vtable_info): Delete.
8923 * value.h (value_from_vtable_info): Delete prototype.
8924
d2324da4
AC
89252002-05-11 Andrew Cagney <ac131313@redhat.com>
8926
8927 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8928 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8929 $(gdb_regex_h).
8930 (gdb_assert_h): Define.
8931 (gdb_wait_h): Define.
8932 (gdb_regex_h): Define.
8933
5c717440
DJ
89342002-05-11 Daniel Jacobowitz <drow@mvista.com>
8935
8936 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8937 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8938
6c7861b3
JT
89392002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8940
8941 * nbsd-tdep.c: Fix comment.
8942
ea5bc2a6
JT
89432002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8944
8945 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8946 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8947 (nbsd-tdep.o): New dependency list.
8948 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8949 nbsd-tdep.h.
8950 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8951 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8952 * nbsd-tdep.c: New file.
8953 * nbsd-tdep.h: New file.
8954 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8955 nbsd-tdep.h.
8956 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8957 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8958 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8959 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8960
b28da865
JT
89612002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8962
8963 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8964 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8965 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8966 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8967 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8968 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8969
4b8ff1fa
JT
89702002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8971
8972 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8973 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8974 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8975 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8976 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8977 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8978 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8979
dfe6eb1f
JT
89802002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8981
8982 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8983 fetch_elfcore_registers to...
8984 * i386nbsd-tdep.c: ...here.
8985 (i386nbsd_use_struct_convention): Rename to...
8986 (i386nbsd_aout_use_struct_convention): ...this.
8987 (i386nbsd_supply_reg): New function.
8988 (i386nbsd_fill_reg): New function.
8989 (fetch_core_registers): Use i386nbsd_supply_reg.
8990 (fetch_elfcore_registers): Likewise.
8991 (_initialize_i386nbsd_tdep): New function.
8992 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8993 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8994 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8995 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8996 (i386nbsd_aout_use_struct_convention): ...this.
8997
20cb8cda
JT
89982002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8999
9000 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9001 (store_inferior_registers): Use shnbsd_fill_reg.
9002 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9003 sh_nbsd_supply_register): Collapse into...
9004 (shnbsd_supply_reg): ...this.
9005 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9006 (shnbsd_fill_reg): ...this.
9007 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9008 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9009 (fetch_core_registers): Use shnbsd_supply_reg.
9010 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9011 (sh_nbsd_core_fns): Rename to...
9012 (shnbsd_core_fns): ...this.
9013 (sh_nbsd_elfcore_fns): Rename to...
9014 (shnbsd_elfcore_fns): ...this.
9015 (sh_nbsd_init_abi): Rename to...
9016 (shnbsd_init_abi): ...this.
9017 (_initialize_sh_nbsd_tdep): Rename to...
9018 (_initialize_shnbsd_tdep): ...this.
9019 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9020 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9021 sh_nbsd_fill_register): Remove prototypes.
9022 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9023
e750d25e
JT
90242002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9025
9026 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9027 (i387-nat.o): Delete dependency list.
9028 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9029 (x86-64-linux-nat.o): Likewise.
9030 * i387-nat.c: Delete file, moving contents to...
9031 * i387-tdep.c: ...here.
9032 * i387-nat.h: Rename...
9033 * i387-tdep.h: ...to this.
9034 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9035 * i386-linux-nat.c: Likewise.
9036 * i386bsd-nat.c: Likewise.
9037 * i386gnu-nat.c: Likewise.
9038 * i386nbsd-nat.c: Likewise.
9039 * i386v4-nat.c: Likewise.
9040 * x86-64-linux-nat.c: Likewise.
9041 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9042 * config/i386/go32.mh (NATDEPFILES): Likewise.
9043 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9044 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9045 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9046 * config/i386/linux.mh (NATDEPFILES): Likewise.
9047 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9048 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9049 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9050 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9051
1aee598a
JT
90522002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9053
9054 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9055 (alphanbsd-nat.o): Remove dependency list.
9056 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9057 * alphanbsd-nat.c: Delete. Contents moved to...
9058 * alphanbsd-tdep.c: ...here.
9059 (_initialize_alphanbsd_tdep): Register core functions.
9060 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9061
12bcb0fe
JT
90622002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9063
9064 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9065 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9066 (alphanbsd-nat.o): Likewise.
9067 (alphabsd-tdep.o): New dependency list.
9068 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9069 (fill_gregset): Use alphabsd_fill_reg.
9070 (supply_fpregset): Use alphabsd_supply_fpreg.
9071 (fill_fpregset): Use alphabsd_fill_fpreg.
9072 (fetch_inferior_registers): Use struct reg and struct fpreg
9073 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9074 and alphabsd_supply_fpreg.
9075 (store_inferior_registers): Use struct reg and struct fpreg
9076 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9077 and alphabsd_fill_fpreg.
9078 * alphabsd-tdep.c: New file.
9079 * alphabsd-tdep.h: New file.
9080 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9081 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9082 alphabsd_supply_fpreg.
9083 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9084 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9085
361d1df0
EC
90862002-05-11 Eric Christopher <echristo@redhat.com>
9087
9088 * mips-tdep.c (mips_double_register_type): Fix thinko.
9089 (mips_single_register_type): Ditto.
9090 * MAINTAINERS: Add self.
9091
92dd7cee
MK
90922002-05-11 Mark Kettenis <kettenis@gnu.org>
9093
9094 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9095 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9096 right thing on architectures with different endianness and/or
9097 integer sizes.
9098
e27da16d
JT
90992002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9100
9101 From Christian Limpach <chris@Pin.LU>
9102 * configure.in: Change sed expression which comments out
9103 NATDEPFILES to also comment out continuation lines.
9104 * configure: Regenerate.
9105
ddde02bd
EZ
91062002-05-10 Elena Zannoni <ezannoni@redhat.com>
9107
9108 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9109 big patch.
9110
1c922164
EZ
91112002-05-10 Elena Zannoni <ezannoni@redhat.com>
9112
9113 * sh-tdep.c: Include correct file.
9114
283150cd
EZ
91152002-05-10 Elena Zannoni <ezannoni@redhat.com>
9116
9117 New support for sh64-elf (sh5) target.
9118
9119 * configure.tgt: For sh64-elf target, default to sh-elf.
9120
9121 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9122 (struct gdbarch_tdep): Add new fields for new registers and ABI
9123 info.
361d1df0 9124
283150cd
EZ
9125 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9126 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9127 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9128 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9129 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9130 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9131 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9132 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9133 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9134 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9135 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9136 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9137 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9138 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9139 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9140 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9141 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9142 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9143 sign_extend, sh64_nofp_frame_init_saved_regs,
9144 sh64_init_extra_frame_info, sh64_get_saved_register,
9145 sh64_extract_struct_value_address, sh64_pop_frame,
9146 sh64_push_arguments, sh64_extract_return_value,
9147 sh64_store_return_value, sh64_show_media_regs,
9148 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9149 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9150 sh_sh64_register_virtual_type,
9151 sh_sh64_register_convert_to_virtual,
9152 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9153 sh64_register_read, sh64_pseudo_register_write,
9154 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9155 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9156 sh64_do_pseudo_register, sh_compact_do_registers_info,
9157 sh64_do_registers_info, sh_gdbarch_init): New functions.
9158
3117ed25
EZ
91592002-05-10 Elena Zannoni <ezannoni@redhat.com>
9160
9161 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9162
2654e6d4
DJ
91632002-05-10 Daniel Jacobowitz <drow@mvista.com>
9164
9165 * linespec.c (decode_line_1): Check for a double quote after
9166 a filename correctly.
9167
9ab3e532
JB
91682002-05-10 Jim Blandy <jimb@redhat.com>
9169
9170 Properly track the size of the current objfile's .debug_line section.
9171 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9172 (DWARF_LINE_SIZE): New macro.
9173 (dwarf2_build_psymtabs_hard): Record the line section's size in
9174 the partial symbol table.
9175 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9176 symbol table.
9177
126fa72d
PS
91782002-05-10 Petr Sorfa <petrs@caldera.com>
9179
9180 * ia64-tdep.c: Handle breakpoints on L instruction type
9181 in MLX instruction bundle by moving the breakpoint to
9182 the third slot (X instruction type) as L holds only data.
9183
1f077a3e
KB
91842002-05-10 Kevin Buettner <kevinb@redhat.com>
9185
9186 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9187 (process_one_symbol): Complain about discarding local symbols
9188 due to a misplaced N_LBRAC entry.
9189
8120c9d5 91902002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
9191
9192 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
9193 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9194 decrease the depth we are at, in the case of templates.
361d1df0 9195
67b2c998
DJ
91962002-05-09 Daniel Jacobowitz <drow@mvista.com>
9197
9198 * mips-tdep.c (mips_float_register_type): New function.
9199 (mips_double_register_type): New function.
9200 (mips_print_register): Use them.
9201 (do_fp_register_row): Likewise.
9202
fd326606
DJ
92032002-05-09 Daniel Jacobowitz <drow@mvista.com>
9204
6609d9af 9205 * signals/signals.c (signals): Remove conditional compilation around
fd326606 9206 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 9207 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 9208
bef35864
MS
92092002-05-09 Michael Snyder <msnyder@redhat.com>
9210
9211 * remote-rdp.c (remote_rdp_can_run): Remove.
9212
c55a3f73
TT
92132002-05-09 Tom Tromey <tromey@redhat.com>
9214
9215 * jv-valprint.c (java_val_print): Handle `char' as a special case
9216 of TYPE_CODE_INT.
9217
b8d5e71d
MS
92182002-05-09 Michael Snyder <msnyder@redhat.com>
9219
9220 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9221 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 9222 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 9223 str r(0123),[sp,#nn].
361d1df0 9224 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
9225 order-independent by placing it in a loop.
9226
e2cd42dd
MS
92272002-05-06 Michael Snyder <msnyder@redhat.com>
9228
9229 * stabsread.c (read_type): Add recognition for new attribute:
9230 "@V;" means that an array type is actually a vector.
9231 This is analogous to the vector flag that's been added to dwarf2.
9232
3ce1502b
MK
92332002-05-09 Mark Kettenis <kettenis@gnu.org>
9234
9235 * i386-tdep.h (i386_abi): New enum.
9236 (struct gdbarch_tdep): Replace os_ident member with abi.
9237 (i386_gdbarch_register_os_abi): New prototype.
9238 * i386-tdep.c (i386_abi_names): New array.
9239 (process_note_abi_tag_sections): Removed.
9240 (process_note_sections): New function.
9241 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9242 (struct i386_abi_handler): New struct.
9243 (i386_abi_handler_list): New variable.
9244 (i386_gdbarch_register_os_abi): New function.
9245 (i386_gdbarch_init): Adapt for the changes given above.
9246
084c156a
DJ
92472002-05-08 Daniel Jacobowitz <drow@mvista.com>
9248
9249 * gregset.h: Say "GNU/Linux".
9250
6599f021
EZ
92512002-05-08 Elena Zannoni <ezannoni@redhat.com>
9252
9253 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9254 (build_gdbtypes): Build builtin_type_v2_float.
9255 (_initialize_gdbtypes): Register new builtin type.
9256
40af4b0c
AC
92572002-05-08 Andrew Cagney <ac131313@redhat.com>
9258
9259 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9260 (clear_gdbarch_swap): New function.
9261 (initialize_non_multiarch): Call.
9262 (gdbarch_update_p): Before calling init(), swap out and clear the
9263 existing architecture.
9264 * gdbarch.c: Regenerate.
9265
4fe84f46
JT
92662002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9267
9268 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9269 alphanbsd-tdep.c.
9270
4015edd1
JT
92712002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9272
9273 * sh-nbsd-nat.c: Rename to...
9274 * shnbsd-nat.c: ...this.
9275 * sh-nbsd-tdep.c: Rename to...
9276 * shnbsd-tdep.c: ...this.
9277 * sh-nbsd-tdep.h: Rename to...
9278 * shnbsd-tdep.h: ...this.
9279 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9280 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9281
0e2bd219
RE
92822002-05-08 Richard Earnshaw <rearnsha@arm.com>
9283
9284 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9285 concatenation for command help messages.
9286
13a38d45
JT
92872002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9288
9289 * NEWS: Note new sh*-*-netbsdelf* configuration.
9290 * configure.host: Set gdb_host_cpu to sh for all sh*.
9291 (sh*-*-netbsdelf*): New host.
9292 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9293 (sh*-*-netbsdelf*): New target.
9294 * sh-nbsd-nat.c: New file.
9295 * sh-nbsd-tdep.c: New file.
9296 * sh-nbsd-tdep.h: New file.
9297 * config/sh/nbsd.mh: New file.
9298 * config/sh/nbsd.mt: New file.
9299 * config/sh/nm-nbsd.h: New file.
9300 * config/sh/tm-nbsd.h: New file.
9301
d658f924
JT
93022002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9303
9304 * sh-tdep.c (sh_osabi_names): Declare.
9305 (process_note_abi_tag_sections): New function.
9306 (get_elfosabi): Ditto.
9307 (sh_gdbarch_register_os_abi): Ditto.
9308 (sh_dump_tdep): Ditto.
9309 _initialize_sh_tdep): Use gdbarch_register to register
9310 sh_gdbarch_init and sh_dump_tdep.
9311 * config/sh/tm-sh.h (sh_osabi): Declare.
9312 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9313
848cfffb
AC
93142002-05-07 Andrew Cagney <ac131313@redhat.com>
9315
9316 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9317 (thumb_scan_prologue): Ditto.
9318 (arm_find_callers_reg): Ditto.
9319 (arm_frame_chain): Ditto.
9320 (arm_init_extra_frame_info): Ditto.
9321 (arm_frame_saved_pc): Ditto.
9322 (arm_pop_frame): Ditto.
9323 (arm_push_return_address): New function.
9324 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9325 call_dummy_location, call_dummy_breakpoint_offset_p,
9326 call_dummy_breakpoint_offset, call_dummy_p,
9327 call_dummy_stack_adjust_p, call_dummy_words,
9328 sizeof_call_dummy_words, call_dummy_start_offset,
9329 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9330 call_dummy_address, push_return_address and push_dummy_frame for
9331 generic dummy frames.
9332
e7d717c0
JT
93332002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9334
9335 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9336 size computation for alloca.
9337 (sh_fp_frame_init_saved_regs): Likewise.
9338
7bbcf283
RE
93392002-05-07 Richard Earnshaw <rearnsha@arm.com>
9340
9341 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9342 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 9343 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
9344 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9345 * remote-rdp.c (remote_rdp_fetch_register): Use
9346 ARM_MAX_REGISTER_RAW_SIZE.
9347 (remote_rdp_store_register): Likewise.
9348
4657573b
ML
93492002-05-07 Michal Ludvig <mludvig@suse.cz>
9350
361d1df0 9351 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
9352 added default labels to switch {} statements.
9353 * x86-64-tdep.c: Ditto.
9354 * x86-64-linux-nat.c: Ditto.
9355
010f3b2f
JT
93562002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9357
9358 * solib.h: Protect against multiple inclusion.
9359
debd256d
JB
93602002-05-06 Jim Blandy <jimb@redhat.com>
9361
9ab3e532
JB
9362 Add first preprocessor macro-expansion files.
9363 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9364 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9365 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9366 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9367 (COMMON_OBS): Add macrotab.o, macroexp.o.
9368 (macroexp.o, macrotab.o): New rules.
9369
debd256d
JB
9370 Separate the job of reading the line number info statement program
9371 header (...expialidocious) out into its own function.
9372 * dwarf2read.c (struct line_head, struct filenames, struct
9373 directories): Replace with...
9374 (struct line_header): New structure, containing the full
9375 contents of the statement program header, including the
9376 include directory and file name tables.
9377 (read_file_scope): If we have line number info, instead of just
9378 calling dwarf_decode_lines to do all the work, call
9379 dwarf_decode_line_header first to get a `struct line_header'
9380 containing the data in the statement program header, and then
9381 pass that to dwarf_decode_lines, which will pick up where that
9382 left off. Be sure to clean up the `struct line_header' object.
9383 (dwarf_decode_line_header, free_line_header, add_include_dir,
9384 add_file_name): New functions.
9385 (dwarf_decode_lines): Move all the code to read the statement
9386 program header into dwarf_decode_line_header. Take the line
9387 header it built as the first argument, instead of the offset to
9388 the compilation unit's line number info. Use the new `struct
9389 line_header' type instead of the old structures. No need to do
9390 cleanups here now, since we don't allocate anything.
9391 (dwarf2_statement_list_fits_in_line_number_section,
9392 dwarf2_line_header_too_long): New complaints.
9393
ac3aafc7
EZ
93942002-05-06 Elena Zannoni <ezannoni@redhat.com>
9395
9396 * gdbtypes.c (init_vector_type): New function.
9397 (build_builtin_type_vec128): Simplify the representation of SIMD
9398 registers.
9399 (build_gdbtypes): Initialize new builtin vector types.
9400 (_initialize_gdbtypes): Register new vector types with gdbarch.
9401 (builtin_type_v4_float, builtin_type_v4_int32,
9402 builtin_type_v8_int16, builtin_type_v16_int8,
9403 builtin_type_v2_int32, builtin_type_v4_int16,
9404 builtin_type_v8_int8): New (renamed) SIMD types.
9405
13e49980
MK
94062002-05-06 Mark Kettenis <kettenis@gnu.org>
9407
9408 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9409 (i387_fill_fxsave): Likewise.
9410
997b20b8
AO
94112002-05-05 Alexandre Oliva <aoliva@redhat.com>
9412
9413 * alpha-tdep.c (alpha_extract_return_value): Don't use
9414 non-constant array size in prototype.
9415
535c96ce
AC
94162002-05-04 Andrew Cagney <ac131313@redhat.com>
9417
9418 From Brian Taylor <briant at model dot com>:
9419 * ui-out.c (ui_out_field_core_addr): Use the function
9420 longest_local_hex_string_custom'to format addresses > 32 bits
9421 wide.
9422
9423 * ui-out.c (ui_out_field_core_addr): Update comment.
9424
bedfa57b
AC
94252002-05-04 Andrew Cagney <ac131313@redhat.com>
9426
9427 * stack.c (select_and_print_frame): Make static. Delete the
9428 parameter `level'.
9429 (func_command): Update call.
9430 (select_frame_command): Delete code computing the frame level.
9431 * frame.h (select_and_print_frame): Delete declaration.
9432
f621c63e
AC
94332002-05-04 Andrew Cagney <ac131313@redhat.com>
9434
9435 * sparc-tdep.c (sparc_get_saved_register): Comment why
9436 get_prev_frame call is safe.
9437
0f7d239c
AC
94382002-05-04 Andrew Cagney <ac131313@redhat.com>
9439
9440 * frame.h (select_frame): Delete level parameter.
9441 * stack.c (select_frame): Update. Use frame_relative_level to
9442 obtain the frame's level.
9443 (select_and_print_frame): Update call.
9444 (select_frame_command): Ditto.
9445 (up_silently_base): Ditto.
9446 (down_silently_base): Ditto.
9447 * ocd.c (ocd_start_remote): Ditto.
9448 * remote-rdp.c (remote_rdp_open): Ditto.
9449 * remote-mips.c (mips_initialize): Ditto.
9450 (common_open): Ditto.
9451 * remote-e7000.c (e7000_start_remote): Ditto.
9452 * m3-nat.c (select_thread): Ditto.
9453 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9454 (child_get_current_exception_event): Ditto.
9455 * varobj.c (varobj_create): Ditto.
9456 (varobj_update): Ditto.
9457 (c_value_of_root): Ditto.
9458 * tracepoint.c (finish_tfind_command): Ditto.
9459 * corelow.c (core_open): Ditto.
9460 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9461 * thread.c (info_threads_command): Ditto.
9462 (switch_to_thread): Ditto.
9463 * infrun.c (normal_stop): Ditto.
9464 (restore_selected_frame): Ditto.
9465 (restore_inferior_status): Ditto.
9466 * breakpoint.c (insert_breakpoints): Ditto.
9467 (watchpoint_check): Ditto.
9468 (bpstat_stop_status): Ditto.
9469 (do_enable_breakpoint): Ditto.
9470 * blockframe.c (flush_cached_frames): Ditto.
9471 (reinit_frame_cache): Ditto.
9472
71d6c7b1
AC
94732002-05-04 Andrew Cagney <ac131313@redhat.com>
9474
9475 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9476 maintainer.
9477
cda6c68a
JB
94782002-05-04 Jim Blandy <jimb@redhat.com>
9479
9480 * gdbtypes.c (replace_type): Doc fix.
9481
5c1c87f0
AC
94822002-05-04 Andrew Cagney <ac131313@redhat.com>
9483
9484 * valprint.c (strcat_longest): Delete commented out function.
9485 Update copyright.
9486
cd9bfe15
AC
94872002-05-04 Andrew Cagney <ac131313@redhat.com>
9488
9489 * MAINTAINERS: Mark a29k as deleted.
9490 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9491 Move new configurations to the top.
9492 * configure.tgt: Remove a29k.
9493 * config/a29k/tm-vx29k.h: Delete.
9494 * config/a29k/vx29k.mt: Delete.
9495 * config/a29k/tm-a29k.h: Delete.
9496 * config/a29k/a29k-udi.mt: Delete.
9497 * config/a29k/a29k.mt: Delete.
9498 * a29k-tdep.c: Delete.
9499 * remote-udi.c: Delete.
9500 * remote-mm.c: Delete.
9501 * remote-eb.c: Delete.
9502 * remote-adapt.c: Delete.
9503 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
9504 * config/s390/s390x.mt: Ditto.
9505 * config/s390/s390.mt: Ditto.
9506 * config/sparc/sparclynx.mh: Ditto.
9507 * config/sparc/linux.mh: Ditto.
9508 * config/pa/hppaosf.mh: Ditto.
9509 * config/pa/hppabsd.mh: Ditto.
9510 * config/ns32k/nbsd.mt: Ditto.
9511 * config/mips/vr5000.mt: Ditto.
9512 * config/m68k/sun3os4.mh: Ditto.
9513 * config/m68k/nbsd.mt: Ditto.
9514 * config/m68k/m68klynx.mh: Ditto.
9515 * config/m32r/m32r.mt: Ditto.
9516 * config/i386/x86-64linux.mt: Ditto.
9517 * config/i386/nbsdelf.mt: Ditto.
9518 * config/i386/nbsd.mt: Ditto.
9519 * config/i386/i386lynx.mh: Ditto.
9520
bf0c5130
AC
95212002-05-04 Andrew Cagney <ac131313@redhat.com>
9522
9523 * target.c (debug_print_register): New function. Handle oversize
9524 registers.
9525 (debug_to_fetch_registers): Call.
9526 (debug_to_store_registers): Call.
9527
2ae1c2d2
JB
95282002-05-03 Jim Blandy <jimb@redhat.com>
9529
13a393b0
JB
9530 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9531 (read_type): Doc fix.
9532 * gdbtypes.c (replace_type): Doc fix.
9533
2ae1c2d2
JB
9534 * stabsread.c (multiply_defined_struct): New complaint.
9535 (read_struct_type): If the type we were passed isn't empty, or
9536 incomplete, don't read the new struct type into it; complain,
9537 and return the original type unchanged. Take a new `type_code'
9538 argument, which is the type code for the new type.
9539 (read_type): Rather than storing the type's type code here, pass
9540 it as an argument to read_struct_type, and let that take care of
9541 storing it. That way, we don't overwrite the original type code,
9542 so read_struct_type can use it to decide whether we're overwriting
9543 something we shouldn't.
9544 (complain_about_struct_wipeout): New function.
9545
8de9bdc4
AC
95462002-05-03 Andrew Cagney <ac131313@redhat.com>
9547
9548 * gdbarch.sh: Assert that gdbarch is non-NULL.
9549 * gdbarch.c: Regenerate.
9550
f773fdbb
JM
95512002-05-03 Jason Merrill <jason@redhat.com>
9552
9553 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9554 and return NULL.
9555
0e04a514
ML
95562002-05-03 Michal Ludvig <mludvig@suse.cz>
9557
9558 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9559 (x86_64_dwarf2gdb_regno_map_length),
9560 (x86_64_dwarf2_reg_to_regnum): Added.
9561 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9562 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9563 (_initialize_x86_64_tdep): Synced with the change above.
9564 (x86_64_skip_prologue): Reformulated message.
9565
065432a8
PM
95662002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9567
9568 * f-exp.y: Also use new prev_lexptr variable
9569 to improve error reporting. Based on Michael Snyder
9570 2002-04-24 dated patch to c-exp.y.
9571 * jv-exp.y: Likewise.
9572 * m2-exp.y: Likewise.
9573
a3162708
EZ
95742002-05-02 Elena Zannoni <ezannoni@redhat.com>
9575
9576 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9577 we are dealing with vectors.
9578
03620c38
PM
95792002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9580
9581 * config/m68k/tm-nbsd.h: Obvious fix,
9582 correct machine name.
9583
6604db2e
PM
95842002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9585
9586 * p-typeprint.c (pascal_type_print_base): Add support
9587 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9588
0906b739
PM
95892002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9590
9591 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9592 for fondamental pascal 'char' type.
9593
e2625b33
PM
95942002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9595
9596 * p-lang.h (is_pascal_string_type): Declaration changed,
9597 new sixth argument of type char ** added.
361d1df0 9598 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
9599 changed. Args length_pos, length_size, string_pos, char_size
9600 can now be NULL. New argument arrayname set to the field
9601 name of the char array. Return value set to char array
9602 field index plus one.
361d1df0 9603 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
9604 is_pascal_string_type function.
9605
cf17c188
AC
96062002-05-02 Andrew Cagney <cagney@redhat.com>
9607
9608 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9609 <cagney@redhat.com> change.
9610 * gdbarch.c: Regenerate.
9611
52bca491
AC
96122002-05-02 Andrew Cagney <cagney@redhat.com>
9613
9614 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9615 before probing for a new one. Detect errorenous gdbarch_init
9616 functions.
9617 * gdbarch.c: Regenerate.
9618
d5e72505
AC
96192002-05-01 Andrew Cagney <cagney@redhat.com>
9620
9621 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9622 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9623 * config/v850/tm-v850.h: Ditto. Update copyright.
9624
af566d9f
AC
96252002-04-30 Andrew Cagney <ac131313@redhat.com>
9626
9627 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9628 current_gdbarch.
9629
880d85fa
MS
96302002-04-30 Michael Snyder <msnyder@redhat.com>
9631
94c30b78
MS
9632 * arm-tdep.c: Whitespace clean-ups.
9633 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
9634 should have been removed as part of 4/24 change.
9635
6f5987a6
KB
96362002-04-30 Kevin Buettner <kevinb@redhat.com>
9637
9638 * rs6000-tdep.c: Added comment describing how fpscr register
9639 numbers were chosen.
9640
1a113c93
MS
96412002-04-30 Michael Snyder <msnyder@redhat.com>
9642
9643 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9644
9a6f53fe
EZ
96452002-04-29 Elena Zannoni <ezannoni@redhat.com>
9646
9647 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9648 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9649 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9650
11ed25ac
KB
96512002-04-29 Kevin Buettner <kevinb@redhat.com>
9652
9653 From Louis Hamilton <hamilton@redhat.com>:
9654 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9655 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9656 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9657 not bfd-private xcoff data, to determine wordsize.
9658 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9659
ae232405
AC
96602002-04-29 Andrew Cagney <ac131313@redhat.com>
9661
9662 GDB 5.2 released from 5.2 branch.
9663
91fd20f7
ML
96642002-04-29 Michal Ludvig <mludvig@suse.cz>
9665
9666 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9667 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9668 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 9669
2dc5091b
EZ
96702002-04-29 Elena Zannoni <ezannoni@redhat.com>
9671
9672 * rs6000-tdep.c (rs6000_extract_return_value,
9673 rs6000_store_return_value): Handle returning vectors.
9674 (rs6000_gdbarch_init): Use
9675 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9676 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9677 New function.
9678 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9679 vectors.
9680 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9681 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 9682
2b9848d8
PM
96832002-04-24 Pierre Muller <ics.u-strasbg.fr>
9684
9685 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 9686 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
9687 with fprintf_unfiltered (gdb_stderr,...).
9688
f8d17dc5
PM
96892002-04-24 Pierre Muller <ics.u-strasbg.fr>
9690
9691 * remote-array.c (printf_monitor, write_monitor,
361d1df0 9692 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
9693 Replace fprintf (stderr,...
9694 with fprintf_unfiltered (gdb_stderr,....
9695 * remote-es.c: Likewise.
9696 * remote-os9k.c: Likewise.
9697 * remote-st.c: Likewise.
9698
2f2f1ad1
AS
96992002-04-28 Andreas Schwab <schwab@suse.de>
9700
9701 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9702 linux-proc.o and gcore.o.
9703
b6779aa2
AC
97042002-04-26 Michal Ludvig <mludvig@suse.cz>
9705
9706 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9707 code without frame pointers.
9708
7e57f5f4
AC
97092002-04-26 Andrew Cagney <ac131313@redhat.com>
9710
9711 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9712 ON_STACK is needed.
9713
2ceb85d0
BE
97142002-04-26 Ben Elliston <bje@redhat.com>
9715
9716 * target.c (do_xfer_memory): Correct reference to the new option
9717 "trust-readonly-sections".
9718
f5f8a009
EZ
97192002-04-26 Elena Zannoni <ezannoni@redhat.com>
9720
9721 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9722 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9723 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9724 vectors.
9725 (read_array_type): Record the fact that this array type is really a
9726 vector (i.e. are passed in by value).
9727
5868c862
JT
97282002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9729
9730 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9731 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9732 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9733 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9734 * alpha-linux-tdep.c: Include frame.h.
9735 (alpha_linux_sigcontext_addr): New function.
9736 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9737 alpha_linux_sigcontext_addr.
9738 * alpha-osf1-tdep.c: Include gdbcore.h.
9739 (alpha_osf1_sigcontext_addr): New function.
9740 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9741 alpha_osf1_sigcontext_addr.
9742 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9743 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9744
bfb01f37
AC
97452002-04-26 Andrew Cagney <ac131313@redhat.com>
9746
361d1df0 9747 * stack.c (selected_frame_level):
bfb01f37
AC
9748 (select_frame): Do not set selected_frame_level.
9749 * frame.h (selected_frame_level): Delete declaration.
9750
15813d3f
AC
97512002-04-26 Andrew Cagney <ac131313@redhat.com>
9752
9753 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9754 convert_from_func_ptr-addr when AIX / PowerOpen.
9755
6096c27a
AC
97562002-04-25 Andrew Cagney <ac131313@redhat.com>
9757
9758 * valops.c (hand_function_call): Call
9759 generic_save_call_dummy_addr.
9760 * frame.h (generic_save_call_dummy_addr): Declare.
9761 * blockframe.c (struct dummy_frame): Add fields call_lo and
9762 call_hi.
9763 (generic_find_dummy_frame): Check for PC in range call_lo to
9764 call_hi instead of entry_point_address.
9765 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9766 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9767 (generic_save_call_dummy_addr): New function.
9768
f510d44e
DM
97692002-04-24 David S. Miller <davem@redhat.com>
9770
9771 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9772 sparc_skip_prologue.
9773 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9774 information to find prologue when possible.
9775 (sparc_prologue_frameless_p): Call examine_prologue directly.
9776 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9777 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9778 second argument.
9779 (SKIP_PROLOGUE): Likewise.
9780
15d72a92
JT
97812002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9782
9783 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9784 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9785 indicate that the condition it was testing is always true.
9786 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9787 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9788 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9789
accc6d1f
JT
97902002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9791
9792 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9793 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9794 tdep->jb_pc and tdep->jb_elt_size.
9795 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9796 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9797 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9798 * alpha-nat.c (get_longjmp_target): Remove.
9799 (JB_ELEMENT_SIZE): Ditto.
9800 (JB_PC): Ditto.
9801 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9802 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9803 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9804 to alpha_get_longjmp_target.
9805 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9806 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9807 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9808
1bfdc549
AC
98092002-04-25 Andrew Cagney <ac131313@redhat.com>
9810
9811 * README: Update to GDB 5.2.
9812
1bd316f0
AC
98132002-04-25 Andrew Cagney <ac131313@redhat.com>
9814
9815 * gdbarch.sh (LC_ALL): Set to `c'.
9816
2e5ff58c
TR
98172002-04-25 Theodore A. Roth <troth@verinet.com>
9818
9819 * avr-tdep.c: Ran through gdb_indent.sh.
9820
e33ce519
TR
98212002-04-25 Theodore A. Roth <troth@verinet.com>
9822
9823 * MAINTAINERS: Add myself as AVR maintainer.
9824 * NEWS: Note new target avr.
9825
8818c391
TR
98262002-04-25 Theodore A. Roth <troth@verinet.com>
9827
9828 * Makefile.in: Add support for AVR target.
9829 * configure.tgt: Add support for AVR target.
9830 * avr-tdep.c: New file
9831 * config/avr/avr.mt: New file.
9832
79509c2d
TR
98332002-04-25 Theodore A. Roth <troth@verinet.com>
9834
9835 * MAINTAINERS: Add myself to write-after-approval.
9836
dac8068e
PM
98372002-04-24 Pierre Muller <ics.u-strasbg.fr>
9838
9839 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9840 with fprintf_unfiltered (gdb_stderr,....
9841
25bf3106
PM
98422002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9843
9844 Fix PR gdb/508.
9845 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9846
24467a86
PM
98472002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9848
9849 * p-exp.y: Also use new prev_lexptr variable
9850 to improve error reporting. Based on Michael Snyder
9851 2002-04-24 dated patch to c-exp.y.
9852
95b80706
JT
98532002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9854
9855 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9856 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9857 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9858 to 0.
9859 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9860 and struct value.
9861 (FUNCTION_START_OFFSET): Remove.
9862 (BREAKPOINT): Ditto.
9863
e90cc612
JT
98642002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9865
9866 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9867 * NEWS: Ditto.
9868
6c72f9f9
JT
98692002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9870
9871 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9872 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9873 alpha_linux_pc_in_sigtramp.
9874 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9875 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9876 alpha_osf1_pc_in_sigtramp.
9877 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9878 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9879 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9880 alphafbsd_pc_in_sigtramp.
9881 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9882 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9883 alphanbsd_pc_in_sigtramp.
9884 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9885 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9886
5e4f3379
JT
98872002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9888
9889 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9890
da8ca43d
JT
98912002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9892
9893 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9894 alphanbsd-tdep.c.
9895 (alphanbsd-nat.o): New dependency list.
9896 (alphanbsd-tdep.o): Ditto.
9897 * NEWS: Note new native NetBSD/alpha configuration.
9898 * alphanbsd-nat.c: New file.
9899 * alphanbsd-tdep.c: Ditto.
9900 * configure.host (alpha*-*-netbsd*): New host.
9901 * configure.tgt (alpha*-*-netbsd*): New target.
9902 * config/alpha/nbsd.mh: New file.
9903 * config/alpha/nbsd.mt: Ditto.
9904 * config/alpha/nm-nbsd.h: Ditto.
9905 * config/alpha/tm-nbsd.h: Ditto.
9906
36a6271d
JT
99072002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9908
9909 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9910 (alpha-osf1-tdep.o): New dependency list.
9911 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9912 and skip_sigtramp_frame members.
9913 * alpha-linux-tdep.c: Include gdbcore.h.
9914 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9915 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9916 * alpha-osf1-tdep.c: New file.
9917 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9918 alpha-osf1-dep.c.
9919 (alpha_frame_past_sigtramp_frame): New function.
9920 (alpha_dynamic_sigtramp_offset): Ditto.
9921 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9922 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9923 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9924 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9925 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9926 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9927 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9928 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9929 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9930 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9931 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9932 to find_solib_trampoline_target.
9933 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9934 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9935 (SKIP_TRAMPOLINE_CODE): Remove.
9936 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9937 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9938 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9939 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9940 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9941 (PROC_SIGTRAMP_MAGIC): Ditto.
9942 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9943 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9944 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9945 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9946 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9947
2f4bc57b
JT
99482002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9949
9950 * NEWS: Note that Alpha targets are now multi-arch.
9951
665132f9
MS
99522002-04-24 Michael Snyder <msnyder@redhat.com>
9953
9954 * parser-defs.h (prev_lexptr): New external variable.
9955 * parse.c (parse_exp_1): Set prev_lexptr to null before
9956 calling the language-specific parser.
9957 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9958 (yyerror): Use prev_lexptr in error reporting.
9959
32872fa7
DJ
99602002-04-24 Daniel Jacobowitz <drow@mvista.com>
9961
9962 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9963 * gregset.h: If FILL_FPXREGSET is defined, provide
9964 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9965 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9966 is defined, call fill_fpxregset.
9967
57e76fac
MS
99682002-04-24 Roland McGrath <roland@frob.com>
9969
9970 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9971 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9972 (supply_gregset, supply_fpregset): New functions.
9973
9974 * gnu-nat.c (gnu_find_memory_regions): New function.
9975 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9976 (gnu_xfer_memory): Add a cast.
9977
f43845b3
MS
99782002-04-24 Michael Snyder <msnyder@redhat.com>
9979
361d1df0 9980 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9981 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9982 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9983 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9984 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9985 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9986
a0abec03
AC
9987Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9988
9989 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9990 NUM_PSEUDO_REGS can be used.
9991
d7bd68ca
AC
99922002-04-24 Andrew Cagney <ac131313@redhat.com>
9993
9994 * arch-utils.h: Update copyright.
9995
9996 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9997 * gdbarch.h, gdbarch.c: Re-generate.
9998
9999 * inferior.h (IN_SIGTRAMP): Delete definition.
10000 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10001 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10002
10003 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10004 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10005 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10006 (find_proc_framesize): Ditto.
10007 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10008 (alpha_init_extra_frame_info): Ditto.
10009 * infrun.c (handle_inferior_event): Ditto.
10010 (handle_inferior_event): Ditto.
10011 (check_sigtramp2): Ditto.
10012 * blockframe.c (create_new_frame): Ditto.
10013 (get_prev_frame): Ditto.
10014 * ppc-linux-tdep.c: Update comments.
10015 * i386-linux-tdep.c: Update comments.
10016 * breakpoint.c (bpstat_what): Update comment.
10017
4867e41e
DM
100182002-04-24 David S. Miller <davem@redhat.com>
10019
21d83aa5
DM
10020 * i960-tdep.c (register_in_window_p): New function.
10021 (i960_find_saved_register): Use it instead of
10022 REGISTER_IN_WINDOW_P.
10023 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10024
4867e41e
DM
10025 * symtab.h (find_stab_function_addr): Kill extern.
10026 * minsyms.c (find_stab_function_addr): Remove from here...
10027 * dbxread.c: ... to here, and mark it static.
10028
69cdf6a2
DM
100292002-04-20 David S. Miller <davem@redhat.com>
10030
10031 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10032 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10033
5a595886
DM
100342002-04-21 David S. Miller <davem@redhat.com>
10035
10036 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10037 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10038 (vx_write_register): Likewise.
10039
1da1a192
JB
100402002-04-23 J. Brobecker <brobecker@gnat.com>
10041
10042 * source.c (is_regular_file): New function.
10043 (openp): Check wether file to open is a regular file
10044 to avoid opening directories.
10045
baa6f10b
JT
100462002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10047
10048 * findvar.c (extract_signed_integer): Cast printf argument
10049 to suppress format warning.
10050 (extract_unsigned_integer): Likewise.
10051 * infcmd.c (registers_info): Likewise.
10052 * top.c (get_prompt_1): Likewise.
10053 * valops.c (value_assign): Likewise.
10054 * valprint.c (print_decimal): Likewise.
10055
b2c4da81
L
100562002-04-22 H.J. Lu (hjl@gnu.org)
10057
10058 * c-exp.y (typebase): Support
361d1df0 10059
b2c4da81
L
10060 [long|long long|short] [signed|unsigned] [int|]
10061
10062 and
10063
10064 signed [long|long long|short] int
10065
f267bd6a
JT
100662002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10067
10068 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10069 and vax-tdep.h.
10070 * vax-tdep.h: New file.
10071 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10072 Make several routines static.
10073 (vax_get_saved_register): New function.
10074 (vax_gdbarch_init): New function.
10075 (_initialize_vax_tdep): Register vax_gdbarch_init.
10076 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10077 Remove macros now under the control of gdbarch.
10078
da3c6d4a
MS
100792002-04-22 Michael Snyder <msnyder@redhat.com>
10080
11d3b27d
MS
10081 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10082 Some whitespace and coding standards tweaks.
da3c6d4a 10083
a33f7558
JT
100842002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10085
10086 * vax-tdep.c: Include regcache.h.
10087 (vax_call_dummy_words): New.
10088 (sizeof_vax_call_dummy_words): New.
10089 (vax_fix_call_dummy): New function.
10090 (vax_saved_pc_after_call): Ditto.
10091 * config/vax/tm-vax.h: Don't include regcache.h.
10092 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10093 (CALL_DUMMY): Remove.
10094 (CALL_DUMMY_WORDS): Define.
10095 (SIZEOF_CALL_DUMMY_WORDS): Define.
10096 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10097
47a73475
MS
100982002-04-18 Michael Snyder <msnyder@redhat.com>
10099
10100 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10101
52efde73
JT
101022002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10103
10104 * vax-tdep.c (vax_frame_chain): New function.
10105 (vax_push_dummy_frame): Ditto.
10106 (vax_pop_frame): Ditto.
10107 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10108 (FRAMELESS_FUNCTION_INVOCATION): Use
10109 generic_frameless_function_invocation_not.
10110 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10111 (POP_FRAME): Use vax_pop_frame.
10112
ea74468c
JT
101132002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10114
10115 * vax-tdep.c (vax_store_struct_return): New function.
10116 (vax_extract_return_value): Ditto.
10117 (vax_store_return_value): Ditto.
10118 (vax_extract_struct_value_address): Ditto.
10119 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10120 vax_store_struct_return.
10121 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10122 (STORE_RETURN_VALUE): Use vax_store_return_value.
10123 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10124
5516aa92
JT
101252002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10126
10127 * vax-tdep.c (vax_frame_saved_pc): New function.
10128 (vax_frame_args_address_correct): Ditto.
10129 (vax_frame_args_address): Ditto.
10130 (vax_frame_locals_address): Ditto.
10131 (vax_frame_num_args): Move code to be in proximity to
10132 other frame-related functions.
10133 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10134 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10135 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10136 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10137 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10138
36af0b35
L
101392002-04-22 H.J. Lu (hjl@gnu.org)
10140
10141 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10142 includedir.
10143
ab62c900
JT
101442002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10145
10146 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10147 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10148 (FRAME_INIT_SAVED_REGS): New macro.
10149
7232b100
JT
101502002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10151
10152 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10153
b70d2aee
JT
101542002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10155
10156 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10157 where needed.
10158 (fetch_osf_core_registers): Likewise.
10159 (supply_gregset): Likewise.
10160
a0e8a2d1 101612002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 10162
a0e8a2d1
JB
10163 * symfile.h (get_section_index): Define.
10164 * symfile.c (get_section_index): New function.
10165 * mdebugread.c (SC_IS_SBSS): New macro.
10166 (SC_IS_BSS): Return true for the scBss storage class only, as
10167 the scSBss storage class refers to the .sbss section.
10168 (parse_partial_symbols): Discard the symbols which associated
10169 section does not exist.
10170 Make sure to use the .sbss section index for symbols which
10171 storage class is scBss, rather than using the .bss section index.
10172
51eb8b08
JT
101732002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10174
10175 * vax-tdep.c: Update copyright years.
10176 (vax_register_name): New function.
10177 (vax_register_byte): Ditto.
10178 (vax_register_raw_size): Ditto.
10179 (vax_register_virtual_size): Ditto.
10180 (vax_register_virtual_type): Ditto.
10181 * config/vax/tm-vax.h: Update copyright years.
10182 (REGISTER_NAMES): Remove.
10183 (REGISTER_NAME): Define.
10184 (REGISTER_BYTE): Use vax_register_byte.
10185 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10186 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10187 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10188
6cc1c0a8
AC
101892002-04-21 Andrew Cagney <ac131313@redhat.com>
10190
10191 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10192 declaration
10193 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10194
9319a2fe
DM
101952002-04-21 David S. Miller <davem@redhat.com>
10196
10197 * arch-utils.c (generic_prologue_frameless_p): Kill
10198 SKIP_PROLOGUE_FRAMELESS_P code.
10199 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10200 references.
10201 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10202 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10203 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10204 references.
10205 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10206 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10207 (sparc_gdbarch_init): Pass it to
10208 set_gdbarch_prologue_frameless_p.
a0e8a2d1 10209
e9ed6d01
JT
102102002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10211
10212 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10213 (alphabsd-nat.o): New dependency list.
10214
36012033
JT
102152002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10216
10217 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10218 alphafbsd-tdep.c.
10219 (alpha-linux-tdep.o): New dependency list.
10220 (alphafbsd-tdep.o): Likewise.
10221
3379287a
JT
102222002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10223
10224 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10225 to here...
10226 * alpha-tdep.c: ...from here.
10227 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10228
4bcbd6cb
JT
102292002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10230
10231 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10232 prototype from here...
10233 * alpha-tdep.h: ...to here.
10234
b31da25e
AC
102352002-04-21 Andrew Cagney <ac131313@redhat.com>
10236
10237 * frame.h (selected_frame_level): Document as deprecated.
10238 (frame_relative_level): Declare.
10239 * stack.c (frame_relative_level): New function.
10240 (selected_frame_level): Document as deprecated.
10241 (select_frame): Do not set the selected_frame_level.
10242
10243 * stack.c (frame_info, record_selected_frame): Update.
10244 (frame_command, current_frame_command): Update.
10245 (up_silently_base, up_command, down_silently_base): Update.
10246 (down_command): Update.
10247 * inflow.c (kill_command): Update.
10248 * tracepoint.c (finish_tfind_command): Update.
10249 * corelow.c (core_open): Update.
10250 * thread.c (info_threads_command): Update.
10251 (do_captured_thread_select): Update.
10252 * infcmd.c (finish_command): Update.
10253 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10254
9c1d6fe5
JT
102552002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10256
10257 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10258
ab89facf
AC
102592002-04-21 Andrew Cagney <ac131313@redhat.com>
10260
10261 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10262 type const.
10263
82a4efa1
JT
102642002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10265
10266 * alphafbsd-tdep.c: Update copyright years. Include
10267 alpha-tdep.h.
10268 (alphafbsd_use_struct_convention): Make static.
10269 (alphafbsd_init_abi): New function.
10270 (_initialize_alphafbsd_tdep): New function.
10271 * config/alpha/tm-fbsd.h: Update copyright years.
10272 (USE_STRUCT_CONVENTION): Remove.
10273
44dffaac
JT
102742002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10275
10276 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10277 an Alpha ABI variant.
10278 (alpha_abi_handler_list): Declare.
10279 (alpha_gdbarch_register_os_abi): New function.
10280 (alpha_gdbarch_init): Give registered ABI variant handlers a
10281 chance to tweak the gdbarch once we have set up defaults.
10282 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10283
65585be4
JT
102842002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10285
10286 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10287 to standard_coerce_float_to_double.
10288 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10289
d9b023cc
JT
102902002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10291
10292 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10293 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10294 from gdbarch_tdep rather than a constant.
10295 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10296 the default text address for all Alpha Unix ABIs.
10297 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10298 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10299
dc129d82
JT
103002002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10301
10302 * alpha-tdep.h: New file. Includes several Alpha target constants
10303 taken from...
10304 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10305 let gdbarch deal with.
10306 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10307 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10308 to dependency list.
10309 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10310 Alpha target register names.
10311 * alphabsd-nat.c: Likewise.
10312 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10313 Alpha target register names. Make serveral routines static.
10314 (alpha_get_saved_register): New function.
10315 (alpha_abi_names): New.
10316 (process_note_abi_tag_sections): New function.
10317 (get_elfosabi): New function.
10318 (alpha_gdbarch_init): New function.
10319 (alpha_dump_tdep): New function.
10320 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10321
d49d1e0a
AC
103222002-04-21 Andrew Cagney <ac131313@redhat.com>
10323
10324 * frame.c (find_saved_register): Delete #ifdef
10325 HAVE_REGISTER_WINDOWS code.
10326 * config/sparc/tm-sparc.h: Update comments.
10327 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10328
92e8c9ed
AC
103292002-04-21 Andrew Cagney <ac131313@redhat.com>
10330
10331 * i960-tdep.c (i960_find_saved_register): New function.
10332 (i960_get_saved_register): New function.
10333 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10334 (i960_get_saved_register): Declare.
10335 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10336
e1925118
DM
103372002-04-20 David S. Miller <davem@redhat.com>
10338
10339 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10340
29673b29
AC
103412002-04-20 Andrew Cagney <ac131313@redhat.com>
10342
10343 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10344 instead of NUM_PSEUDO_REGS.
10345
6c86dcd5
DM
103462002-04-20 David S. Miller <davem@redhat.com>
10347
10348 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10349 GDB_MULTI_ARCH_PARTIAL
10350 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10351 define, let tm-sp64.h do it.
10352
aa40ec90
JT
103532002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10354
10355 * frame.c (find_saved_register): Avoid a NULL pointer
10356 dereference and actually walk the frame list.
10357
0f79675b
AC
103582002-04-20 Andrew Cagney <ac131313@redhat.com>
10359
10360 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10361 sorted in most most-recent-used order. Document.
10362 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10363
f91305dd 103642002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
10365
10366 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10367 instead of ->prev.
10368 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10369 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10370 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10371 instead of ->prev.
10372
73d322b1
EZ
103732002-04-19 Elena Zannoni <ezannoni@redhat.com>
10374
10375 Fix PR gdb/471.
10376 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10377 (build_builtin_type_vec128): Ditto.
10378 (append_composite_type_field): Fix calculation of type length in
10379 union case.
10380
ccd9a834
EZ
103812002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10382
10383 * config/djgpp/README: Update.
10384
10385 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10386 compiler warnings.
10387
a57f9e49
JT
103882002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10389
10390 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10391 (alpha_setup_arbitrary_frame): ...to this.
10392 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10393 for alpha_setup_arbitrary_frame.
10394
f4f9705a
AC
103952002-04-18 Andrew Cagney <cagney@redhat.com>
10396
10397 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10398 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10399
f4f9705a
AC
10400 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10401 * target.h (memory_breakpoint_from_pc): Update declaration.
10402 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10403
10404 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10405 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10406 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10407 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10408 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10409 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10410 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10411 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10412 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10413 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10414 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10415 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10416
10417 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10418 const pointer.
10419 * monitor.c (monitor_insert_breakpoint): Ditto.
10420 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10421
10422 * config/mcore/tm-mcore.h: Update copyright.
10423 * mem-break.c: Ditto.
10424 * xstormy16-tdep.c: Ditto.
10425
29f319b8
PM
104262002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10427
10428 * p-exp.y: Add precedence rule for '^' token.
10429 This removes the shift/reduce conflicts.
10430 Remove the comment concerning these shift/reduce conflicts.
10431
ebeac11a
EZ
104322002-04-18 Elena Zannoni <ezannoni@redhat.com>
10433
10434 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10435 (registers_powerpc_nofp): New register set for processors
10436 without floating point unit.
10437
27c31547
DM
104382002-04-18 David S. Miller <davem@redhat.com>
10439
10440 * MAINTAINERS: Add myself to write-after-approval.
10441
47a73475
MS
104422002-04-17 Michael Snyder <msnyder@redhat.com>
10443
10444 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10445
953836b2
AC
104462002-04-17 Andrew Cagney <ac131313@redhat.com>
10447
10448 * rs6000-tdep.c (frame_initial_stack_address): Use
10449 frame_register_read to read the alloca_reg.
10450
8b0d4340
AC
104512002-04-17 Andrew Cagney <ac131313@redhat.com>
10452
10453 * frame.c (find_saved_register): Find saved registers in the next
10454 not prev frame.
10455 Fix PR gdb/365.
10456
d8864532
AC
104572002-04-17 Andrew Cagney <ac131313@redhat.com>
10458
10459 * gdbarch.sh (LANG): Set to ``c''.
10460
36cc83a3 104612002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 10462
36cc83a3 10463 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 10464
2f4150cc 104652002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
10466
10467 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10468 Update copyright.
10469
628703c6 10470 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 10471 Also fix PR gdb/391.
361d1df0 10472
56157b4a
AC
104732002-04-14 Andrew Cagney <ac131313@redhat.com>
10474
10475 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10476 * aclocal.m4, configure: Re-generate.
10477 Fix PR gdb/391.
361d1df0 10478
6d1e3329
EZ
104792002-04-14 Elena Zannoni <ezannoni@redhat.com>
10480
10481 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10482 instead of tm_print_insn.
10483
cb06fa07
EZ
104842002-04-14 Elena Zannoni <ezannoni@redhat.com>
10485
10486 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10487
f208ba17
AC
104882002-04-14 Andrew Cagney <ac131313@redhat.com>
10489
10490 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10491 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10492 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10493
20f01a46
DH
104942002-04-12 Don Howard <dhoward@redhat.com>
10495
10496 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10497 max_user_call_depth.
10498 (init_cmd_lists): Initialize the new value;
10499 * cli/cli-script.c (execute_user_command): Limit the call depth of
10500 user defined commands. This avoids a core-dump when user commands
10501 are infinitly recursive.
10502
a88376a3
KB
105032002-04-12 Kevin Buettner <kevinb@redhat.com>
10504
10505 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10506 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10507 from tdep struct instead of DEFAULT_LR_SAVE.
10508 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10509 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10510 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10511
f2172603
MS
105122002-04-12 Michael Snyder <msnyder@redhat.com>
10513
694f61fb 10514 * Remote.c: Spelling fix.
20fe79c8
MS
10515 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10516 If no symbol found for "sbrk", try "_sbrk".
10517 (make_output_phdrs): Use bfd_section_name.
10518 (gcore_copy_callback): Use bfd_section_name.
62995fc4 10519 * eval.c: Indentation fix-ups.
169a7369
MS
10520 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10521 in case it gets applied to an address that is already
10522 in the instruction space.
de74f71f
MS
10523 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10524 * symfile.c: Fix indentation, long lines.
f2172603
MS
10525 * source.c: White space fix-up.
10526
cda5a58a
AC
105272002-04-12 Andrew Cagney <cagney@redhat.com>
10528
10529 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10530 * frame.c (frame_register_read): New function. Return non-zero on
10531 success.
10532 (read_relative_register_raw_bytes_for_frame): Delete.
10533 (read_relative_register_raw_bytes): Delete.
10534 * frame.h (frame_register_read): Declare.
10535 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10536 * sh-tdep.c: Ditto.
10537 * infcmd.c (do_registers_info): Ditto.
10538 * hppa-tdep.c: Ditto.
10539 * rs6000-tdep.c: Ditto.
10540 * h8500-tdep.c: Ditto.
10541 * mips-tdep.c: Ditto.
10542 * h8300-tdep.c: Ditto.
10543 * z8k-tdep.c: Ditto.
10544
2ea5f656
KB
105452002-04-12 Kevin Buettner <kevinb@redhat.com>
10546
10547 From Jimi X <jimix@watson.ibm.com>:
10548 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10549 64-bit SysV ABI.
10550
27b15785
KB
105512002-04-12 Kevin Buettner <kevinb@redhat.com>
10552
10553 From Jimi X <jimix@watson.ibm.com>:
10554 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10555 bfd info.
10556
5d57ee30
KB
105572002-04-12 Kevin Buettner <kevinb@redhat.com>
10558
10559 From Jimi X <jimix@watson.ibm.com>:
10560 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10561 register sets for these processor variants.
10562
bc1e36ca
DJ
105632002-04-11 Daniel Jacobowitz <drow@mvista.com>
10564
bc1e36ca
DJ
10565 * regformats/reg-ppc.dat: Support FPSCR.
10566
e3f36dbd
KB
105672002-04-11 Kevin Buettner <kevinb@redhat.com>
10568
10569 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10570 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10571 Add fpscr as an invalid/unfetchable register.
10572 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10573 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10574 (fill_fpregset): Add support for register fpscr.
10575 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10576 (fill_gregset): Account for the fact that register ``mq'' might
10577 not exist.
10578 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10579 (registers_power): Add fpscr to register set at slot 71.
10580 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10581 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10582
943c9c25
MS
105832002-04-11 Michael Snyder <msnyder@redhat.com>
10584
10585 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10586 * configure: Regenerate.
10587 * config.in: Regenerate.
10588 * acconfig.h: Add define for _SYSCALL32.
10589 * core-sol2.c: Remove #define _SYSCALL32.
10590 * solib-legacy.c: Remove #define _SYSCALL32.
10591
d8c0a2e7
AC
105922002-04-10 Andrew Cagney <ac131313@redhat.com>
10593
10594 * stack.c (select_frame): Cleanup internal error message, do not
10595 use %p.
10596
7cc19214
AC
105972002-04-10 Andrew Cagney <ac131313@redhat.com>
10598
10599 * stack.c (select_frame): Check that selected_frame and the
10600 specified level are as expected.
10601 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10602 Update copyright.
10603 * frame.h (struct frame_info): Add field `level'. Update
10604 copyright.
10605 Work-in-progress PR gdb/464.
10606
67a2b77e
AC
106072002-04-10 Andrew Cagney <ac131313@redhat.com>
10608
10609 * maint.c (maint_print_section_info): Rename print_section_info.
10610 (print_bfd_section_info, print_objfile_section_info): Update.
10611 * inferior.h (struct gdbarch): Add opaque declaration.
10612 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10613 * gdbarch.h: Regenerate.
10614
8cfda98c
ML
106152002-04-10 Michal Ludvig <mludvig@suse.cz>
10616
10617 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10618 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10619 (kernel_u_size): Added.
10620 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10621 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10622
ca439ad2 106232002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 10624
ca439ad2
JI
10625 * valarith.c (find_size_for_pointer_math): New function, either returns
10626 the size for a pointer's target, returns 1 for void *, or errors for
10627 incomplete types.
10628 (value_add, value_sub): use find_size_for_pointer_math.
10629
2f2893d9
DJ
106302002-04-09 Daniel Jacobowitz <drow@mvista.com>
10631
10632 * linux-low.c (linux_look_up_symbols): New hook.
10633 (linux_target_ops): Add linux_look_up_symbols.
10634 * remote-utils.c (decode_address): New function.
10635 (look_up_one_symbol): New function.
10636 * server.c (handle_query): Call target look_up_symbols hook.
10637 * server.h (look_up_one_symbol): Add prototype.
10638 * target.h (struct target_ops): Add look_up_symbols hook.
10639
96cb11df
AC
106402002-04-09 Andrew Cagney <ac131313@redhat.com>
10641
10642 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10643 override FP_REGNUM with frame->fp. Update copyright.
10644 * parse.c (num_std_regs, std_regs): Delete.
10645 (target_map_name_to_register): Do not search std_regs. Update
10646 function description.
10647 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10648 declarations. Update copyright.
10649 Fix PR gdb/251.
361d1df0 10650
97658e92
DJ
106512002-04-09 Daniel Jacobowitz <drow@mvista.com>
10652
10653 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10654 after the last symbol in a block.
10655
6044e3eb
PM
106562002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10657
10658 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10659 is non zero as a found symbol.
10660
0406ec40
AC
106612002-04-08 Andrew Cagney <ac131313@redhat.com>
10662
10663 * findvar.c: Include "builtin-regs.h".
10664 (value_of_register): Call value_of_builtin_reg when applicable.
10665 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10666 (target_map_name_to_register): Call
10667 builtin_reg_map_name_to_regnum.
10668 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10669 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10670 (builtin_regs_h): Define.
10671 (builtin-regs.o): New target.
10672 (findvar.o): Add $(builtin_regs_h).
10673 * builtin-regs.c, builtin-regs.h: New files.
10674 * std-regs.c: New file.
10675 Partial fix for PR gdb/251.
10676
56a6dfb9
KB
106772002-04-08 Kevin Buettner <kevinb@redhat.com>
10678
10679 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10680 it's no longer required.
10681
3a808432
AC
106822002-04-08 Andrew Cagney <ac131313@redhat.com>
10683
10684 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10685
7c40d541
KB
106862002-04-08 Kevin Buettner <kevinb@redhat.com>
10687
10688 From Jimi X <jimix@watson.ibm.com>:
10689 * rs6000-tdep.c (rs6000_software_single_step): Use
10690 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10691 and size. Use target_insert_breakpoint() and
10692 target_remove_breakpoint() to insert and remove breakpoints
10693 instead of explicit memory reads and writes.
10694
cc9836a8
KB
106952002-04-08 Kevin Buettner <kevinb@redhat.com>
10696
10697 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10698 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10699 ELF_OBJECT_FORMAT ifdef.
10700
7495d1dc
KB
107012002-04-08 Kevin Buettner <kevinb@redhat.com>
10702
10703 From Jimi X <jimix@watson.ibm.com>:
10704 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10705
4288e836
KB
107062002-04-08 Kevin Buettner <kevinb@redhat.com>
10707
10708 From Jimi X <jimix@watson.ibm.com>:
10709 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10710 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10711
a4e4e501
MK
107122002-04-07 Mark Kettenis <kettenis@gnu.org>
10713
10714 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10715 s/asprintf/xasprintf/.
10716 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10717
006defba
AC
107182002-04-07 Andrew Cagney <ac131313@redhat.com>
10719
10720 I believe Jeff Law denies responsability for this one:
10721 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10722 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10723 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10724 Work-around for PR gdb/366.
10725
7aa83cac
EZ
107262002-04-07 Elena Zannoni <ezannoni@redhat.com>
10727
10728 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10729 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10730 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10731
cf1fcca1
EZ
107322002-04-07 Elena Zannoni <ezannoni@redhat.com>
10733
10734 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10735 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10736 information.
10737
3f289e6f
AC
107382002-04-07 Andrew Cagney <ac131313@redhat.com>
10739
10740 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10741 maintainer.
10742
129188f6
AC
107432002-04-07 Andrew Cagney <ac131313@redhat.com>
10744
10745 * README (Reporting Bugs in GDB): Document the bug web page as the
10746 prefered way of submitting bugs.
10747 Fix PR gdb/402.
10748
1200cd6e
AC
107492002-04-06 Andrew Cagney <ac131313@redhat.com>
10750
10751 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10752 -1. Update comment.
10753 * gdbarch.h, gdbarch.c: Re-generate.
10754
2853c33c
AS
107552002-04-07 Andreas Schwab <schwab@suse.de>
10756
10757 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10758 buffer to regcache_collect.
10759
c2169756
AC
107602002-04-06 Andrew Cagney <ac131313@redhat.com>
10761
10762 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10763 * gdbarch.c, gdbarch.h: Re-generate.
10764
25f1b008
AC
107652002-04-06 Andrew Cagney <ac131313@redhat.com>
10766
10767 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10768 declaration. Fix -Werror.
10769
59263426
DJ
107702002-04-05 Daniel Jacobowitz <drow@mvista.com>
10771
10772 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10773 * gdbarch.c: Regenerate.
10774
f5db4da3
MS
107752002-04-05 Michael Snyder <msnyder@redhat.com>
10776
80f8a6eb
MS
10777 * breakpoint.c (clear_command): Rewrite middle section to
10778 combine two loops with identical control conditions.
10779 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10780 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10781
ad3dcc5c
L
107822002-04-05 H.J. Lu (hjl@gnu.org)
10783
10784 * solib-svr4.c (bkpt_names): Add "__start".
10785
f32e7a74
AC
107862002-04-04 Andrew Cagney <ac131313@redhat.com>
10787
10788 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10789 as test for 64 bit target.
10790
8227c0ff
AC
107912002-04-05 Andrew Cagney <ac131313@redhat.com>
10792
10793 * h8500-tdep.c (h8500_write_fp): Delete function.
10794 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10795 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10796 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10797 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10798 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10799 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10800 (s390_write_fp):
10801 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10802 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10803 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10804 (d10v_write_fp): Delete function.
10805 * inferior.h (write_fp, generic_target_write_fp): Delete
10806 declarations.
10807 * regcache.c (generic_target_write_fp): Delete function.
10808 (write_fp): Delete function.
10809 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10810 * gdbarch.h, gdbarch.c: Regenerate.
10811 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10812 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10813 (sparc64_write_fp): Delete declaration.
10814 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10815 (h8500_write_fp): Delete declaration.
10816
2757dd86
AC
108172002-04-04 Andrew Cagney <ac131313@redhat.com>
10818
10819 * sparc-tdep.c (sparc64_write_fp): Delete.
10820 (sparc_push_dummy_frame): Replace write_fp call with code to store
10821 the FP directly.
10822 (sparc_gdbarch_init): Do not initialize write_fp.
10823
c69255e1
KB
108242002-04-05 Kevin Buettner <kevinb@redhat.com>
10825
10826 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10827 clause.
10828
ae767bfb
JB
108292002-03-29 Jim Blandy <jimb@redhat.com>
10830
10831 * stack.c (get_selected_block): Add new argument `addr_in_block',
10832 used to return the exact code address we used to select the block,
10833 not just the block.
10834 * blockframe.c (get_frame_block, get_current_block): Same.
10835 * frame.h (get_frame_block, get_current_block,
10836 get_selected_block): Update declarations.
10837 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10838 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10839
84d2ac95
MS
108402002-04-05 Michael Snyder <msnyder@redhat.com>
10841
10842 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10843 warning message.
10844
596aa3bf
JB
108452002-04-05 J. Brobecker <brobecker@gnat.com>
10846
10847 * utils.c (xfullpath): New function.
10848 * defs.h (xfullpath): Add declaration.
10849 * source.c (openp): Use xfullpath in place of gdb_realpath to
10850 avoid resolving the basename part of filenames when the
10851 associated file is a symbolic link. This fixes a potential
10852 inconsistency between the filenames known to GDB and the
10853 filenames it prints in the annotations.
10854 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10855 to be able to match a filename with either the real filename, or
10856 the name of any symbolic link to this file.
10857 (lookup_partial_symtab): Ditto.
10858
c02f5703
MS
108592002-04-04 Michael Snyder <msnyder@redhat.com>
10860
10861 * breakpoint.c: Add support for hardware breakpoints in overlays.
10862 (overlay_events_enabled): New state variable.
10863 (insert_breakpoints): Use overlay_events_enabled to decide
10864 whether to attempt to set a breakpoint at the overlay load addr.
10865 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10866 (remove_breakpoint): Use overlay_events_enabled to decide
10867 whether breakpoints need to be removed from overlay load addr.
10868 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10869 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 10870 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
10871 disable_overlay_breakpoints): Update overlay_events_enabled.
10872
5fb290d7
DJ
108732002-04-04 Daniel Jacobowitz <drow@mvista.com>
10874
10875 * dwarf2read.c (struct function_range): New.
10876 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10877 (check_cu_functions): New.
10878 (read_file_scope): Initialize global function lists.
10879 Call dwarf_decode_line after processing children.
10880 (read_func_scope): Add to global function list.
10881 (dwarf_decode_lines): Call check_cu_functions everywhere
10882 record_line is called. Call record_line with a linenumber
10883 of 0 to mark sequence ends.
10884
7b3fabf0
ML
108852002-04-04 Michal Ludvig <mludvig@suse.cz>
10886
361d1df0 10887 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10888 change sync with glibc.
10889
bce58c09
JB
108902002-04-03 Jim Blandy <jimb@redhat.com>
10891
10892 * configure.in: Call AC_C_INLINE.
10893 * configure: Regenerated.
361d1df0 10894
2fccf04a
DJ
108952002-04-01 Daniel Jacobowitz <drow@mvista.com>
10896
10897 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10898 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10899
2d1bfe2e
MK
109002002-03-31 Mark Kettenis <kettenis@gnu.org>
10901
a5941fbf
MK
10902 * NEWS: Mention gcore support on FreeBSD/i386.
10903
a90cd31d
MK
10904 * fbsd-proc.c: New file.
10905 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10906 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10907
2d1bfe2e
MK
10908 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10909 while statement.
10910
9eb6e5a1
JB
109112002-03-29 Jim Blandy <jimb@redhat.com>
10912
10913 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10914 unescaped newlines in string literals, but newer ones don't. So
10915 escape them.
10916
f02df580
MS
109172002-03-26 Michael Snyder <msnyder@redhat.com>
10918 Andrew Cagney <cagney@redhat.com>
10919
361d1df0 10920 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10921 restore file to memory.
10922 * cli/cli-dump.h: New file.
10923 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10924 * NEWS: Mention new commands.
f02df580 10925
109f874e
MS
109262002-03-28 Michael Snyder <msnyder@redhat.com>
10927
10928 * symfile.c (symbol_file_add): Move test for null symbols to later.
10929
520f6ade
AC
109302002-03-27 Andrew Cagney <ac131313@redhat.com>
10931
10932 From veksler at il.ibm.com:
10933 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10934 the xstrduped original path.
10935 Fix PR gdb/417.
10936
d4654627
MS
109372002-03-27 Michael Snyder <msnyder@redhat.com>
10938
10939 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10940 * infcmd.c (_initialize_infcmd): Ditto.
10941 * language.c (_initialize_language): Ditto.
10942 * symfile.c (_initialize_symfile): Ditto.
10943 * top.c (_init_main): Ditto.
10944 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10945
6be8bc0c
EZ
109462002-03-27 Elena Zannoni <ezannoni@redhat.com>
10947
10948 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10949 vector registers handling.
10950 (skip_prologue): Handle new AltiVec instructions. Fill in new
10951 fields of frame data.
10952 (frame_get_saved_regs): Fill in information for AltiVec registers.
10953
12af6855
JB
109542002-03-27 Jim Blandy <jimb@redhat.com>
10955
10956 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10957 a function; leave this macro here to invoke that function.
10958 (symbol_init_mangled_name): Declaration for that function.
10959 * symtab.c (symbol_init_mangled_name): New function.
10960
dc672865
AC
109612002-03-27 Andrew Cagney <ac131313@redhat.com>
10962
10963 * valarith.c: Replace strerror with safe_strerror.
10964 * tracepoint.c: Ditto.
10965 * lin-lwp.c: Ditto.
10966 * go32-nat.c: Ditto.
10967 * inflow.c: Ditto.
10968 * gnu-nat.c: Ditto.
10969
d96429cd
AS
109702002-03-27 Andreas Schwab <schwab@suse.de>
10971
10972 * event-top.c (command_line_handler): Remove useless if.
10973
7e336ba1
AJ
109742002-03-27 Andreas Jaeger <aj@suse.de>
10975
10976 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10977 comment.
10978
de220d0f
ML
109792002-03-27 Michal Ludvig <mludvig@suse.cz>
10980
10981 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10982 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10983 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10984 (x86_64_linux_dr_get_status, supply_gregset),
10985 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10986 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10987 (x86_64_register_info_table): Add.
10988 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10989 (x86_64_register_raw_size, x86_64_register_virtual_type),
10990 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10991 general x86_64_register_info_table.
10992 (i386_gdbarch_init): gdbarch_register_bytes is now set
10993 dynamicaly during initialization.
10994 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10995 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10996
0e98d0a7
DJ
109972002-03-27 Daniel Jacobowitz <drow@mvista.com>
10998
10999 * gdbserver/server.c (main): Call target_signal_to_host_p
11000 and target_signal_to_host on signals received from the remote.
11001 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11002 target_signal_from_host on signals sent to the remote.
11003 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11004 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11005
3130066b
DJ
110062002-03-27 Daniel Jacobowitz <drow@mvista.com>
11007
11008 * signals/signals.c: Include "server.h" in gdbserver build.
11009 (target_signal_from_name): Don't use STREQ.
11010 (_initialize_signals): Likewise. Don't include function in
11011 gdbserver build.
11012
9aedf4f4
DJ
110132002-03-27 Daniel Jacobowitz <drow@mvista.com>
11014
11015 * signals.c: Moved to...
11016 * signals/signals.c: Here.
7e336ba1 11017 * Makefile (signals.o): Update.
9aedf4f4 11018
3fa41cdb
JL
110192002-03-26 Jeff Law (law@redhat.com)
11020
11021 * somread.c (som_symtab_read): Remove some commented out code and
11022 updated related comments. Do not set the minimal symbol table to
11023 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11024 in a dynamic executable.
11025 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11026 where we are unable to find the minimal symbol for the given
11027 PC value.
11028
ee677e8d
MS
110292002-03-25 Jeff Law (law@redhat.com)
11030
11031 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11032
e76e1718
ML
110332002-03-25 Michal Ludvig <mludvig@suse.cz>
11034
11035 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11036
18a642a1
AC
110372002-03-23 Andrew Cagney <ac131313@redhat.com>
11038
11039 * command.h: Update copyright.
11040 (struct cmd_list_element): Replace definition with opaque
11041 declaration.
11042 (enum cmd_types): Document that it will eventually be moved to
11043 cli/cli-decode.h
11044 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11045 (MALLOCED_REPLACEMENT): Delete macro.
11046 * Makefile.in (cli_decode_h): Add $(command_h).
11047 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 11048 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
11049 * completer.c: Include "cli/cli-decode.h".
11050 * maint.c: Include "cli/cli-decode.h".
11051 * cli/cli-decode.h: Include "command.h".
11052 (enum command_class): Delete.
11053 (enum cmd_types): Comment out.
11054 (enum cmd_auto_boolean): Delete.
11055 (enum var_types): Delete.
11056
b2875cc0
AC
110572002-03-23 Andrew Cagney <ac131313@redhat.com>
11058
11059 * cli/cli-decode.c: Include "gdb_assert.h".
11060 (add_set_or_show_cmd): New static function.
11061 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11062 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11063 all fields, such as func, from the set command.
11064
3b45974e
AC
110652002-03-23 Andrew Cagney <ac131313@redhat.com>
11066
11067 * MAINTAINERS (sh-elf): Change warning flag to -w.
11068
823ca731
AC
110692002-03-23 Andrew Cagney <cagney@redhat.com>
11070
11071 * defs.h (error): Add printf format attribute.
11072 * thread-db.c (thread_from_lwp): Fix error format string.
11073 * stack.c (parse_frame_specification): Ditto.
11074 * cli/cli-decode.c (undef_cmd_error): Ditto.
11075 * scm-lang.c (scm_lookup_name): Ditto.
11076 * tracepoint.c (trace_error): Ditto.
11077 * remote-utils.c (usage): Ditto.
11078 * remote.c (compare_sections_command): Ditto.
11079 Fix PR gdb/328.
11080
0e101458
AC
110812002-03-22 Andrew Cagney <ac131313@redhat.com>
11082
11083 * gdbtypes.c (append_composite_type_field): New function.
11084 (init_composite_type): New function.
11085 * gdbtypes.h (append_composite_type_field): Declare.
11086 (init_composite_type): Ditto.
11087
8e0662df
EZ
110882002-03-22 Elena Zannoni <ezannoni@redhat.com>
11089
11090 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 11091 function.
8e0662df
EZ
11092 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11093 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11094 structure returning convention for SYSV ABI case, but not
11095 for GNU/Linux, FreeBSD, or NetBSD.
11096
3121eff0
DJ
110972002-03-22 Daniel Jacobowitz <drow@mvista.com>
11098
11099 * symtab.h (lookup_block_symbol): Add mangled_name argument
11100 to prototype.
11101
11102 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11103 with new mangled_name argument.
11104 * linespec.c (decode_line_1): Likewise.
11105 * valops (value_of_this): Likewise.
11106 * symtab.c (lookup_transparent_type): Likewise.
11107 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11108 (lookup_symbol): If we are given a mangled name, pass it down
11109 to lookup_symbol_aux.
11110 (lookup_block_symbol): If we are given a mangled name to check
11111 against, only return symbols which match it.
11112
349b409f
CF
111132002-03-22 Christopher Faylor <cgf@redhat.com>
11114
11115 * win32-nat.c (child_create_inferior): Check for proper shell to use
11116 here, in case the user changes it on the fly.
11117 (_initialize_inftarg): Remove shell path considerations.
11118
2a873819
EZ
111192002-03-21 Elena Zannoni <ezannoni@redhat.com>
11120
11121 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11122 for gdbarch_max_register_raw_size and max_register_virtual_size.
11123 Adjust copyright year.
11124
a1b9830c
DJ
111252002-03-21 Daniel Jacobowitz <drow@mvista.com>
11126
11127 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11128 in a function to cover the entire beginning of the function
11129 as well if it does not already.
11130
8b5790f2
TR
111312002-03-21 Tom Rix <trix@redhat.com>
11132
11133 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11134 (rs6000_ptrace64): Renamed from ptrace64.
11135
bdbe5747
MH
111362002-03-20 Martin M. Hunt <hunt@redhat.com>
11137
11138 * gdbserver/remote-utils.c (remote_open): Don't call
11139 getprotobyname, we're all using TCP here so just use
11140 IPPROTO_TCP.
7e336ba1 11141 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
11142
111432002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 11144
bdbe5747
MH
11145 * regcache.c (_initialize_regcache): No need to call
11146 build_regcache() at this time; it gets called whenever
11147 the gdbarch changes.
11148
7781cd62
DB
111492002-03-20 David O'Brien <obrien@FreeBSD.org>
11150
11151 * sparc-nat.c: Include sys/param.h where possible.
11152
f65ca430
DJ
111532002-03-20 Daniel Jacobowitz <drow@mvista.com>
11154
11155 Fix PR gdb/422.
11156 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11157 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11158 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11159 complex types.
11160 * stabsread.c (rs6000_builtin_type): Likewise.
11161 (read_sun_floating_type): Likewise.
11162
0c867556
PS
111632002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11164
11165 * stabsread.c (read_member_functions): Remove skip code for duplicate
11166 constructor/destructor methods. Use standard parsing for these
11167 methods and just do not chain them to the list of methods after
11168 parsing.
11169
12b9c64f
AO
111702002-03-19 Alexandre Oliva <aoliva@redhat.com>
11171
11172 * coffread.c: Remove redundant static declarations. Replace
11173 occurrences of `PTR' with `void *'.
11174 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11175 * top.h (quit_cover): Likewise.
11176 * defs.h (catch_errors): Likewise.
11177
349c5d5f
AC
111782002-03-18 Andrew Cagney <ac131313@redhat.com>
11179
11180 * defs.h (XMALLOC): Define.
11181 * gdb-events.sh (XMALLOC): Delete macro.
11182 * gdb-events.c, gdb-events.h: Regenerate.
11183 * gdbarch.sh (XMALLOC): Delete macro.
11184 * gdbarch.c: Regenerate.
11185 * serial.c (XMALLOC): Delete macro.
11186 * ui-file.c (XMALLOC): Ditto.
11187 * ser-unix.h (XMALLOC): Ditto.
11188 * sh-tdep.c (XMALLOC): Ditto.
11189 * ui-out.c (XMALLOC): Ditto.
11190 * utils.c (XMALLOC): Ditto.
11191 * i386-tdep.c (XMALLOC): Ditto.
11192 * gdb-events.c (XMALLOC): Ditto.
11193 * d10v-tdep.c (XMALLOC): Ditto.
11194 * cli-out.c (XMALLOC): Ditto.
11195
11196 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11197 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11198 * ui-file.c, ui-out.c: Ditto.
11199
7d0766f3
AC
112002002-03-18 Andrew Cagney <ac131313@redhat.com>
11201
11202 * command.h (struct cmd_list_element): Add field context.
11203 (set_cmd_context, get_cmd_context): Declare.
11204 * cli/cli-decode.h: Ditto.
11205 * cli/cli-decode.c (get_cmd_context): New function.
11206 (set_cmd_context): New function.
11207 (add_cmd): Initialize context.
11208 Part of fixing PR gdb/145 and PR gdb/146.
11209
5913bcb0
AC
112102002-03-17 Andrew Cagney <ac131313@redhat.com>
11211
1868c04e
AC
11212 * cli/cli-decode.c (cmd_type): New function.
11213 * command.h (cmd_type): Declare.
11214 * infrun.c (set_schedlock_func): Call function cmd_type.
11215 * kod.c (kod_set_os): Call cmd_type.
11216 * cris-tdep.c (cris_version_update): Use function cmd_type.
11217 (cris_mode_update, cris_abi_update): Ditto.
11218
5913bcb0
AC
11219 * command.h: (execute_cmd_post_hook): Declare.
11220 (execute_cmd_pre_hook): Declare.
11221 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11222 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11223 functions. Execute pre/post hook while ensuring that afterwords
11224 hook_in is cleared.
11225 * top.c (execute_command): Use execute_cmd_post_hook, and
11226 execute_cmd_pre_hook to execute pre/post commands.
11227 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11228 hook_stop_stub.
11229 (hook_stop_stub): Call execute_cmd_pre_hook.
11230
b51450c9
AC
112312002-03-17 Andrew Cagney <ac131313@redhat.com>
11232
11233 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11234 set'' and this leads to a core dump. Move xstrdup of
11235 operating_system to after check that it is not NULL.
11236
f66c9f11
AC
112372002-03-17 Andrew Cagney <ac131313@redhat.com>
11238
8e694ecf
AC
11239 * kod.c (kod_set_os): Remove unnecessary check that
11240 ``command->type'' is set_cmd.
11241
f66c9f11
AC
11242 * valprint.c (set_input_radix): Use input_radix.
11243 (set_output_radix): Use output_radix.
11244 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11245 isn't reverted.
11246
9d01611c
AC
112472002-03-16 Andrew Cagney <ac131313@redhat.com>
11248
11249 * value.h (struct value): Delete field ``substring_addr''. Change
11250 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
11251 force_core_addr_align and force_pointer_aligh.
11252
11253 * value.h (struct value): Fix typo in above change.
9d01611c 11254
4156bb53
PS
112552002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11256
11257 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11258 to fix internal_error from ``maintenance print architecture''.
11259
0e5e3ea6
PS
112602002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11261
11262 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11263 for gcc versions after gcc-2.8.1.
11264
9b013045
PS
112652002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11266
11267 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11268 for method resolution. Restore adjustment of ``this'' pointer after
11269 calling value_struct_elt, which was accidentally removed during the
11270 HP merge.
11271
376c9600
AC
112722002-03-15 Andrew Cagney <ac131313@redhat.com>
11273
11274 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11275 value_of_register.
11276 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11277 get_saved_register.
11278 * value.h (value_of_register): Update.
11279
a4db0f07
RH
112802002-03-14 Richard Henderson <rth@redhat.com>
11281
11282 * configure.in: Detect declaration for canonicalize_file_name.
11283 * utils.c (canonicalize_file_name): Declare, if needed.
11284 (gdb_realpath): Prefer realpath if available and usable.
11285 * config.in, configure: Rebuild.
11286
96383835
RH
112872002-03-14 Richard Henderson <rth@redhat.com>
11288
11289 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11290 a constant array bound.
11291
11292 * MAINTAINERS: Add myself to write-after-approval.
11293
75245b24
MS
112942002-03-14 Michael Snyder <msnyder@redhat.com>
11295
11296 * symfile.c (syms_from_objfile): Return immediately if no syms.
11297 (symbol_file_add): Return immediately if no syms.
11298 (find_sym_fns): Return immediately if no syms.
11299
e641a1ca
ML
113002002-03-13 Michal Ludvig <mludvig@suse.cz>
11301
11302 * gdbserver/remote-util.c (remote_open): Print remote-side's
11303 IP address when remote debugging over the network.
7e336ba1 11304
df08bfec
DB
113052002-03-12 David O'Brien <obrien@FreeBSD.org>
11306
11307 * config/sparc/fbsd.mh: Fix copyright.
11308 * config/sparc/fbsd.mt: Likewise.
11309
9a57864f
RE
113102002-03-11 Richard Earnshaw <rearnsha@arm.com>
11311
11312 * MAINTAINERS: Fix typo in name of gdb warnings option.
11313 (x86-64): Fix formating so that this can be parsed by awk.
11314
dd7bf85e
DJ
113152002-03-10 Daniel Jacobowitz <drow@mvista.com>
11316
11317 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11318 * defs.h: Include "gdb/signals.h".
11319 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11320
33a0a2ac
ML
113212002-03-10 Michal Ludvig <mludvig@suse.cz>
11322
11323 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 11324 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
11325 from x86-64-tdep.h
11326
dd824b04
DJ
113272002-03-10 Daniel Jacobowitz <drow@mvista.com>
11328 Don Howard <dhoward@redhat.com>
11329
11330 * mips-tdep.c (ST0_FR): Define.
11331 (mips2_fp_compat): New function, temporarily disabled.
11332 (mips_read_fp_register_single): New function.
11333 (mips_read_fp_register_double): New function.
11334 (mips_print_register): Use them.
11335 (do_fp_register_row): Likewise.
11336
6a41ff59
AC
113372002-03-09 Andrew Cagney <ac131313@redhat.com>
11338
11339 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11340 approval''.
11341
4ea09c10
PS
113422002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11343
11344 * stabsread.c (read_member_functions): Fix is_stub test for
11345 static member functions, improve comment.
11346
6ccc741d
RE
113472002-03-07 Richard Earnshaw <rearnsha@arm.com>
11348
11349 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11350 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11351 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11352 commands that set boolean values.
11353 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11354 (arm_rdi_resume): Always initialize PC.
11355 (arm_rdi_open): Don't use rslt as a boolean.
11356 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11357 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11358 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11359 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11360
438013df
AO
113612002-03-06 Alexandre Oliva <aoliva@redhat.com>
11362
11363 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11364 * configure: Rebuilt.
11365
70ed8774
SC
113662002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11367
11368 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11369 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11370
5ba2abeb
AC
113712002-03-06 Andrew Cagney <ac131313@redhat.com>
11372
11373 * cli/cli-decode.c (set_cmd_completer): New function.
11374 * command.h (set_cmd_completer): Declare.
11375 * cli/cli-decode.h (set_cmd_completer): Ditto.
11376
11377 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11378 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11379 * win32-nat.c (_initialize_inftarg): Ditto.
11380 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11381 * proc-api.c (_initialize_proc_api): Ditto.
11382 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11383 * source.c (_initialize_source): Ditto.
11384 * exec.c (_initialize_exec): Ditto.
11385 * solib.c (_initialize_solib): Ditto.
11386 * top.c (init_main): Ditto.
11387 * tracepoint.c (_initialize_tracepoint): Ditto.
11388 * symfile.c (_initialize_symfile): Ditto.
11389 * printcmd.c (_initialize_printcmd): Ditto.
11390 * infcmd.c (_initialize_infcmd): Ditto.
11391 * corefile.c (_initialize_core): Ditto.
11392
f779ca99
AC
113932002-03-05 Andrew Cagney <ac131313@redhat.com>
11394
11395 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11396
01a3934b
AC
113972002-03-05 Andrew Cagney <ac131313@redhat.com>
11398
11399 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11400
37057839
AC
114012002-03-05 Andrew Cagney <ac131313@redhat.com>
11402
11403 * NEWS: Update headings, 5.2 has branched.
11404
c6ecbae5
DJ
114052002-03-04 Daniel Jacobowitz <drow@mvista.com>
11406
11407 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11408 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11409 (register_addr, REGISTER_RAW_SIZE): Likewise.
11410 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11411 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11412
e9f30c21
ML
114132002-03-03 Michal Ludvig <mludvig@suse.cz>
11414
11415 * MAINTAINERS (x86-64): Add myself.
11416 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11417 changed value_ptr -> struct value *
11418
54394ac3
DB
114192002-03-01 David O'Brien <obrien@FreeBSD.org>
11420
11421 * configure.host (sparc64-*-freebsd): Add.
11422 * configure.tgt: Likewise.
11423 * config/sparc/fbsd.mh: New file.
11424 * config/sparc/fbsd.mt: Likewise.
11425 * config/sparc/nm-fbsd.h: Likewise.
11426 * config/sparc/tm-fbsd.h: Likewise.
11427
bfe95955
DJ
114282002-03-01 Daniel Jacobowitz <drow@mvista.com>
11429
11430 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11431 regformats/reg-s390x.dat.
11432
f33c6cbf
AC
114332002-03-01 Andrew Cagney <ac131313@redhat.com>
11434
11435 * utils.c: Add FIXME explaining true/false problem.
11436
5ecaa7dd
AC
114372002-02-28 Andrew Cagney <ac131313@redhat.com>
11438
11439 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11440
2a251cc2
MC
114412002-02-28 Michael Chastain <mec@shout.net>
11442
11443 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11444
6a8031a3 114452002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
11446
11447 * gdbserver/linux-s390-low.c: New file.
11448 * regformats/reg-s390.dat: New file.
11449 * regformats/reg-s390x.dat: New file.
11450 * gdbserver/configure.srv: Add S/390.
11451 * gdbserver/Makefile.in: Add S/390.
11452 * configure.tgt: Enable gdbserver for S/390.
11453
ac469903
EZ
114542002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11455
11456 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11457 first line of the doc string for "info dos", except at the end of
11458 the sentence, since the short help stops at the first period.
11459
985cb1a3
JM
114602002-02-28 Jason Merrill <jason@redhat.com>
11461
11462 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11463
c570663e
FF
114642002-02-27 Fred Fish <fnf@redhat.com>
11465
11466 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11467 comment (dumy -> dummy).
11468
43630227
PS
114692002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11470
11471 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11472
b84911e8
RB
114732002-02-27 Rodney Brown <rbrown64@csc.com.au>
11474
11475 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11476
58caa3dc
DJ
114772002-02-27 Daniel Jacobowitz <drow@mvista.com>
11478
11479 * gdbserver/acconfig.h: New file.
11480 * gdbserver/i387-fp.c: New file.
11481 * gdbserver/i387-fp.h: New file.
11482 * gdbserver/linux-x86-64.c: New file.
11483 * regformats/reg-x86-64.dat: New file.
11484 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11485 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11486 * gdbserver/configure.in: Add support for regsets.
11487 * gdbserver/config.in: Regenerate.
11488 * gdbserver/configure: Regenerate.
11489 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11490 * gdbserver/linux-low.h: New file.
11491 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11492 for regsets.
11493 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11494 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11495 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11496 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11497 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11498 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11499 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11500 "i387-fp.h". Add PTRACE_GETREGS and friends.
11501 * gdbserver/regcache.c (supply_register): New function.
11502 (supply_register_by_name): New function.
11503 (collect_register): New function.
11504 (collect_register_by_name): New function.
11505
93652174
DJ
115062002-02-27 Daniel Jacobowitz <drow@mvista.com>
11507
11508 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11509 (config.status): Add configure.srv dependency.
11510 (server_h): Add config.h dependency.
11511
a02e4a61
DJ
115122002-02-27 Daniel Jacobowitz <drow@mvista.com>
11513
11514 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11515 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11516 * gdbserver/configure.srv: Change i386-*-linux* to use
11517 reg-i386-linux.o.
11518
ce0eebec
AC
115192002-02-26 Andrew Cagney <ac131313@redhat.com>
11520
11521 * x86-64-tdep.c: Re-indent. Update copyright date.
11522
82dbc5f7
AC
115232002-02-26 Andrew Cagney <ac131313@redhat.com>
11524
11525 From Michal Ludvig <mludvig@suse.cz>:
11526 * x86-64-tdep.c (value.h): Delete.
11527 (gdb_assert.h): Include.
11528 (x86_64_register_convert_to_virtual,
11529 x86_64_register_convert_to_raw ): Add check which lets only
11530 floating-point values to be converted.
11531 (value_push): Delete.
11532 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11533 (i386_gdbarch_init): Number of register_bytes fixed.
11534
e4621584
AC
115352002-02-26 Andrew Cagney <ac131313@redhat.com>
11536
11537 * MAINTAINERS: Add x86-64 target.
11538
81a9a963
AC
115392002-02-26 Andrew Cagney <ac131313@redhat.com>
11540
11541 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11542 * osfsolib.c (solib_map_sections): Ditto.
11543 * irix5-nat.c (solib_map_sections): Ditto.
11544 * corelow.c (gdb_check_format): Ditto.
11545 * symfile.c (symfile_bfd_open): Ditto.
11546 * solib.c (solib_map_sections): Ditto.
11547 Fix PR gdb/354.
7e336ba1 11548
0f017ab9
AC
115492002-02-26 Andrew Cagney <ac131313@redhat.com>
11550
11551 * remote.c (_initialize_remote): By default, disable ``e'' and
11552 ``E'' step out-of-range packets.
11553
75738c29
AS
115542002-02-26 Andreas Schwab <schwab@suse.de>
11555
11556 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11557 m68k_linux_frame_saved_pc.
11558 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11559 in_sigtramp.
11560 (SIGCONTEXT_PC_OFFSET): Remove.
11561 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11562 m68k_linux_sigtramp_saved_pc): New functions.
11563 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11564 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11565 (UCONTEXT_PC_OFFSET): Define.
11566 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11567 non-RT and RT signal trampolines.
11568
7e8ed687
RE
115692002-02-26 Richard Earnshaw <rearnsha@arm.com>
11570
11571 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11572 (TARGET_NBPG, STACK_END_ADDR): Delete
11573 (VARIABLES_INSIDE_BLOCK): Delete.
11574
6972bc8b
AC
115752002-02-25 Andrew Cagney <ac131313@redhat.com>
11576
11577 * utils.c (perror_with_name): Make string parameter constant.
11578 (print_sys_errmsg): Ditto.
11579 (query): Ditto.
11580 * defs.h (perror_with_name): Update.
11581 (print_sys_errmsg): Update.
11582 (query): Update.
11583
aa32f823
DJ
115842002-02-25 Daniel Jacobowitz <drow@mvista.com>
11585
11586 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11587 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11588
19caaa45
PS
115892002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11590
11591 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11592 if it already matches the current architecture from the exec file.
11593 Include arch-utils.h for gdbarch_info_init prototype.
11594 * Makefile.in (rs6000-nat.o): Update dependencies.
11595
d951901f
EZ
115962002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11597
11598 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11599 list of exported variables.
11600
7ea81414
DJ
116012002-02-24 Daniel Jacobowitz <drow@mvista.com>
11602
11603 * gdbserver/configure.srv: New file.
11604 * gdbserver/configure.in: Use configure.srv instead
11605 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11606 from it.
11607 * gdbserver/configure: Regenerated.
11608 * gdbserver/terminal.h: New file.
11609 * gdbserver/Makefile.in: Update for configure changes. Remove
11610 more unneeded include paths.
11611
080fe24b
AC
116122002-02-24 Andrew Cagney <ac131313@redhat.com>
11613
11614 From wiz at danbala:
11615 * config/sparc/tm-sp64.h: Fix grammar and typos.
11616 Fix PR gdb/287.
11617
8605d56e
AC
116182002-02-24 Andrew Cagney <ac131313@redhat.com>
11619
11620 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
11621 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11622 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11623 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
11624 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11625 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11626 * s390-tdep.c: Ditto.
92362027
AC
11627 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11628 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11629 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11630 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11631 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11632 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11633 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11634 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11635 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11636 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 11637 Fix PR gdb/378.
7e336ba1 11638
8ed32cc0
AC
116392002-02-23 Andrew Cagney <ac131313@redhat.com>
11640
a3007b6f
AC
11641 * lin-thread.c: Delete file.
11642 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11643 to gdb_proc_service.h.
11644 * configure: Re-generate.
11645
50a9e2f1
AC
11646 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11647 * serial.c (serial_open): Delete check for "ocd".
11648 Fix PR gdb/349.
11649
8b6e7932
AC
11650 * Makefile.in (linux-thread.o): Delete target.
11651 * linux-thread.c: Delete file.
11652
d155c46b
AC
11653 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11654 renamed SH files to be consistent.
11655
8ed32cc0
AC
11656 * symtab.c (sort_search_symbols): Use xfree.
11657
0e18d038
RE
116582002-02-23 Richard Earnshaw <rearnsha@arm.com>
11659
11660 * arm-linux-tdep.c (arm_linux_init_abi): Register
11661 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11662 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11663 definition with undef, since we don't want the sysvr4 definition.
11664 (SKIP_TRAMPOLINE_CODE): Likewise.
11665
27aac7ff
AC
116662002-02-23 Andrew Cagney <ac131313@redhat.com>
11667
11668 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11669
11670 * configure.in: (AC_CHECK_FUNCS) Added test for
11671 canonicalize_file_name Regenerated.
11672 * config.in, configure: Regenerated.
11673 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11674 defined use canonicalize_file_name.
7e336ba1 11675
65a6e0ee
MC
116762002-02-23 Michael Chastain <mec@shout.net>
11677
11678 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11679
47b95330
AC
116802002-02-23 Andrew Cagney <ac131313@redhat.com>
11681
11682 * README: Remove references to cygnus.com.
11683 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11684 dot com'' form. Remove references to cygnus.com and sourceware.
11685
696f451b
AC
116862002-02-23 Andrew Cagney <ac131313@redhat.com>
11687
11688 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11689 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11690 1003.1-2001 no longer allows "head -1".
11691 * gdb/Makefile.in (version.c): Likewise.
11692 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11693 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11694 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11695
bbaca940
AC
116962002-02-23 Andrew Cagney <ac131313@redhat.com>
11697
11698 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11699 * command.h (cmd_cfunc_eq): Declare.
11700 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11701
11702 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11703 ``struct cmd_list_element *''.
11704 * cli/cli-cmds.c (is_complete_command): Update. Use
11705 cmd_cfunc_eq.
11706 * top.c (execute_command): Pass the command to
11707 is_complete_command.
11708 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11709
b8b8b047
AC
117102002-02-23 Andrew Cagney <ac131313@redhat.com>
11711
11712 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11713 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11714 architecture defines.
11715 * s390-tdep.c (s390_gdbarch_init): Likewise.
11716
19d3fc80
RE
117172002-02-23 Richard Earnshaw <rearnsha@arm.com>
11718
11719 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11720 (arm_linux_push_arguments): Likewise.
11721 (arm_linux_init_abi): Register them. Also register linux-specific
11722 call_dummy_words.
11723 (find_minsym_and_objfile): Use strcmp, not STREQ.
11724 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11725 (arm_linux_call_dummy_words): Delete declaration.
11726 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11727 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11728 declarations.
11729 (LOWEST_PC): Delete.
11730
3ab13650
PS
117312002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11732
11733 * maint.c (print_section_info): Do not prepend `0x' to filepos
11734 output, it will be handled by local_hex_string_custom.
11735
19d3fc80 117362002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
11737
11738 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11739 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11740 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11741
d85a5daf
JB
117422002-02-22 Jim Blandy <jimb@redhat.com>
11743
11744 Indicate that the bcache functions don't change the strings
11745 they're passed.
11746 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11747 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11748
eeb25b8a
PM
117492002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11750
11751 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11752
6badb179
CF
117532002-02-21 Christopher Faylor <cgf@redhat.com>
11754
11755 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11756 find the complete path to a loaded DLL.
11757
e8717518
FF
117582002-02-21 Fred Fish <fnf@redhat.com>
11759
11760 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11761 that marks the end of the range of a function, enter a line number
11762 entry that has a line number of zero and a PC offset that matches
11763 the end of the function. This starts a range of PC's for which no
11764 line number information is known.
11765 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11766 PC's for which no line number info is found (line number is zero)
11767 then we didn't find any valid line information.
11768 * symtab.h: Document use of zero line number entry.
11769
9abe5450
EZ
117702002-02-21 Elena Zannoni <ezannoni@redhat.com>
11771
11772 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11773 (have_ptrace_getvrregs): Define for run time checks.
11774 (gdb_vrregset_t): New type for Altivec register handling.
11775 (fetch_register, store_register): Fetch/store altivec register
11776 when needed.
11777 (fetch_altivec_register, store_altivec_register): New functions.
11778 (supply_vrregset, fill_vrregset): New functions.
11779 (fetch_altivec_registers, store_altivec_registers): New functions.
11780 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11781 registers as well.
11782
aaa38bb5
AJ
117832002-02-21 Jiri Smid <smid@suse.cz>
11784
11785 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11786
b34db576
RE
117872002-02-21 Richard Earnshaw <rearnsha@arm.com>
11788
11789 * Makefile.in (armnbsd-nat.o): Update dependencies.
11790 * armnbsd-nat.c (supply_gregset): New function. Common code to
11791 supply the integer register set.
11792 (supply_fparegset): New function. Similar for FPA registers.
11793 (fetch_regs, fetch_fp_regs): Use them.
11794 (fetch_core_registers): Likewise.
11795 (fetch_elfcore_registers): New function.
11796 (arm_netbsd_elfcore_fns): New core-file type specification.
11797 (_initialize_arm_netbsd_nat): Register it.
11798
3e56fc4b
RE
117992002-02-21 Richard Earnshaw <rearnsha@arm.com>
11800
11801 * armnbsd-nat.c: Include gdbcore.h.
11802 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11803 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11804 'void' to declaration, to shut up ARI.
11805 (fetch_core_registers): Make static. Rewrite using supply_register.
11806 (arm_netbsd_core_fns): New core-file type specification.
11807 (_initialize_arm_netbsd_nat): New function.
11808
097f6b0b
CF
118092002-02-21 Christopher Faylor <cgf@redhat.com>
11810
11811 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11812 value.
11813
c914e0cc
CF
118142002-02-20 Christopher Faylor <cgf@redhat.com>
11815
11816 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11817 fails.
11818
385fa495
DJ
118192002-02-20 Daniel Jacobowitz <drow@mvista.com>
11820
11821 * jv-exp.y (parse_number): Change type of implicit longs
11822 to builtin_type_uint64.
11823
e5f1222d
DJ
118242002-02-20 Daniel Jacobowitz <drow@mvista.com>
11825
11826 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11827 to be an integer instead of a `union wait'.
11828
75c9abc6
DJ
118292002-02-20 Daniel Jacobowitz <drow@mvista.com>
11830
11831 * mips-linux-nat.c: Call the operating system GNU/Linux.
11832 * mips-linux-tdep.c: Likewise.
11833 * mips-tdep.c: Likewise.
11834
551792a5
DJ
118352002-02-20 Daniel Jacobowitz <drow@mvista.com>
11836
11837 Fix PR gdb/265.
11838 * jv-exp.y (parse_number): Handle 64-bit integers.
11839
ee6e2b82
DJ
118402002-02-20 Daniel Jacobowitz <drow@mvista.com>
11841
11842 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11843 AC_STDC_HEADERS to AC_HEADER_STDC.
11844 * gdbserver/configure: Regenerated.
11845
a48442a0
RE
118462002-02-20 Richard Earnshaw <rearnsha@arm.com>
11847
11848 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11849 is defined.
11850 * sparc-tdep.c (get_longjmp_target): Likewise.
11851
fe419ffc
RE
118522002-02-20 Richard Earnshaw <rearnsha@arm.com>
11853
11854 * News: Add news about ARM and Multi-arch. Mention the new target
11855 arm*-*-netbsd*.
11856
5832ed7e
JB
118572002-02-19 Jim Blandy <jimb@redhat.com>
11858
11859 * stabsread.c (error_type_complaint): Improve error message.
11860
84563040
DJ
118612002-02-19 Daniel Jacobowitz <drow@mvista.com>
11862
11863 * gdbserver/README: Update documentation.
11864 * gdbserver/configure.in: Update configury to match documentation.
11865 * gdbserver/Makefile.in: Likewise.
11866 * gdbserver/configure: Regenerated.
11867 * gdbserver/aclocal.m4: New file, generated by aclocal.
11868 * gdbserver/config.in: New file, generated by autoheader.
11869
375fd65b
RE
118702002-02-19 Richard Earnshaw <rearnsha@arm.com>
11871
11872 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11873 armnbsd-nat.c.
11874
08216dd7
RE
118752002-02-19 Richard Earnshaw <rearnsha@arm.com>
11876
11877 * arm-tdep.h (enum arm_float_model): New enum.
11878 (struct gdbarch_tdep): Add fp_model.
11879 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11880 up floating-point conversions until we know the floating-point model
11881 in use by the inferior. Don't complain about being unable to
11882 determine the ABI of the inferior when we don't have one.
11883 (arm_extract_return_value): Support different floating-point models.
11884 (arm_store_return_value): Likewise.
aaa38bb5 11885 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11886 ARM_FLOAT_SOFT.
11887 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11888
65d6d66a
PS
118892002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11890
11891 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11892 of ``current_gdbarch''.
11893
47221191
RE
118942002-02-19 Richard Earnshaw <rearnsha@arm.com>
11895
11896 * armnbsd-nat.c : ANSIfy all function declarations.
11897 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11898 (fetch_inferior_registers): Re-implement in terms of above.
11899 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11900 (store_inferior_registers): Re-implement in terms of above.
11901
fdf39c9a
RE
119022002-02-19 Richard Earnshaw <rearnsha@arm.com>
11903
aaa38bb5 11904 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11905 kernel.
11906 * arm-linux-tdep.c: Likewise.
11907 * config/arm/tm-linux.h: Likewise.
11908
93247f88
RE
119092002-02-19 Richard Earnshaw <rearnsha@arm.com>
11910
11911 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11912 * config/arm/nbsd.mt (TM_FILE): Delete.
11913 * config/arm/tm-nbsd.h: Delete.
11914
d7b486e7
RE
119152002-02-19 Richard Earnshaw <rearnsha@arm.com>
11916
11917 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11918 Initialize CALL_DUMMY_LENGTH.
11919
41d39a95
RE
119202002-02-19 Richard Earnshaw <rearnsha@arm.com>
11921
11922 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11923 function.
11924 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11925 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11926 defines one thing and that is incorrect for this port.
11927 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11928
e1195560
PM
119292002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11930
11931 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11932
c1748f97
PM
119332002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11934
11935 * win32-nat.c (display_selector): New function. Displays information
11936 about the information returned by GetThreadSelectorEntry API function.
11937 (display_selectors): New function. Displays the infomation of
11938 the selector given as argument, or of CS, DS ans FS selectors
11939 if no argument is given.
11940 ( _initialize_inftarg): Add "w32" as info prefix command.
11941 Add "info w32 selector" as command calling display_selectors.
11942
e41e6bbf
PM
119432002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11944
11945 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11946 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11947 if not defined.
11948
0d3a9f48
RE
119492002-02-18 Richard Earnshaw <rearnsha@arm.com>
11950
11951 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11952
3fb4b924
RE
119532002-02-18 Richard Earnshaw <rearnsha@arm.com>
11954
11955 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11956 (arm_fix_call_dummy): Call it.
11957 (arm_call_dummy_breakpoint_offset): Delete.
11958 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11959 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11960
7f55af32
AC
119612002-02-18 Andrew Cagney <ac131313@redhat.com>
11962
11963 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11964 Default to func_frame_chain_valid.
11965 * gdbarch.h, gdbarch.c: Re-generate.
11966 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11967
05f13b9c
EZ
119682002-02-18 Elena Zannoni <ezannoni@redhat.com>
11969
11970 * ppc-linux-nat.c: Update copyright.
11971 (fetch_register, store_register): Add tid parameter, don't compute
11972 tid here.
11973 (fetch_ppc_registers, store_ppc_registers): Add tid
11974 parameter. Pass it along to callees.
11975 (fetch_inferior_registers, store_inferior_registers): Compute tid
11976 here, and pass it to calleed functions.
11977 (fill_gregset, supply_fpregset): Clean up formatting.
11978
d7afb4c9
RE
119792002-02-18 Richard Earnshaw <rearnsha@arm.com>
11980
11981 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11982 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11983
9df628e0
RE
119842002-02-18 Richard Earnshaw <rearnsha@arm.com>
11985
11986 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11987 * gdbarch.c gdbarch.h: Regenerate.
11988 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11989 function.
11990 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11991 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11992 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11993
11994 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11995 * arm-tdep.c (arm_get_longjmp_target): New function.
11996 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11997 this to a positive value register arm_get_longjmp_target as the
11998 longjmp handler.
11999 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12000 (arm_linux_init_abi): Set up longjmp description in tdep.
12001 * armnbsd-nat.c (get_longjmp_target): Delete.
12002 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12003 description in tdep.
12004 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12005 (get_longjmp_target): Delete declaration.
12006 (GET_LONGJMP_TARGET): Delete.
12007 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12008 (GET_LONGJMP_TARGET): Delete.
12009
57bc8964
KB
120102002-02-17 Kevin Buettner <kevinb@redhat.com>
12011
12012 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12013 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12014 of ``current_gdbarch''.
12015
83d31a92
TT
120162002-02-17 Tom Tromey <tromey@redhat.com>
12017
12018 * cli/cli-cmds.c (compare_strings): New function.
12019 (complete_command): Only print each unique item once.
12020 * completer.h (complete_line): Declare.
12021 * completer.c (complete_line): New function.
12022 (line_completion_function): Use it.
12023
17ef5d92
AC
120242002-02-16 Andrew Cagney <ac131313@redhat.com>
12025
12026 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12027 * gdbarch.h, gdbarch.c: Re-generate.
12028
491b8946
DJ
120292002-02-16 Daniel Jacobowitz <drow@mvista.com>
12030
12031 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12032
120332002-02-16 Daniel Jacobowitz <drow@mvista.com>
12034
12035 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12036 * valops.c (value_arg_coerce): Don't take the address of a reference
12037 to convert an argument to a reference.
12038
dfe7f3ac
CF
120392002-02-15 Christopher Faylor <cgf@redhat.com>
12040
12041 * win32-nat.c (get_image_name): New function.
12042 (handle_load_dll): Use get_image_name function.
12043 (get_child_debug_event): Avoid registering debug events until possibly
12044 execed process is started.
12045 (child_create_inferior): Allow invocation via shell so that command
12046 line redirection, etc. works ok.
12047 (_initialize_inftarg): Add new command: "set shell" to control whether
12048 a shell is used to start a process.
12049
1d33e73a
DJ
120502002-02-15 Daniel Jacobowitz <drow@mvista.com>
12051
12052 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12053 instead of find_register_by_number.
12054 (cannot_store_register): Likewise.
12055
48cd0caa
PM
120562002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12057
aaa38bb5 12058 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
12059 fprintf_unfiltered (gdb_stderr, ...).
12060
8656e7d8
DJ
120612002-02-15 Daniel Jacobowitz <drow@mvista.com>
12062
12063 * gdbserver/gdbserver.1: Document --attach.
12064
66e810cd
RE
120652002-02-15 Richard Earnshaw <rearnsha@arm.com>
12066
12067 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12068 descriptions.
12069 * arm-tdep.c (arm_default_arm_le_breakpoint)
12070 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12071 (arm_default_thumb_be_breakpoint): New. Initialize them from
12072 traditional breakpoint defines.
12073 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12074 (arm_gdbarch_init): Initialize new breakpoint variables.
12075 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12076 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12077 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12078 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12079 code out to ...
12080 (arm_netbsd_init_abi_common): ... here; new function.
12081 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12082 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12083 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12084 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12085
97e03143
RE
120862002-02-15 Richard Earnshaw <rearnsha@arm.com>
12087
12088 * arm-tdep.h (enum arm_abi): New enum.
12089 (struct gdbarch_tdep): New structure.
12090 (LOWEST_PC): Provide a default.
12091 (arm_gdbarch_register_os_abi): Declare new function.
12092 * arm-tdep.c (arm_abi_names): New array.
12093 (process_note_abi_tag_sections): New function.
12094 (get_elfosabi): New function.
12095 (arm_gdbarch_register_os_abi): New function.
12096 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12097 support for that ABI has been built in, then call the appropriate
12098 configuration routine. Use gdbarch_num_regs() to get the number
12099 of registers.
12100 (arm_dump_tdep): New function.
12101 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12102 place-holder functions.
12103 (_initialize_arm_tdep): Register them.
12104 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12105
12106 * armnbsd-tdep.c: New file.
12107 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12108 * config/arm/nbsd.mt (TDEPFILES): Add it.
12109 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12110
12111 * armnbsd-nat.c: Include regcache.h.
12112 * Makefile.in (armnbsd-nat.o): Update dependency list.
12113
12114 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12115
ad68be46
DJ
121162002-02-14 Daniel Jacobowitz <drow@mvista.com>
12117
12118 * gdbserver/Makefile.in: Fix typos in target rules.
12119
003d6d1d
DJ
121202002-02-14 Daniel Jacobowitz <drow@mvista.com>
12121
aaa38bb5 12122 Fix part of PR gdb/267.
003d6d1d
DJ
12123 * linespec.c (find_methods): Handle constructors specially for now.
12124
6b230f1b
CV
121252002-02-14 Corinna Vinschen <vinschen@redhat.com>
12126
12127 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12128 handling.
12129 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12130 standard_coerce_float_to_double().
12131
1ea98d12
CF
121322002-02-14 Christopher Faylor <cgf@redhat.com>
12133
12134 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12135 GDBINIT_FILENAME.
12136
dd47e6fd
EZ
121372002-02-14 Elena Zannoni <ezannoni@redhat.com>
12138
12139 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12140 find_variant_by_name, because it confuses the multiarch
12141 framework. Return NULL if there isn't an architecture with the
12142 user supplied name, instead of forcing a different one without
12143 recording the change with the multiarch machinery.
12144 (find_variant_by_name): Delete.
12145
d7e39b9e
PS
121462002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12147
12148 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12149 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12150
76e42a4f
MH
121512002-02-13 Martin M. Hunt <hunt@redhat.com>
12152
aaa38bb5 12153 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
12154 print_frame_info_listing_hook, set current_source_symtab.
12155
0a30fbc4
DJ
121562002-02-14 Daniel Jacobowitz <drow@mvista.com>
12157
12158 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12159 and remove unused $(INCLUDE_DIR).
12160 Add regcache.c to OBS.
12161 Add generated register protocol files to clean target.
12162 Update dependencies for new objects, obsolete old target code.
12163
12164 * gdbserver/linux-low.c: Remove all platform-specific code to
12165 new files. Remove various dead code. Update to use regcache
12166 functionality.
12167 * gdbserver/remote-utils.c (fromhex): Add return statement
12168 to quiet warning.
12169 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12170 constant.
12171 (input_interrupt): Add integer parameter to match prototype
12172 of a signal handler.
12173 (outreg): Use register_data ().
12174 (prepare_resume_reply): Use gdbserver_expedite_regs.
12175 * gdbserver/server.c (main): Dynamically allocate own_buf because
12176 PBUFSIZ is no longer constant. Use registers_to_string () and
12177 registers_from_string ().
12178 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12179 for error (), fatal (), and warning (). Update definition of
12180 PBUFSIZ to use regcache functionality. Add include guard.
12181 * gdbserver/utils.c (fatal): Add missing ``const''.
12182 (warning): New function.
12183
12184 * regformats/regdat.sh: Include "regcache.h" in generated files.
12185 Provide init_registers () function.
12186 * regformats/regdef.h: Add prototype for set_register_cache ().
12187 Add include guard.
12188
12189 * gdbserver/linux-arm-low.c: New file.
12190 * gdbserver/linux-i386-low.c: New file.
12191 * gdbserver/linux-ia64-low.c: New file.
12192 * gdbserver/linux-m68k-low.c: New file.
12193 * gdbserver/linux-mips-low.c: New file.
12194 * gdbserver/linux-ppc-low.c: New file.
12195 * gdbserver/linux-sh-low.c: New file.
12196
12197 * gdbserver/regcache.c: New file.
12198 * gdbserver/regcache.h: New file.
12199
12200 * gdbserver/low-linux.c: Removed obsolete file.
12201
4cc841d0
DJ
122022002-02-14 Daniel Jacobowitz <drow@mvista.com>
12203
12204 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12205 * config/i386/linux.mt: Likewise.
12206 * config/ia64/linux.mt: Likewise.
12207 * config/m68k/linux.mh: Likewise.
12208 * config/powerpc/linux.mh: Likewise.
12209 * config/mips/linux.mt: Likewise.
12210
12211 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12212
12213 * config/i386/i386lynx.mh: Mark gdbserver variables
12214 as (currently) obsolete for this target.
12215 * config/i386/nbsd.mt: Likewise.
12216 * config/i386/nbsdelf.mt: Likewise.
12217 * config/m32r/m32r.mt: Likewise.
12218 * config/m68k/m68klynx.mh: Likewise.
12219 * config/m68k/nbsd.mt: Likewise.
12220 * config/m68k/sun3os4.mh: Likewise.
12221 * config/mips/vr5000.mt: Likewise.
12222 * config/ns32k/nbsd.mt: Likewise.
12223 * config/pa/hppabsd.mh: Likewise.
12224 * config/pa/hppaosf.mh: Likewise.
12225 * config/powerpc/nbsd.mt: Likewise.
12226 * config/rs6000/rs6000lynx.mh: Likewise.
12227 * config/s390/s390.mt: Likewise.
12228 * config/s390/s390x.mt: Likewise.
12229 * config/sparc/sparclynx.mh: Likewise.
12230 * config/sparc/sun4os4.mh: Likewise.
12231 * config/i386/x86-64linux.mt: Likewise.
12232 * config/sparc/linux.mh: Likewise.
12233
a85f51e7
DJ
122342002-02-14 Daniel Jacobowitz <drow@mvista.com>
12235
12236 * configure.tgt: Configure gdbserver only for known working
12237 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12238 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12239 SUBDIRS if it is configured. Update comment for ${nativefile}.
12240 * configure: Regenerated.
12241
65554fef
MS
122422002-02-13 Michael Snyder <msnyder@redhat.com>
12243
670a52db
MS
12244 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12245
6dbdc4a3
MS
12246 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12247 (default_gcore_mach): Just return 0, work around a problem in bfd.
12248 (default_gcore_target): OK to return NULL if exec_bfd is null.
12249 (make_mem_sec): Use a cast, avoid a warning.
12250
12251 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 12252 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
12253 sizeof (host pointer) != sizeof (target pointer)).
12254 (procfs_make_note_section): Avoid overflow in psargs string.
12255
aaa38bb5 12256 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
12257 implementation return an error.
12258
122592002-02-13 Rodney Brown <rbrown64@csc.com.au>
12260
12261 * procfs.c (procfs_make_note_section): Provide a default definition
12262 (for alpha-dec-osf4.0f). Fix typos.
12263
1e4d76e7
EZ
122642002-02-13 Elena Zannoni <ezannoni@redhat.com>
12265
12266 * linux-proc.c: Add include of regcache.h.
12267 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12268
b6d1a1d5
AC
122692002-02-13 Andrew Cagney <ac131313@redhat.com>
12270
12271 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
12272 * memattr.c (create_mem_region): Disallow useless empty region.
12273 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 12274 non-overlapping.
b6d1a1d5 12275
6c6ea35e
MC
122762002-02-13 Michael Chastain <mec@shout.net>
12277
12278 * defs.h: Kill CONST_PTR.
12279 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12280 * c-lang.c (c_builtin_types): Likewise.
12281 * ch-lang.c (ch_builtin_types): Likewise.
12282 * f-lang.c (f_builtin_types): Likewise.
12283 * language.c (unknown_builtin_types): Likewise.
12284 * m2-lang.c (m2_builtin_types): Likewise.
12285 * p-lang.c (pascal_builtin_types): Likewise.
12286 * scm-lang.c (c_builtin_types): Likewise.
12287
3e0b0f48
KS
122882002-02-13 Keith Seitz <keiths@redhat.com>
12289
12290 * arm-tdep.h (arm_get_next_pc): Add declaration.
12291
67255d04
RE
122922002-02-13 Richard Earnshaw <rearnsha@arm.com>
12293
12294 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12295 with other related struct-returning functions.
12296 (arm_extract_struct_value_address): New function.
12297 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12298 initialize float_format, double_format and long_double_format as
12299 appropriate to the endianness of the target.
12300 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12301 (arm_use_struct_convention): Delete declaration.
12302 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12303
079777f6
KS
123042002-02-13 Keith Seitz <keiths@redhat.com>
12305
12306 * defs.h (core_addr_to_string_nz): New function.
12307
34588f23
MK
123082002-02-13 Mark Kettenis <kettenis@gnu.org>
12309
12310 Apply missing bits of 2002-01-15 patch.
12311 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12312 (fill_fpregset): Use i387_fill_fsave.
12313
49b563f9
KS
123142002-02-12 Keith Seitz <keiths@redhat.com>
12315
49b563f9
KS
12316 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12317 (core_addr_to_string_nz): New function.
12318
aeb98c60
RE
123192002-02-11 Richard Earnshaw <rearnsha@arm.com>
12320
12321 * arm-linux-nat.c: Really include arm-tdep.h.
12322 * config/arm/tm-linux.h (struct type, struct value): Declare.
12323
65554fef
MS
123242002-02-11 Michael Snyder <msnyder@redhat.com>
12325
12326 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12327 (gcore section): Ifdef for Solaris and Unixware only.
12328 (procfs_do_thread_registers): Unixware needs one lwpstatus
12329 per thread (not one prstatus or pstatus).
12330 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12331 not over all gdb threads. For unixware, call elfcore_write_pstatus
12332 once before iterating over threads.
12333
34e8f22d
RE
123342002-02-11 Richard Earnshaw <rearnsha@arm.com>
12335
12336 * arm-tdep.h: New file.
12337 * arm-tdep.c: Include arm-tdep.h.
12338 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12339 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12340 (arm_print_float_info, arm_register_type, convert_to_extended)
12341 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12342 (arm_extract_return_value, arm_register_name): Make static.
12343 (arm_software_single_step): Similarly. Fix types in declaration.
12344 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12345 (arm_store_return_value, arm_store_struct_return): New functions.
12346 (arm_gdbarch_init): Register the above functions. Also register
12347 call_dummy_start_offset, sizeof_call_dummy_words,
12348 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12349 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 12350 max_register_virtual_size, register_size. Set up
34e8f22d
RE
12351 prologue_cache.saved_regs here, rather than ...
12352 (_initialize_arm_tdep): ... here.
12353 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12354 declarations.
12355 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12356 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12357 (arm_print_float_info, arm_register_type, convert_to_extended)
12358 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12359 (arm_extract_return_value, arm_register_name): Delete declarations.
12360 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12361 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12362 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12363 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12364 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12365 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12366 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12367 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12368 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12369 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12370 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12371 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12372 interface.
12373 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12374 * remote-rdi.c remote-rdp.c: Likewise.
12375 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12376 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12377 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12378 definition.
12379
12380 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12381 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12382 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12383 from non-ARM_ prefixed definitions.
12384 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12385 all uses of above.
12386 * remote-rdi.c remote-rdp.c: Likewise.
12387 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12388
148754e5
RE
123892002-02-11 Richard Earnshaw <rearnsha@arm.com>
12390
12391 * arm-tdep.c (arm_frameless_function_invocation)
12392 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12393 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12394 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12395 (arm_pop_frame, arm_get_next_pc): Make static.
12396 (arm_gdbarch_init): Register above in gdbarch structure.
12397 (arm_read_fp): Renamed from arm_target_read_fp.
12398 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12399 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12400 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12401 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12402 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12403 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12404 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
12405 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12406 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12407 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12408 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 12409
434d2d4f
DJ
124102002-02-10 Daniel Jacobowitz <drow@mvista.com>
12411
12412 * symtab.c (compare_search_syms): New function.
12413 (sort_search_symbols): New function.
12414 (search_symbols): Sort symbols after searching rather than
12415 before.
12416
55241689
AC
124172002-02-10 Andrew Cagney <ac131313@redhat.com>
12418
12419 * NEWS: Linux -> GNU/Linux.
12420
028c194b
AC
124212002-02-10 Andrew Cagney <ac131313@redhat.com>
12422
12423 * gdbarch.sh: For for level one methods, disallow a definition
12424 when partially multi-arched. Add comments explaining rationale.
12425 * gdbarch.h: Re-generate.
12426
6acf50cd
AC
124272002-02-10 Andrew Cagney <ac131313@redhat.com>
12428
12429 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12430 multi-arch partial.
aaa38bb5 12431
50248794
AC
124322002-02-10 Andrew Cagney <ac131313@redhat.com>
12433
12434 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12435 field. Use diff -u.
12436 * gdbarch.c: Re-generate.
12437
c30e0066
AC
124382002-02-10 Andrew Cagney <ac131313@redhat.com>
12439
9b56c5f3 12440 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
12441 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12442 partial.
12443
6e6d6484
AC
124442002-02-10 Andrew Cagney <ac131313@redhat.com>
12445
12446 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12447 multi-arch partial.
12448 (PUSH_ARGUMENTS): Switch to using predefault.
12449 * gdbarch.c: Regenerate.
12450
c203844d
AC
124512002-02-10 Andrew Cagney <ac131313@redhat.com>
12452
12453 * valops.c (PUSH_ARGUMENTS): Delete definition.
12454 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12455 partial. Default to default_push_arguments.
12456 * gdbarch.h, gdbarch.c: Regenerate.
12457
b5a2688f
AC
124582002-02-09 Andrew Cagney <ac131313@redhat.com>
12459
12460 * defs.h (throw_exception): Rename return_to_top_level. Update
12461 comments.
12462 * utils.c (error_stream, internal_verror, quit): Ditto.
12463 * top.c (throw_exception, catcher): Ditto.
12464 * sparclet-rom.c (sparclet_load): Ditto.
12465 * remote.c (interrupt_query, minitelnet): Ditto.
12466 * remote-sds.c (interrupt_query): Ditto.
12467 * remote-mips.c (mips_error, mips_kill): Ditto.
12468 * ocd.c (interrupt_query): Ditto.
12469 * monitor.c (monitor_interrupt_query): Ditto.
12470 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12471 * target.h: Update comment.
aaa38bb5 12472
b5a2688f 12473 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 12474
2fa5c1e0
AC
124752002-02-09 Andrew Cagney <ac131313@redhat.com>
12476
12477 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12478 default_double_format.
12479 * gdbarch.h, gdbarch.c: Re-generate.
12480 * findvar.c (floatformat_unknown): Delete variable definition.
12481 * doublest.h (floatformat_unknown): Delete variable declaration.
12482
da966255
JB
124832002-02-09 Jim Blandy <jimb@redhat.com>
12484
12485 * stabsread.c (read_type): Add code to parse Sun's syntax for
12486 prototyped function types.
12487
123a4891
AC
124882002-02-09 Andrew Cagney <ac131313@redhat.com>
12489
12490 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12491 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12492
fb39c8f3
PS
124932002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12494
12495 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12496 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12497 now _initialize_xcoffsolib gets called again and overrides the
12498 commands from solib.c in a native configuration.
12499
0b87a11d
MK
125002002-02-09 Mark Kettenis <kettenis@gnu.org>
12501
12502 * doublest.c (store_typed_floating): Don't try to return a value.
12503 Fixes PR gdb/290.
12504
bdc2fc72
JB
125052002-02-08 Jim Blandy <jimb@redhat.com>
12506
12507 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12508 is prototyped and has no arguments, print its argument list as
12509 `(void)'.
12510
da69bbcf
CD
125112002-02-08 Chris Demetriou <cgd@broadcom.com>
12512
12513 * MAINTAINERS (write-after-approval): Add myself.
12514 (paper-trail): I've escaped!
aaa38bb5 12515
b69571f5
CF
125162002-02-08 Christopher Faylor <cgf@redhat.com>
12517
12518 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12519 changes.
12520 (_initialize_check_for_gdb_ini): Ditto.
12521
f6871398
MH
125222002-02-08 Martin M. Hunt <hunt@redhat.com>
12523
12524 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12525 xaprintf -> xasprintf.
12526
4e52d31c
PM
125272002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12528
12529 * win32-nat.c: Remove use of printf and sprintf functions.
12530
39bbf761
RE
125312002-02-08 Richard Earnshaw <rearnsha@arm.com>
12532
12533 * arm-tdep.c (arm_frame_chain_valid): Make static.
12534 (arm_push_arguments): Likewise.
12535 (arm_gdbarch_init): New function.
12536 (_initialize_arm_tdep): Call it.
12537 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12538 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12539 (FRAME_CHAIN_VALID): Delete.
12540 (arm_frame_chain_valid): Delete declaration.
12541 (PUSH_ARGUMENTS): Delete.
12542 (arm_push_arguments): Delete declaration.
12543 (CALL_DUMMY_P): Delete.
12544
9c9532c9
CV
125452002-02-08 Andrew Cagney <ac131313@redhat.com>
12546 Corinna Vinschen <vinschen@redhat.com>
12547
12548 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12549 on builtin float types.
12550
4e8f7a8b
DJ
125512002-02-08 Daniel Jacobowitz <drow@mvista.com>
12552
12553 * utils.c: Include <curses.h> before "bfd.h".
12554 * tui/tui-hooks.c: Likewise.
12555 * tui/tui.c: Likewise.
12556 * tui/tuiCommand.c: Likewise.
12557 * tui/tuiData.c: Likewise.
12558 * tui/tuiDataWin.c: Likewise.
12559 * tui/tuiDisassem.c: Likewise.
12560 * tui/tuiGeneralWin.c: Likewise.
12561 * tui/tuiIO.c: Likewise.
12562 * tui/tuiLayout.c: Likewise.
12563 * tui/tuiRegs.c: Likewise.
12564 * tui/tuiSource.c: Likewise.
12565 * tui/tuiSourceWin.c: Likewise.
12566 * tui/tuiStack.c: Likewise.
12567 * tui/tuiWin.c: Likewise.
12568
cd4bffcf
EZ
125692002-02-07 Elena Zannoni <ezannoni@redhat.com>
12570
12571 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12572 to include space for pseudoregs as well. Update loops accordingly.
12573 (sh_fp_frame_init_saved_regs): Ditto.
12574 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12575
26806ce2
AC
125762002-02-07 Andrew Cagney <ac131313@redhat.com>
12577
12578 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12579 Add Richard Earnshaw to Arm maintainers.
12580
97fdab62
AC
125812002-02-07 Andrew Cagney <ac131313@redhat.com>
12582
a6b98203
AC
12583 * defs.h (warning_begin): Delete declaration.
12584
97fdab62
AC
12585 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12586 Delete macro.
12587
78b29b40
MS
125882002-02-07 Michael Snyder <msnyder@redhat.com>
12589
aaa38bb5 12590 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
12591 Logic bug, remove misplaced else.
12592
d8849953
KD
125932002-02-07 Klee Dienes <klee@apple.com>
12594
12595 * fork-inferior.c (fork_inferior): Add '!' to the list of
12596 characters that need to be quoted when building a string for the
12597 shell. Quote '!' specifically with a backslash, since CSH chokes
12598 when trying to evaluate "str!str".
aaa38bb5 12599
095778a0
NC
126002002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12601
12602 * rdi-share/host.h: Only provide a typedef for bool if it is not
12603 defined.
12604
1900040c
MS
126052002-02-04 Michael Snyder <msnyder@redhat.com>
12606
12607 * breakpoint.h (enum bptype): Add new overlay event bp type.
12608 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 12609
1900040c
MS
12610 * breakpoint.c (create_internal_breakpoint): New function.
12611 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12612 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12613 (create_thread_event_breakpoint): Ditto.
12614 (create_solib_event_breakpoint): Ditto.
12615 (create_overlay_event_breakpoint): New function.
12616 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12617 (update_breakpoints_after_exec): Delete and re-initialize
12618 overlay event breakpoints after an exec. Add FIXME comment
12619 about longjmp breakpoint.
12620 (print_it_typical): Ignore overlay event breakpoints.
12621 (print_one_breakpoint): Ditto.
12622 (mention): Ditto.
12623 (bpstat_what): Do not stop for overlay event breakpoints.
12624 (delete_breakpoint): Don't delete overlay event breakpoints.
12625 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12626 (breakpoint_re_set): Re-create overlay event breakpoint.
12627
12628 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12629 (overlay_manual_command): Disable overlay breakpoints.
12630 (overlay_off_command): Disable overlay breakpoints.
12631
082fc60d
RE
126322002-02-06 Richard Earnshaw <rearnsha@arm.com>
12633
12634 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12635 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12636 to here from config/tm-arm.h.
12637 (coff_sym_is_thumb): Make static.
12638 (arm_elf_make_msymbol_special): New function.
12639 (arm_coff_make_msymbol_special): New function.
12640 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12641 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12642 (coff_sym_is_thumb): Delete declaration.
12643 (arm_elf_make_msymbol_special): Declare.
12644 (arm_coff_make_msymbol_special): Declare.
12645 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12646 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12647
039c5766
RE
126482002-02-06 Richard Earnshaw <rearnsha@arm.com>
12649
12650 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12651
126522002-02-06 Richard Earnshaw <rearnsha@arm.com>
12653
12654 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12655 * gdbarch.c gdbarch.h: Regenerate.
12656 * arch-utils.c (default_print_float_info): New function.
12657 * arch-utils.h (default_print_float_info): Prototype it.
12658 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12659 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12660 (PRINT_FLOAT_INFO): Document it.
12661
12662 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12663 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12664 (PRINT_FLOAT_INFO): Define.
12665
58fa08f0
PM
126662002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12667
aaa38bb5 12668 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
12669 Add typecast to sprintf argument to suppress a warning.
12670
7393af7c
PM
126712002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12672
58fa08f0 12673 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
12674 to allow easier handling of pass state.
12675 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12676 that gives exception name and address.
12677 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 12678 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 12679 exceptions added.
aaa38bb5
AJ
12680 (child_continue): Correctly report continue_status.
12681 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 12682 TARGET_SIGNAL_0 (new default value).
aaa38bb5 12683 (child_resume): consider sig argument passed to decide if
7393af7c
PM
12684 the exception should be passed to debuggee or not.
12685
6af4589c
MS
126862002-02-05 Michael Snyder <msnyder@redhat.com>
12687
12688 * regcache.c (fetch_register): Call target_fetch_register
12689 only if we don't call FETCH_PSEUDO_REGISTER.
12690 (store_register): Call target_store_register only if we
12691 don't call STORE_PSEUDO_REGISTER.
12692
a2cf933a
EZ
126932002-02-05 Elena Zannoni <ezannoni@redhat.com>
12694
12695 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12696 ELF_MAKE_MSYMBOL_SPECIAL.
12697 * gdbarch.c, gdbarch.h: Regenerate.
12698 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12699 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12700 * elfread.c (elf_symtab_read): Compile use of
12701 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12702 multiarched.
12703 * coffread.c (coff_symtab_read): Ditto, for
12704 COFF_MAKE_MSYMBOL_SPECIAL.
12705
6bb7be43
JB
127062002-02-05 Jim Blandy <jimb@redhat.com>
12707
12708 * solib-svr4.c (svr4_truncate_ptr): New function.
12709 (svr4_relocate_section_addresses): Do the address arithmetic with
12710 the appropriate truncation for target addresses, even when
12711 CORE_ADDR is larger than a target address.
12712
e18651ec
DJ
127132002-02-05 Daniel Jacobowitz <drow@mvista.com>
12714
12715 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12716 to (int *).
12717
6b2725be
DJ
127182002-02-05 Daniel Jacobowitz <drow@mvista.com>
12719
12720 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12721 code.
12722
fca9e603
DJ
127232002-02-05 Daniel Jacobowitz <drow@mvista.com>
12724
12725 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12726
6c537a52
DJ
127272002-02-05 Daniel Jacobowitz <drow@mvista.com>
12728
12729 * gdbserver/linux-low.c: Remove unused include files.
12730
d844cde6
DJ
127312002-02-05 Daniel Jacobowitz <drow@mvista.com>
12732
12733 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12734 (read_inferior_memory): Use it.
12735 (write_inferior_memory): Likewise.
12736
d07c63e7
DJ
127372002-02-05 Daniel Jacobowitz <drow@mvista.com>
12738
12739 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12740 grubbing through sys_errlist.
12741
da6d8c04
DJ
127422002-02-05 Daniel Jacobowitz <drow@mvista.com>
12743
12744 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12745
5b421780
PM
127462002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12747 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12748
9f60d481
AC
127492002-02-04 Andrew Cagney <ac131313@redhat.com>
12750
12751 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12752 (do_sfunc, set_cmd_sfunc): New functions.
12753
12754 * command.h (struct cmd_list_element): Add field func.
12755 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12756 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12757 * cli/cli-decode.h: Ditto.
12758
12759 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12760 (help_all, help_cmd_list): Ditto.
12761 (find_cmd, complete_on_cmdlist): Ditto.
12762 * top.c (execute_command): Ditto.
12763
12764 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12765 function.sfunc.
12766
12767 * infcmd.c (notice_args_read): Fix function signature.
12768
12769 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12770 * cli/cli-decode.c (add_set_cmd): Ditto.
12771 * utils.c (initialize_utils): Ditto.
12772 * maint.c (_initialize_maint_cmds): Ditto.
12773 * infrun.c (_initialize_infrun): Ditto.
12774 * demangle.c (_initialize_demangler): Ditto.
12775 * remote.c (add_packet_config_cmd): Ditto.
12776 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12777 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12778 * proc-api.c (_initialize_proc_api): Ditto.
12779 * kod.c (_initialize_kod): Ditto.
12780 * valprint.c (_initialize_valprint): Ditto.
12781 * top.c (init_main): Ditto.
12782 * infcmd.c (_initialize_infcmd): Ditto.
12783 * corefile.c (_initialize_core): Ditto.
12784 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12785 * arch-utils.c (initialize_current_architecture): Ditto.
12786 (_initialize_gdbarch_utils): Ditto.
12787 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12788
12789 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12790 * wince.c (_initialize_inftarg): Ditto.
12791 * symfile.c (_initialize_symfile): Ditto.
12792 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12793 * language.c (_initialize_language): Ditto.
12794 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12795
f9ba0717
MS
127962002-02-04 Michael Snyder <msnyder@redhat.com>
12797
12798 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12799
0c74b2a7
DJ
128002002-02-04 Daniel Jacobowitz <drow@mvista.com>
12801
12802 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12803 Add rules for building the register data files.
12804
c638789f
DJ
128052002-02-04 Daniel Jacobowitz <drow@mvista.com>
12806
12807 * regformats/regdat.sh: Add braces to the definition of
12808 expedite_regs_${arch}.
12809
db253027
DJ
128102002-02-04 Daniel Jacobowitz <drow@mvista.com>
12811
12812 * regformats/regdef.h (struct reg): Add comment describing the
12813 requirements for offset and size fields.
12814
206be19c
AS
128152002-02-04 Andreas Schwab <schwab@suse.de>
12816
12817 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12818 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12819
181c1381
RE
128202002-02-04 Richard Earnshaw <rearnsha@arm.com>
12821
12822 * gdbarch.sh (copyright): Update years in generated header.
12823 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12824 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12825 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12826 * dbxread.c: Likewise.
12827 * dwarfread.c: Likewise.
12828 * elfread.c: Likewise.
12829 * somread.c: Likewise.
12830
12831 * arm-tdep.c (arm_smash_text_address): New function.
12832 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12833
fa4ba8da
PM
128342002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12835
12836 Add support for hardware watchpoints on win32 native.
aaa38bb5 12837 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12838 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12839 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12840 of debug registers.
12841 (debug_registers_changed): New variable. Reflects when debug registers
12842 are changed and need to be written to inferior.
aaa38bb5 12843 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12844 was set, used when new threads are created.
12845 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12846 i386-nat code.
12847 (thread_rec): Set dr array if id is the thread of current_event .
12848 (child_continue, child_resume): Change the debug registers for all
12849 threads if debug_registers_changed.
12850 (child_add_thread): Change the debug registers if debug_registers_used.
12851 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12852 Link nm.h to new nm-cygwin.h file.
12853 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12854 of hardware registers.
12855
a73c86fb
AC
128562002-02-03 Andrew Cagney <ac131313@redhat.com>
12857
12858 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12859 Restore behavour broken by 2002-01-20 Andrew Cagney
12860 <ac131313@redhat.com> IEEE_FLOAT removal.
12861
acf5ed49
DJ
128622002-02-03 Daniel Jacobowitz <drow@mvista.com>
12863
12864 * c-valprint.c (c_val_print): Pass a proper valaddr to
12865 cp_print_class_method.
12866 * valops.c (search_struct_method): If there is only one method
12867 and args is NULL, return that method.
12868
493d28d5
DJ
128692002-02-03 Daniel Jacobowitz <drow@mvista.com>
12870
12871 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12872 accessing tag_name directly.
12873
7495dfdb
DJ
128742002-02-03 Daniel Jacobowitz <drow@mvista.com>
12875
12876 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12877 of accessing tag_name directly.
12878
dd6bda65
DJ
128792002-02-03 Daniel Jacobowitz <drow@mvista.com>
12880
12881 PR gdb/280
12882 * gdbtypes.c (replace_type): New function.
12883 * gdbtypes.h (replace_type): Add prototype.
12884 * stabsread.c (read_type): Use replace_type.
12885
88fe217c
RE
128862002-02-03 Richard Earnshaw <rearnsha@arm.com>
12887
12888 * Makefile.in (memattr.o): Add missing dependencies rule.
12889
e5d66720
PS
128902002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12891
12892 * breakpoint.c (break_at_finish_command): Really export.
12893 (break_at_finish_at_depth_command): Ditto.
12894 (tbreak_at_finish_command): Ditto.
12895 * hppa-tdep.c: Include completer.h.
12896 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12897 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12898
fffee0be
AC
128992002-02-01 Andrew Cagney <ac131313@redhat.com>
12900
12901 * utils.c (do_write): New function.
12902 (error_stream): Rewrite combining the code from error_begin and
12903 verror.
12904 (verror): Rewrite using error_stream.
12905 (error_begin): Delete function.
12906
255e7dbf
AC
129072002-02-01 Andrew Cagney <ac131313@redhat.com>
12908
12909 * utils.c (error_begin): Make static.
12910 * defs.h (error_begin): Delete declaration.
12911
12912 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12913 (decode_line_1): Use cplusplus_error instead of error_begin,
12914 cplusplus_hint and return_to_top_level.
12915 * coffread.c (coff_symfile_read): Use error instead of error_begin
12916 and return_to_top_level.
12917 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12918
ddfe3c15
AC
129192002-02-01 Andrew Cagney <ac131313@redhat.com>
12920
12921 * language.h (type_error, range_error): Make string parameter
12922 constant.
12923 * language.c (warning_pre_print): Delete extern declaration.
12924 * dwarfread.c (warning_pre_print): Ditto.
12925 * language.c (type_error, range_error): Rewrite to use verror and
12926 vwarning instead of warning_begin.
12927
03ac34d5
MS
129282002-02-01 Michael Snyder <msnyder@redhat.com>
12929
261c4ca2
MS
12930 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12931 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12932
e00d1dc8
AC
129332002-02-01 Andrew Cagney <ac131313@redhat.com>
12934
12935 * command.h (NO_FUNCTION): Delete macro.
12936 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12937 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12938 * tracepoint.c (_initialize_tracepoint): Ditto.
12939 * cli/cli-decode.c (add_set_cmd): Ditto.
12940 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12941
76b79d6e
DJ
129422002-02-01 Daniel Jacobowitz <drow@mvista.com>
12943
12944 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12945 Update ``this'' pointer when calling virtual functions.
12946
799f9e91
MS
129472002-02-01 Michael Snyder <msnyder@redhat.com>
12948
c7bd442c 12949 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12950 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12951
3cf384d4
DJ
129522002-02-01 Daniel Jacobowitz <drow@mvista.com>
12953
12954 * regformats/reg-arm.dat: New file.
12955 * regformats/reg-i386.dat: New file.
12956 * regformats/reg-ia64.dat: New file.
12957 * regformats/reg-m68k.dat: New file.
12958 * regformats/reg-mips.dat: New file.
12959 * regformats/reg-ppc.dat: New file.
12960 * regformats/reg-sh.dat: New file.
12961 * regformats/regdef.h: New file.
12962 * regformats/regdat.sh: New file.
12963
0defa245
RE
129642002-02-01 Richard Earnshaw <reanrsha@arm.com>
12965
12966 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12967 (arm_frame_args_address, arm_frame_locals_address): New functions.
12968 (arm_frame_num_args): New function.
12969 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12970 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12971 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12972
405f26e6
MS
129732002-01-31 Michael Snyder <msnyder@redhat.com>
12974
502fd408
MS
12975 * breakpoint.c (break_at_finish_command): Export.
12976 (break_at_finish_at_depth_command): Export.
12977 (tbreak_at_finish_command): Export.
d6020d45 12978 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12979 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12980 "txbreak" commands, which are HPPA specific.
502fd408 12981
7d35e135
MS
12982 * printcmd.c (disassemble_command): Remove an ancient
12983 artifact of an old merge.
12984
aaa38bb5 12985 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12986 Define enum constant values for overlay mode.
12987 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12988 (overlay_is_mapped, overlay_auto_command,
12989 overlay_manual_command): Ditto.
d874f1e2 12990
aaa38bb5
AJ
12991 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12992 breakpoint_here_p, breakpoint_inserted_here_p,
12993 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12994 describe_other_breakpoints, check_duplicates, clear_command):
12995 Coding standard fixes.
12996
8add0441 12997 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12998 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12999 code: check bfd SEC_READONLY flag for section.
13000
e351066e
AC
130012002-01-31 Andrew Cagney <ac131313@redhat.com>
13002
7d35e135 13003 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 13004
8a48e967
DJ
130052002-01-30 Daniel Jacobowitz <drow@mvista.com>
13006
13007 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13008 data symbols, since we search based on textlow and texthigh.
13009 (find_pc_sect_symtab): Likewise.
13010
f5a96129
AC
130112002-01-30 Andrew Cagney <ac131313@redhat.com>
13012
13013 * defs.h (vwarning): Declare.
f5a96129
AC
13014 * utils.c (vwarning): New function.
13015 (warning): Call vwarning.
13016 (warning_begin): Delete function.
13017
13018 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13019 the warning message.
13020 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13021 warning_begin.
13022
cefd4ef5
MS
130232002-01-30 Michael Snyder <msnyder@redhat.com>
13024
1a703748
MS
13025 * NEWS: Mention "set trust-readonly-sections" command.
13026 Mention generate-core-file command.
cefd4ef5 13027
3a11626d
MS
130282002-01-15 Michael Snyder <msnyder@redhat.com>
13029
13030 * target.c: New command, "set trust-readonly-sections on".
13031 (do_xfer_memory): Honor the suggestion to trust readonly sections
13032 by reading them from the object file instead of from the target.
13033 (initialize_targets): Register command "set trust-readonly-sections".
13034
d1c7e53b
AC
130352002-01-29 Andrew Cagney <ac131313@redhat.com>
13036
13037 * parse.c (target_map_name_to_register): Simplify, search regs and
13038 pseudo-regs using a single loop.
13039
e2c9a72c
AC
130402002-01-30 Andrew Cagney <ac131313@redhat.com>
13041
13042 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13043
69824b4e
MK
130442002-01-15 Rodney Brown <rbrown64@csc.com.au>
13045
13046 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13047 * config/i386/i386v42mp.mh: Add i387-nat.o .
13048 * i386v4-nat.c: Include i387-nat.h.
13049 (supply_fpregset): Use i387_supply_fsave.
13050 (fill_fpregset): Use i387_fill_fsave.
13051
6eb69eab
RE
130522002-01-30 Richard Earnshaw <rearnsha@arm.com>
13053
13054 * arm-tdep.c (arm_call_dummy_words): Define.
13055 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13056 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13057 (CALL_DUMMY_WORDS): Define.
13058 (arm_call_dummy_words): Declare.
13059 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13060 (arm_linux_call_dummy_words): Declare.
13061
9852326a
AS
130622002-01-30 Andreas Schwab <schwab@suse.de>
13063
13064 * m68klinux-nat.c: Fix last change to use regcache_collect
13065 instead of referencing registers[] directly.
13066
977a3030
AC
130672002-01-29 Andrew Cagney <ac131313@redhat.com>
13068
13069 * parse.c (target_map_name_to_register): Delete code wrapped in
13070 #ifdef REGISTER_NAME_ALIAS_HOOK.
13071
2076c72b
MS
130722002-01-28 Michael Snyder <msnyder@redhat.com>
13073
13074 * regcache.c (legacy_read_register_gen): Need to be able to
13075 read pseudo-register as well as real register.
13076 (legacy_write_register_gen): Ditto.
13077
8fcc723b
AC
130782002-01-28 Andrew Cagney <ac131313@redhat.com>
13079
13080 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13081 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13082 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13083 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13084 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13085 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13086 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13087 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13088 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13089 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13090 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13091 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13092 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13093 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13094 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13095 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13096 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13097 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13098 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13099 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13100
afe64c1a
AC
131012002-01-28 Andrew Cagney <ac131313@redhat.com>
13102
13103 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13104 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13105 (initialize_current_architecture): Update target_byte_order using
13106 information from BFD.
aaa38bb5 13107 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
13108 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13109
75bc7ddf
AC
131102002-01-28 Andrew Cagney <ac131313@redhat.com>
13111
13112 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13113 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13114
13115 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13116 #ifdef INVALID_FLOAT.
13117 * infcmd.c (do_registers_info): Ditto.
13118 * values.c (unpack_double): Ditto. Add comment.
13119
13120 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13121 already commented out.
13122
0280a90a
AS
131232002-01-26 Andreas Schwab <schwab@suse.de>
13124
13125 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13126 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13127 registers and add support for PTRACE_GETREGS.
13128
7072a954
AC
131292002-01-24 Andrew Cagney <ac131313@redhat.com>
13130
13131 GDB 5.1.1 released from 5.1 branch.
13132 * NEWS: Add 5.1.1 news.
13133 * README: Sync with 5.1 branch.
13134
86f902e0
FF
131352002-01-23 Fred Fish <fnf@redhat.com>
13136
13137 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13138 stabstring on initial malloc. Reallocing will copy it for us,
13139 if necessary.
13140
8af51c36
EZ
131412002-01-23 Elena Zannoni <ezannoni@redhat.com>
13142
aaa38bb5 13143 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
13144 (HFILES_NO_SRCDIR): Remove hpread.h.
13145 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13146 (hpread.o): Update dependencies.
13147 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13148
13149 * hp-psymtab-read.c: Remove file.
13150 * hp-symtab-read.c: Remove file.
13151 * hpread.h: Remove file.
13152
13153 * hpread.c: Merge all contents of hp-psymtab-read.c,
13154 hp-symtab-read.c and hpread.h into this file, as it was prior to
13155 January 1999.
13156
13157 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 13158 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
13159 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13160 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13161
dc5cfeb6
EZ
131622002-01-23 Elena Zannoni <ezannoni@redhat.com>
13163
13164 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13165 fill_gregset): Call gdbarch_tdep() just once, assign result to
13166 variable and use that, instead of calling the function several
13167 times.
13168
ea87b71b
AO
131692002-01-24 Alexandre Oliva <aoliva@redhat.com>
13170
13171 * configure.host: Accept sparcv9 as alias for sparc64.
13172 * configure.tgt: Likewise.
13173
13fc0c2f
KB
131742002-01-22 Kevin Buettner <kevinb@redhat.com>
13175
13176 * solib-aix5.c (build_so_list_from_mapfile)
13177 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13178 arguments is not reversed.
13179 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13180 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 13181
7bd872fe
EZ
131822002-01-22 Elena Zannoni <ezannoni@redhat.com>
13183
13184 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13185 modified version of obsolete sh_fetch_pseudo_register.
13186 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13187 (sh4_register_read): New function.
13188 (sh_pseudo_register_write): New function. Renamed and modified
13189 version of obsolete sh_store_pseudo_register.
13190 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13191 (sh4_register_write): New function.
13192 (sh_gdbarch_init): Remove setting of gdbarch function
13193 fetch_pseudo_register and store_pseudo_register. Remove setting of
13194 register_convert_to_raw, register_convert_to_virtual,
13195 register_convertible.
13196 (sh_sh4_register_convertible): Delete. No longer needed. All is
13197 taken care by architecture specific functions
13198 register_read/register_write.
13199 (sh_sh4_register_convert_to_virtual): Make static.
13200 (sh_sh4_register_convert_to_raw): Ditto.
13201
069e84fd
AC
132022002-01-22 Andrew Cagney <ac131313@redhat.com>
13203
13204 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13205 (floatformat_is_nan, floatformat_mantissa): Ditto.
13206
13207 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13208 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13209 builtin_type_ieee_double_little,
13210 builtin_type_ieee_double_littlebyte_bigword,
13211 builtin_type_m68881_ext, builtin_type_i960_ext,
13212 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13213 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13214 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13215 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13216
211a4f69
CV
132172002-01-22 Corinna Vinschen <vinschen@redhat.com>
13218
13219 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13220 parameter. Set frameless flag if it exists and depended of
13221 whether the scanned function is frameless or not.
13222 (xstormy16_skip_prologue): If function is frameless, return
13223 result of xstormy16_scan_prologue().
13224 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13225 call.
13226
f81353e4
EZ
132272002-01-21 Elena Zannoni <ezannoni@redhat.com>
13228
13229 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13230 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13231 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13232 sh_sh4_register_byte, sh_sh4_register_raw_size,
13233 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13234 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13235 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13236 sh_store_pseudo_register, sh_do_pseudo_register): Call
13237 gdbarch_tdep() just once, assign result to variable and use that,
13238 instead of calling the function several times.
13239
63c73a17
MK
132402002-01-20 Mark Kettenis <kettenis@gnu.org>
13241
13242 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13243 macros instead of LAST_FPU_CTRL_REGNUM.
13244 (store_register): Likewise.
13245
39ad761d
JB
132462002-01-21 Jim Blandy <jimb@redhat.com>
13247
13248 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13249 is up-to-date before running the program, not just when a program
13250 exits.
13251
3d74b771
FF
132522002-01-21 Fred Fish <fnf@redhat.com>
13253
13254 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13255 when we have found all instructions we are looking for.
13256
966fbf70
RE
132572002-01-21 Richard Earnshaw <rearnsha@arm.com>
13258
13259 * arm-tdep.c (arm_register_name): New function.
13260 (arm_registers_names): Make static.
13261 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13262 (arm_register_name): Declare.
13263 (REGISTER_NAME): Use it.
13264
c3b4394c
RE
132652002-01-21 Richard Earnshaw <rearnsha@arm.com>
13266 Kevin Buettner <kevinb@redhat.com>
13267
13268 Convert arm targets to new FRAME interface.
13269 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13270 (arm_frame_find_save_regs): Delete.
13271 (arm_frame_init_saved_regs): New.
13272 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13273 Allocate extra_info as required. Convert all uses of fsr.regs
13274 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13275 to use extra_info.
13276 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13277 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13278 (check_prologue_cache, save_prologue_cache): Likewise.
13279 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13280 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13281 (FRAME_FIND_SAVED_REGS): Delete.
13282 (arm_frame_find_saved_regs): Delete prototype.
13283 (arm_frame_init_saved_regs): New prototype.
13284 (FRAME_INIT_SAVED_REGS): Define.
13285
61d99182
AC
132862002-01-20 Andrew Cagney <ac131313@redhat.com>
13287
13288 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13289
6aaea291
AC
132902002-01-20 Andrew Cagney <ac131313@redhat.com>
13291
13292 From Jeff Law <law@redhat.com>:
13293 * infttrace.c: Include <sys/pstat.h>.
13294 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13295 exec file if the ttrace equivalent fails.
13296
15f698d2
AC
132972002-01-20 Andrew Cagney <ac131313@redhat.com>
13298
13299 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13300 (closeLogFile): Ditto.
13301
f86ddd7c
MC
133022002-01-20 Michael Chastain <mec@shout.net>
13303
13304 * top.c (print_gdb_version): Bump copyright year to 2002.
13305
904507ce
AC
133062002-01-20 Andrew Cagney <ac131313@redhat.com>
13307
13308 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13309 Zannoni and Eli Zaretskii.
13310
d7f0b9ce
DJ
133112002-01-20 Daniel Jacobowitz <drow@mvista.com>
13312
13313 * buildsym.c: Update copyright years.
13314 * c-typeprint.c: Likewise.
13315 * dwarf2read.c: Likewise.
13316 * f-typeprint.c: Likewise.
13317 * gdbtypes.c: Likewise.
13318 * gdbtypes.h: Likewise.
13319 * hp-symtab-read.c: Likewise.
13320 * hpread.c: Likewise.
13321 * mdebugread.c: Likewise.
13322 * p-typeprint.c: Likewise.
13323
3fd3d7d2
AC
133242002-01-20 Andrew Cagney <ac131313@redhat.com>
13325
13326 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13327 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13328 byte-order selectable.
13329 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13330 * arch-utils.c: Ditto.
13331 (set_endian): Ditto.
13332 (set_endian_from_file): Ditto.
13333 * gdbserver/low-sim.c (create_inferior): Ditto.
13334 * gdbarch.sh: Ditto.
13335 * gdbarch.h: Re-generate.
aaa38bb5
AJ
13336 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13337 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13338 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13339 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13340 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13341 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13342 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
13343 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13344 macro definition.
13345 * config/mips/tm-wince.h: Remove #undef of macro
13346 TARGET_BYTE_ORDER_SELECTABLE.
13347 * config/sh/tm-wince.h: Ditto.
13348
b02dede2
DJ
133492002-01-20 Daniel Jacobowitz <drow@mvista.com>
13350
13351 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13352 member function fields. Add accessor macro
13353 TYPE_FN_FIELD_ARTIFICIAL.
13354 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13355 * c-typeprint.c (c_type_print_base): Skip artificial member
13356 functions.
13357
c3643761
DJ
133582002-01-20 Daniel Jacobowitz <drow@mvista.com>
13359
13360 * f-typeprint.c: Delete unused function f_type_print_args.
13361 * p-typeprint.c: Delete unused function pascal_type_print_args.
13362
8176bb6d
DJ
133632002-01-20 Daniel Jacobowitz <drow@mvista.com>
13364
13365 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13366 comment. Add ``artificial'' to ``union field_location''.
13367
13368 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13369
13370 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13371 * mdebugread.c (parse_symbol): Likewise.
13372 * stabsread.c (define_symbol): Likewise.
13373 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13374 initializing TYPE_FIELD_BITPOS to n (obsolete).
13375 (hpread_doc_function_type): Likewise.
13376 * hpread.c (hpread_function_type): Likewise.
13377
7fd60527
AC
133782002-01-20 Andrew Cagney <ac131313@redhat.com>
13379
13380 * configure.in (host_makefile_frag): Only require a host makefile
13381 fragment when a native build.
13382 * configure: Re-generate.
13383
c2f05ac9
AC
133842002-01-20 Andrew Cagney <ac131313@redhat.com>
13385
13386 * doublest.h (floatformat_from_type): Declare.
13387 * doublest.c (floatformat_from_type): New function.
13388 (convert_typed_floating): Use.
13389
13390 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13391 call to function floatformat_from_type.
13392
13393 * gdbarch.sh (IEEE_FLOAT): Delete.
13394 * gdbarch.h, gdbarch.c: Re-generate.
13395 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13396 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13397 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13398 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13399 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13400 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13401 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13402 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13403 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13404 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13405 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
13406 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13407
13408 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13409 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13410 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13411 * sh-tdep.c (sh_gdbarch_init): Ditto.
13412 * mips-tdep.c (mips_gdbarch_init): Ditto.
13413 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13414 * cris-tdep.c (cris_gdbarch_init): Ditto.
13415
abf22e64
AJ
134162002-01-20 Jiri Smid <smid@suse.cz>
13417
13418 * configure.host, configure.tgt: Support x86-64.
13419 * NEWS: Note new target x86-64.
13420
b7c4cbf8
AJ
13421 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13422 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13423 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13424 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13425 x86-64-linux-nat.o): Fix dependencies.
13426
82600034
AC
134272002-01-19 Andrew Cagney <ac131313@redhat.com>
13428
13429 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13430 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13431 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13432 * config/sparc/xm-sun4os4.h: Delete file.
13433 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 13434
bbe5c628
AC
134352002-01-19 Andrew Cagney <ac131313@redhat.com>
13436
13437 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13438 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13439 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13440 * config/i386/i386lynx.mh (XM_FILE): Delete.
13441 * config/rs6000/xm-rs6000ly.h: Delete file.
13442 * config/sparc/xm-sparclynx.h: Delete file.
13443 * config/m68k/xm-m68klynx.h: Delete file.
13444 * config/i386/xm-i386lynx.h: Delete file.
13445 * config/xm-lynx.h: Delete file.
13446 * config/djgpp/fnchange.lst: Update.
13447
f8453e34
JT
134482002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13449
13450 * alpha-tdep.c (alpha_register_byte): New function.
13451 (alpha_register_raw_size): Ditto.
13452 (alpha_register_virtual_size): Ditto.
13453 (alpha_skip_prologue_internal): Renamed from
13454 alpha_skip_prologue.
13455 (alpha_skip_prologue): New version that calls
13456 alpha_skip_prologue_internal.
13457 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13458 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13459 second argument from alpha_skip_prologue.
13460 (REGISTER_BYTE): Use alpha_register_byte.
13461 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13462 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13463 (FRAMELESS_FUNCTION_INVOCATION): Use
13464 generic_frameless_function_invocation_not.
13465 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13466 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13467
52d9e613
AC
134682002-01-19 Andrew Cagney <ac131313@redhat.com>
13469
13470 * config/mips/xm-news-mips.h: Delete file.
13471 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13472
13473 * config/m88k/xm-m88k.h: Delete file.
13474 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13475 * config/m88k/xm-delta88v4.h: Ditto.
13476 * config/m88k/xm-delta88.h: Ditto.
13477
13478 * config/alpha/xm-fbsd.h: Delete file.
13479 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13480
13481 * config/sparc/xm-sparc.h: Delete file.
13482 * Makefile.in (xm-sun4os4.h): Delete dependency.
13483 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13484 * config/sparc/xm-sun4os4.h: Ditto.
13485 * config/sparc/xm-linux.h: Ditto.
13486
13487 * config/i386/xm-windows.h: Delete file.
13488
2d1b2124
AC
134892002-01-19 Andrew Cagney <ac131313@redhat.com>
13490
13491 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13492 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13493
ee1f65f0
JT
134942002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13495
13496 * alpha-tdep.c (alpha_call_dummy_words): New.
13497 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13498 (CALL_DUMMY_P): Define.
13499 (CALL_DUMMY_WORDS): Define.
13500 (SIZEOF_CALL_DUMMY_WORDS): Define.
13501
98081e55
PB
135022002-01-19 Per Bothner <per@bothner.com>
13503
13504 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13505 isn't NULL, which can happen with some gcj-3.x-produced code.
13506
0d056799
JT
135072002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13508
13509 * alpha-tdep.c (alpha_register_virtual_type): New function.
13510 (alpha_init_frame_pc_first): Ditto.
13511 (alpha_fix_call_dummy): Ditto.
13512 (alpha_store_struct_return): Ditto.
13513 (alpha_extract_struct_value_address): Ditto.
13514 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13515 alpha_register_virtual_type.
13516 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13517 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13518 alpha_extract_struct_value_address.
13519 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13520 (INIT_FRAME_PC): Use init_frame_pc_noop.
13521 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13522
4604bcad
MK
135232002-01-19 Mark Kettenis <kettenis@gnu.org>
13524
13525 * i386gnu-nat.c: Include "i386-tdep.h".
13526 (fetch_fpregs): Simplify code dealing with uninitialized floating
13527 point states such that it doesn't require FP7_REGNUM.
13528
140f9984
JT
135292002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13530
abf22e64
AJ
13531 * alpha-tdep.c (frame_extra_info): New.
13532 (alpha_find_saved_regs): Make static. Use
140f9984
JT
13533 frame->extra_info.
13534 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
13535 (alpha_frame_saved_pc): Use frame->extra_info.
13536 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13537 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
13538 (init_extra_frame_info): Rename to...
13539 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 13540 (alpha_print_extra_frame_info): New function.
140f9984
JT
13541 (alpha_frame_locals_address): Ditto.
13542 (alpha_frame_args_address): Ditto.
abf22e64 13543 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
13544 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13545 alpha_frame_args_address.
abf22e64 13546 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 13547 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
13548 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13549 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
13550 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13551 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13552
d734c450
JT
135532002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13554
13555 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13556 (alpha_cannot_fetch_register): Ditto.
13557 (alpha_cannot_store_register): Ditto.
13558 (alpha_register_convertible): Ditto.
13559 (alpha_use_struct_convention): Ditto.
13560 * config/alpha/tm-alpha.h: Update copyright years.
13561 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13562 (INNER_THAN): Use core_addr_lessthan.
13563 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13564 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13565 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13566 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13567 (FRAME_CHAIN): Remove unnecessary cast.
13568
b4ceaee6
AC
135692002-01-18 Andrew Cagney <ac131313@redhat.com>
13570
13571 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13572 obsolete.
13573
0a65a603
AC
135742002-01-18 Andrew Cagney <ac131313@redhat.com>
13575
13576 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13577 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13578 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13579 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13580 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13581 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13582 * x86-64-linux-nat.c: Ditto.
13583
636a6dfc
JT
135842002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13585
abf22e64 13586 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
13587 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13588 (REGISTER_NAME): Define.
13589
acceddb6
JT
135902002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13591
13592 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13593
ec32e4be
JT
135942002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13595
13596 * alpha-tdep.c: Update copyright years.
13597 (alpha_next_pc): New function.
13598 (alpha_software_single_step): Ditto.
13599 * config/alpha/tm-alpha.h: Add prototype for
13600 alpha_software_single_step.
13601
e771a871
JT
136022002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13603
13604 * alphabsd-nat.c: Update copyright years.
13605 (fill_gregset): Use regcache_collect.
13606 (fill_fpregset): Likewise.
13607 (fetch_inferior_registers): Only fetch integer registers
13608 if requested to do so.
13609 (store_inferior_registers): Only store integer registers
13610 if requested to do so.
13611
7708fa01
AC
136122002-01-17 Andrew Cagney <ac131313@redhat.com>
13613
13614 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13615 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13616 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13617 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13618 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13619 * config/arm/linux.mh (XDEPFILES): Delete.
13620 * config/arm/nbsd.mh (XDEPFILES): Delete.
13621 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13622 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13623 * config/i386/i386m3.mh (XDEPFILES): Delete.
13624 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13625 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13626 * config/i386/fbsd.mh (XDEPFILES): Delete.
13627 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13628 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13629 * config/i386/i386v4.mh (XDEPFILES): Delete.
13630 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13631 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13632 * config/i386/i386aix.mh (XDEPFILES): Delete.
13633 * config/i386/go32.mh (XDEPFILES): Delete.
13634 * config/i386/cygwin.mh (XDEPFILES): Delete.
13635 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13636 * config/i386/i386mach.mh (XDEPFILES): Delete.
13637 * config/i386/i386v32.mh (XDEPFILES): Delete.
13638 * config/i386/linux.mh (XDEPFILES): Delete.
13639 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13640 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13641 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13642 * config/i386/i386sco.mh (XDEPFILES): Delete.
13643 * config/i386/i386v.mh (XDEPFILES): Delete.
13644 * config/i386/nbsd.mh (XDEPFILES): Delete.
13645 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13646 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13647 * config/i386/symmetry.mh (XDEPFILES): Delete.
13648 * config/i386/obsd.mh (XDEPFILES): Delete.
13649 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13650 * config/ia64/linux.mh (XDEPFILES): Delete.
13651 * config/ia64/aix.mh (XDEPFILES): Delete.
13652 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13653 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13654 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13655 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13656 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13657 * config/m68k/linux.mh (XDEPFILES): Delete.
13658 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13659 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13660 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13661 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13662 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13663 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13664 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13665 * config/m88k/delta88.mh (XDEPFILES): Delete.
13666 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13667 * config/m88k/m88k.mh (XDEPFILES): Delete.
13668 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13669 * config/mips/linux.mh (XDEPFILES): Delete.
13670 * config/mips/irix6.mh (XDEPFILES): Delete.
13671 * config/mips/irix5.mh (XDEPFILES): Delete.
13672 * config/mips/irix4.mh (XDEPFILES): Delete.
13673 * config/mips/irix3.mh (XDEPFILES): Delete.
13674 * config/mips/decstation.mh (XDEPFILES): Delete.
13675 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13676 (NATDEPFILES): Move core-aout.o to here.
13677 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13678 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13679 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13680 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13681 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13682 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13683 * config/pa/hpux11.mh (XDEPFILES): Delete.
13684 * config/powerpc/aix.mh (XDEPFILES): Delete.
13685 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13686 * config/powerpc/linux.mh (XDEPFILES): Delete.
13687 * config/romp/rtbsd.mh: Rename XDEPFILES.
13688 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13689 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13690 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13691 * config/s390/s390.mh (XDEPFILES): Delete.
13692 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13693 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13694 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13695 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13696 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13697 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13698 * config/sparc/linux.mh (XDEPFILES): Delete.
13699 * config/vax/vaxult.mh (XDEPFILES): Delete.
13700 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13701 * Makefile.in (DEPFILES): Remove XDEPFILES.
13702
375fc983
AC
137032002-01-17 Andrew Cagney <ac131313@redhat.com>
13704
13705 * utils.c (internal_verror): Fix comments, default is yes not no.
13706 Update queries to match. Default to quit and dump core.
13707
8926118c
AC
137082002-01-17 Andrew Cagney <ac131313@redhat.com>
13709
13710 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13711 copyright.
13712 * defs.h, event-top.c, gdbcmd.h: Ditto.
13713 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13714 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13715 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13716 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13717 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13718 * mi/mi-main.c:Ditto.
13719
13720 * stack.c, symfile.c: Update copyright.
13721
45b7b345
DJ
137222002-01-17 Daniel Jacobowitz <drow@mvista.com>
13723
db728ff7
DJ
13724 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13725 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13726 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13727 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 13728
db728ff7
DJ
137292002-01-17 Daniel Jacobowitz <drow@mvista.com>
13730
13731 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13732 * gdbserver/low-lynx.c (myattach): Likewise.
13733 * gdbserver/low-nbsd.c (myattach): Likewise.
13734 * gdbserver/low-sim.c (myattach): Likewise.
13735 * gdbserver/low-sparc.c (myattach): Likewise.
13736 * gdbserver/low-sun3.c (myattach): Likewise.
13737
13738 * gdbserver/low-linux.c (myattach): New function.
45b7b345 13739
db728ff7 13740 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
13741 (main): Handle "--attach".
13742
8de3c354
AC
137432002-01-16 Andrew Cagney <ac131313@redhat.com>
13744
13745 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13746 maintainer.
13747
b0129042
DJ
137482002-01-15 Daniel Jacobowitz <drow@mvista.com>
13749
13750 * c-typeprint.c (is_type_conversion_operator): Add additional
13751 check for non-conversion operators.
13752
ba8679fb 137532002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
13754
13755 * linux-proc.c: Add "info proc" command, a la procfs.c.
13756 (read_mapping): New function, abstract and re-use code.
13757 (linux_find_memory_regions): Use new func read_mapping.
13758 (linux_info_proc_cmd): New function, implement "info proc".
13759 (_initialize_linux_proc): Add new command "info proc".
13760
e4f9b4d5
MS
137612002-01-15 Michael Snyder <msnyder@redhat.com>
13762
13763 * symfile.c (generic_load): Use bfd_map_over_sections method
13764 instead of manipulating bfd structure members directly.
13765 (add_section_size_callback): New function, bfd sections callback
13766 used by generic_load.
13767 (load_sections_callback): New function, bfd sections callback
13768 used by generic_load.
13769
08cf96df
EZ
137702002-01-15 Elena Zannoni <ezannoni@redhat.com>
13771
abf22e64 13772 [Based on work by Jim Blandy]
08cf96df
EZ
13773 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13774 (builtin_type_vec128): Export.
13775 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13776 types.
13777 (builtin_type_vec128): New builtin type for 128 bit vector
13778 registers.
13779 (build_gdbtypes): Initialize builtin_type_v16qi and
13780 builtin_type_v8hi. Create the vec128 register builtin type
13781 structure.
13782 (build_builtin_type_vec128): New function.
abf22e64 13783 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13784 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13785 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13786 AltiVec register to new builtin type.
13787
d7242108
DJ
137882001-01-15 Daniel Jacobowitz <drow@mvista.com>
13789
13790 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13791 to make_cv_type.
13792
4ee3352d
AC
137932002-01-14 Andrew Cagney <ac131313@redhat.com>
13794
13795 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13796 CLEAN_UP_REGISTER_VALUE.
13797 * regcache.c (supply_register): Update only call.
13798
f015b2e7
AC
137992002-01-14 Andrew Cagney <ac131313@redhat.com>
13800
13801 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13802 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13803 a29k-*-vxworks* targets as obsolete.
13804
356ae49d
MS
138052002-01-14 Michael Snyder <msnyder@redhat.com>
13806
13807 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13808 until we can resolve portability issues.
13809 * gregset.h: Remove references to fpxregs.
13810 * gcore.c (gcore_command): Initialize note_sec to NULL.
13811
ade8f45e
AC
138122002-01-13 Andrew Cagney <ac131313@redhat.com>
13813
13814 * signals.c (target_signal_to_name): Rewrite. Only use
13815 signals[].name when in bounds and non-NULL.
abf22e64 13816
89c49e7a
AC
138172002-01-13 Andrew Cagney <ac131313@redhat.com>
13818
13819 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13820 * signals.c (target_signal_to_name): Verify that SIG is within the
13821 bounds of the signals array.
13822
4daa9f9f
AC
138232002-01-13 Andrew Cagney <ac131313@redhat.com>
13824
13825 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13826
ba4bbdcb
KS
138272002-01-13 Keith Seitz <keiths@redhat.com>
13828
13829 * stack.c (print_frame_info_base): Print the frame's pc
13830 only if when print_frame_info_listing_hook is not defined.
13831
575bbeb6
KS
138322002-01-13 Keith Seitz <keiths@redhat.com>
13833
13834 * varobj.c (varobj_set_value): Make sure that there were no
13835 errors evaluating the object before attempting to set its
13836 value.
13837 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13838 so this offset adjustment is no longer necessary.
13839 (create_child): Don't set the error flag if the child is
13840 a CPLUS_FAKE_CHILD.
13841 (value_of_child): If value_fetch_lazy fails, return NULL
13842 so that callers will be notified that an error occurred.
13843 (c_value_of_variable): Delay check of variable's validity
13844 until later. We actually want all structs and unions to have
13845 the value "{...}".
13846 Do not return "???" for variables which could not be evaluated.
13847 This error condition must be returned to the caller so that it
13848 can get the error condition from gdb.
13849 (cplus_name_of_child): Adjust index for vptr before figuring
13850 out the name of the child.
13851 (cplus_value_of_child): If a child's (real) parent is not valid,
13852 don't even bother trying to give a value for it. Just return
13853 an error. Change all instances in this function.
13854 (cplus_type_of_child): If our parent is one of the "fake"
13855 parents, we need to get at the type of the real parent, and
13856 derive the child's true type using this information.
13857
b76898ab
AC
138582002-01-13 Andrew Cagney <ac131313@redhat.com>
13859
13860 From 2002-01-09 John Marshall <johnm@falch.net>:
13861 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13862 sources.redhat.com, and tweak some related URLs which had
13863 suffered from linkrot.
13864
b6649e88
AC
138652002-01-13 Andrew Cagney <ac131313@redhat.com>
13866
13867 From Jeff law:
13868 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13869 structures passed in registers.
13870
82cc5033
EZ
138712002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13872
13873 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13874 white space which prevented compilation. Reported by DSK
13875 <dsk@student.unsw.edu.au>.
13876
ba5f2f8a
MS
138772002-01-11 Michael Snyder <msnyder@redhat.com>
13878
fbd35540
MS
13879 * symfile.c (build_section_addr_info_from_section_tab):
13880 Use bfd access method instead of manipulating bfd directly.
13881 (syms_from_objfile): Ditto.
13882 (simple_overlay_update_1): Ditto.
13883 (simple_overlay_update): Ditto.
13884 (generic_load): Ditto.
13885 (overlay_unmapped_address): FIXME comment, bfd access methods.
13886 (sections_overlap): FIXME comment, bfd access methods.
13887 (pc_in_mapped_range): FIXME comment, bfd access methods.
13888 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13889 (section_is_mapped): FIXME comment, bfd access methods.
13890 (section_is_overlay): FIXME comment, bfd access methods.
13891
ba5f2f8a
MS
13892 * symfile.c (generic_load): Whitespace and long line cleanups.
13893 Remove duplicate variable, change several local variables to
13894 more appropriate data types.
13895 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13896
17df2af6
AC
138972002-01-12 Andrew Cagney <ac131313@redhat.com>
13898
13899 From Peter Schauer:
13900 * language.c (longest_local_hex_string_custom): Use phex_nz to
13901 convert NUM to a hex string.
13902
ec920329
EZ
139032002-01-12 Elena Zannoni <ezannoni@redhat.com>
13904
13905 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13906 the function.
538a76d6 13907 Update Copyright year.
ec920329 13908
3abd2e01
AC
139092002-01-12 Andrew Cagney <ac131313@redhat.com>
13910
13911 * language.c (longest_raw_hex_string): Delete unused function.
13912
b21b22e0
PS
139132002-01-11 Petr Sorfa <petrs@caldera.com>
13914
13915 * MAINTAINERS (write-after-approval): Add myself.
13916 * dwarf2read.c (read_tag_string_type): Handling of
13917 DW_AT_byte_size.
13918 (read_tag_string_type): FORTRAN fix to prevent propagation of
13919 first string size.
13920 (set_cu_language): Handling of DW_LANG_Fortran95
13921
747fe712
RE
139222002-01-11 Richard Earnshaw <rearnsha@arm.com>
13923
13924 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13925 GETPID(inferior_ptid).
13926 (store_inferior_registers): Likewise.
13927
f1bea926
JM
139282002-01-10 Jason Merrill <jason@redhat.com>
13929
13930 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13931 Fix DW_OP_minus.
13932
ae940673
AC
139332002-01-10 Andrew Cagney <ac131313@redhat.com>
13934
13935 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13936 and bfd/elf32-sh-nbsd.c.
13937
00546b04
MS
139382002-01-10 Michael Snyder <msnyder@redhat.com>
13939
352ed7b4
MS
13940 * NEWS: Mention --pid and corefile/proc-id behavior change.
13941
c18be923
MS
13942 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13943 * gcore.c: Include cli/cli-decode.h instead of command.h.
13944
00546b04
MS
13945 * main.c (captured_main): Add new command line option "--pid".
13946 If the second command line argument (following the symbol-file)
13947 begins with a digit, try to attach to it before trying to open
13948 it as a corefile.
13949 (print_gdb_help): Document the "--pid" argument.
13950
db60ec62
EZ
139512002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13952
13953 * completer.c (command_completer): New function.
13954
13955 * completer.h <command_completer>: Add prototype.
13956
13957 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13958 completer for the "help" command.
13959
39c22d1a
JM
139602002-01-09 Jason Merrill <jason@redhat.com>
13961
13962 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13963
c564377f
MS
139642002-01-09 Michael Snyder <msnyder@redhat.com>
13965
975aec09
MS
13966 * i386-linux-nat.c (fill_fpxregset): Make global.
13967 (store_fpxregset): Ditto.
13968
db4a10fa
MS
13969 * gregset.h (gdb_fpxregset_t): Define.
13970 (supply_fpxregset): Prototype.
13971 (fill_fpxregset): Prototype.
13972
c564377f
MS
13973 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13974
c3d45d70
RE
139752002-01-09 Richard Earnshaw <rearnsha@arm.com>
13976
13977 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13978 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13979 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13980
fcc87af1
AC
139812002-01-09 Andrew Cagney <ac131313@redhat.com>
13982
13983 * MAINTAINERS: Update target maintainer rules so that any
13984 Maintainer can approve a tested patch for a maintenance-only
13985 target.
13986
dd96c05b
RE
139872002-01-09 Richard Earnshaw <rearnsha@arm.com>
13988
d4297db9 13989 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13990
d4297db9 13991 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13992 IN_SIGTRAMP.
13993
145fdc6e
MS
139942002-01-08 Michael Snyder <msnyder@redhat.com>
13995
13996 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13997 real name of the executable, rather than the /proc name.
13998
be4d1333
MS
139992002-01-03 Michael Snyder <msnyder@redhat.com>
14000
14001 Implement a "generate-core-file" command in gdb, save target state.
14002 * gcore.c: New file. Implement new command 'generate-core-file'.
14003 Save a corefile image of the current state of the inferior.
14004 * linux-proc.c: Add linux-specific code for saving corefiles.
14005 * target.h (struct target_ops): Add new target vectors for saving
14006 corefiles; to_find_memory_regions and to_make_corefile_notes.
14007 (target_find_memory_regions): New macro.
14008 (target_make_corefile_notes): New macro.
14009 * target.c (update_current_target): Inherit new target methods.
14010 (dummy_find_memory_regions): New place-holder method.
14011 (dummy_make_corefile_notes): New place-holder method.
14012 (init_dummy_target): Initialize new dummy target vectors.
14013 * exec.c (exec_set_find_memory_regions): New function.
14014 Allow the exec_ops vector for memory regions to be taken over.
14015 (exec_make_note_section): New function, target vector method.
14016 * defs.h (exec_set_find_memory_regions): Export prototype.
14017 * procfs.c (proc_find_memory_regions): New function, corefile method.
14018 (procfs_make_note_section): New function, corefile method.
14019 (init_procfs_ops): Set new target vector pointers.
14020 (find_memory_regions_callback): New function.
14021 (procfs_do_thread_registers): New function.
14022 (procfs_corefile_thread_callback): New function.
14023 * sol-thread.c (sol_find_memory_regions): New function.
14024 (sol_make_note_section): New function.
14025 (init_sol_thread_ops): Initialize new target vectors.
14026 * inftarg.c (inftarg_set_find_memory_regions): New function.
14027 Allow to_find_memory_regions vector to be taken over.
14028 (inftarg_set_make_corefile_notes): New function.
14029 Allow to_make_corefile_notes vector to be taken over.
14030 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14031 interface layer if not target_has_execution (may be a corefile).
14032 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14033 * config/sparc/sun4sol2.mh: Ditto.
14034 * config/alpha/alpha-linux.mh: Ditto.
14035 * config/arm/linux.mh: Ditto.
14036 * config/i386/x86-64linux.mh: Ditto.
14037 * config/ia64/linux.mh: Ditto.
14038 * config/m68k/linux.mh: Ditto.
14039 * config/mips/linux.mh: Ditto.
14040 * config/powerpc/linux.mh: Ditto.
14041 * config/sparc/linux.mh: Ditto.
14042
c6b92abd
MS
140432002-01-07 Michael Snyder <msnyder@redhat.com>
14044
14045 * arm-linux-nat.c: Remove references to regcache.c internal data
14046 (registers[] and register_valid[]).
14047
4b09dc8c
MS
140482002-01-07 Michael Snyder <msnyder@redhat.com>
14049
abf22e64
AJ
14050 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14051 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
14052 symbol file and shlibs.
14053 * Makefile.in: Add rule for linux-proc.o.
14054 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14055 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14056 * config/arm/linux.mh: Ditto.
14057 * config/i386/linux.mh: Ditto.
14058 * config/i386/x86-64linux.mh: Ditto.
14059 * config/ia64/linux.mh: Ditto.
14060 * config/m68k/linux.mh: Ditto.
14061 * config/mips/linux.mh: Ditto.
14062 * config/powerpc/linux.mh: Ditto.
14063 * config/sparc/linux.mh: Ditto.
14064
c25b74ac
PM
140652002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14066
14067 * win32-nat.c: Add i386-tdep.h dependency.
14068
94cd915f
MS
140692002-01-07 Michael Snyder <msnyder@redhat.com>
14070
c7cccb76
MS
14071 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14072 instead of bfd_get_arch_size. Don't bail out just because
14073 there's no exec_bfd.
abf22e64 14074
34c0bd93
MS
14075 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14076 * p-valprint.c (pascal_object_print_value): Ditto.
14077 * somread.c (som_symtab_read): Ditto.
14078 * symfile.c (simple_free_overlay_region_table): Ditto.
14079 * valops.c (value_assign): Ditto.
14080
21c1c920
MS
14081 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14082 use tilde_expand and strerror for opening save-tracepoints file.
14083
5bbd998e
MS
14084 * thread-db.c (thread_db_new_objfile): Indendation fix.
14085
94cd915f
MS
14086 * infptrace.c (GDB_MAX_ALLOCA): New define.
14087 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 14088 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
14089 can be overridden with whatever value is appropriate to the host).
14090 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14091 alloca to allocate potentially large buffer.
14092 * rs6000-nat.c (child_xfer_memory): Ditto.
14093 * symm-nat.c (child_xfer_memory): Ditto.
14094 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14095
494e8a93
JSC
140962002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14097
14098 From Nick Clifton <nickc@redhat.com>
14099 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14100
d0e1d48e
MS
141012002-01-07 Michael Snyder <msnyder@redhat.com>
14102
abf22e64 14103 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
14104 Don't use exec_bfd if it's NULL.
14105
290b2c7a
MK
141062002-01-06 Mark Kettenis <kettenis@gnu.org>
14107
abf22e64 14108 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 14109
aef21287
AC
141102002-01-06 Andrew Cagney <ac131313@redhat.com>
14111
14112 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14113 * gnu-nat.c: Ditto.
14114
30efa627
AC
141152002-01-06 Andrew Cagney <ac131313@redhat.com>
14116
14117 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14118 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14119 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14120 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14121 z8k-coff have not been multi-arched. Update z8k-coff build
14122 status.
14123
9b4ff276
AC
141242002-01-06 Andrew Cagney <ac131313@redhat.com>
14125
14126 * MAINTAINERS: Mark a29k target as obsolete.
14127 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14128 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14129 comments.
14130 * NEWS: Note that a29k targets are obsolete.
14131 * a29k-tdep.c: Mark as obsolete.
14132 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14133 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14134 a29k-*-vxworks* targets as obsolete.
14135 * remote-adapt.c: Obsolete.
14136 * remote-eb.c: Obsolete.
14137 * remote-mm.c: Obsolete.
14138 * remote-udi.c: Obsolete.
14139 * config/a29k/a29k-udi.mt: Obsolete.
14140 * config/a29k/a29k.mt: Obsolete.
14141 * config/a29k/tm-a29k.h: Obsolete.
14142 * config/a29k/tm-vx29k.h: Obsolete.
14143 * config/a29k/vx29k.mt: Obsolete.
14144
a9011d31
AC
141452002-01-05 Andrew Cagney <ac131313@redhat.com>
14146
14147 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14148 with BFD_ENDIAN_BIG.
14149
9299404e
AC
141502002-01-05 Andrew Cagney <ac131313@redhat.com>
14151
14152 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14153 * configure, config.in: Re-generate.
14154 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14155 * defs.h: Do not include <endian.h>.
14156
7e89e357
JT
141572002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14158
14159 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14160 * config.in: Regenerate.
14161 * configure.in: Update copyright years.
14162 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14163 * configure: Regenerate.
14164 * i386bsd-nat.c: Update copyright years.
14165 (fill_gregset): Use regcache_collect.
14166 (fetch_inferior_registers): Only fetch integer registers
14167 if requested to do so. Add support for XMM registers
14168 using PT_GETXMMREGS.
14169 (store_inferior_registers): Only store integer registers
14170 if requested to do so. Add support for XMM registers
14171 using PT_SETXMMREGS.
14172 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14173 (store_inferior_registers): Remove.
14174 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14175 (fetch_elfcore_registers): New function.
14176 (i386nbsd_elfcore_fns): New.
14177 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14178 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14179 i386bsd-nat.o.
14180 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14181 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14182 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14183 * config/i386/tm-nbsd.h: Update copyright years.
14184 (HAVE_SSE_REGS): Define.
14185 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14186 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14187 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14188 (SIGCONTEXT_PC_OFFSET): Remove.
14189 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14190
a752853e
AC
141912002-01-05 Andrew Cagney <ac131313@redhat.com>
14192
14193 * configure.tgt: Remove powerpc-*-macos* target.
14194 * config/m68k/xm-mpw.h: Delete file.
14195 * config/xm-mpw.h: Delete file.
14196 * ser-mac.c: Delete file.
14197 * mpw-make.sed: Delete file.
14198 * mpw-config.in: Delete file.
14199 * mac-xdep.c: Delete file.
14200 * mac-gdb.r: Delete file.
14201 * mac-defs.h: Delete file.
14202 * mac-nat.c: Delete file.
14203 * config/powerpc/macos.mh: Delete file.
14204 * config/powerpc/macos.mt: Delete file.
14205 * config/powerpc/nm-macos.h: Delete file.
14206 * config/powerpc/tm-macos.h: Delete file.
14207 * source.c (openp, open_source_file): Remove obsolete code.
14208 * top.c (gdb_readline): Ditto.
14209 * utils.c (query): Ditto.
14210 * event-top.c (display_gdb_prompt): Ditto.
14211 * Makefile.in (ser-mac.o): Delete obsolete target.
14212 * NEWS: Update.
14213
d7449b42
AC
142142002-01-04 Andrew Cagney <ac131313@redhat.com>
14215
14216 * defs.h (BIG_ENDIAN): Delete macro definition.
14217 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14218 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14219 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14220 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14221 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14222 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14223 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14224 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14225 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14226 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14227 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14228 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14229 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14230 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14231 * gdbarch.c: Re-generate.
14232
356374e8
DJ
142332002-01-04 Daniel Jacobowitz <drow@mvista.com>
14234
14235 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14236 for core files.
14237
a2b8f8f8
JT
142382002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14239
14240 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14241
12466af9
AC
142422002-01-04 Andrew Cagney <ac131313@redhat.com>
14243
14244 * value.h (value_ptr): Delete typedef.
14245
3549ab40
JT
142462002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14247
14248 * i386nbsd-nat.c: Update copyright years.
14249 Include i386-tdep.h.
14250
fedbd091
EZ
142512002-01-04 Elena Zannoni <ezannoni@redhat.com>
14252
14253 * stabsread.c: Update copyright years.
14254
14255 From Debashis Mahata <debashis.mahata@wipro.com>:
14256 (read_struct_fields): Deal with Sun C compiler erroneous stab
14257 output for structs and unions.
fec8b34f 14258 Fix PR gdb/269.
fedbd091 14259
eb43544b
DJ
142602002-01-04 Daniel Jacobowitz <drow@mvista.com>
14261
14262 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14263 prototype.
14264
1514d34e
DJ
142652002-01-04 Daniel Jacobowitz <drow@mvista.com>
14266
14267 * cp-abi.c: Fix whitespace.
14268 (baseclass_offset): New wrapper function.
14269 * cp-abi.h (baseclass_offset): Add prototype.
14270 (struct cp_abi_ops): Add baseclass_offset pointer.
14271
14272 * valops.c (vb_match): Move to...
14273 * gnu-v2-abi.c (vb_match): here.
14274 * valops.c (baseclass_offset): Move to...
14275 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14276
14277 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14278
14279 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14280 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14281 * hpacc-abi.c (init_hpacc_ops): Likewise.
14282
7f8c9282
DJ
142832002-01-04 Daniel Jacobowitz <drow@mvista.com>
14284
14285 * valops.c (find_overload_match): Accept obj as a
14286 reference parameter. Update it before returning.
14287 * value.h (find_overload_match): Update prototype.
14288 * eval.c (evaluate_subexp_standard): Pass object to
14289 find_overload_match by reference.
14290
f23631e4
AC
142912002-01-03 Andrew Cagney <ac131313@redhat.com>
14292
14293 * valarith.c: Replace value_ptr with struct value pointer. Remove
14294 register attribute from value declarations.
14295 * valops.c: Ditto.
14296 * value.h: Ditto.
14297 * scm-lang.c (scm_lookup_name): Ditto.
14298
79e10fab 142992002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 14300
79e10fab
AC
14301 Abstract the functionality of iterating over mapped memory
14302 regions into a general purpose iterator function.
abf22e64 14303 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
14304 iterator for memory sections.
14305 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14306 (solib_mappings_callback): New function, callback for above.
14307 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14308 (info_mappings_callback): New function, callback for above.
14309
14310 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14311
c5ad026a
MK
143122002-01-01 Mark Kettenis <kettenis@gnu.org>
14313
d2a7c97a
MK
14314 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14315 * i386-tdep.c: Include "elf-bfd.h".
14316 (process_note_abi_tag_sections): New function.
14317 (i386_gdbarch_init): Add code to recognize various OS/ABI
14318 combinations.
14319
c5ad026a
MK
14320 * maint.c (_initialize_maint_cmds): Add missing \ in
14321 string-literal.
14322
a1a5b71e 14323For older changes see ChangeLog-2001
c906108c
SS
14324\f
14325Local Variables:
14326mode: change-log
14327left-margin: 8
14328fill-column: 74
14329version-control: never
14330End:
This page took 0.995307 seconds and 4 git commands to generate.